/* ============ RABAT GARDEN — styles ============ */

:root {
    --primary: #20517C;
    --primary-dark: #173d5e;
    --primary-light: #2d6a9e;
    --green: #A8CF45;
    --green-light: #C4DD52;
    --accent: #A8CF45;
    --dark: #1e293b;
    --light: #f5f8f0;
    /* #5f6e82 et non #64748b : sur le fond --light le gris d'origine tombait
       à 4.43:1, sous le seuil AA de 4.5:1. Cette valeur passe sur les deux
       fonds (4.84:1 sur --light, 5.20:1 sur blanc). */
    --muted: #5f6e82;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .06);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
    overflow-x: clip;
}
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Helvetica Neue", Arial, sans-serif; }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.btn { text-decoration: none; }

/* ============ Boutons ============ */
.btn {
    display: inline-block; padding: .65rem 1.25rem;
    border-radius: var(--radius); border: 1px solid transparent;
    font-size: .95rem; font-weight: 600; cursor: pointer;
    transition: background .15s, transform .1s; text-align: center;
}
.btn-primary { background: var(--green); color: #20517C; }
.btn-primary:hover { background: var(--green-light); color: #20517C; text-decoration: none; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--dark); text-decoration: none; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; }
.btn:active { transform: scale(.98); }

/* ============ Header ============ */
.site-header {
    background: rgba(255, 255, 255, .68);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(32, 81, 124, .12);
    position: sticky; top: 0; z-index: 50;
    transition: background .3s, box-shadow .3s;
}
body.scrolled .site-header {
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 4px 20px rgba(32, 81, 124, .12);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; position: relative; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #20517C; text-decoration: none; }
.logo-mark {
    background: #C4DD52; color: #20517C; border-radius: 8px;
    padding: .3rem .55rem; font-size: .95rem;
}
.logo-img { height: 48px; width: auto; display: block; border-radius: 8px; }
.main-nav { display: flex; gap: 1.1rem; flex: 1; flex-wrap: wrap; }
.main-nav a { color: #20517C; font-weight: 500; }
.main-nav a:hover { color: #A8CF45; text-decoration: none; }
.main-nav a.active { color: #20517C; border-bottom: 2px solid #C4DD52; }
.main-nav form.nav-logout { margin: 0; display: inline-flex; }
.nav-logout-btn {
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; color: #20517C; font-weight: 500; cursor: pointer;
}
.nav-logout-btn:hover { color: #A8CF45; }
.lang-dropdown { position: relative; margin-inline-start: auto; }
.lang-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .65rem; border-radius: 8px;
    border: 1px solid var(--border); background: #fff;
    color: #20517C; font-size: .85rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.lang-btn:hover { background: #f0fdf4; }
.lang-btn svg:first-child { fill: #20517C; }
.lang-btn svg:last-child { fill: #20517C; transition: transform .2s; }
.lang-dropdown.open .lang-btn svg:last-child { transform: rotate(180deg); }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 4px); inset-inline-end: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 100; min-width: 80px;
    overflow: hidden;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-item {
    display: block; padding: .55rem .8rem; font-size: .85rem; font-weight: 700;
    color: var(--dark); text-decoration: none; transition: background .15s;
}
.lang-item:hover { background: var(--light); text-decoration: none; color: var(--primary); }
.lang-item.active { color: var(--primary); background: #f0fdf4; }

/* ============ Contact button (header) ============ */
.header-contact-btn {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.3rem; border-radius: 999px;
    background: #C4DD52;
    color: #20517C; font-size: .88rem; font-weight: 700; letter-spacing: .02em;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 2px 12px rgba(196, 221, 82, .4);
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .3s;
}
/* Pulsation infinie : comme toutes les autres animations du site, elle n'est
   déclarée que si l'utilisateur n'a pas demandé à réduire les animations. */
@media (prefers-reduced-motion: no-preference) {
    .header-contact-btn { animation: contactPulse 3s ease-in-out infinite; }
}
.header-contact-btn svg { fill: #20517C; flex: none; }
.header-contact-btn:hover {
    transform: translate(-50%, -50%) translateY(-2px) scale(1.05);
    box-shadow: 0 6px 28px rgba(196, 221, 82, .55);
    background: #d4ed42;
    text-decoration: none;
}
.header-contact-btn:active {
    transform: translate(-50%, -50%) scale(.97);
    box-shadow: 0 2px 8px rgba(196, 221, 82, .4);
}
@keyframes contactPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(196, 221, 82, .4); }
    50% { box-shadow: 0 2px 24px rgba(196, 221, 82, .65), 0 0 0 7px rgba(196, 221, 82, .12); }
}

/* Bouton menu (mobile) */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; padding: 7px; margin-inline-start: auto;
    border-radius: 8px;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--dark); margin: 5px 0;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
[dir="rtl"] .nav-toggle span { margin: 5px 0; }

/* ============ Flash ============ */
.flash { padding: .8rem 0; font-weight: 600; }
.flash-success { background: #f0fdf4; color: var(--success); border-bottom: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: var(--danger); border-bottom: 1px solid #fecaca; }

/* ============ Hero vidéo ============ */
.video-hero {
    position: relative;
    /* La vidéo occupe exactement un écran, quel que soit l'appareil.
       Trois déclarations en cascade : vh = repli, svh = la plus petite
       hauteur (barre d'URL masquée), dvh = la hauteur réellement visible.
       Sur mobile, 100vh seul déborde car la barre d'URL rétrécit la fenêtre. */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #2d6a9e);
    /* Écrans à encoche : le texte ne doit pas passer sous les bords arrondis */
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
.video-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}
.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .25), rgba(15, 23, 42, .65));
}
.video-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding-block: 4rem;
}
.video-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.video-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); margin-bottom: .8rem; }
.video-hero p { opacity: .95; font-size: 1.1rem; margin-bottom: 1.8rem; }
.video-hero-note {
    font-size: .95rem;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: .6rem .9rem;
    display: inline-block;
}
.video-hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.video-hero .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.video-hero .btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }

/* Apparition séquentielle du texte sur la vidéo : badge, titre, slogan puis
   boutons, chacun en fondu + montée. Même principe que le reveal du footer.
   Placée dans prefers-reduced-motion: no-preference : si l'utilisateur a coupé
   les animations, aucune règle ne s'applique et le texte s'affiche normalement,
   sans risque de rester invisible. */
@media (prefers-reduced-motion: no-preference) {
    .video-hero-kicker,
    .video-hero-content > h1,
    .video-hero-content > p,
    .video-hero-actions {
        animation: heroReveal .9s cubic-bezier(.2, .7, .2, 1) both;
    }
    .video-hero-kicker          { animation-delay: .05s; }
    .video-hero-content > h1    { animation-delay: .20s; }
    .video-hero-content > p     { animation-delay: .35s; }
    .video-hero-actions         { animation-delay: .50s; }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ Destination (Harhoura) ============ */
.dest-hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.dest-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .3), rgba(15, 23, 42, .68));
}
.dest-hero-content { position: relative; z-index: 1; max-width: 820px; padding-block: 4rem; }
.dest-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); margin-bottom: .8rem; }
.dest-hero p { opacity: .95; font-size: 1.1rem; margin-bottom: 1.2rem; }
.dest-hero .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.dest-hero .btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.dest-hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.dest-desc { margin-top: .4rem; }
.dest-desc p { margin-bottom: 1rem; }

/* ============ Sections ============ */
.section { padding: 3rem 0; }
.section-alt { background: var(--light); }
.section-title { font-size: 1.6rem; margin-bottom: .3rem; }
.section-sub { color: var(--muted); margin-bottom: 1.6rem; }

/* ============ Section projets ============
   En-tête centré avec filet décoratif, cartes surélevées et ombres douces.
   Les mouvements vivent dans prefers-reduced-motion: no-preference. */
.section-projets {
    background:
        radial-gradient(1100px 460px at 50% -140px, rgba(168, 207, 69, .20), transparent 70%),
        var(--light);
    color: var(--dark);
    padding: 4.6rem 0 5rem;
}
.projets-head {
    max-width: 720px;
    margin: 0 auto 2.9rem;
    text-align: center;
}
.section-projets .section-title {
    color: #20517C;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.85rem, 3.6vw, 2.7rem);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -.01em;
    margin: 0 0 1rem;
}
/* Filet décoratif produit par un pseudo-élément : aucun texte à traduire. */
.section-projets .section-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 3px;
    margin: 1.15rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green), var(--primary));
}
.section-projets .section-sub {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
    margin: 1.35rem 0 0;
}
/* ---- Cartes ---- */
.section-projets .card-title a { color: var(--dark); }
.section-projets .card-title a:hover { color: #20517C; }
.section-projets .btn-primary { background: var(--green); color: #20517C; }
.section-projets .btn-primary:hover { background: var(--green-light); }

.section-projets .project-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid #e6ecdf;
    background: #fff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 30px rgba(15, 23, 42, .05);
    transition: box-shadow .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
/* Liseré vert en haut de carte : il se déploie au survol. */
.section-projets .project-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    z-index: 2;
}
[dir="rtl"] .section-projets .project-card::before { transform-origin: right; }
.section-projets .project-card .card-media { aspect-ratio: 16 / 10; }
.section-projets .project-card .card-media img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
/* Voile sombre en pied d'image : le badge ressort et la transition vers le
   corps de la carte est continue. */
.card-media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, .34) 100%);
    opacity: .8;
    pointer-events: none;
}
.section-projets .badge-project {
    left: .85rem;
    top: .85rem;
    padding: .34rem .74rem;
    border-radius: 50px;
    background: rgba(32, 81, 124, .92);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .22);
}
[dir="rtl"] .section-projets .badge-project { left: auto; right: .85rem; }
.section-projets .card-body { padding: 1.35rem 1.5rem 1.5rem; gap: .5rem; }
.section-projets .card-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.3;
}
.section-projets .card-loc {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #20517C;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.section-projets .card-loc::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(168, 207, 69, .28);
}
.section-projets .card-desc { font-size: .93rem; line-height: 1.62; }
/* Bouton pleine largeur : la flèche se décale au survol. */
.section-projets .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.15rem;
    padding: .78rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .3s, color .3s;
}
.section-projets .btn-arrow { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .section-projets .btn-arrow { transform: scaleX(-1); }

/* ---- Mise en avant : un projet unique s'affiche en grand format ---- */
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.section-projets .grid-1 .project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
}
/* Format figé sur la vignette : sans cela la hauteur de l'image naturelle
   pilote la carte et la featured devient portrait (641x961 sur 1200 de large).
   L'image est en absolute pour ne plus jamais contribuer à la hauteur. */
.section-projets .grid-1 .project-card .card-media {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
}
.section-projets .grid-1 .project-card .card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.section-projets .grid-1 .project-card .card-body { padding: 2.2rem 2.4rem; justify-content: center; gap: .7rem; }
.section-projets .grid-1 .project-card .card-title { font-size: 1.85rem; }
.section-projets .grid-1 .project-card .card-desc { font-size: 1rem; line-height: 1.7; }
.section-projets .grid-1 .project-card .btn-block { align-self: flex-start; min-width: 210px; }
@media (max-width: 860px) {
    .section-projets .grid-1 .project-card { grid-template-columns: minmax(0, 1fr); }
    .section-projets .grid-1 .project-card .card-media { aspect-ratio: 16 / 10; }
    .section-projets .grid-1 .project-card .card-body { padding: 1.35rem 1.5rem 1.5rem; }
    .section-projets .grid-1 .project-card .card-title { font-size: 1.3rem; }
    .section-projets .grid-1 .project-card .btn-block { align-self: stretch; }
}

@media (prefers-reduced-motion: no-preference) {
    /* Le liseré se déploie au survol. */
    .section-projets .project-card:hover { transform: translateY(-7px); border-color: #cddcc0; box-shadow: 0 4px 8px rgba(15, 23, 42, .05), 0 26px 54px rgba(15, 23, 42, .13); }
    .section-projets .project-card:hover::before { transform: scaleX(1); }
    .section-projets .project-card:hover .card-media img { transform: scale(1.07); }
    .section-projets .project-card:hover .btn-arrow { transform: translate(3px, -3px); }
    [dir="rtl"] .section-projets .project-card:hover .btn-arrow { transform: scaleX(-1) translate(3px, -3px); }
}
/* L'en-tête et les cartes utilisent le système [data-reveal] déjà présent sur
   le site : une seule mécanique d'apparition, qui respecte le reduced-motion
   et reste sans effet si le script est absent. */

/* ============ Grid / Cards ============ */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

.card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media img { transition: transform .3s; }
.no-img { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.no-img.big { padding: 4rem 1rem; }
.badge {
    position: absolute; top: .6rem; padding: .25rem .6rem;
    border-radius: 6px; font-size: .75rem; font-weight: 700; color: #fff;
}
.badge-featured { left: .6rem; background: var(--accent); }
[dir="rtl"] .badge-featured { left: auto; right: .6rem; }
.badge-type { right: .6rem; background: rgba(15, 23, 42, .75); }
[dir="rtl"] .badge-type { right: auto; left: .6rem; }
.badge-project { left: .6rem; background: var(--primary-dark); }
[dir="rtl"] .badge-project { left: auto; right: .6rem; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.card-title { font-size: 1.02rem; line-height: 1.35; }
.card-title a { color: var(--dark); }
.card-title a:hover { color: var(--primary); text-decoration: none; }
.card-loc { color: var(--muted); font-size: .9rem; }
.card-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.card-meta { display: flex; gap: 1rem; color: var(--muted); font-size: .85rem; }
.card .btn { margin-top: auto; }

/* ============ CTA ============ */
.cta { background: var(--primary-dark); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta h2 { margin-bottom: .5rem; }
.cta p { opacity: .9; margin-bottom: 1.4rem; }

/* ============ Footer ============
   Fond marine : il reprend le dégradé des heroes, ce qui referme la page sur la
   même palette. Toutes les couleurs de texte ci-dessous ont été validées sur le
   fond le plus clair (#173d5e) ET le plus sombre (#0d2437) du dégradé, le plus
   faible des deux ratios devant rester au-dessus du seuil AA. */
.site-footer {
    position: relative;
    isolation: isolate;
    padding: 0 0 1.6rem;
    color: rgba(255, 255, 255, .72);
    background: linear-gradient(165deg, #173d5e 0%, #122f4a 52%, #0d2437 100%);
    overflow: hidden;
}
.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--green), var(--green-light), var(--primary));
    background-size: 200% 100%;
}
/* L'animation est placée sous no-preference : une animation infinie tournerait
   en permanence chez qui a coupé les animations. Le dégradé reste visible
   dans les deux cas. */
@media (prefers-reduced-motion: no-preference) {
    .footer-accent { animation: footerAccent 9s linear infinite; }
}
@keyframes footerAccent {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
/* Halo qui suit le pointeur. Les variables --mx/--my sont écrites par main.js
   (demande explicite du pointeur) ; sans JS le dégradé reste centré, donc
   visible. */
.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
                rgba(168, 207, 69, .13), transparent 62%);
    transition: background .25s ease;
}
/* Voile sombre en bas : le dégradé de fond est déjà sombre, ce n'est qu'un
   appoint pour ancrer le filet de séparation. */
.site-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 45%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(4, 16, 27, .5), transparent);
}

.site-footer a { color: rgba(255, 255, 255, .85); transition: color .2s, transform .2s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
/* Titres de colonne : le vert fait écho au bandeau supérieur. */
.site-footer h3 {
    color: var(--green);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
/* Petit trait vert qui se déploie au survol de la colonne. */
.site-footer h3::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, rgba(168, 207, 69, .45), transparent);
    transition: background .3s;
}
.site-footer .footer-col:hover h3::after {
    background: linear-gradient(to right, var(--green), rgba(168, 207, 69, .1));
}

/* Top : logo + marque */
.footer-top {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 3rem 0 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    position: relative;
    z-index: 1;
}
.footer-logo { flex-shrink: 0; display: block; }
/* Pastille claire derrière le logo : sur fond marine, un JPEG à fond blanc
   floated sinon. */
.footer-logo-img {
    height: 68px;
    width: auto;
    border-radius: 12px;
    padding: 7px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.footer-logo:hover .footer-logo-img {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}
.footer-brand {
    font-family: "Playfair Display", Georgia, serif;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: .01em;
    margin: 0 0 .25rem;
}
.footer-tagline {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    margin: 0;
    line-height: 1.6;
    max-width: 52ch;
}

/* Body : 3 colonnes */
.footer-body {
    display: grid;
    grid-template-columns: 1.15fr .8fr 1.05fr;
    gap: 3rem;
    padding: 2.8rem 0 2.4rem;
    position: relative;
    z-index: 1;
}
.footer-info { list-style: none; }
.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: .7rem;
    padding: .5rem .65rem;
    font-size: .9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
    border-radius: 10px;
    /* Bordure transparente : la zone cliquable se révèle au survol sans faire
       sauter la mise en page. */
    border: 1px solid transparent;
    transition: background .25s, border-color .25s, transform .25s;
}
.footer-info li:last-child { margin-bottom: 0; }
.footer-info li:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(168, 207, 69, .28);
    transform: translateX(3px);
}
/* L'icône passe dans une pastille verte, comme les boutons du site. */
.footer-info li svg {
    width: 17px;
    height: 17px;
    fill: var(--green);
    flex-shrink: 0;
    margin-top: 3px;
    transition: fill .25s, transform .25s;
}
.footer-info li:hover svg { fill: #fff; transform: scale(1.12); }
.footer-info li a { color: rgba(255, 255, 255, .92); font-weight: 500; }
.footer-info li a:hover { color: var(--green); }
.footer-info a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.footer-sep { margin: 0 .3rem; opacity: .45; }

.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    font-size: .92rem;
    color: rgba(255, 255, 255, .78);
    transition: color .2s, transform .2s, gap .25s;
}
.footer-nav a::before {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    transition: width .28s cubic-bezier(.2, .7, .2, 1);
}
.footer-nav a:hover { color: #fff; transform: translateX(4px); }
.footer-nav a:hover::before { width: 14px; }

/* Réseaux sociaux */
.social-icons { display: flex; gap: .7rem; margin-bottom: 1.7rem; }
.social-link {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.social-link svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, .82); transition: fill .25s; }
.social-link:hover {
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(168, 207, 69, .3);
}
.social-link:hover svg { fill: #10263a; }
.social-link-wa:hover { background: #25d366; border-color: #25d366; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.social-link-wa:hover svg { fill: #fff; }

.footer-map-wrap iframe {
    width: 100%;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    display: block;
    /* La carte Google est claire : on l'assombrit pour qu'elle s'intègre au
       fond marine, et on rend les couleurs au survol. */
    filter: grayscale(100%) invert(92%) hue-rotate(180deg) brightness(.92);
    transition: filter .35s ease, border-color .35s;
}
.footer-map-wrap iframe:hover {
    filter: grayscale(35%) invert(60%) hue-rotate(180deg) brightness(1);
    border-color: rgba(168, 207, 69, .5);
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.3rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
    position: relative;
    z-index: 1;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--green); }

/* Révélation au scroll.
   Le CSS ne masque rien par défaut : c'est main.js qui ajoute .reveal-ready au
   moment où il met en place l'observateur. Sans JavaScript le footer reste
   entièrement visible (auparavant opacity:0 le rendait invisible). */
.site-footer .footer-top,
.site-footer .footer-col {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .site-footer.reveal-ready .footer-top,
    .site-footer.reveal-ready .footer-col {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
    }
    .site-footer.reveal-ready.revealed .footer-top { opacity: 1; transform: none; }
    .site-footer.reveal-ready.revealed .footer-col { opacity: 1; transform: none; }
    .site-footer.reveal-ready.revealed .footer-col:nth-child(1) { transition-delay: .08s; }
    .site-footer.reveal-ready.revealed .footer-col:nth-child(2) { transition-delay: .2s; }
    .site-footer.reveal-ready.revealed .footer-col:nth-child(3) { transition-delay: .32s; }
}

@media (max-width: 900px) {
    .footer-body { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
    .footer-col-social { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    /* Le footer est déjà empilé et centré par le bloc 768px, déclaré plus
       bas dans le fichier : à spécificité égale c'est lui qui l'emporte, et
       les règles d'alignement d'origine étaient donc sans effet. Il ne reste
       ici que ce que le bloc 768px ne traite pas. */
    .footer-info li:hover { transform: none; }
    .footer-nav a:hover { transform: none; }
}

/* ============ Pages internes ============ */
.page-head { background: var(--light); border-bottom: 1px solid var(--border); padding: 2.2rem 0; }
.page-head h1 { font-size: 1.9rem; }
.page-head p { color: var(--muted); margin-top: .4rem; }
.prose { max-width: 760px; }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul li { padding: .3rem 0; }

/* ============ Listings (recherche) ============ */
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; color: var(--muted); }
.results-toolbar select { padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-link {
    min-width: 38px; padding: .45rem .7rem; text-align: center;
    border: 1px solid var(--border); border-radius: 8px; color: var(--dark);
}
.page-link:hover { background: var(--light); text-decoration: none; }
.page-link.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ Détail annonce ============ */
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs li::after { content: "›"; margin-inline: .4rem; opacity: .6; }
.breadcrumbs li:last-child::after { content: ""; }
.listing-head h1 { font-size: 1.7rem; }
.listing-loc { color: var(--muted); margin-top: .3rem; }

.listing-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; grid-template-areas: "gallery sidebar" "desc sidebar"; }
.listing-description { grid-area: desc; }
.listing-gallery { grid-area: gallery; min-width: 0; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--light); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .6rem; overflow-x: auto; }
.gallery-thumbs img {
    width: 120px; height: 84px; object-fit: cover; border-radius: 8px;
    border: 2px solid transparent; cursor: pointer; opacity: .8;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary); opacity: 1; }

.listing-sidebar { grid-area: sidebar; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1rem; }
.price-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 1.3rem; }
.price-box .price { font-size: 1.7rem; font-weight: 800; }
.price-box p { opacity: .85; font-size: .85rem; margin-top: .3rem; }
.sidebar-block { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.sidebar-block h3 { margin-bottom: .7rem; font-size: 1rem; }
.specs li { padding: .3rem 0; border-bottom: 1px dashed var(--border); display: flex; justify-content: space-between; }
.specs li:last-child { border-bottom: none; }

.listing-description { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.listing-description h2 { font-size: 1.25rem; margin-bottom: .8rem; }

/* ============ Formulaires ============ */
.field { display: flex; flex-direction: column; gap: .3rem; }
.field span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
    padding: .65rem .8rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: .95rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.contact-form, .filter-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form { max-width: 640px; }
.contact-form .btn { align-self: flex-start; }

/* ============ Login ============ */
.login-body {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    min-height: 100vh; display: grid; place-items: center; padding: 1rem;
    position: relative;
}
.login-back {
    position: absolute; top: 1.2rem; left: 1.5rem;
    display: inline-flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 600;
    text-decoration: none; padding: .45rem .9rem; border-radius: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    transition: background .2s, color .2s, transform .15s;
}
.login-back svg { fill: currentColor; flex-shrink: 0; }
.login-back:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateX(-2px); text-decoration: none; }
[dir="rtl"] .login-back { left: auto; right: 1.5rem; }
[dir="rtl"] .login-back:hover { transform: translateX(2px); }
.login-wrap { width: min(420px, 100%); position: relative; z-index: 1; }
.login-card { background: #fff; border-radius: 14px; padding: 2.2rem; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.login-logo { text-align: center; margin-bottom: 1.6rem; }
.login-logo .logo-mark { display: inline-block; font-size: 1.2rem; margin-bottom: .8rem; }
.login-logo-img { height: 60px; width: auto; margin: 0 auto .9rem; }
.login-logo h1 { font-size: 1.3rem; }
.login-logo p { color: var(--muted); font-size: .9rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }

/* ============ Admin ============ */
.admin-body { background: var(--light); padding-top: 0; }
.admin-header {
    background: var(--dark); color: #fff;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.admin-header .logo { color: #fff; }
.admin-header .logo-mark { background: var(--green); color: var(--dark); }
.admin-header .main-nav a { color: #cbd5e1; font-weight: 500; }
.admin-header .main-nav a:hover { color: #fff; }
.admin-header .main-nav a.active { color: #fff; border-bottom: 2px solid var(--green); }
.admin-header .nav-logout-btn { color: #cbd5e1; }
.admin-header .nav-logout-btn:hover { color: #fff; }
.admin-header .nav-toggle span { background: #fff; }
.admin-title { margin: 1.6rem 0 1.2rem; font-size: 1.5rem; color: var(--dark); }
.admin-title-row { display: flex; justify-content: space-between; align-items: center; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.4rem; text-align: center; color: var(--muted); font-size: .9rem;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .25rem; }

.admin-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 2rem; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-section-head h2 { font-size: 1.1rem; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--border); }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
.table thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.td-actions { display: flex; gap: .4rem; align-items: center; }
.td-actions form { display: inline; }
.thumb-img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }

.img-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.img-item { border: 1px solid var(--border); border-radius: 8px; padding: .4rem; display: flex; flex-direction: column; gap: .35rem; }
.img-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.img-opt { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.img-opt input { accent-color: var(--primary); }
.img-opt-danger { color: #b91c1c; }
.file-input { width: 100%; padding: .4rem 0; }

.btn-whatsapp { background: var(--green-light); color: var(--primary); }
.btn-whatsapp:hover { background: var(--primary); color: #fff; }

.badge-published { background: var(--success); }
.badge-draft { background: var(--muted); }
.badge-sold { background: var(--dark); }

.admin-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.span-2 { grid-column: span 2; }
.checkbox-row { display: flex; gap: 1.5rem; align-items: center; font-size: .95rem; }
.checkbox-row label { display: flex; gap: .4rem; align-items: center; }
.form-actions { display: flex; gap: .8rem; margin-top: 1.5rem; }

/* ============ Favoris ============ */
.card-body { position: relative; }
.fav-form { position: absolute; top: .7rem; right: .7rem; margin: 0; z-index: 2; }
[dir="rtl"] .fav-form { right: auto; left: .7rem; }
.fav-btn {
    border: none; background: #fff; color: var(--muted); cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: color .15s, transform .15s;
}
.fav-btn:hover { transform: scale(1.12); color: #e0245e; }
.fav-btn.active { color: #e0245e; }
.fav-form.fav-inline { position: static; margin-top: .8rem; }
.fav-inline .fav-btn { width: auto; height: auto; border-radius: var(--radius); box-shadow: none; padding: .7rem 1rem; }
.fav-inline .fav-btn.active { border-color: #e0245e; color: #e0245e; }

/* ============ Les atouts du projet ============ */
.atouts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.atout-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, border-color .25s;
}
.atout-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(32, 81, 124, .12);
    border-color: var(--primary);
}
.atout-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #eef6da, #d9edaf);
    border-radius: 14px;
    display: grid; place-items: center;
    transition: background .3s, transform .3s;
}
.atout-card:hover .atout-icon {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    transform: scale(1.08);
}
.atout-icon svg {
    width: 26px; height: 26px;
    color: var(--primary);
    transition: color .3s;
}
.atout-card:hover .atout-icon svg { color: #fff; }
.atout-title {
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: .45rem; color: var(--dark);
}
.atout-desc {
    color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0;
}

/* ============ Villes ============ */
.city-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.city-chip {
    display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: .9rem 1.1rem; font-weight: 700; color: var(--dark);
    transition: border-color .15s, box-shadow .15s;
}
.city-chip:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(32,81,124,.12); }
.city-chip span { font-weight: 500; font-size: .8rem; color: var(--muted); }

/* ============ Responsive ============ */

/* Boîtes à outils / lignes qui doivent se replier */
.results-toolbar { flex-wrap: wrap; gap: .6rem; }
.checkbox-row { flex-wrap: wrap; }
.admin-title-row { flex-wrap: wrap; gap: .6rem; }
.form-actions { flex-wrap: wrap; }

/* Tableaux admin : scroll horizontal au lieu d'écrasement */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 680px; }

@media (max-width: 1080px) {
    .nav-toggle { display: block; order: 2; }
    .main-nav {
        display: none; flex-direction: column; align-items: stretch; text-align: center;
        width: 100%; order: 4; gap: .25rem; flex: 1 0 100%;
        margin-top: .7rem; padding: .6rem 0 .8rem; border-top: 1px solid rgba(255,255,255,.12);
    }
    .admin-header .main-nav { border-top-color: rgba(255,255,255,.12); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: .7rem .4rem; font-size: .98rem; }
    .nav-logout { width: 100%; }
    .nav-logout-btn { width: 100%; padding: .7rem .4rem; font-size: .98rem; }
    .header-contact-btn { order: 3; position: static; transform: none; width: 100%; justify-content: center; margin-top: .5rem; }
    .header-contact-btn:hover { transform: translateY(-2px) scale(1.02); }
    .header-contact-btn:active { transform: scale(.97); }
    .lang-dropdown { order: 2; }
    .logo { order: 1; }
    .header-inner { flex-wrap: wrap; gap: .8rem; }
    /* La hauteur plein écran est déjà appliquée en base : on se contente
       de desserrer le contenu pour respirer sur tablette et petit portable. */
    .video-hero-content { padding-block: 3.2rem; }
    .dest-hero { min-height: 52vh; }
}

@media (max-width: 900px) {
    .listing-layout { grid-template-columns: 1fr; grid-template-areas: "gallery" "desc" "sidebar"; }
    .listing-sidebar { position: static; }
    .atouts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 2.2rem 0; }
    .page-head { padding: 1.8rem 0; }
    .page-head h1 { font-size: 1.6rem; }
    .listing-head h1 { font-size: 1.45rem; }
    .cta { padding: 2.6rem 0; }
    .footer-body { grid-template-columns: 1fr; gap: 2rem; padding: 1.8rem 0; }
    .footer-top { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem 0 1.6rem; }
    .footer-logo-img { height: 56px; }
    .footer-brand { font-size: 1.1rem; }
    .social-icons { justify-content: center; }
    .footer-map-wrap iframe { height: 200px; }
    .pagination { flex-wrap: wrap; }
    .gallery-thumbs img { width: 84px; height: 62px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom ul { justify-content: center; }
    .admin-title { font-size: 1.3rem; margin: 1.2rem 0 1rem; }
    .admin-section { padding: 1rem; }
    .stat-card { padding: 1rem; }
    .stat-num { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .field-row, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .header-inner { gap: .6rem; padding-block: .55rem; }
    .logo-img { height: 40px; }
    .main-nav { gap: .15rem; }
    /* Plein écran maintenu sur mobile : c'est la requête mobile la plus
       courante, on ne réduit plus la hauteur, on adapte le contenu. */
    .video-hero-content { padding-block: 2.4rem; }
    .video-hero h1 { font-size: 1.6rem; }
    .video-hero p { font-size: .98rem; margin-bottom: 1.3rem; }
    .video-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .dest-hero { min-height: 46vh; }
    .dest-hero h1 { font-size: 1.6rem; }
    .price-box .price { font-size: 1.5rem; }
    .section-title { font-size: 1.35rem; }
    .section-sub { font-size: .92rem; }
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
    .footer-bottom ul { justify-content: center; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .stat-card { padding: .8rem; }
    .stat-num { font-size: 1.4rem; }
    .td-actions { flex-wrap: wrap; }
    .gallery-thumbs img { width: 70px; height: 50px; }
    .listing-description { padding: 1.1rem; }
    .listing-description h2 { font-size: 1.1rem; }
    .dest-desc p { font-size: .97rem; }
    .atouts-grid { grid-template-columns: 1fr; }
    .atout-card { padding: 1.4rem 1.1rem; }
    .atout-icon { width: 48px; height: 48px; margin-bottom: .8rem; }
    .atout-icon svg { width: 22px; height: 22px; }
    .atout-title { font-size: .98rem; }
    .admin-section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .admin-form { padding: 1rem; }
}

/* Écrans bas : téléphone en paysage, fenêtre très courte. La hauteur plein
   écran est conservée, mais le contenu doit tenir dans les ~360 px
   disponibles, sinon il déborde sous le bord. */
@media (max-height: 560px) and (orientation: landscape) {
    .video-hero-content { padding-block: 1rem; }
    .video-hero h1 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin-bottom: .35rem; }
    .video-hero p { font-size: .9rem; margin-bottom: .9rem; }
    .video-hero-kicker { margin-bottom: .5rem; padding: .25rem .8rem; font-size: .75rem; }
    .video-hero-actions { flex-direction: row; justify-content: center; }
}

/* Très petites hauteurs (paysage serré, fenêtre très basse) */
@media (max-height: 420px) {
    .video-hero-content { padding-block: .7rem; }
    .video-hero h1 { font-size: 1.3rem; }
    .video-hero p { font-size: .85rem; margin-bottom: .7rem; }
    .video-hero-actions { flex-direction: row; }
    .video-hero-actions .btn { padding: .55rem 1rem; font-size: .9rem; }
}

@media (max-width: 380px) {
    .lang-btn { padding: .25rem .45rem; font-size: .78rem; }
    .header-contact-btn { font-size: .8rem; padding: .45rem 1rem; }
    .main-nav a { font-size: .93rem; padding: .6rem .2rem; }
    .card-price { font-size: 1.15rem; }
    .atout-card { padding: 1.2rem .9rem; }
    .atout-desc { font-size: .85rem; }
    .footer-info li { font-size: .83rem; }
    .footer-nav a { font-size: .83rem; }
}

/* ============ Section cards Rabat Garden ============ */
.rg-section {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 45px 40px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;

    justify-content: center;
}

.rg-card {
    position: relative;
    height: 720px;
    overflow: hidden;
    border-radius: 18px;
    background: #222;
    cursor: pointer;
}

.rg-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.rg-card:hover img {
    transform: scale(1.07);
}

.rg-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .88) 0%,
        rgba(0, 0, 0, .55) 30%,
        rgba(0, 0, 0, .15) 65%,
        rgba(0, 0, 0, .05) 100%
    );

    z-index: 1;
    transition: background .5s ease;
}

.rg-card:hover .rg-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .92) 0%,
        rgba(0, 0, 0, .60) 35%,
        rgba(0, 0, 0, .10) 70%
    );
}

.rg-content {
    position: absolute;
    left: 38px;
    bottom: 45px;
    z-index: 2;
    color: #fff;
}

[dir="rtl"] .rg-content {
    left: auto;
    right: 38px;
    text-align: right;
}

.rg-small {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.rg-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4vw, 68px);
    font-weight: normal;
    line-height: .95;
    letter-spacing: -1px;
    color: #fff;
}

.rg-line {
    display: block;
    width: 55px;
    height: 2px;
    margin-top: 20px;
    background: #d21f62;
    transition: width .5s ease;
}

.rg-card:hover .rg-line {
    width: 90px;
}

.rg-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    text-decoration: none;
}


/* =========================================
   TABLETTE
   ========================================= */
@media (max-width: 1000px) {

    .rg-section {
        grid-template-columns: repeat(2, 1fr);
        max-width: 950px;
        padding: 35px 25px;
        gap: 20px;
    }

    .rg-card {
        height: 600px;
    }

    .rg-content {
        left: 28px;
        bottom: 35px;
    }

    [dir="rtl"] .rg-content {
        left: auto;
        right: 28px;
    }
}


/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 650px) {

    .rg-section {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        gap: 18px;
    }

    .rg-card {
        height: 550px;
        border-radius: 14px;
    }

    .rg-content {
        left: 25px;
        bottom: 28px;
    }

    [dir="rtl"] .rg-content {
        left: auto;
        right: 25px;
    }

    .rg-small {
        font-size: 17px;
    }

    .rg-title {
        font-size: 48px;
    }
}
/* ============ Section Notre groupe ============ */
.rg-about-section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 35px 60px 100px;
    position: relative;
}
.rg-label {
    width: fit-content;
    margin: 0 auto 22px;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--green);
    color: var(--dark);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Le disque interne est blanc : sur une pastille verte, un disque vert
   disparatrait complètement. */
.rg-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--dark);
    font-size: 15px;
    line-height: 1;
}
.rg-main-title {
    text-align: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 4.2vw, 62px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 75px;
    color: #080808;
}
.rg-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}
.rg-image-wrapper {
    position: relative;
    width: 100%;
    height: 690px;
    overflow: hidden;
    border-radius: 22px;
}
.rg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}
.rg-image-wrapper:hover img { transform: scale(1.04); }
.rg-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.30), transparent 45%);
    pointer-events: none;
}
.rg-about-content { padding: 10px 10px 10px 0; }
[dir="rtl"] .rg-about-content { padding: 10px 0 10px 10px; text-align: right; }
.rg-text-block {
    padding-bottom: 35px;
    margin-bottom: 32px;
    border-bottom: 1px solid #d8d8d8;
}
.rg-text-block:last-of-type {
    margin-bottom: 38px;
    border-bottom: none;
}
.rg-text-block h2 {
    font-size: 29px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}
.rg-text-block p {
    font-size: 17px;
    line-height: 1.75;
    color: #626262;
    font-weight: 400;
    margin: 0;
}
.rg-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 29px;
    border-radius: 50px;
    background: var(--green-light);
    color: var(--dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.rg-button:hover {
    transform: translateY(-3px);
    background: var(--green);
    box-shadow: 0 10px 25px rgba(168, 207, 69, .35);
    color: var(--dark);
    text-decoration: none;
}
.rg-button-arrow {
    font-size: 21px;
    line-height: 1;
    transition: transform .3s ease;
}
.rg-button:hover .rg-button-arrow { transform: translateX(4px); }
[dir="rtl"] .rg-button:hover .rg-button-arrow { transform: translateX(-4px) rotate(-90deg); }
[dir="rtl"] .rg-button-arrow { transform: rotate(90deg); }

@media (max-width: 1000px) {
    .rg-about-section { padding: 30px 35px 80px; }
    .rg-main-title { margin-bottom: 50px; }
    .rg-about-grid { grid-template-columns: 1fr; gap: 45px; }
    .rg-image-wrapper { height: 600px; }
    .rg-about-content { padding: 0; }
    [dir="rtl"] .rg-about-content { padding: 0; }
}

@media (max-width: 600px) {
    .rg-about-section { padding: 25px 18px 70px; }
    .rg-label { font-size: 14px; padding: 9px 18px; }
    .rg-main-title { font-size: 38px; margin-bottom: 38px; }
    .rg-image-wrapper { height: 470px; border-radius: 16px; }
    .rg-about-grid { gap: 35px; }
    .rg-text-block { padding-bottom: 27px; margin-bottom: 25px; }
    .rg-text-block h2 { font-size: 23px; }
    .rg-text-block p { font-size: 15px; line-height: 1.65; }
    .rg-button { padding: 15px 23px; font-size: 15px; }
}

/* ============ Section avis Google ============ */
.rg-reviews {
    width: 100%;
    padding: 110px 6%;
    background: #f7f6f3;
    overflow: hidden;
}
.rg-review-label {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 30px;
    background: #ead0d7;
    color: #a95f72;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .8px;
    margin: 0 auto 25px;
}
.rg-review-label-icon { font-size: 14px; }
.rg-review-title {
    text-align: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 400;
    color: #222;
    margin-bottom: 20px;
}
.rg-review-title span { color: #b86d80; }
.rg-review-intro {
    max-width: 680px;
    margin: 0 auto 65px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #777;
}
.rg-review-layout {
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}
.rg-rating { text-align: center; padding: 40px 25px; }
.rg-excellent {
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}
.rg-main-stars { margin-bottom: 15px; font-size: 27px; letter-spacing: 4px; }
.star { color: #ddd; }
.star.active { color: #d5a649; }
.rg-rating-number {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
    color: #222;
}
.rg-rating-number small {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    color: #888;
}
.rg-review-count { color: #777; font-size: 14px; margin-bottom: 20px; }
.rg-review-count strong { color: #333; }
.rg-google { font-size: 25px; font-weight: 600; letter-spacing: -1px; }
.google-blue { color: #4285F4; }
.google-red { color: #EA4335; }
.google-yellow { color: #FBBC05; }
.google-green { color: #34A853; }

.rg-reviews-zone { position: relative; width: 100%; min-width: 0; }
.rg-reviews-viewport { overflow: hidden; width: 100%; }
.rg-reviews-track {
    display: flex;
    gap: 22px;
    transition: transform .45s ease;
    will-change: transform;
}
.rg-reviews-track .rg-review-card { flex: 0 0 calc((100% - 44px) / 3); }

.rg-review-card {
    min-height: 320px;
    padding: 28px;
    border-radius: 24px;
    background: #202020;
    color: #fff;
    position: relative;
    border: 1px solid #bd8b55;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.rg-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}
.rg-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.rg-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rg-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #555;
    flex-shrink: 0;
}
.rg-author-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.rg-author-meta { min-width: 0; }
.rg-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rg-review-date { font-size: 11px; color: #aaa; margin-top: 3px; }
.rg-google-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}
.rg-card-stars { font-size: 17px; letter-spacing: 2px; margin-bottom: 18px; }
.rg-review-text {
    font-size: 14px;
    line-height: 1.75;
    color: #e7e7e7;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    flex: 1;
    word-break: break-word;
}
.rg-review-link { color: #d6a4b1; font-size: 12px; font-weight: 600; }
.rg-review-link:hover { text-decoration: underline; color: #d6a4b1; }

.rg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    z-index: 10;
    font-size: 26px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.rg-arrow:hover { background: #222; color: #fff; border-color: #222; }
.rg-arrow.disabled { opacity: .35; cursor: default; }
.rg-arrow.disabled:hover { background: #fff; color: #333; border-color: #ddd; }
/* Les flèches sont posées à -24px pour deborder du viewport du carrousel.
   La section, elle, a overflow: hidden : à ces largeurs le bord du
   .rg-review-layout tombait exactement sur la limite de la section et la
   moitié des boutons était rognée. On les rentre donc de 8px — assez pour
   sortir du viewport, pas assez pour sortir de la section. */
.rg-arrow.prev { left: -8px; }
.rg-arrow.next { right: -8px; }
[dir="rtl"] .rg-arrow.prev { left: auto; right: -8px; }
[dir="rtl"] .rg-arrow.next { right: auto; left: -8px; }

.rg-review-button-wrapper { text-align: center; margin-top: 55px; }
.rg-review-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 50px;
    background: #b76b7f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .25s ease, transform .25s ease;
}
.rg-review-button:hover {
    background: #985467;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.rg-error {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 15px;
    background: #fff0f0;
    color: #9d3333;
    text-align: center;
    font-size: 14px;
}

/* Repli sans API Google : les six témoignages d'exemple. Mêmes couleurs que
   .rg-review-card pour que la section reste cohérente dans ses deux modes.

   Par défaut c'est une pile : sans JavaScript les six témoignages restent
   empilés et tous lisibles. Le script ajoute .rg-testimonials--ready, et c'est
   ce seul cas qui les empile en une seule diapositive défilante. */
.rg-testimonial-note {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55);
}
.rg-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}
.rg-testimonial {
    margin: 0;
    min-height: 300px;
    padding: 30px 28px 26px;
    border-radius: 24px;
    background: #202020;
    border: 1px solid #bd8b55;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Le survol soulève la carte : mouvement, donc sous no-preference comme le
   reste du site (convention utilisée par les autres blocs). */
@media (prefers-reduced-motion: no-preference) {
    .rg-testimonial:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
    }
}
.rg-testimonial:hover {
    border-color: #d8a86a;
}
.rg-testimonial-quote {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 56px;
    line-height: 1;
    color: #bd8b55;
    margin-bottom: 10px;
}
.rg-testimonial blockquote {
    margin: 0 0 24px;
    font-size: 15.5px;
    line-height: 1.78;
    color: rgba(255, 255, 255, .92);
    flex: 1;
}
.rg-testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(189, 139, 85, .3);
}
.rg-testimonial-avatar {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #bd8b55;
    color: #202020;
    font-weight: 700;
    font-size: 17px;
}
.rg-testimonial-meta { display: flex; flex-direction: column; min-width: 0; }
.rg-testimonial-name { font-weight: 600; font-size: 15px; color: #fff; }
.rg-testimonial-role { font-size: 13px; color: rgba(255, 255, 255, .68); }

/* ---- Rotation des témoignages (bande d'actualisation) ----
   Tout ce bloc n'existe qu'une fois .rg-testimonials--ready posé par le script :
   sans JavaScript la pile ci-dessus reste affichée, cartes et texte compris. */
.rg-testimonial-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}
.rg-testimonials--ready ~ .rg-testimonial-controls { display: flex; }

/* Sélecteur à deux classes : les media queries ci-dessous redéfinissent
   grid-template-columns sur .rg-testimonials et, à spécificité égale,
   l'emporteraient par ordre d'apparition. */
.rg-testimonials.rg-testimonials--ready {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 760px;
}
/* Toutes les cartes occupent la même cellule de grille : la hauteur de la
   section suit la carte la plus haute et ne saute pas d'une diapositive à
   l'autre. Les inactives restent dans le flux mais deviennent invisibles. */
.rg-testimonials--ready .rg-testimonial {
    grid-area: 1 / 1;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.rg-testimonials--ready .rg-testimonial.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: rgTestimonialIn .5s ease both;
}
@keyframes rgTestimonialIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rg-testimonial-arrow {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #bd8b55;
    background: transparent;
    color: #bd8b55;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.rg-testimonial-arrow:hover {
    background: #bd8b55;
    border-color: #d8a86a;
    color: #202020;
}

.rg-testimonial-dots { display: flex; align-items: center; gap: 8px; }
.rg-testimonial-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.rg-testimonial-dot.active {
    background: #bd8b55;
    transform: scale(1.35);
}

@media (max-width: 1100px) {
    .rg-review-layout { grid-template-columns: 1fr; gap: 20px; }
    .rg-rating { padding-bottom: 10px; }
    .rg-reviews-track .rg-review-card { flex-basis: calc((100% - 22px) / 2); }
    .rg-testimonials { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .rg-reviews { padding: 75px 20px; }
    .rg-review-title { font-size: 40px; }
    .rg-review-intro { margin-bottom: 45px; }
    .rg-reviews-track .rg-review-card { flex-basis: 100%; }
    .rg-review-card { min-height: 300px; }
    .rg-arrow { width: 42px; height: 42px; }
    .rg-arrow.prev { left: -4px; }
    .rg-arrow.next { right: -4px; }
    [dir="rtl"] .rg-arrow.prev { left: auto; right: -4px; }
    [dir="rtl"] .rg-arrow.next { right: auto; left: -4px; }
    .rg-testimonials { grid-template-columns: 1fr; gap: 18px; }
    .rg-testimonial { min-height: 0; padding: 24px 22px; }
    .rg-testimonial-arrow { width: 42px; height: 42px; font-size: 20px; }
}

/* Le mouvement de la diapositive est décoratif : on garde la rotation, on
   supprime seulement l'animation d'entrée. */
@media (prefers-reduced-motion: reduce) {
    .rg-testimonials--ready .rg-testimonial.is-active { animation: none; }
    .rg-testimonial-arrow, .rg-testimonial-dot { transition: none; }
}

/* ============ Section contact ============ */
.rg-contact-section {
    position: relative;
    width: 100%;
    min-height: 850px;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(90deg,
            rgba(9, 11, 15, .82) 0%,
            rgba(9, 11, 15, .65) 35%,
            rgba(9, 11, 15, .30) 70%,
            rgba(9, 11, 15, .15) 100%),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.rg-contact-container {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, .95fr);
    gap: 70px;
    align-items: center;
}
.rg-contact-left { color: #fff; padding: 30px 10px 30px 20px; }
.rg-contact-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 21px;
    margin-bottom: 30px;
    border-radius: 50px;
    background: var(--green-light);
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
}
/* Le disque interne est blanc : sur une pastille verte, un disque vert
   disparatrait complètement. */
.rg-contact-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--dark);
    font-size: 14px;
    line-height: 1;
}
.rg-contact-title {
    max-width: 680px;
    margin-bottom: 25px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(46px, 5vw, 78px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -1.5px;
    color: #fff;
}
.rg-contact-title span { color: #e7a2b5; }
.rg-contact-desc {
    max-width: 680px;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, .90);
    font-size: 17px;
    line-height: 1.75;
}
.rg-contact-info {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.rg-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .20);
}
.rg-contact-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--dark);
    font-size: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .20);
}
.rg-contact-info-label {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 14px;
    font-style: italic;
}
.rg-contact-info-value {
    color: var(--green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}
.rg-contact-info-value a { color: var(--green); text-decoration: none; transition: color .25s ease; }
.rg-contact-info-value a:hover { color: var(--green-light); }

.rg-contact-form-box {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    padding: 42px 45px;
    background: rgba(255, 255, 255, .98);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}
.rg-contact-logo-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.rg-contact-logo {
    width: 230px;
    max-width: 75%;
    height: auto;
    object-fit: contain;
}
.rg-contact-fake-logo { display: none; text-align: center; }
.rg-contact-fake-logo-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    letter-spacing: 2px;
    color: #222;
}
.rg-contact-fake-logo-subtitle {
    margin-top: 5px;
    color: #c96d83;
    font-size: 11px;
    letter-spacing: 4px;
}
.rg-contact-form-title {
    margin-bottom: 32px;
    text-align: center;
    color: #1d1d1d;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
}
.rg-contact-form { width: 100%; }
.rg-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}
.rg-contact-field { display: flex; flex-direction: column; }
.rg-contact-field-full { grid-column: 1 / -1; }
.rg-contact-field label {
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
}
.rg-contact-required { color: #d90055; }
.rg-contact-field input,
.rg-contact-field textarea {
    width: 100%;
    border: 1px solid #e2e2e2;
    outline: none;
    background: #fff;
    color: #222;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
    border-radius: 13px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.rg-contact-field input { height: 61px; padding: 0 20px; }
.rg-contact-field textarea { min-height: 165px; padding: 18px 20px; resize: vertical; }
.rg-contact-field input::placeholder,
.rg-contact-field textarea::placeholder { color: #999; font-style: italic; }
.rg-contact-field input:focus,
.rg-contact-field textarea:focus {
    border-color: #d17b91;
    box-shadow: 0 0 0 3px rgba(209, 123, 145, .12);
}
.rg-contact-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 3px;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
    font-style: normal;
}
.rg-contact-checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: #d90055; }
.rg-contact-checkbox a { color: #d90055; text-decoration: none; }
.rg-contact-checkbox a:hover { text-decoration: underline; }
.rg-contact-submit {
    width: 100%;
    height: 58px;
    margin-top: 23px;
    border: 0;
    border-radius: 50px;
    background: var(--green-light);
    color: var(--dark);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.rg-contact-submit:hover {
    background: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(168, 207, 69, .35);
}
.rg-contact-arrow { font-size: 18px; line-height: 1; transition: transform .25s ease; }
[dir="rtl"] .rg-contact-arrow { display: inline-block; transform: rotate(180deg); }
.rg-contact-note {
    margin-top: 13px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

@media (max-width: 1250px) {
    /* Le bouton de contact est centré par position absolue : hors du flux, il
       ne réserve aucune place, et .main-nav (flex: 1) occupe tout l'espace.
       Sur la bande 1081-1250px — la plus étroite en mode menu horizontal —
       le centre de la barre tombait sur les liens de navigation et le bouton
       les recouvrait. On le remet dans le flux : .main-nav garde son
       flex-wrap, il passe simplement à la ligne si la place manque. */
    .header-contact-btn { position: static; transform: none; }
}

@media (max-width: 1150px) {
    .rg-contact-section { padding: 60px 30px; }
    .rg-contact-container { grid-template-columns: 1fr; gap: 45px; }
    .rg-contact-form-box { max-width: 750px; margin-inline: auto; }
    .rg-contact-left { max-width: 800px; margin: auto; padding-left: 0; }
}

@media (max-width: 700px) {
    .rg-contact-section { padding: 40px 15px; min-height: auto; background-position: center center; }
    .rg-contact-left { padding: 20px 5px; }
    .rg-contact-label { font-size: 13px; padding: 10px 16px; }
    .rg-contact-title { font-size: 43px; letter-spacing: -.8px; }
    .rg-contact-desc { font-size: 15px; margin-bottom: 35px; }
    .rg-contact-item { gap: 14px; }
    .rg-contact-icon { width: 50px; height: 50px; min-width: 50px; font-size: 21px; }
    .rg-contact-info-value { font-size: 15px; }
    .rg-contact-form-box { padding: 30px 20px; border-radius: 22px; }
    .rg-contact-form-title { font-size: 23px; }
    .rg-contact-fields { grid-template-columns: 1fr; gap: 19px; }
    .rg-contact-field-full { grid-column: auto; }
}

/* ============ Page À propos ============ */

/* Apparition au scroll : les éléments marqués [data-reveal] partent flous et
   remontent. Les règles vivent dans prefers-reduced-motion: no-preference —
   si l'utilisateur a coupé les animations, rien ne masque le contenu. */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    }
    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
    [data-reveal-delay="1"] { transition-delay: .1s; }
    [data-reveal-delay="2"] { transition-delay: .2s; }
    [data-reveal-delay="3"] { transition-delay: .3s; }
    [data-reveal-delay="4"] { transition-delay: .4s; }
    [data-reveal-delay="5"] { transition-delay: .5s; }
}

/* ============ L'excellence dans chaque détail ============ */
/* Les cartes reprennent le système [data-reveal] ci-dessus : pas d'animation
   CSS propre, donc rien à dupliquer et le contenu reste visible si JS est coupé. */
.ab-adv {
    padding: 4.2rem 0 4rem;
    background: #fff;
}
.ab-adv-heading {
    max-width: 720px;
    margin: 0 auto 2.9rem;
    text-align: center;
}
.ab-adv-eyebrow {
    display: inline-block;
    padding: .55rem 1.1rem;
    border-radius: 50px;
    background: #eef6da;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 1.2rem;
}
.ab-adv-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--dark);
}
.ab-adv-title span { color: var(--primary); }
.ab-adv-sub { margin-top: 1rem; color: var(--muted); line-height: 1.8; }

.ab-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}
.ab-adv-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.7rem 1.5rem;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Filet vert qui descend sur le bord de la carte au survol (inset-inline :
   le filet reste du bon côté en arabe). */
.ab-adv-card::before {
    content: "";
    position: absolute;
    inset-block: 0 auto;
    inset-inline: 0 auto;
    width: 3px;
    height: 0;
    background: var(--green);
    transition: height .3s ease;
}
.ab-adv-card:hover {
    transform: translateY(-4px);
    border-color: #cfe0f0;
    box-shadow: 0 12px 26px rgba(32, 81, 124, .1);
}
.ab-adv-card:hover::before { height: 100%; }
.ab-adv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.ab-adv-num {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--primary);
}
.ab-adv-symbol {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e3eef8;
    color: var(--primary);
    font-size: 1rem;
}
.ab-adv-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: .55rem;
}
.ab-adv-card p { font-size: .92rem; line-height: 1.8; color: var(--muted); }

.ab-adv-quote {
    max-width: 820px;
    margin: 2.9rem auto 0;
    text-align: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--dark);
}
.ab-adv-quote span { color: var(--primary); font-weight: 600; font-style: normal; }

@media (max-width: 900px) {
    .ab-adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .ab-adv { padding: 2.9rem 0 2.6rem; }
    .ab-adv-heading { margin-bottom: 1.9rem; }
    .ab-adv-grid { grid-template-columns: 1fr; gap: .9rem; }
    .ab-adv-card { padding: 1.4rem 1.2rem; }
    .ab-adv-top { margin-bottom: .9rem; }
    .ab-adv-quote { margin-top: 2rem; font-size: 1.02rem; }
}

.ab-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}
/* Halo vert très diffus derrière le titre : donne de la profondeur sans image. */
.ab-hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(circle, rgba(168, 207, 69, .28) 0%, transparent 62%);
}
.ab-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.ab-hero .rg-label { margin-bottom: 26px; }
.ab-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #fff;
}
.ab-hero-sub {
    max-width: 660px;
    margin: 1.1rem auto 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}

.ab-stats {
    background: var(--primary-dark);
    padding: 0 0 3.2rem;
    color: #fff;
}
.ab-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    overflow: hidden;
}
.ab-stat {
    background: var(--primary-dark);
    padding: 1.7rem 1rem;
    text-align: center;
}
.ab-stat-value {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 600;
    line-height: 1;
    color: var(--green);
}
.ab-stat-label {
    display: block;
    margin-top: .6rem;
    font-size: .85rem;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, .78);
}

.ab-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 3.2rem;
    align-items: start;
}
/* Image : forme en arche plutôt qu'un simple rectangle — le rappel des
   arcades, très présent sur les façades de Harhoura. Un filet vert décalé
   derrière et un reflet qui balaie l'image ajoutent l'épaisseur « premium ». */
.ab-media {
    position: relative;
    isolation: isolate;
}
.ab-media::before {
    content: "";
    position: absolute;
    inset-block: 22px -18px;
    inset-inline: 22px -18px;
    z-index: -1;
    border: 1px solid var(--green);
    border-radius: 44% 44% 18px 18px / 26% 26% 18px 18px;
    opacity: .5;
}
.ab-media::after {
    content: "";
    position: absolute;
    bottom: -18px;
    inset-inline-end: -18px;
    width: 96px;
    height: 6px;
    border-radius: 4px;
    background: var(--green);
}
.ab-media-frame {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--light);
    border-radius: 44% 44% 18px 18px / 26% 26% 18px 18px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .16);
}
.ab-media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .38), transparent 52%);
    opacity: .9;
    pointer-events: none;
    transition: opacity .5s ease;
}
.ab-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Reflet oblique : une bande lumineuse qui traverse l'image de temps en temps.
   z-index 2 la place au-dessus de la photo (positionnée, donc hors flux). */
.ab-media-frame::before {
    content: "";
    position: absolute;
    top: -50%;
    inset-inline-start: -35%;
    z-index: 2;
    width: 42%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: rotate(18deg);
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .ab-media-frame img { animation: abKenburns 22s ease-in-out infinite alternate; }
    .ab-media-frame::before { animation: abShine 9s ease-in-out infinite; }
    /* Au survol : l'image s'immobilise et le voile s'éclaircit. */
    .ab-media:hover .ab-media-frame img { animation-play-state: paused; }
    .ab-media:hover .ab-media-frame::after { opacity: .3; }
}
@keyframes abKenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.13) translate(-1.5%, -1.5%); }
}
@keyframes abShine {
    0%, 55%  { transform: translateX(0) rotate(18deg); opacity: 0; }
    60%      { opacity: 1; }
    90%, 100% { transform: translateX(520%) rotate(18deg); opacity: 0; }
}

.ab-content { padding-top: .3rem; }
.ab-block {
    padding-bottom: 1.7rem;
    margin-bottom: 1.7rem;
    border-bottom: 1px solid var(--border);
}
.ab-block:last-of-type { border-bottom: none; margin-bottom: 0; }
.ab-block h2 {
    position: relative;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: .7rem;
    color: var(--dark);
}
/* Filet vert à gauche du titre (droite en RTL). */
.ab-block h2::before {
    content: "";
    position: absolute;
    top: .28em;
    inset-inline-start: -.95rem;
    width: 4px;
    height: .95em;
    border-radius: 3px;
    background: var(--green);
}
.ab-block p { color: var(--muted); line-height: 1.75; margin-bottom: .9rem; }
.ab-block p:last-child { margin-bottom: 0; }
.ab-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

@media (max-width: 980px) {
    .ab-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .ab-media-frame { height: 420px; }
    .ab-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ab-hero { padding: 3.2rem 0 2.8rem; }
    .ab-hero-sub { font-size: 1rem; }
    .ab-stats-grid { grid-template-columns: 1fr; }
    .ab-stat { padding: 1.3rem 1rem; }
    /* L'arche demande de la hauteur : on l'aplatit et on rentre les décalages
       pour ne pas déborder de la colonne. */
    .ab-media-frame {
        height: 260px;
        border-radius: 38% 38% 14px 14px / 22% 22% 14px 14px;
    }
    .ab-media::before { inset-block: 14px -10px; inset-inline: 14px -10px; }
    .ab-media::after { bottom: -10px; inset-inline-end: -10px; width: 64px; }
    .ab-actions .rg-button, .ab-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ============ Acheter depuis l'étranger ============ */
.ab-dias {
    padding: 3.4rem 0;
    background: var(--light);
    border-block: 1px solid var(--border);
}
.ab-dias-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.4rem;
    align-items: center;
}
.ab-dias-label { margin-bottom: 22px; }
.ab-dias-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: .6rem;
}
.ab-dias-sub {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .9rem;
}
.ab-dias-desc { color: var(--muted); line-height: 1.75; }
.ab-dias-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.ab-dias-list { display: flex; flex-direction: column; gap: .9rem; }
.ab-dias-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ab-dias-item:hover {
    border-color: var(--green);
    box-shadow: 0 8px 22px rgba(32, 81, 124, .09);
    transform: translateY(-2px);
}
.ab-dias-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef6da, #d9edaf);
    color: var(--primary);
}
.ab-dias-icon svg { width: 22px; height: 22px; }
.ab-dias-text {
    font-weight: 600;
    line-height: 1.5;
    color: var(--dark);
    padding-top: .5rem;
}

@media (max-width: 900px) {
    .ab-dias-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}


@media (max-width: 600px) {
    .ab-dias { padding: 2.6rem 0; }
    .ab-dias-item { padding: 1rem; gap: .85rem; }
    .ab-dias-icon { width: 38px; height: 38px; border-radius: 10px; }
    .ab-dias-icon svg { width: 19px; height: 19px; }
    .ab-dias-text { padding-top: .3rem; font-size: .95rem; }
    .ab-dias-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ============ FAQ ============ */

/* Sans JavaScript les trois catégories restent empilées : le contenu de la page
   ne dépend d'aucun script. La classe .faq-tabs-ready, ajoutée par main.js,
   active ensuite la navigation par onglets. */
.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 4.4rem 0 3.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
}
.faq-hero-bg {
    position: absolute;
    top: -35%;
    inset-inline-end: -10%;
    width: 720px;
    height: 720px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(168, 207, 69, .25) 0%, transparent 62%);
}
.faq-hero-inner { position: relative; z-index: 1; }
.faq-hero .breadcrumbs { margin-bottom: 1.1rem; }
/* Sur le fond sombre du hero, le fil d'Ariane reprend la teinte du texte clair. */
.faq-hero .breadcrumbs ol { color: rgba(255, 255, 255, .8); }
.faq-hero .breadcrumbs a { color: rgba(255, 255, 255, .8); }
.faq-hero .breadcrumbs a:hover { color: #fff; }
.faq-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 500;
    line-height: 1.08;
    color: #fff;
    max-width: 20ch;
}
.faq-hero-sub {
    margin-top: 1rem;
    max-width: 58ch;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .87);
}

.faq-intro { padding: 3.2rem 0 .5rem; text-align: center; }
.faq-eyebrow {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.faq-intro-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 500;
    line-height: 1.15;
    margin: .6rem auto 0;
    max-width: 22ch;
}
.faq-intro-sub {
    margin: 1rem auto 0;
    max-width: 56ch;
    color: var(--muted);
}

.faq-tabs {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
    margin-top: 2.2rem;
}
.faq-tabs-ready .faq-tabs { display: flex; }
.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.35rem;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--dark);
    /* <button> n'hérite pas de la police du document : sans cela les onglets
       s'affichent en Arial alors que le reste du site utilise la pile système. */
    font: inherit;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.faq-tab:hover { border-color: var(--primary); transform: translateY(-2px); }
/* Le site ne définit pas de style de focus global : on en fournit un pour ces
   boutons, sans le déclencher au pointeur. L'anneau se dessine hors du bouton,
   donc sur le fond clair de la section : on garde --primary (8,3:1) y compris
   pour l'onglet actif, le vert --green y serait presque invisible. */
.faq-tab:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.faq-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-tab-num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
}
.faq-tab.active .faq-tab-num { background: var(--green); color: var(--primary-dark); }

.faq-body { padding: 1.6rem 0 3.4rem; }
.faq-container, .faq-body .container { max-width: 900px; }
.faq-col { margin-bottom: 2.6rem; }
/* Le mode onglets masque les colonnes inactives ; en mode empilé rien ne l'est. */
.faq-tabs-ready .faq-col[hidden] { display: none; }
.faq-col-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.25rem .2rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    line-height: 1.45;
    color: var(--dark);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--primary); }
/* Croix en CSS : la seconde barre se replie à l'ouverture. */
.faq-plus { position: relative; flex: none; width: 20px; height: 20px; }
.faq-plus::before, .faq-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: translateY(-50%);
    transition: transform .3s ease;
}
.faq-plus::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translateY(-50%) rotate(0deg); }
.faq-a { padding: 0 .2rem 1.3rem; }
.faq-a p { color: var(--muted); line-height: 1.75; max-width: 74ch; }
@media (prefers-reduced-motion: no-preference) {
    .faq-item[open] .faq-a { animation: faqOpen .32s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-help { padding: 0 0 3.6rem; }
.faq-help-card {
    position: relative;
    overflow: hidden;
    padding: 2.8rem 1.6rem;
    text-align: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.faq-help-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 500;
    margin: .5rem 0 0;
}
.faq-help-sub {
    margin: .9rem auto 0;
    max-width: 52ch;
    color: var(--muted);
}
.faq-help-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
    margin-top: 1.8rem;
}
.faq-help-actions .btn { gap: .55rem; }
/* .btn est en inline-block sur tout le site : on passe les boutons de la carte
   d'aide en flex pour que l'espacement et l'alignement de l'icône s'appliquent
   réellement, linspace seul ne séparant pas l'icône du texte. */
.faq-help-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.faq-help-actions svg { width: 17px; height: 17px; flex: none; }

@media (max-width: 640px) {
    .faq-hero { padding: 3rem 0 2.6rem; }
    .faq-hero-sub { font-size: .98rem; }
    .faq-tabs-ready .faq-tabs { gap: .5rem; }
    .faq-tab { padding: .6rem 1rem; font-size: .88rem; }
    .faq-q { padding: 1.05rem .2rem; font-size: .98rem; }
    .faq-help-card { padding: 2.2rem 1.2rem; }
    .faq-help-actions .btn { flex: 1 1 100%; justify-content: center; }
}
.surface-range {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.surface-range input {
    flex: 1;
}
