/* =====================================================================
   AFER — Feuille de style globale
   Charte : teal #3DBDB6 · bleu #009FE3 · serif (Perpetua / Times New Roman)
   Fichier unique partagé par toutes les pages (index + pages/).
   ===================================================================== */

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

:root {
    --cascade:    #3DBDB6;
    --sapphire:   #8DD5D9;
    --azure:      #009FE3;
    --white:      #ffffff;
    --dark:       #1a1a1a;
    --gray:       #f8f9fa;
    --muted:      #666;
    --shadow:     rgba(0, 0, 0, 0.10);
    --grad:       linear-gradient(135deg, var(--cascade), var(--azure));
    --radius:     16px;
    --nav-h:      76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); overflow-x: clip; }

body {
    font-family: 'Perpetua', 'Times New Roman', Times, 'Latin Modern Roman', 'LM Roman 10', Georgia, serif;
    color: var(--dark);
    font-size: 1.08rem;
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Accessibilité : focus visible clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--azure);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { max-width: 1400px; margin: 0 auto; }

/* ============================= NAVIGATION ============================= */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    transition: box-shadow .3s ease, padding .3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: var(--nav-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-img { height: 50px; width: auto; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: .2rem;
    align-items: center;
}

.nav-item { position: relative; }

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    border-radius: 10px;
    transition: background .25s ease, color .25s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.nav-link:hover,
.nav-item:focus-within > .nav-link {
    background: linear-gradient(135deg, rgba(61,189,182,.10), rgba(0,159,227,.10));
    color: var(--azure);
}

.dropdown-icon { font-size: .65rem; transition: transform .3s ease; }
.nav-item:hover .dropdown-icon,
.nav-item:focus-within .dropdown-icon { transform: rotate(180deg); }

/* Icônes SVG (remplacent les 33 fichiers d'icônes) */
.menu-ic { width: 22px; height: 22px; flex: 0 0 22px; stroke: var(--azure); }

/* Méga / simple dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 270px;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .28s ease;
    padding: .5rem;
    margin-top: .4rem;
    border: 1px solid #eef2f4;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: .75rem .9rem;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .8rem;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease, padding .2s ease;
    font-size: .95rem;
}
.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(61,189,182,.10), rgba(0,159,227,.10));
    color: var(--azure);
    padding-left: 1.2rem;
}
.dropdown-item .menu-ic { stroke: var(--cascade); }

/* Sous-menu latéral */
.sub-dropdown { position: relative; }
.sub-dropdown > .dropdown-item::after {
    content: '›';
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--muted);
}
.sub-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all .28s ease;
    padding: .5rem;
    margin-left: .3rem;
    border: 1px solid #eef2f4;
}
.sub-dropdown:hover > .sub-dropdown-menu,
.sub-dropdown:focus-within > .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cta-button {
    background: var(--grad);
    color: #fff;
    padding: .75rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 4px 15px rgba(61,189,182,.30);
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(61,189,182,.45); }

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle span {
    width: 26px; height: 3px; border-radius: 3px;
    background: var(--dark); transition: .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 998;
}
.nav-backdrop.show { display: block; }

/* ============================= HERO ================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: calc(var(--nav-h) + 3rem) 5% 4rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(61,189,182,.88), rgba(0,159,227,.82));
    z-index: 1;
}
.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; animation: fadeInUp 1s ease; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.4rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero p  { font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin-bottom: 2rem; opacity: .96; line-height: 1.8; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
    display: inline-block; padding: 1rem 2.2rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,.85); color: #fff; transition: .3s ease;
}
.btn-ghost:hover { background: #fff; color: var(--azure); }

/* ============================= SECTIONS ============================== */
section { padding: 6rem 5%; }

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.section-subtitle { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 1rem; }
.section-divider { width: 100px; height: 4px; background: linear-gradient(90deg, var(--cascade), var(--azure)); margin: 0 auto 3rem; border-radius: 2px; }

/* ============================= À PROPOS ============================== */
.about-section { background: linear-gradient(135deg, var(--gray) 0%, #fff 100%); }
.about-container { max-width: 1400px; margin: 0 auto; }
.about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.about-image-wrapper { position: relative; }
.about-main-image { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px var(--shadow); transition: transform .4s ease; }
.about-main-image:hover { transform: scale(1.02); }
.about-text { background: #fff; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 40px var(--shadow); }
.about-text h3 { font-size: 2rem; margin-bottom: 1.4rem; }
.about-text p  { font-size: 1.08rem; line-height: 1.8; color: #555; margin-bottom: 1.2rem; }
.about-text strong { color: var(--dark); }

.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 2rem; }
.service-tag {
    padding: 1.1rem; background: linear-gradient(135deg, rgba(61,189,182,.10), rgba(0,159,227,.10));
    border-radius: 12px; border-left: 4px solid var(--azure); font-weight: 500; text-align: center;
    transition: .3s ease; cursor: default;
}
.service-tag:hover { background: var(--grad); color: #fff; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(61,189,182,.3); }

/* ========================= QUALIFICATIONS =========================== */
.qualifications-grid { display: flex; justify-content: center; align-items: flex-start; gap: 2rem; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.qualification-card {
    background: #fff; padding: 1.2rem; border-radius: 20px; box-shadow: 0 10px 30px var(--shadow);
    transition: .4s ease; position: relative; width: 190px;
}
.qualification-card:hover { transform: translateY(-12px) scale(1.04); box-shadow: 0 20px 50px rgba(61,189,182,.3); }
.qualification-card img { width: 100%; border-radius: 12px; }
.qualification-card .q-label { text-align: center; font-weight: 600; margin-top: .8rem; font-size: .95rem; }
.qualification-tooltip {
    position: absolute; bottom: -8px; left: 50%; transform: translate(-50%, 100%);
    background: rgba(0,0,0,.92); color: #fff; padding: 1rem 1.2rem; border-radius: 10px;
    width: 260px; opacity: 0; visibility: hidden; transition: .3s ease; z-index: 100;
    font-size: .82rem; line-height: 1.55; text-align: justify; -webkit-hyphens: auto; hyphens: auto; pointer-events: none;
}
.qualification-card:hover .qualification-tooltip { opacity: 1; visibility: visible; }

/* Justification des paragraphes de contenu (cartes, sections) */
.about-text p, .trust-card p, .service-content p, .procedure-step p, .service-block p {
    text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}

/* ============================= SERVICES ============================= */
.services-section { background: var(--gray); }
.services-showcase { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.service-block { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px var(--shadow); transition: .3s ease; }
.service-block:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(61,189,182,.2); }
.service-visual { width: 100%; height: 280px; overflow: hidden; }
.service-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-block:hover .service-visual img { transform: scale(1.08); }
.service-content { padding: 2rem; }
.service-content h3 { font-size: 1.6rem; margin-bottom: 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.service-content p { color: var(--muted); line-height: 1.8; font-size: .95rem; margin-bottom: .7rem; }

/* ===================== BANDEAU DE CONFIANCE ======================== */
/* (remplace l'ancienne section "partenaires") */
.trust-section { background: linear-gradient(135deg, var(--gray) 0%, #fff 100%); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.trust-card {
    background: #fff; border-radius: 18px; padding: 2rem 1.6rem; text-align: center;
    box-shadow: 0 10px 30px var(--shadow); border-top: 4px solid var(--cascade); transition: .3s ease;
}
.trust-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(61,189,182,.22); }
.trust-card .trust-ic { width: 48px; height: 48px; margin: 0 auto 1rem; stroke: var(--azure); }
.trust-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.trust-card p { color: var(--muted); font-size: .92rem; }

/* ========================= COMMENT ÇA MARCHE ======================= */
.how-it-works { background: linear-gradient(135deg, var(--gray) 0%, #fff 100%); }
.steps-list { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.step-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: #fff; padding: 2.2rem; border-radius: 20px; box-shadow: 0 10px 30px var(--shadow); transition: .3s ease; }
.step-row:nth-child(even) { direction: rtl; }
.step-row:nth-child(even) > * { direction: ltr; }
.step-row:hover { box-shadow: 0 15px 40px rgba(61,189,182,.2); }
.step-number { display: inline-flex; width: 50px; height: 50px; background: var(--grad); color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.step-text h4 { font-size: 1.5rem; margin: 1rem 0; }
.step-text p { color: var(--muted); line-height: 1.8; }
.step-image-container { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 25px var(--shadow); }
.step-image-container img { width: 100%; height: 100%; object-fit: cover; }

/* ============================= POURQUOI ============================= */
.why-afer { background: linear-gradient(135deg, #B3E5E0, #A8DAE6); }
.why-afer .section-title { -webkit-text-fill-color: var(--dark); color: var(--dark); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; max-width: 1400px; margin: 0 auto 3rem; }
.why-card { background: rgba(255,255,255,.72); backdrop-filter: blur(10px); padding: 2.3rem; border-radius: 20px; border: 2px solid rgba(255,255,255,.5); transition: .3s ease; }
.why-card:hover { background: rgba(255,255,255,.95); transform: translateY(-5px); }
.why-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.why-card p { line-height: 1.8; color: #333; }

/* ============================= PROCÉDURE =========================== */
.procedure-section { background: #fff; }
.procedure-content { max-width: 1100px; margin: 0 auto 3rem; }
.procedure-step { background: var(--gray); padding: 2.2rem; border-radius: 15px; margin-bottom: 1.4rem; border-left: 5px solid var(--azure); transition: .3s ease; }
.procedure-step:hover { background: #fff; box-shadow: 0 10px 30px var(--shadow); transform: translateX(8px); }
.procedure-step h4 { font-size: 1.35rem; margin-bottom: .7rem; }
.procedure-step p { color: var(--muted); line-height: 1.8; }

.contact-button-container { text-align: center; max-width: 1100px; margin: 0 auto; }
.contact-button { display: inline-block; background: var(--grad); color: #fff; padding: 1rem 3rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: .3s ease; box-shadow: 0 4px 15px rgba(61,189,182,.3); }
.contact-button:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(61,189,182,.5); }

/* ==================== RÉALISATIONS — NOUVELLE GALERIE ============== */
.realisations-section { background: var(--gray); }
.gallery {
    max-width: 1400px; margin: 0 auto;
    columns: 4; column-gap: 1.2rem;
}
.gallery-item {
    position: relative; break-inside: avoid; margin-bottom: 1.2rem;
    border-radius: 16px; overflow: hidden; cursor: pointer;
    box-shadow: 0 8px 24px var(--shadow); transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,159,227,.55), transparent 55%);
    opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,159,227,.28); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
    position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff;
    font-weight: 600; opacity: 0; transform: translateY(8px); transition: .35s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10,20,25,.94); display: none;
    align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.14); color: #fff; border: none;
    width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
    transition: background .25s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.lb-close { top: 3vh; right: 3vw; transform: none; }
.lb-counter { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 500; letter-spacing: .05em; }

/* ============================== FOOTER ============================== */
footer { background: linear-gradient(135deg, var(--dark), #2a2a2a); color: #fff; padding: 4rem 5% 2rem; }
.footer-container { max-width: 1400px; margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.footer-column h3 { margin-bottom: 1.3rem; font-size: 1.2rem; border-bottom: 2px solid var(--cascade); padding-bottom: .5rem; display: inline-block; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: .7rem; }
.footer-column a { color: rgba(255,255,255,.8); text-decoration: none; transition: .25s ease; }
.footer-column a:hover { color: var(--cascade); padding-left: 5px; }
.footer-column p { line-height: 1.8; opacity: .9; margin-bottom: .5rem; }

.footer-form { grid-column: span 4; background: rgba(255,255,255,.05); padding: 3rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); }
.footer-form h3 { margin-bottom: 2rem; font-size: 1.7rem; text-align: center; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 1.4rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: span 3; }
.form-group label { margin-bottom: .5rem; font-weight: 500; }
.form-group input, .form-group textarea {
    padding: .8rem; border: 2px solid rgba(255,255,255,.2); border-radius: 10px;
    background: rgba(255,255,255,.1); color: #fff; font-size: 1rem; font-family: inherit; transition: .3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.5); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cascade); background: rgba(255,255,255,.15); box-shadow: 0 0 20px rgba(61,189,182,.3); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-button { width: 100%; background: var(--grad); color: #fff; padding: 1rem; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: .3s ease; }
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(61,189,182,.4); }
.submit-button:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
/* Champ piège anti-robots : masqué aux humains, invisible aux lecteurs d'écran */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Message de retour du formulaire */
.form-note { margin-top: 1.2rem; padding: .9rem 1.1rem; border-radius: 10px; font-size: .97rem; line-height: 1.5; }
.form-note--ok  { background: rgba(61,189,182,.18); border: 1px solid rgba(61,189,182,.5); color: #eafaf8; }
.form-note--err { background: rgba(224,90,90,.15); border: 1px solid rgba(224,90,90,.5); color: #ffe3e3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; text-align: center; opacity: .7; font-size: .9rem; }
.footer-bottom a { color: var(--cascade); text-decoration: none; }

/* ===================== PAGES DE CONTENU (pages/) =================== */
.page-hero {
    margin-top: var(--nav-h);
    min-height: 320px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; position: relative; overflow: hidden; padding: 3rem 5%;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(61,189,182,.9), rgba(0,159,227,.82)); z-index: 1; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero .page-hero-inner { position: relative; z-index: 2; max-width: 850px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.page-hero p { margin-top: .8rem; font-size: 1.1rem; opacity: .96; }

.breadcrumb { max-width: 820px; margin: 0 auto; padding: 1.1rem 5%; font-size: .88rem; color: var(--muted); border-bottom: 1px solid #eef2f4; }
.breadcrumb a { color: var(--azure); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .45rem; color: #c3ccd2; }

.article { max-width: 820px; margin: 0 auto; padding: 3rem 5% 4rem; }
.article h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; color: var(--dark); position: relative; padding-left: 1rem; }
.article h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--grad); }
.article h3 { font-size: 1.35rem; margin: 1.8rem 0 .8rem; color: var(--azure); }
.article p  { color: #333; font-size: 1.12rem; line-height: 1.9; margin-bottom: 1.15rem; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.article p.lead { text-align: left; hyphens: none; font-size: 1.25rem; line-height: 1.75; color: #2a2a2a; }
.article ul, .article ol { margin: 0 0 1.2rem 1.4rem; }
.article li { line-height: 1.85; margin-bottom: .55rem; color: #333; font-size: 1.08rem; }
.article strong { color: var(--dark); }
.article img.inline { border-radius: 14px; margin: 1.5rem 0; box-shadow: 0 12px 30px var(--shadow); }

.info-table { width: 100%; border-collapse: collapse; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px var(--shadow); font-size: 1.02rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: 12px; }
.table-wrap .info-table { min-width: 460px; }
.info-table th { background: var(--grad); color: #fff; padding: 1rem; text-align: center; font-weight: 600; }
.info-table td { padding: .9rem 1rem; border-bottom: 1px solid #eef2f4; vertical-align: middle; }
.info-table td.tc { text-align: center; }
.info-table tr:nth-child(even) td { background: var(--gray); }

.callout { background: linear-gradient(135deg, rgba(61,189,182,.10), rgba(0,159,227,.08)); border-left: 5px solid var(--azure); padding: 1.3rem 1.5rem; border-radius: 12px; margin: 1.8rem 0; }
.callout strong { color: var(--azure); }

/* Schéma illustratif (SVG) */
.schema { margin: 2rem 0; background: #fff; border: 1px solid #eef2f4; border-radius: 16px; padding: 1rem 1rem .4rem; box-shadow: 0 10px 30px var(--shadow); }
.schema svg { width: 100%; height: auto; display: block; }
.schema figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .6rem; padding: 0 .5rem .4rem; }

/* FAQ (accordéon natif) */
.faq { margin: 1.5rem 0 .5rem; }
.faq details { border: 1px solid #e6ebee; border-radius: 12px; margin-bottom: .8rem; background: #fff; transition: box-shadow .25s ease; overflow: hidden; }
.faq details[open] { box-shadow: 0 10px 28px var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; padding: 1.15rem 1.3rem; font-size: 1.08rem; font-weight: 600; color: var(--dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--azure); line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--azure); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: #444; font-size: 1.06rem; line-height: 1.85; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

.cta-band { background: var(--grad); color: #fff; text-align: center; padding: 3.5rem 5%; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 1.8rem; opacity: .95; }
.cta-band .cta-white { display: inline-block; background: #fff; color: var(--azure); padding: 1rem 2.6rem; border-radius: 50px; font-weight: 600; text-decoration: none; transition: .3s ease; }
.cta-band .cta-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Grille de sous-thèmes (page en construction / hub) */
.hub-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; padding: 0 5%; }
.hub-card { background: #fff; border-radius: 16px; padding: 1.8rem; box-shadow: 0 10px 30px var(--shadow); text-decoration: none; color: var(--dark); border-top: 4px solid var(--cascade); transition: .3s ease; }
.hub-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(61,189,182,.22); }
.hub-card h3 { color: var(--azure); margin-bottom: .5rem; }
.hub-card p { color: var(--muted); font-size: .92rem; }

/* ============================= ANIMATIONS ========================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Barre de progression de lecture (fine, en haut) */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: var(--grad); transform: scaleX(0); transform-origin: left;
    z-index: 2000; will-change: transform;
}

/* Effets vifs supplémentaires */
.cta-button, .cta-white, .submit-button { position: relative; overflow: hidden; }
.cta-button::after, .cta-white::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
}
.cta-button:hover::after, .cta-white:hover::after { left: 130%; }
.service-tag { transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.gallery-item { transition: transform .4s ease, box-shadow .4s ease; }
.gallery-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.22); z-index: 2; }
.info-table tr { transition: background .2s ease; }
.info-table tbody tr:hover td, .info-table tr:hover td { background: rgba(61,189,182,.08); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .scroll-progress { display: none; }
    html { scroll-behavior: auto; }
}

/* ============================= RESPONSIVE ========================== */
@media (max-width: 1100px) { .gallery { columns: 3; } }

@media (max-width: 1024px) {
    .about-top, .step-row, .step-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
    .services-showcase { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery { columns: 2; }

    /* Menu mobile */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 85vw);
        background: #fff; flex-direction: column; align-items: stretch; gap: 0;
        padding: calc(var(--nav-h) + 1rem) 1.2rem 2rem; overflow-y: auto;
        transform: translateX(100%); transition: transform .35s ease; z-index: 999;
        box-shadow: -10px 0 40px rgba(0,0,0,.18);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; justify-content: space-between; padding: .9rem .6rem; border-radius: 8px; }
    .dropdown, .sub-dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; min-width: 0; margin: 0 0 .4rem .6rem;
        padding: 0 0 0 .6rem; border-left: 2px solid #e6edf0;
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .nav-item.expanded > .dropdown { max-height: 1500px; }
    .sub-dropdown.expanded > .sub-dropdown-menu { max-height: 800px; }
    .nav-item:hover > .dropdown { max-height: 0; }
    .nav-item.expanded:hover > .dropdown { max-height: 1500px; }
    .dropdown-icon { transition: transform .3s ease; }
    .nav-item.expanded > .nav-link .dropdown-icon { transform: rotate(180deg); }
    .cta-button { margin: 1rem .6rem 0; text-align: center; }
}

@media (max-width: 768px) {
    section { padding: 4rem 5%; }
    .qualifications-grid { gap: 1.2rem; }
    .qualification-card { width: 150px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-form { grid-column: span 1; padding: 1.8rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { columns: 1; }
    .about-text { padding: 1.8rem; }
    .lb-btn { width: 44px; height: 44px; font-size: 1.4rem; }
}
