/* ═══════════════════════════════════════════════════════════
   ALBOUNIANE — Page d'accueil (Recherche de bien neuf)
   Charte unifiée avec la page Expertise
   Palette : Crème Signature / Encre Nuit / Or Albouniane
   Type    : Cormorant Garamond (éditorial) · Syne (UI) · JetBrains Mono
═══════════════════════════════════════════════════════════ */

:root {
    /* ─── Palette — Warm Cream (identique à expertise) ─── */
    --bg:        #FCFAF5;
    --bg-2:      #F6F1E4;
    --paper:     #FFFFFF;
    --ink:       #121C26;
    --ink-2:     #2A3744;
    --ink-mute:  #5B6876;
    --ink-soft:  #8893A0;
    --gold:      #C49A3C;
    --gold-2:    #B8862A;
    --gold-3:    #E9D9A6;
    --gold-wash: rgba(196, 154, 60, 0.08);
    --line:      #E5DCC6;
    --line-2:    #D6CAAD;
    --danger:    #8B2020;
    --safe:      #1A5C38;

    /* Alias de compatibilité (anciens noms encore référencés ailleurs) */
    --primary:        var(--ink);
    --primary-dark:   var(--ink);
    --primary-light:  var(--ink-mute);
    --primary-accent: var(--gold);
    --gold-light:     var(--gold-3);
    --gold-dark:      var(--gold-2);
    --gold-accent:    var(--gold);
    --light:          var(--bg);
    --light-gray:     var(--bg-2);
    --dark:           var(--ink);
    --darker:         var(--ink);

    /* ─── Type ─── */
    --f-edit: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --f-ui:   'Syne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --font-heading: var(--f-edit);
    --font-body:    var(--f-ui);
    --font-weight-bold: 700;
    --font-weight-semibold: 600;
    --font-weight-normal: 400;

    /* Échelle typographique */
    --text-xs:  0.72rem;
    --text-sm:  0.82rem;
    --text-base: 1rem;
    --text-lrg: 0.95rem;
    --text-lg:  1.12rem;
    --text-xl:  1.3rem;
    --text-2xl: 1.6rem;
    --text-3xl: 2rem;
    --text-4xl: 2.6rem;
    --text-5xl: 3.4rem;
    --text-6xl: 4rem;

    /* Espacement */
    --space-unit: 1rem;
    --space-xs: calc(var(--space-unit) / 4);
    --space-sm: calc(var(--space-unit) / 2);
    --space-md: var(--space-unit);
    --space-lg: calc(var(--space-unit) * 2);
    --space-xl: calc(var(--space-unit) * 4);

    /* Motion */
    --ease: cubic-bezier(.16, 1, .3, 1);
    --transition-smooth: all 0.4s var(--ease);
    --transition-bounce: all 0.5s var(--ease);
    --transition-magic:  all 0.5s var(--ease);

    /* Structure */
    --header-height: 76px;
    --nav-h: 76px;
    --section-py: clamp(4rem, 9vw, 7rem);
    --max-content-width: 1240px;
    --maxw: 1240px;
    --gutter: clamp(20px, 4vw, 56px);

    /* Rayons — sobres, presque droits (signature expertise) */
    --border-radius-sm: 2px;
    --border-radius-md: 3px;
    --border-radius-lg: 4px;
    --border-radius-xl: 6px;
    --border-radius-xxl: 8px;

    /* Ombres — douces et chaudes */
    --shadow-sm: 0 2px 10px rgba(18, 28, 38, 0.05);
    --shadow-md: 0 8px 28px rgba(18, 28, 38, 0.08);
    --shadow-lg: 0 18px 50px rgba(18, 28, 38, 0.12);
    --shadow-xl: 0 32px 88px rgba(18, 28, 38, 0.16);
    --shadow-gold: 0 8px 28px rgba(196, 154, 60, 0.28);
    --glass-effect: rgba(252, 250, 245, 0.92);
    --glass-dark: rgba(18, 28, 38, 0.85);
}

/* ─── Police arabe (alignée sur expertise) ─── */
html[lang="ar"] {
    --f-edit: 'Amiri', 'Noto Serif Arabic', 'Cormorant Garamond', Georgia, serif;
    --f-ui:   'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Syne', Arial, sans-serif;
}
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] button,
html[lang="ar"] textarea {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--f-ui);
    font-weight: var(--font-weight-normal);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}
/* Garde-fou : aucun élément ne doit dépasser la largeur de l'écran */
html, body { max-width: 100%; }

/* Grain papier — très subtil (signature expertise) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMjU2IDI1NicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwLjQ1ICAwIDAgMCAwIDAuMzUgIDAgMCAwIDAgMC4xNSAgMCAwIDAgLjM1IDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
    opacity: 0.4;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}
.main-header, main, .hero-section, .features-section, .main-footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Typographie ─── */
h1, h2, h3, h4, .h1, .h2, .h3 {
    font-family: var(--f-edit);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.06;
    color: var(--ink);
}
h1, .h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -0.025em; margin-bottom: var(--space-md); }
h2, .h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: var(--space-md); }
h3, .h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: var(--space-sm); }

p, .text {
    font-size: 1.04rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--ink-2);
}

/* L'italique éditorial doré — signature de la marque */
.it { font-style: italic; color: var(--gold); }
.gold { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   LANGUAGE SELECTOR
   ═══════════════════════════════════════════════════════ */
.language-selector {
    position: relative;
    margin-inline-start: 0.5rem;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.language-trigger:hover {
    border-color: var(--gold);
    background: var(--gold-wash);
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(18, 28, 38, 0.12);
}
/* Bouton déclencheur : drapeau + code (AR / FR / EN) côte à côte */
.language-current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.language-current .language-code {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--ink-2);
    margin: 0;
}
.language-name {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}
.language-chevron { color: var(--ink-mute); }

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: 200px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition-smooth);
    z-index: 100;
    padding: 0.4rem 0;
    overflow: hidden;
}
.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    color: var(--ink-2);
    font-family: var(--f-ui);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.language-option:hover { background: var(--bg-2); }
.language-option.current { color: var(--ink); }
/* groupe drapeau + code (AR / FR / EN) collés à gauche */
.language-id {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.language-id .language-code {
    margin: 0;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ink-2);
}
/* le nom complet (Arabe / Français / Anglais) poussé de l'autre côté
   — couleur encre forcée pour rester visible quel que soit l'état du header */
.language-dropdown .language-option .language-name {
    margin-inline-start: auto;
    font-size: 0.86rem;
    color: var(--ink-mute) !important;
}
.language-dropdown .language-option.current .language-name { color: var(--ink) !important; }
.language-dropdown .language-id .language-code { color: var(--ink-2) !important; }
.language-code {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}
.language-selected-icon { color: var(--gold); }
.language-footer {
    border-top: 1px solid var(--line);
    padding: 0.5rem 1.2rem 0.2rem;
}
.language-settings {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.language-settings:hover { color: var(--gold-2); }

/* ═══════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════ */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1100;
}
.menu-line {
    position: absolute;
    inset-inline-end: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--transition-smooth);
}
.menu-line:nth-child(1) { top: 3px; }
.menu-line:nth-child(2) { top: 11px; }
.menu-line:nth-child(3) { bottom: 3px; }

.mobile-menu-toggle.active .menu-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active .menu-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .menu-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    background: var(--paper);
    border-inline-start: 1px solid var(--line);
    box-shadow: -8px 0 40px rgba(18, 28, 38, 0.12);
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
    transition: var(--transition-smooth);
    z-index: 1050;
    overflow-y: auto;
}
.mobile-nav.active { inset-inline-end: 0; }
.mobile-nav ul { list-style: none; }
.mobile-nav-item { margin-bottom: 0.4rem; }

.mobile-nav-link {
    display: block;
    padding: 1rem 0.4rem;
    font-family: var(--f-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
    transition: var(--transition-smooth);
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--gold-2); }
.mobile-nav .language-selector { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════
   HEADER + LOGO (identique à la page Expertise)
   ═══════════════════════════════════════════════════════ */
.main-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter);
    z-index: 1000;
    /* Transparent au départ — posé sur la photo du hero */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
/* Une fois descendu → fond crème translucide */
.main-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(252, 250, 245, 0.94);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* ─── État transparent : logo + liens en clair sur la photo ─── */
.main-header:not(.scrolled) .logo-text { color: var(--bg); }
.main-header:not(.scrolled) .logo-tag {
    color: rgba(252, 250, 245, 0.75);
    border-inline-start-color: rgba(252, 250, 245, 0.3);
}
.main-header:not(.scrolled) .nav-link { color: rgba(252, 250, 245, 0.9); }
.main-header:not(.scrolled) .nav-link:hover,
.main-header:not(.scrolled) .nav-link.active { color: var(--bg); }
.main-header:not(.scrolled) .menu-line { background: var(--bg); }
/* le losange du logo garde l'or, on éclaircit juste sa bordure pour le contraste */
.main-header:not(.scrolled) .logo-mark { border-color: var(--gold-3); }
.main-header:not(.scrolled) .logo-mark::after { background: var(--gold-3); }
/* sélecteur de langue lisible sur fond sombre */
.main-header:not(.scrolled) .language-trigger {
    background: rgba(18, 28, 38, 0.28);
    border-color: rgba(252, 250, 245, 0.35);
}
/* Uniquement le bouton déclencheur passe en clair (le menu déroulant garde son fond blanc + texte encre) */
.main-header:not(.scrolled) .language-current .language-code { color: rgba(252, 250, 245, 0.92); }
.main-header:not(.scrolled) .language-chevron { color: rgba(252, 250, 245, 0.8); }

/* — Le logo : losange or fin + ALBOUNIANE serif + tag mono — */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}
.logo-mark {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
    display: grid;
    place-items: center;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.logo-mark::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
}
.logo-wrapper:hover .logo-mark { box-shadow: 0 0 0 4px var(--gold-wash); }

.logo-text {
    font-family: var(--f-edit);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.logo-tag {
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-inline-start: 10px;
    border-inline-start: 1px solid var(--line-2);
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* — Navigation desktop — */
.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-item { position: relative; list-style: none; }

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    font-family: var(--f-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--ink); }

/* ─── Lien « Expertise » — service premium mis en valeur ─── */
.nav-link-highlight {
    gap: 8px;
    padding-inline: 12px;
    color: var(--gold-2);
    border: 1px solid var(--gold-3);
    border-radius: 999px;
    background: var(--gold-wash);
    transition: color 0.2s var(--ease), background 0.3s var(--ease),
                border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-link-highlight::after { display: none; } /* on remplace le soulignement par la pastille */
.nav-link-highlight:hover,
.nav-link-highlight.active {
    color: var(--ink);
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(196, 154, 60, 0.32);
}
/* sur le hero (header transparent) : garder le lien doré bien lisible */
.main-header:not(.scrolled) .nav-link-highlight {
    color: var(--gold-3);
    border-color: rgba(233, 217, 166, 0.5);
    background: rgba(196, 154, 60, 0.18);
}
.main-header:not(.scrolled) .nav-link-highlight:hover,
.main-header:not(.scrolled) .nav-link-highlight.active {
    color: var(--ink);
    background: var(--gold-3);
    border-color: var(--gold-3);
}

/* ─── Pastille « Nouveau / New / جديد » ─── */
.nav-badge {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 8px;
    padding: 2px 7px;
    font-family: var(--f-mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--paper);
    background: var(--gold-2);
    border-radius: 999px;
    white-space: nowrap;
}
.nav-link-highlight:hover .nav-badge,
.nav-link-highlight.active .nav-badge {
    background: var(--ink);
    color: var(--gold-3);
}
.main-header:not(.scrolled) .nav-link-highlight .nav-badge {
    background: var(--gold-3);
    color: var(--ink);
}

/* version mobile du lien Expertise dans le menu déroulant */
.mobile-nav-link-highlight {
    color: var(--gold-2);
}
.mobile-nav-link-highlight:hover,
.mobile-nav-link-highlight.active { color: var(--gold-2); }
.mobile-nav-link-highlight .nav-badge {
    font-size: 9px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   HERO — photo tour M6 habillée à la charte
   ═══════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 3rem) var(--gutter) 5rem;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(105deg,
            rgba(18, 28, 38, 0.92) 0%,
            rgba(18, 28, 38, 0.72) 42%,
            rgba(18, 28, 38, 0.38) 100%),
        url('/images/tour-M6.jpg') center/cover no-repeat;
}
/* liseré or en bas du hero */
.hero-section::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.7;
    z-index: 3;
}

.hero-content {
    position: relative;
    max-width: 720px;
    z-index: 2;
}

.hero-supra {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-3);
    font-weight: 500;
    margin-bottom: 24px;
    padding: 7px 14px;
    border: 1px solid rgba(233, 217, 166, 0.32);
    background: rgba(18, 28, 38, 0.35);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.9s 0.15s var(--ease) forwards;
}
.hero-supra::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.hero-title {
    font-family: var(--f-edit);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--bg);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(28px);
    animation: fadeInUp 1s 0.3s var(--ease) forwards;
}
.hero-title .it { color: var(--gold-3); font-style: italic; }
.hero-title .gold { color: var(--gold-3); }

.hero-text {
    font-family: var(--f-ui);
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(252, 250, 245, 0.86);
    max-width: 540px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(28px);
    animation: fadeInUp 1s 0.55s var(--ease) forwards;
}

/* CTA — bouton or de la charte expertise */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--f-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    opacity: 0;
    transform: translateY(28px);
    animation: fadeInUp 1s 0.8s var(--ease) forwards;
}
.cta-button svg { width: 18px; height: 18px; }
.cta-button:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--ink);
}

/* ═══════════════════════════════════════════════════════
   FEATURES — cartes éditoriales sobres
   ═══════════════════════════════════════════════════════ */
.features-section {
    position: relative;
    padding: var(--section-py) var(--gutter);
    background: var(--bg);
}
.container, .features-section .container {
    max-width: var(--maxw);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(48px, 7vw, 72px);
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-2);
    font-weight: 500;
    margin-bottom: 20px;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 22px; height: 1px;
    background: var(--gold);
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: var(--f-edit);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--ink);
    margin-bottom: var(--space-md);
}
.section-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-family: var(--f-ui);
    color: var(--ink-2);
    font-size: 1.04rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.feature-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--border-radius-lg);
    padding: clamp(2rem, 4vw, 2.6rem) clamp(1.6rem, 3vw, 2rem) 2.2rem;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    text-align: center;
}
/* fine barre or qui apparaît en haut au survol */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; inset-inline-start: 0;
    width: 100%; height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: var(--mz, left);
    transition: transform 0.4s var(--ease);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-2);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-index {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--gold-2);
    margin-bottom: 0.8rem;
}

.feature-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-md);
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.05); }

.feature-title {
    font-family: var(--f-edit);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}
.feature-description {
    font-family: var(--f-ui);
    color: var(--ink-mute);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   FOOTER — encre nuit + accents or
   ═══════════════════════════════════════════════════════ */
.main-footer {
    background: var(--ink);
    color: var(--bg);
    padding: var(--space-xl) var(--gutter) var(--space-md);
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    max-width: var(--maxw);
    margin-inline: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
    text-decoration: none;
}
/* losange du footer (bordure claire) */
.footer-logo .logo-mark { border-color: var(--gold-3); }
.footer-logo .logo-mark::after { background: var(--gold-3); }
.footer-logo-text {
    font-family: var(--f-edit);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--bg);
}

.footer-about {
    max-width: 320px;
    font-family: var(--f-ui);
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(252, 250, 245, 0.7);
    margin-bottom: var(--space-md);
}

.footer-heading {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-3);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.footer-links { list-style: none; }
.footer-link-item { margin-bottom: var(--space-sm); }
.footer-link {
    display: inline-block;
    font-family: var(--f-ui);
    color: rgba(252, 250, 245, 0.78);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: var(--space-xs) 0;
    position: relative;
}
.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0; inset-inline-start: 0;
    width: 0; height: 1px;
    background: var(--gold-3);
    transition: var(--transition-smooth);
}
.footer-link:hover { color: var(--bg); }
.footer-link:hover::before { width: 100%; }

.footer-bottom {
    border-top: 1px solid rgba(252, 250, 245, 0.12);
    padding-top: var(--space-md);
    text-align: center;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(252, 250, 245, 0.72) !important;
}
/* Sécurité : tout texte/lien de la zone basse du footer reste lisible
   quelle que soit la structure de footer-client.ejs (copyright, mentions…) */
.footer-bottom *,
.main-footer .footer-bottom p,
.main-footer .footer-bottom span,
.main-footer .copyright,
.main-footer .footer-copyright {
    color: rgba(252, 250, 245, 0.72) !important;
}
.footer-bottom a { color: rgba(252, 250, 245, 0.6) !important; transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--bg) !important; }

/* ─── RTL : flip de flèche ─── */
[dir="rtl"] .arrow-flip { transform: scaleX(-1); }

/* ═══════════════════════════════════════════════════════
   ARABE — agrandissement ciblé (desktop uniquement)
   L'arabe paraît plus petit à taille égale : on rehausse
   cas par cas les éléments demandés, sans toucher au reste.
   ═══════════════════════════════════════════════════════ */
@media (min-width: 993px) {
    /* Liens du header */
    html[lang="ar"] .nav-link { font-size: 13px; letter-spacing: 0.04em; }

    /* Hero : sur-titre, paragraphe, CTA */
    html[lang="ar"] .hero-supra   { font-size: 14px; letter-spacing: 0.12em; }
    html[lang="ar"] .hero-text    { font-size: 1.32rem; line-height: 1.9; }
    html[lang="ar"] .cta-button   { font-size: 14px; letter-spacing: 0.04em; }

    /* Features : eyebrow « Comment ça marche » */
    html[lang="ar"] .section-eyebrow { font-size: 14px; letter-spacing: 0.14em; }

    /* Footer : intitulés « Liens rapides / À propos / Contactez-nous » */
    html[lang="ar"] .footer-heading { font-size: 14px; letter-spacing: 0.08em; }
    html[lang="ar"] .footer-link    { font-size: 1.06rem; }
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-supra, .hero-title, .hero-text, .cta-button {
        animation: none;
        opacity: 1;
        transform: none;
    }
    * { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAV — sens de glissement selon la direction
   ═══════════════════════════════════════════════════════ */
html[dir="ltr"] .mobile-nav { left: -100%; right: auto; }
html[dir="ltr"] .mobile-nav.active { left: 0; right: auto; }
html[dir="rtl"] .mobile-nav { right: -100%; left: auto; }
html[dir="rtl"] .mobile-nav.active { right: 0; left: auto; }

html[dir="ltr"] .mobile-menu-toggle { order: 2; }
html[dir="rtl"] .mobile-menu-toggle { order: 2; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    :root { --header-height: 72px; }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-section { min-height: 88vh; }
    .hero-content { max-width: 100%; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }

    .hero-section {
        padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
        text-align: start;
    }
    .hero-text { font-size: 1rem; }

    .logo-tag { display: none; }
    .logo-text { font-size: 19px; }

    .language-name { font-size: 0.74rem; }
    .feature-title { font-size: 1.3rem; }
    .feature-icon { width: 128px; height: 128px; }
}

@media (max-width: 576px) {
    .logo-text { font-size: 18px; }
    .language-trigger { gap: 0.35rem; padding: 0.35rem 0.6rem; }
    .language-flag { width: 18px; height: 18px; }
    /* on garde le code (AR/FR/EN) visible sur le bouton, et le nom dans le menu */
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .language-selector { margin-inline-start: 0; }
    .language-dropdown { width: 180px; }
}

/* ═══════════════════════════════════════════════════════
   BULLE WHATSAPP FLOTTANTE (identique à la page Expertise)
   ═══════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0,0,0,0.18);
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0,0,0,0.22);
}
.wa-float:active { transform: translateY(0); }
.wa-float-icon {
  width: 32px; height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-float-icon svg { width: 20px; height: 20px; fill: #25D366; }
.wa-float-text { white-space: nowrap; line-height: 1.1; }
.wa-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);   }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);      }
}
/* RTL : la bulle reste à droite, ordre interne LTR (icône à gauche) */
[dir="rtl"] .wa-float { flex-direction: row-reverse; }
/* Arabe desktop : libellé un peu plus grand */
@media (min-width: 993px) {
  html[lang="ar"] .wa-float { font-size: 15px; }
}
@media (max-width: 480px) {
  .wa-float {
    bottom: 16px;
    inset-inline-end: 16px;
    padding: 10px 16px 10px 12px;
    font-size: 13px;
  }
  .wa-float-icon { width: 28px; height: 28px; }
  .wa-float-icon svg { width: 17px; height: 17px; }
}

/* ═══════════════════════════════════════════════════════
   TARIFICATION — offre client (carte encre nuit + or)
   ═══════════════════════════════════════════════════════ */
.pricing-section {
    position: relative;
    z-index: 2;
    padding: var(--section-py) var(--gutter);
    background: var(--bg);
}
.pricing-grid {
    display: grid;
    /* min() empêche la piste de forcer une largeur > viewport (cause du scroll horizontal) */
    grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
    gap: clamp(36px, 5vw, 76px);
    align-items: center;
}
.pricing-intro { text-align: start; min-width: 0; }
.pricing-eyebrow { margin-bottom: 22px; }
.pricing-title {
    font-family: var(--f-edit);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.1rem;
}
.pricing-text {
    font-family: var(--f-ui);
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 520px;
    margin-bottom: 1.8rem;
}
.pricing-includes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 1.9rem;
}
.pricing-includes li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: var(--f-ui);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink-2);
}
.pricing-diamond {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}
.pricing-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--border-radius-lg);
    max-width: 520px;
}
.pricing-guarantee-tag {
    flex-shrink: 0;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--safe);
    border: 1px solid rgba(26, 92, 56, 0.32);
    border-radius: 2px;
    padding: 5px 9px;
    white-space: nowrap;
    margin-top: 2px;
}
.pricing-guarantee-text {
    flex: 1;
    min-width: 0;
    font-family: var(--f-ui);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-2);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* — Carte prix : encre nuit, accents or — */
.pricing-card {
    position: relative;
    max-width: 460px;
    width: 100%;
    min-width: 0;
    justify-self: center;
    background: var(--ink);
    border: 1px solid var(--ink-2);
    border-radius: var(--border-radius-xl);
    padding: clamp(2rem, 4vw, 2.6rem);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.pricing-card-bar {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.pricing-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.pricing-badge {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold-3);
    border-radius: 999px;
    padding: 7px 14px;
}
.pricing-discount {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--gold-3);
    border: 1px solid rgba(233, 217, 166, 0.4);
    border-radius: 999px;
    padding: 6px 11px;
    white-space: nowrap;
}
.pricing-old {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.pricing-old-price {
    font-family: var(--f-ui);
    font-size: 1.05rem;
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-color: rgba(196, 154, 60, 0.7);
}
.pricing-old-label {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.pricing-num {
    font-family: var(--f-edit);
    font-weight: 500;
    font-size: clamp(3.4rem, 7vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bg);
}
.pricing-currency {
    font-family: var(--f-edit);
    font-style: italic;
    font-size: 1.7rem;
    color: var(--gold);
}
.pricing-period {
    font-family: var(--f-ui);
    font-size: 0.98rem;
    color: rgba(252, 250, 245, 0.7);
    margin: 10px 0 0;
}
.pricing-divider {
    height: 1px;
    background: rgba(252, 250, 245, 0.12);
    margin: 1.7rem 0;
}
.pricing-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 1.8rem;
}
.pricing-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-ui);
    font-size: 0.95rem;
    color: rgba(252, 250, 245, 0.88);
    min-width: 0;
    overflow-wrap: anywhere;
}
.pricing-bullets svg {
    flex-shrink: 0;
    color: var(--gold);
}
.pricing-cta {
    display: flex;
    width: 100%;
    opacity: 1;
    transform: none;
    animation: none;
}
.pricing-fineprint {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--ink-mute);
    margin: 14px 0 0;
}

@media (min-width: 993px) {
    html[lang="ar"] .pricing-text { font-size: 1.2rem; line-height: 1.95; }
    html[lang="ar"] .pricing-includes li { font-size: 1.12rem; }
    html[lang="ar"] .pricing-period { font-size: 1.12rem; }
    html[lang="ar"] .pricing-bullets li { font-size: 1.06rem; }
    html[lang="ar"] .pricing-guarantee-text { font-size: 1.04rem; }
}
@media (max-width: 576px) {
    .pricing-section { padding-inline: 18px; }
    .pricing-card { padding: 1.6rem; }
    .pricing-num { font-size: clamp(2.8rem, 14vw, 3.6rem); }
    .pricing-old { flex-wrap: wrap; }

    /* Garantie : empilée pour éviter tout débordement du texte long */
    .pricing-guarantee {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    .pricing-guarantee-tag {
        align-self: flex-start;
        white-space: normal;
        margin-top: 0;
    }
}