/* ============================================================
   EXO7 ELECTRONIC — Style principal
   Palette : blanc, beige/crème, bleu marine
   Typographie : Montserrat (titres), Open Sans (corps)
   ============================================================ */

/* --- VARIABLES & RESET --- */
:root {
    --white: #FFFFFF;
    --cream: #FAF7F2;
    --cream-alt: #F5F0E8;
    --navy: #1A2B4A;
    --navy-dark: #0D2137;
    --blue: #2255A4;
    --blue-hover: #1A4080;
    --gray: #666666;
    --gray-light: #E8E8E8;
    --gray-bg: #F0F0F0;
    --gold: #C9A94B;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
    --top-bar-height: 40px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--top-bar-height) + 10px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--blue-hover);
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.3;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- BARRE SUPÉRIEURE (top-bar) --- */
.top-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-item a {
    color: rgba(255,255,255,0.85);
}

.top-bar-item a:hover {
    color: var(--gold);
}

.top-bar-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* --- HEADER STICKY --- */
.site-header {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    color: var(--blue);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background: var(--cream);
    color: var(--blue);
}

.main-nav a.active {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    border-radius: 5px !important;
    padding: 8px 20px !important;
}

.nav-cta:hover {
    background: var(--blue-hover) !important;
}

/* Bouton mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- SECTIONS GÉNÉRALES --- */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--cream);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blue);
    margin-bottom: 10px;
}

/* --- SECTION HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--top-bar-height));
    background: linear-gradient(160deg, #eef2f7 0%, var(--cream) 40%, #e8e3da 100%);
    overflow: hidden;
}

/* Fond décoratif subtil sur toute la section */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34,85,164,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--top-bar-height));
    padding: 60px 0;
}

/* Colonne texte (gauche) */
.hero-text {
    max-width: 540px;
}

.hero-text h1 {
    font-size: 50px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-text h1 span {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='6' fill='none'%3E%3Cpath d='M0 3.5 C8 2.8, 18 4.2, 30 3.3 C42 2.4, 55 4.1, 70 3.0 C85 1.9, 100 3.8, 120 3.2 C140 2.6, 158 4.0, 175 3.1 C192 2.2, 210 3.9, 230 3.4 C250 2.9, 270 4.1, 290 2.8 C310 1.5, 330 3.7, 350 3.2 C370 2.7, 385 3.9, 400 3.0' stroke='%23C9A94B' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: 400px 6px;
    padding-bottom: 6px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: draw-underline 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
}

@keyframes draw-underline {
    0% {
        background-size: 0px 6px;
    }
    100% {
        background-size: 400px 6px;
    }
}

.hero-tagline {
    font-size: 23px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 22px;
    line-height: 1.35;
}

.hero-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-text p strong {
    color: var(--navy);
}

/* Colonne visuelle (droite) — image + décorations */
.hero-visual {
    position: relative;
    min-height: 420px;
    padding: 24px;
}

/* Motif de points décoratif (haut-gauche de l'image) */
.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    z-index: 1;
    background-image: radial-gradient(circle, var(--gold) 2.2px, transparent 2.2px);
    background-size: 15px 15px;
    opacity: 0.7;
}

/* Cadre doré décalé derrière l'image */
.hero-frame {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 3px solid var(--gold);
    border-radius: 14px;
    z-index: 0;
}


/* Conteneur image principal */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}


.hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s, color 0.25s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34,85,164,0.3);
}

.btn-primary:hover {
    background: var(--blue-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,85,164,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26,43,74,0.25);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* --- SECTION ACTIVITÉS (3 ou 4 blocs) --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-content: center;
}

.activity-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.activity-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.activity-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.activity-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* --- GRILLE 2 COLONNES (texte + image) --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.two-col-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.two-col-text p {
    margin-bottom: 14px;
    color: #444;
}

.two-col-text ul {
    margin-bottom: 14px;
}

.two-col-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #444;
}

.two-col-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
}

/* --- IMAGE GALLERIES --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.image-gallery.single {
    grid-template-columns: 1fr;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
}

.image-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- PLACEHOLDER IMAGES --- */
.img-placeholder {
    background: var(--gray-bg);
    border: 2px dashed var(--gray-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    min-height: 300px;
    text-align: center;
    gap: 12px;
}


.placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.img-placeholder p {
    font-size: 13px;
    color: var(--gray);
    max-width: 320px;
    line-height: 1.5;
    font-weight: 500;
}

.img-placeholder .photo-specs {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* --- SECTION CÂBLAGE CARTES (sous-sections) --- */
.sub-sections {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* --- SECTION BUREAU D'ÉTUDES --- */
.be-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.be-block {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.be-block h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.be-block h4 .icon {
    width: 32px;
    height: 32px;
    background: var(--cream);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.be-block ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.be-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
}

.be-block p {
    font-size: 14px;
    color: #444;
}

.be-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.be-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
}

.be-images img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
}

/* --- SECTION GROUPE / PARTENAIRES --- */
.group-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.group-logo-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.group-logo-card:hover {
    transform: translateY(-3px);
}

.group-logo-card .entity-icon {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.group-logo-card h4 {
    font-size: 13px;
    font-weight: 700;
}

.group-logo-card p {
    font-size: 11px;
    color: var(--gray);
}

.group-logo-card.current {
    border: 2px solid var(--blue);
}

/* Chiffres clés */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 16px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* --- SECTION GREEN POWER --- */
.green-power-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.green-power-content p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 24px;
}

.green-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
}

.green-badge span {
    font-size: 24px;
}

/* --- SECTION CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-light);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: right;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background: #fce4ec;
    color: #c62828;
    display: block;
}

/* Coordonnées contact */
.contact-info {
    padding: 20px 0;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-info-item .ci-icon {
    width: 42px;
    height: 42px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .ci-icon svg {
    color: var(--navy);
}

.contact-info-item .ci-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-info-item .ci-text span,
.contact-info-item .ci-text a {
    font-size: 14px;
    color: var(--gray);
}

.contact-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-map iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    padding-top: 60px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 14px;
}

.footer-logo .logo-main {
    color: var(--white);
    font-size: 20px;
}

.footer-logo .logo-sub {
    color: var(--gold);
    font-size: 10px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.badge-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 12px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.6;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

.footer-legal {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-legal span {
    opacity: 0.3;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .group-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .be-features {
        grid-template-columns: 1fr;
    }

    .be-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .top-bar-contact-name {
        display: none;
    }

    /* Image galleries responsive */
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .be-images {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Mobile nav */
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: calc(var(--top-bar-height) + var(--header-height));
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        padding: 20px 24px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        pointer-events: none;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        font-size: 15px;
        padding: 12px 16px;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-dots {
        width: 70px;
        height: 70px;
        top: -12px;
        left: -12px;
    }

    .hero-frame {
        bottom: -10px;
        right: -10px;
    }

    /* Grilles */
    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-col.reverse {
        direction: ltr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .be-images {
        grid-template-columns: 1fr;
    }

    .group-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        padding: 24px;
    }
}

/* --- ANIMATIONS LÉGÈRES (scroll reveal) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header scrolled state */
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 26px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        min-height: 220px;
    }

    .group-logos {
        grid-template-columns: 1fr;
    }

    .top-bar-inner {
        justify-content: center;
    }
}

/* ============================================================
   PAGES LÉGALES (Mentions légales, Politique de confidentialité)
   ============================================================ */

.hero-simple {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: calc(var(--header-height) + var(--top-bar-height) + 60px) 0 60px;
    text-align: center;
    color: var(--white);
}

.hero-simple h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 6px;
    color: rgba(255,255,255,0.4);
}
.breadcrumb strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.legal-content {
    background: var(--white);
    padding: 60px 0;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
}

.legal-wrapper h2:first-of-type {
    margin-top: 0;
}

.legal-wrapper p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.legal-wrapper ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-wrapper ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-wrapper a {
    color: var(--blue);
    text-decoration: underline;
}

.legal-wrapper a:hover {
    color: var(--blue-hover);
}

.legal-update {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-simple {
        padding: 80px 0 40px;
    }
    
    .hero-simple h1 {
        font-size: 32px;
    }
}
