/* ================= ROOT / VARIABLES ================= */
:root {
    --primary-color: #F7DA93;
    --secondary-color: #FFFFFF;
    --bg-dark: #001739; /* couleur uniforme header + sections */
}

/* ================= RESET / BASE ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container-large {
    max-width: 1100px;   /* largeur réelle de l’image Hero */
    margin: 0 auto;
    padding: 0 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--secondary-color);
    overflow-x: hidden; /* empêche le scroll horizontal */
    padding-top: 100px; /* compensation du header fixed */
}

section {
    background-color: var(--bg-dark);
    max-width: 100%; /* ne dépasse jamais la largeur de la fenêtre */
}

section:not(.hero) {
    padding: 60px 0;
}

section {
    scroll-margin-top: 120px; /* header + marge de confort */
}

/* ================= IMAGES RESPONSIVE ================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= HEADER ================= */
.header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-dark);
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 60px;
    display: block;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    display: block;
}

/* ================= HERO ================= */
.hero {
    background-color: var(--bg-dark);
    text-align: center;
    padding-top: calc(100px);
    padding-bottom: 50px; /* espace sous l'image */
}

.hero-text {
    position: relative; 
    text-align: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 20px 0 0 0;
    color: #0f89cb;
    text-shadow: 0 4px 6px rgba(0,0,0,0.25), 0 0 12px rgba(15,137,203,0.3);
}

.hero-text .h1-reflet {
    font-size: 2.8rem;
    font-weight: 600;
    color: #0f89cb;
    opacity: 0.25;
    transform: scaleY(-1) skewX(-3deg);
    filter: blur(2px);
    margin-top: -0.15em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wave-close 2s infinite alternate ease-in-out;
}

@keyframes wave-close {
    0%   { transform: scaleY(-1) skewX(-3deg); }
    50%  { transform: scaleY(-1) skewX(3deg); }
    100% { transform: scaleY(-1) skewX(-3deg); }
}

.hero h2 {
    font-size: 2.7rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-image-wrapper img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.hero::after {
    content: "";
    display: block;
    width: 80px;
    height: 6px;
    background: #0f89cb;
    margin: 50px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 12px #0f89cb;
}

/* ================= SOCIETE ================= */
.societe-content {
    max-width: 1100px;
    margin: 0;
    text-align: center;
}

h1.titre-section {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 32px;
}

h2.titre-section {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.texte-intro, .paragraphe-centre {
    width: 100%;
    margin: 0;
    text-align: left;
    color: #fff;
}

.slogan-wrapper {
    max-width: 900px;
    margin: 3rem auto 4rem auto;
    padding: 2.5rem 3rem;
    border: 2px solid #16b7c5;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background: #011d48;
}

.slogan {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
    font-weight: 300;
    color: #ffffff;
}

.slogan span {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: #0feafe;
}

.détachée {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
}

section::after {
    content: "";
    display: block;
    width: 80px;
    height: 6px;
    background: #0f89cb;
    margin: 50px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 12px #0f89cb;
}

section.no-separator::after {
    content: none;
}

/* ================= SERVICES ================= */
.services-content {
     max-width: 1100px;
     margin: 0;
     text-align: center;
}

.paragraphe-exergue {
     font-size: 1.25rem;
     font-weight: 500;
     color: #fff4cc;
     background-color: rgba(0, 0, 0, 0.05);
     padding: 1rem 1rem;
     border-radius: 8px;
     margin: 0 auto 2rem auto;
     max-width: 700px;
     text-align: left;
     line-height: 1.5;
     box-shadow: 0 6px 12px rgba(0,0,0,0.25), 0 0 12px rgba(255,244,204,0.28);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paragraphe-exergue:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.3), 0 0 16px rgba(255,244,204,0.33);
}

.liste-gauche {
     margin-top: 1.2rem;
     padding-left: 1.2rem;
     text-align: left;
     color: #fff;
     list-style-type: disc;
}

.h2-reflet-cristal-ultime {
     font-weight: 700;
     letter-spacing: 0.08em;
     font-size: 1.65rem;
     background: linear-gradient(180deg, #e0faff 0%, #33cfff 50%, #1ab1ff 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     text-shadow: 0 2px 4px rgba(0,0,0,0.35), 0 -2px 2px rgba(255,255,255,0.5), 1px 1px 1px rgba(255,255,255,0.2), -1px 0 1px rgba(255,255,255,0.15);
}

/* Décaler le premier bloc-texte pour qu'il ne soit pas collé au paragraphe exergue */
.services .bloc-texte:first-of-type {
    margin-top: 2.5rem; /* tu peux ajuster la valeur pour plus ou moins d'espace */
}

/* Ajouter un espace entre tous les blocs */
.services .bloc-texte {
    margin-bottom: 2rem;
}

/* Espacement sous les titres H2 dans les blocs */
.services .bloc-texte h2 {
    margin-bottom: 1rem;
}

.services .paragraphe-exergue {
    margin-bottom: 4rem; /* espace plus grand avant le premier bloc */
}

/* ================= APPLICATIONS ================= */
.applications-content {
     max-width: 1100px;
     margin: 0;
     text-align: center;
}

/* MOSAÏQUE */
.mosaic-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.mosaic-gallery .gallery-item {
    text-align: center;
    border-radius: 12px;
}

.mosaic-gallery .gallery-item.large {
    flex: 1 1 45%;
    max-width: 45%;
}

.mosaic-gallery .gallery-item.small {
    flex: 1 1 25%;
    max-width: 25%;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.image-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(255,244,204,0.35), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255,244,204,0.35);
}

.image-wrapper:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-caption {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Ajouter un espace entre tous les blocs */
.applications .bloc-texte {
    margin-bottom: 2rem;
}

/* Espacement sous les titres H2 dans les blocs */
.applications .bloc-texte h2 {
    margin-bottom: 1rem;
}

.applications .paragraphe-exergue {
    margin-bottom: 5rem; /* espace plus grand avant le premier bloc */
}

/* ================= CONTACT ================= */
.contact-content {
     max-width: 1100px;
     margin: 0;
     text-align: center;
}

.slogan-wrapper {
    max-width: 900px;
    margin: 3rem auto 4rem auto;
    padding: 2.5rem 3rem;
    border: 2px solid #16b7c5;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background: #011d48;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slogan {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 300;
    color: #ffffff;
}

.slogan span {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: #0feafe;
}

.slogan a {
    color: #16b7c5;
    text-decoration: none;
}

.slogan a:hover {
    text-decoration: underline;
}

/* ================= FOOTER ================= */
.footer {
    background-color: #0f1c3c;
    color: #fff;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    width: 100%;
    max-width: 1100px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 200px;
}

.footer-logo img {
    height: 65px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-column.footer-contact {
    flex: 0 0 280px;
}

.footer-copy {
    margin-top: 30px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .header-container {
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        right: 0;
        width: 75vw;
        max-width: 260px;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: var(--bg-dark);
        padding: 20px;
        gap: 15px;
        box-shadow: -4px 0 12px rgba(0,0,0,0.35);
        overflow-y: auto;
        z-index: 9999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .paragraphe-centre {
        max-width: 90%;
        padding: 0 15px;
        font-size: 0.95rem;
    }

    .mosaic-gallery .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
