/* ============================================================
   style.css — ComparObsèques — v18 Rebranding
   Règle absolue : structure (flex/grid/sticky) inchangée.
   Uniquement l'esthétique est améliorée.
   ============================================================ */

/* ── Typographie : Inter (corps) + Poppins (titres) + Playfair Display (serif hero) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ── Tokens de design — ComparObsèques ──────────────────── */
:root {
    /* ── Nouvelle identité ComparObsèques ── */
    --primary:       #1B365D;   /* Bleu Marine — autorité, textes, boutons */
    --primary-dark:  #122444;   /* Bleu Marine foncé — hover, footer */
    --primary-light: #e8edf5;   /* Bleu Marine très clair — fonds légers */

    /* ── Accentuation Or/Sable ── */
    --accent-gold:       #C1A673;

    /* Textes */
    --text-dark:     #1f2937;
    --text-body:     #374151;
    --text-grey:     #6b7280;
    --text-light:    #9ca3af;

    /* Surfaces — fond crème premium */
    --white:         #ffffff;
    --bg-page:       #F9F6F0;   /* Crème-doré doux — premium & apaisant */
    --bg-card:       #ffffff;
    --border:        #e8e0d4;
    --border-light:  #f2ede6;

    /* Ombres */
    --shadow-xs:  0 1px 3px rgba(27,54,93,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:  0 4px 6px rgba(27,54,93,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md:  0 10px 25px rgba(27,54,93,0.09), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-lg:  0 20px 40px rgba(27,54,93,0.12), 0 8px 16px rgba(0,0,0,0.05);
    --shadow-xl:  0 30px 60px rgba(27,54,93,0.16);
    --shadow-card: var(--shadow-md);

    /* Géométrie */
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Palette chaude (hero & accents) */
    --warm-bg:      #f7f8fb;
    --warm-mid:     #edf0f7;
    --warm-deep:    #dde3ed;
    --warm-text:    #1B365D;
    --warm-body:    #4a5568;

    /* Vert Sauge / Sérénité — titres de section */
    --rose:          #8F9F8A;
    --section-divider: #c4a099;

    /* Transitions */
    --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    margin: 0; padding: 0;
    color: var(--text-body);
    line-height: 1.7;
    display: flex; flex-direction: column; min-height: 100vh;
    background-color: var(--bg-page);
    position: relative;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .brand-name, .hero-title {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ── Fond + voile ────────────────────────────────────────── */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: url('images/background-ai.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: contrast(80%) brightness(95%);
}

.global-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(244, 247, 246, 0.62);
    z-index: -1;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   HEADER — Structure inchangée, esthétique premium
   ══════════════════════════════════════════════════════════ */
.main-header {
    background: #ffffff !important;
    height: 110px;
    box-shadow: 0 2px 8px rgba(27,54,93,0.10);
    position: sticky; top: 0; z-index: 1000;
    display: block !important;
    visibility: visible !important;
}

.header-container {
    max-width: 1300px; margin: 0 auto; height: 100%; padding: 0 28px;
    display: flex !important; align-items: center; justify-content: space-between;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.main-logo { height: 90px; max-height: 100px; width: auto; object-fit: contain; }

.header-left { display: flex; align-items: center; cursor: pointer; gap: 12px; }

.header-logo {
    height: auto;
    width: 320px;
    max-width: 350px;
    max-height: 100px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Si le logo seul suffit (sans texte), on peut masquer le texte de marque */
.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; color: var(--primary);
    font-size: 1.35em; letter-spacing: -0.5px;
}
.brand-tagline {
    font-size: 0.73em; color: var(--text-grey);
    font-weight: 500; display: block; margin-top: -2px;
}

/* Sur mobile, réduire le logo */
@media (max-width: 600px) {
    .header-logo { width: 180px; max-height: 64px; }
    .main-logo { height: 64px; }
}

.header-nav { display: flex; gap: 8px; align-items: center; }

.nav-link {
    text-decoration: none; color: var(--text-body); font-weight: 600;
    font-size: 0.9em; padding: 7px 14px; border-radius: var(--radius-sm);
    transition: var(--ease); position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 2px; left: 14px;
    background-color: var(--primary); transition: width 0.25s ease;
    border-radius: 2px;
}
.nav-link:hover::after { width: calc(100% - 28px); }

/* Bouton header CTA */
.btn-header-orange {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c0392b 100%);
    color: white; border: none; padding: 11px 26px; border-radius: 50px;
    font-weight: 700; font-size: 0.85em; cursor: pointer; letter-spacing: 0.4px;
    transition: var(--ease-bounce);
    box-shadow: 0 4px 14px rgba(230,126,34,0.35);
    text-transform: uppercase;
}
.btn-header-orange:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(230,126,34,0.5);
}
.btn-header-orange:active { transform: translateY(0) scale(0.98); }

/* ══════════════════════════════════════════════════════════
   HERO SPLIT — Page d'accueil (inspiré lecomparateur.fr)
   Layout 2 colonnes : texte à gauche, visuel à droite
   ══════════════════════════════════════════════════════════ */
.hero-split {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;          /* ← centrage horizontal */
    gap: 64px;                        /* ← espace entre les 2 colonnes */
    background: linear-gradient(135deg, var(--warm-bg) 0%, var(--warm-mid) 55%, var(--warm-deep) 100%);
    padding: 60px 40px;               /* ← padding symétrique */
    position: relative;
    overflow: hidden;
}

/* Cercle décoratif en arrière-plan */
.hero-split::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,77,43,0.05) 0%, rgba(196,168,130,0.07) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Colonne gauche ──────────────────────────────────────── */
.hero-split-left {
    flex: 0 1 540px;                  /* ← taille fixe max, réductible */
    position: relative;
    z-index: 1;
    padding-right: 0;                 /* ← géré par gap sur le parent */
}

/* ── Colonne droite ──────────────────────────────────────── */
.hero-split-right {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── Tag au-dessus du titre ──────────────────────────────── */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30,77,43,0.08);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 28px;
    border: 1px solid rgba(30,77,43,0.14);
}

/* ── Titre hero avec typographie mixte ───────────────────── */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3em;
    font-weight: 800;
    color: var(--warm-text);
    line-height: 1.18;
    margin: 0 0 22px;
    text-shadow: none;
}

/* Mot clé en Playfair Display italic (effet lecomparateur) */
.hero-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02em;
}

/* Sous-titre descriptif */
.hero-subtitle {
    font-size: 1.05em;
    color: var(--warm-body);
    line-height: 1.72;
    margin: 0 0 36px;
    font-weight: 400;
    max-width: 480px;
}

/* ── Hero : barre de recherche sur fond clair ────────────── */
.hero-split .search-wrapper {
    margin: 0 0 32px;
    max-width: 540px;
}

.search-bar--light {
    box-shadow: 0 8px 32px rgba(42,31,26,0.11), 0 2px 6px rgba(0,0,0,0.05) !important;
}

.hero-split .search-input { color: var(--text-dark); }
.hero-split .search-input::placeholder { color: #aaa; }

/* ── Badges réassurance ──────────────────────────────────── */
.hero-split .hero-badges {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-split .badge-item {
    color: var(--warm-body);
    background: rgba(255,255,255,0.75);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(196,168,130,0.35);
    font-size: 0.85em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(6px);
}
.hero-split .badge-item i { color: var(--primary); font-size: 0.95em; }

/* ══════════════════════════════════════════════════════════
   VISUEL DROIT — Image blob + badges flottants
   ══════════════════════════════════════════════════════════ */
.hero-visual {
    position: relative;
    width: 360px;
    height: 460px;
}

/* Image principale en forme organique */
.hero-img-blob {
    width: 320px;
    height: 420px;
    margin: 0 auto;
    border-radius: 55% 45% 45% 55% / 35% 35% 65% 65%;
    background: url('images/hero.jpg') center 20% / cover no-repeat;
    box-shadow: 0 30px 80px rgba(42,31,26,0.22), 0 8px 24px rgba(0,0,0,0.1);
    border: 5px solid rgba(255,255,255,0.85);
    transition: border-radius 8s ease-in-out;
    animation: blob-morph 10s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% { border-radius: 55% 45% 45% 55% / 35% 35% 65% 65%; }
    33%       { border-radius: 45% 55% 60% 40% / 50% 40% 60% 50%; }
    66%       { border-radius: 60% 40% 35% 65% / 40% 55% 45% 60%; }
}

/* ── Badges flottants ────────────────────────────────────── */
.hero-float-badge {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 13px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 190px;
}

.hfb-top {
    top: 24px;
    right: -24px;
    animation: hfb-float 4s ease-in-out infinite;
}
.hfb-bottom {
    bottom: 48px;
    left: -24px;
    animation: hfb-float 4s ease-in-out infinite 2s;
}

@keyframes hfb-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.hfb-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.05em;
    flex-shrink: 0;
}
.hfb-icon--gold { background: #fdf3e3; color: var(--accent-gold); }

.hfb-text strong {
    display: block;
    font-size: 0.88em;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}
.hfb-text span {
    font-size: 0.74em;
    color: var(--text-grey);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   HERO FULLSCREEN — Conservé pour les pages internes
   ══════════════════════════════════════════════════════════ */
.hero-fullscreen {
    height: 85vh; position: relative;
    background: url('images/hero.jpg') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(150deg, rgba(15,45,20,0.92) 0%, rgba(30,77,43,0.78) 60%, rgba(10,20,12,0.88) 100%);
}

.hero-content { position: relative; z-index: 2; width: 100%; max-width: 860px; padding: 20px; }

/* Barre de recherche */
.search-wrapper { position: relative; max-width: 780px; margin: 0 auto 48px auto; }

.search-bar {
    background: white; padding: 8px; border-radius: 60px;
    display: flex; align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.12);
}

.search-icon { width: 58px; display: flex; justify-content: center; color: var(--primary); font-size: 1.3em; }

.search-input {
    flex: 1; border: none; outline: none; height: 50px;
    font-size: 1.1em; color: var(--text-dark); background: transparent;
    font-family: 'Inter', sans-serif; font-weight: 500;
}
.search-input::placeholder { color: var(--text-light); font-weight: 400; }

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border: none; padding: 0 38px; height: 50px; border-radius: 50px;
    font-weight: 700; font-size: 0.9em; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: var(--ease-bounce);
    box-shadow: 0 4px 14px rgba(30,77,43,0.35);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 22px rgba(30,77,43,0.5);
}

/* Autocomplétion */
.suggestions-list, .suggestions-list-home {
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 240px; overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: absolute; width: 100%;
    z-index: 1000; left: 0; top: 100%; margin-top: 2px;
}

.suggestion-item {
    padding: 12px 20px; cursor: pointer; font-size: 0.92em;
    color: var(--text-body); border-bottom: 1px solid var(--border-light);
    transition: var(--ease);
    display: flex; align-items: center; gap: 12px;
    font-weight: 500; font-family: 'Inter', sans-serif;
}
.suggestion-item::before {
    content: '\f3c5'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--text-light); font-size: 0.9em; transition: color 0.2s;
    flex-shrink: 0;
}
.suggestion-item:hover { background: var(--primary-light); color: var(--primary); padding-left: 26px; }
.suggestion-item:hover::before { color: var(--accent-gold); }
.suggestion-item:last-child { border-bottom: none; }
.suggestions-list::-webkit-scrollbar { width: 5px; }
.suggestions-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.hero-badges { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.badge-item {
    font-weight: 600; display: flex; gap: 8px; align-items: center;
    font-size: 0.97em; color: rgba(255,255,255,0.9);
}
.badge-item i { color: #4ade80; font-size: 1em; }

/* ══════════════════════════════════════════════════════════
   PAGE SÉLECTION — SIDEBAR + GRILLE SERVICES
   ══════════════════════════════════════════════════════════ */
.page-container {
    width: 100%; box-sizing: border-box;
    max-width: 1260px; margin: 56px auto; padding: 0 28px;
    display: flex; gap: 40px; align-items: flex-start;
}

/* Le fond chaud du héro continue naturellement dans la section des cartes.
   Technique full-bleed : pseudo-élément qui dépasse de la zone centrée */
#screen-selection {
    position: relative;
}
#screen-selection::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%; right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: linear-gradient(to bottom, var(--warm-mid) 0%, #fff 60%);
    z-index: -1;
    pointer-events: none;
}

.sidebar-area {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Pixel-perfect : aligne le bord sup. des sidebar-cards avec la première ligne
       de cards-grid. Calcul = hauteur du .content-header :
       h2 (font-size 2.2em × line-height 1.3) + separator (margin 16px + 4px + 44px) */
    padding-top: calc(2.2em * 1.3 + 64px);
}

/* Sidebar cards */
.sidebar-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--ease);
}
.sidebar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.widget-help { border-top: 4px solid var(--primary); }
.widget-icon { font-size: 2.2em; color: var(--primary); margin-bottom: 16px; }
.widget-help h3 { color: var(--primary); margin: 0 0 8px; font-weight: 700; font-size: 1.3em; }
.widget-help p { color: var(--text-grey); font-size: 0.9em; margin: 0 0 8px; }
.hours { font-weight: 600; color: var(--text-grey); font-size: 0.88em; }

.btn-phone {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 14px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 700; margin-top: 18px;
    font-size: 1.05em; transition: var(--ease-bounce);
    box-shadow: 0 4px 14px rgba(30,77,43,0.28);
}
.btn-phone:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(30,77,43,0.4); }

.widget-info { text-align: left; }
.widget-info h4 { margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 14px; color: var(--text-dark); font-weight: 700; font-size: 1em; }
.widget-info ul { padding: 0; list-style: none; margin: 0; }
.widget-info li { display: flex; align-items: center; margin-bottom: 13px; color: var(--text-grey); font-weight: 500; font-size: 0.92em; }
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-right: 14px; flex-shrink: 0; }

/* Grille services */
.content-area { flex: 1; min-width: 0; }
.content-header h2 {
    font-size: 2.2em; margin: 0; font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--rose);                         /* ← terracotta/rose chaud */
    letter-spacing: -0.3px;
}
.separator { width: 48px; height: 3px; background: var(--section-divider); margin: 14px 0 40px; border-radius: 4px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }

/* Cartes services */
.service-card {
    height: 285px; border-radius: var(--radius-lg); overflow: hidden; position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform 0.35s cubic-bezier(0.34,1.30,0.64,1), box-shadow 0.3s ease;
    background-size: cover; background-position: center;
    border: 3px solid white;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,30,15,0.96) 0%, rgba(19,56,28,0.4) 55%, rgba(0,0,0,0) 100%);
    z-index: 1; transition: background 0.35s ease;
}
.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 28px 55px rgba(30,77,43,0.22), 0 8px 16px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.service-card:hover::before {
    background: linear-gradient(to top, rgba(10,30,15,1) 0%, rgba(230,126,34,0.25) 100%);
}

.bg-obseques    { background-image: url('images/obseques.jpg'); }
.bg-rapatriement { background-image: url('images/rapatriement.jpg'); }
.bg-finvie      { background-image: url('images/finvie.jpg'); }
.bg-prevoyance  { background-image: url('images/prevoyance.jpg'); }
.bg-sepulture   { background-image: url('images/marbrerie.jpg'); }

.card-content { position: relative; z-index: 2; padding: 28px; color: white; text-align: left; }

.service-card h3 {
    font-size: 1.5em; font-weight: 800; margin: 0 0 6px;
    text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
    color: white !important;   /* force blanc même avec la règle globale h3 */
}
.service-card p { font-size: 0.9em; opacity: 0.88; margin-bottom: 20px; line-height: 1.45; font-weight: 500; color: white; }

.btn-card-action {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d35400 100%);
    color: white; padding: 9px 20px; border-radius: 50px;
    font-weight: 700; font-size: 0.8em;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: var(--ease-bounce);
}
.service-card:hover .btn-card-action { transform: scale(1.06); }

.badge-urgent {
    position: absolute; top: 16px; right: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white; font-size: 0.72em; padding: 5px 12px;
    border-radius: 50px; font-weight: 700; z-index: 3;
    box-shadow: 0 3px 10px rgba(239,68,68,0.4);
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   FORMULAIRE INTELLIGENT
   ══════════════════════════════════════════════════════════ */
.form-overlay { display: flex; justify-content: center; padding: 60px 20px; }

.form-card {
    background: white; width: 100%; max-width: 860px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 24px 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.btn-back {
    background: rgba(255,255,255,0.15); border: none; color: white;
    width: 42px; height: 42px; border-radius: 50%;
    cursor: pointer; transition: var(--ease);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.btn-back:hover { background: rgba(255,255,255,0.28); transform: scale(1.08); }

.progress-steps { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.9em; letter-spacing: 1px; }

#form-dynamic-title { text-align: center; color: var(--primary); margin: 40px 0 16px; font-size: 2em; font-weight: 800; }

.form-body { padding: 0 50px 52px; }

/* Champs */
.input-group { margin-bottom: 36px; position: relative; }

.group-label {
    display: flex; align-items: center; gap: 11px; color: var(--primary);
    font-weight: 700; margin-bottom: 18px; font-size: 1.1em;
}
.group-label i { background: var(--primary-light); padding: 10px; border-radius: var(--radius-sm); color: var(--primary); }

.row { display: flex; gap: 22px; margin-bottom: 22px; }
.col, .field { flex: 1; display: block; position: relative; }

label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.9em; }

input, textarea {
    width: 100%; padding: 14px 18px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.97em; background: #fafafa;
    box-sizing: border-box; transition: var(--ease);
    font-family: 'Inter', sans-serif; color: var(--text-dark);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }

.select-wrapper { position: relative; width: 100%; }
select {
    width: 100%; padding: 14px 18px; padding-right: 44px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.97em;
    background: #fafafa; box-sizing: border-box; cursor: pointer;
    font-family: 'Inter', sans-serif; color: var(--text-dark); font-weight: 600;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    transition: var(--ease);
}
.select-wrapper::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 50%; right: 18px; transform: translateY(-50%);
    pointer-events: none; color: var(--primary); font-size: 0.85em;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(30,77,43,0.09); outline: none;
}
textarea { height: 120px; resize: vertical; }

/* Bouton soumettre */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c0392b 100%);
    color: white; border: none; padding: 20px;
    font-size: 1.05em; font-weight: 800; border-radius: var(--radius);
    cursor: pointer; margin-top: 36px; letter-spacing: 0.6px;
    box-shadow: 0 8px 24px rgba(230,126,34,0.32);
    transition: var(--ease-bounce);
    text-transform: uppercase; font-family: 'Inter', sans-serif;
}
.btn-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 32px rgba(230,126,34,0.45);
}
.btn-submit:active { transform: translateY(0) scale(0.99); }

.cgu-check {
    margin-top: 28px; display: flex; align-items: center; gap: 12px;
    font-size: 0.9em; color: var(--text-grey); justify-content: center;
    background: var(--border-light); padding: 14px 20px; border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.main-footer { background: var(--primary-dark); color: white; padding: 70px 0 28px; margin-top: auto; }

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 36px;
}
.footer-logo { font-weight: 800; font-size: 1.7em; letter-spacing: 0.5px; color: white; }

.footer-links a {
    color: rgba(255,255,255,0.65); text-decoration: none;
    margin-left: 36px; font-size: 0.9em; font-weight: 500;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent-gold); }
.footer-copy { text-align: center; margin-top: 28px; font-size: 0.82em; color: rgba(255,255,255,0.4); }

/* ══════════════════════════════════════════════════════════
   PAGES INTERNES (Guide, Contact, Annuaire…)
   ══════════════════════════════════════════════════════════ */
.hero-page {
    height: 40vh; min-height: 300px; position: relative;
    background: linear-gradient(150deg, #1a2d1f 0%, #2e4a35 50%, #1f3828 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
    margin-bottom: 56px;
}
/* Si une vraie image existe, l'overlay la masque partiellement avec flou */
.hero-page .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(150deg, rgba(15,40,20,0.88), rgba(30,77,43,0.72));
    backdrop-filter: blur(1px);
}
.hero-page .hero-content { z-index: 2; position: relative; max-width: 800px; padding: 20px; }
.hero-page h1 { font-size: 2.8em; margin: 0; text-shadow: 0 4px 16px rgba(0,0,0,0.3); font-weight: 800; color: white; }
.hero-page p { font-size: 1.15em; opacity: 0.88; margin-top: 14px; font-weight: 500; color: white; }

.content-box {
    background: var(--bg-card); padding: 48px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); line-height: 1.8; color: var(--text-body);
    border: 1px solid var(--border-light);
}
.content-box h2 {
    color: var(--rose);                        /* ← terracotta chaud */
    margin-top: 28px; font-weight: 700; font-size: 1.5em;
    font-family: 'Playfair Display', Georgia, serif;
}
.content-box h3 { color: var(--section-divider); font-weight: 600; margin-top: 22px; font-size: 1.15em; }
.content-box ul { padding-left: 20px; margin-bottom: 18px; }
.content-box li { margin-bottom: 9px; }

/* Annuaire agences */
.agency-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); padding: 22px 26px;
    border-radius: var(--radius); box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    transition: var(--ease);
}
.agency-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.agency-info h3 { margin: 0 0 4px; color: var(--primary); font-size: 1.1em; font-weight: 700; }
.agency-info p { margin: 0; color: var(--text-grey); font-size: 0.9em; }
.agency-tag {
    color: #16a34a; font-weight: 700; font-size: 0.82em;
    background: #dcfce7; padding: 4px 11px; border-radius: 50px; margin-left: 8px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .header-nav { display: none; }

    /* Hero split → colonne unique sur mobile */
    .hero-split {
        flex-direction: column;
        gap: 32px;
        padding: 48px 24px 40px;
        text-align: center;
        min-height: auto;
        justify-content: flex-start;
    }
    .hero-split-left { flex: none; width: 100%; padding-right: 0; }
    .hero-split-right { display: none; }
    .hero-split .hero-badges { justify-content: center; }
    .hero-split .search-wrapper { max-width: 100%; }
    .hero-title { font-size: 2.2em; }

    .search-bar { flex-direction: column; padding: 18px; height: auto; border-radius: 20px; }
    .search-input { width: 100%; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 14px; padding-bottom: 14px; }
    .search-icon { display: none; }
    .search-btn { width: 100%; justify-content: center; }

    .page-container { flex-direction: column; padding: 0 18px; margin: 32px auto; }
    .sidebar-area { width: 100%; order: 2; padding-top: 0; }
    .content-area { order: 1; }

    .row { flex-direction: column; gap: 18px; }

    .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { display: flex; flex-direction: column; gap: 12px; margin: 0; }

    .hero-page { height: auto; padding: 60px 20px; }
    .hero-page h1 { font-size: 2em; }
    .agency-item { flex-direction: column; text-align: center; gap: 14px; }
    .content-box { padding: 24px; }
    .form-body { padding: 0 24px 36px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.9em; }
    .cards-grid { grid-template-columns: 1fr; }
    .sidebar-area { flex: none; }
}

/* ══════════════════════════════════════════════════════════
   WIZARD MULTI-ÉTAPES — Barre de progression & navigation
   ══════════════════════════════════════════════════════════ */

/* Override du .progress-steps existant pour le wizard */
.progress-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex: 1;
    margin: 0 20px;
}

/* Piste des bulles */
.ws-track {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Bulle individuelle */
.ws-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--ease);
}

.ws-bubble {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.88em;
    color: rgba(255,255,255,0.55);
    transition: all 0.3s ease;
    position: relative;
}

/* Icône check (affichée quand étape terminée) */
.ws-check {
    display: none;
    position: absolute;
    font-size: 0.9em;
}
.ws-num { transition: opacity 0.2s; }

/* Étape active */
.ws-item.wp-active .ws-bubble {
    background: white;
    border-color: white;
    color: var(--primary);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.2);
    transform: scale(1.12);
}

/* Étape terminée */
.ws-item.wp-done .ws-bubble {
    background: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.88);
    color: var(--primary);
}
.ws-item.wp-done .ws-num { display: none; }
.ws-item.wp-done .ws-check { display: block; }

/* Étape ignorée (Sépulture → skip étape 3) */
.ws-item.wp-skipped { opacity: 0.28; }

/* Connecteur entre bulles */
.ws-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.2);
    transition: background 0.4s ease;
    border-radius: 2px;
}
.ws-line.wp-done { background: rgba(255,255,255,0.8); }

/* Labels sous les bulles */
.ws-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 2px;
}
.ws-labels span {
    font-size: 0.65em;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}
.ws-labels span:first-child { text-align: left; }
.ws-labels span:last-child  { text-align: right; }

/* ── Intro dynamique au-dessus de chaque étape ─────────── */
.step-intro {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-light);
}

.step-num-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.76em;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.step-desc {
    font-size: 0.92em;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.6;
}

/* ── Conteneur de chaque étape + animation d'entrée ──── */
.form-step {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}
.form-step.step-active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navigation wizard (Précédent / Continuer / Envoyer) ─ */
.wizard-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.wizard-btn-prev {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-grey);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--ease);
    min-height: 52px;
}
.wizard-btn-prev:hover {
    background: var(--border-light);
    border-color: var(--text-grey);
    color: var(--text-dark);
}

.wizard-btn-next {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--ease-bounce);
    box-shadow: 0 6px 18px rgba(30,77,43,0.3);
    margin-left: auto;
    min-height: 52px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wizard-btn-next:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 26px rgba(30,77,43,0.42);
}
.wizard-btn-next:active { transform: scale(0.98); }

/* Surcharge du btn-submit pour le wizard (taille auto, pas 100%) */
.wizard-btn-submit {
    width: auto !important;
    padding: 16px 38px !important;
    border-radius: 50px !important;
    margin-top: 0 !important;
    margin-left: auto;
    min-height: 52px;
    font-size: 1em !important;
}

/* ══════════════════════════════════════════════════════════
   VALIDATION TEMPS RÉEL — États des champs
   ══════════════════════════════════════════════════════════ */

/* Champ valide */
.field-valid input,
.field-valid select,
.field-valid textarea {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}
.field-valid::after {
    content: '✓';
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    font-weight: 700;
    font-size: 1em;
    pointer-events: none;
}

/* Champ en erreur */
.field-error input,
.field-error select,
.field-error textarea {
    border-color: #ef4444 !important;
    background: #fff8f8 !important;
}

/* Message d'aide sous le champ */
.field-hint {
    display: none;
    font-size: 0.79em;
    color: #ef4444;
    margin-top: 5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

/* Animation de shake sur erreur */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}
.field-error input,
.field-error select {
    animation: shake 0.3s ease;
}

/* ── Responsive wizard ──────────────────────────────────── */
@media (max-width: 640px) {
    .progress-steps { margin: 0 8px; }
    .ws-bubble { width: 28px; height: 28px; font-size: 0.78em; }
    .ws-line { flex: 1; min-width: 10px; }
    .ws-labels span { font-size: 0.58em; }

    .wizard-nav { flex-direction: column; gap: 10px; }
    .wizard-btn-next,
    .wizard-btn-submit { width: 100%; margin-left: 0; justify-content: center; }
    .wizard-btn-prev { width: 100%; justify-content: center; }

    .form-body { padding: 0 20px 32px; }
    .step-intro { margin-bottom: 20px; padding-bottom: 16px; }
}

/* ══════════════════════════════════════════════════════════
   SECTION SEO FULL WIDTH (Design épuré & pro)
   ══════════════════════════════════════════════════════════ */
.seo-full-width {
    width: 100%;
    background-color: #f8fafc; /* Gris très clair élégant */
    border-top: 1px solid var(--border-light);
    padding: 80px 0; /* Espacement généreux vertical */
    margin-top: 60px; /* Séparation avec le contenu précédent */
}

.seo-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

.seo-content {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.8;
    font-size: 1.05em;
}

.seo-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center; /* Titre principal centré */
}

.seo-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.seo-content p {
    margin-bottom: 24px;
    color: #4b5563; /* Gris texte lisible */
    text-align: justify; /* Justifié pour l'aspect éditorial */
}

/* Responsive */
@media (max-width: 768px) {
    .seo-full-width { padding: 50px 0; }
    .seo-content h2 { font-size: 1.6em; text-align: left; }
    .seo-content h3 { font-size: 1.25em; }
    .seo-content p { text-align: left; font-size: 1em; }
}
