/* vermiatlas.ma : thème du site, chargé après Bootstrap 5.3.3 (sa version RTL pour l'arabe).
   Couleurs relevées sur le logo : brun de l'anneau, vert des feuilles, caramel de la lueur, pêche du ver.
   Les règles valent dans les deux sens d'écriture : propriétés logiques (inline-start, inline-end),
   et --sens (1 en français, -1 en arabe) pour les mouvements de gauche à droite. */

/* Readex Pro (SIL Open Font License 1.1), police variable : un fichier pour l'arabe, un pour le latin */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('../fonts/readex-pro-arabe.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('../fonts/readex-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --va-brun: #663c1d;               /* anneau du logo : titres et liens (contraste 9,4:1 sur blanc) */
  --va-brun-fonce: #4b2b11;         /* la terre : contours des dessins */
  --va-encre: #2e1c0f;              /* texte principal */
  --va-texte: #6a5443;              /* texte secondaire (contraste 7:1 sur blanc) */
  --va-vert: #4a6f01;               /* ombre des feuilles : bouton « Commander » (texte blanc, 6:1) */
  --va-vert-fonce: #3b5901;
  --va-pousse: #95b20e;             /* les feuilles : point des titres, filets ; jamais pour du texte (2,4:1) */
  --va-pousse-clair: #eff4d9;
  --va-caramel: #e8aa69;            /* lueur du fond du logo : touche chaude, rare */
  --va-peche: #fee0c2;              /* corps du ver */
  --va-creme: #fbf6ef;              /* une section sur deux */
  --va-ligne: #ede2d4;
  --va-rayon: 16px;
  --va-ombre: 0 14px 34px rgba(75, 43, 17, .10);
  --sens: 1;

  --bs-body-font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --bs-body-color: var(--va-encre);
  --bs-body-color-rgb: 46, 28, 15;
  --bs-link-color: var(--va-brun);
  --bs-link-color-rgb: 102, 60, 29;
  --bs-link-hover-color: var(--va-brun-fonce);
  --bs-link-hover-color-rgb: 75, 43, 17;
  --bs-border-color: var(--va-ligne);
}
[dir="rtl"] { --sens: -1; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[lang="ar"] body { line-height: 1.7; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 2px solid var(--va-brun); outline-offset: 2px; }

.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

/* Lien d'évitement, visible seulement au clavier */
.lien-evitement { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 2000; background: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.lien-evitement:focus { inset-inline-start: 1rem; top: 1rem; }

/* ---------- Boutons ---------- */
.btn-va, .btn-va-ligne, .btn-va-blanc, .btn-va-contour { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 12px; padding: .8rem 1.35rem; font-weight: 600; }
.btn-va {
  --bs-btn-color: #fff; --bs-btn-bg: var(--va-vert); --bs-btn-border-color: var(--va-vert);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--va-vert-fonce); --bs-btn-hover-border-color: var(--va-vert-fonce);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--va-vert-fonce); --bs-btn-active-border-color: var(--va-vert-fonce);
  --bs-btn-focus-shadow-rgb: 74, 111, 1;
}
.btn-va-ligne {
  --bs-btn-color: var(--va-encre); --bs-btn-bg: #fff; --bs-btn-border-color: #dccbb7;
  --bs-btn-hover-color: var(--va-brun); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--va-brun);
  --bs-btn-active-color: var(--va-brun); --bs-btn-active-bg: #fff; --bs-btn-active-border-color: var(--va-brun);
  --bs-btn-focus-shadow-rgb: 102, 60, 29;
  --bs-btn-border-width: 1.5px;
}
/* Sur le bandeau brun : bouton blanc, et bouton en simple contour */
.btn-va-blanc {
  --bs-btn-color: var(--va-vert); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--va-vert-fonce); --bs-btn-hover-bg: #f3f7e6; --bs-btn-hover-border-color: #f3f7e6;
  --bs-btn-active-color: var(--va-vert-fonce); --bs-btn-active-bg: #f3f7e6; --bs-btn-active-border-color: #f3f7e6;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}
.btn-va-contour {
  --bs-btn-color: #fff; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .1); --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .14); --bs-btn-active-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  --bs-btn-border-width: 1.5px;
}
.btn-va .ico, .btn-va-ligne .ico, .btn-va-blanc .ico, .btn-va-contour .ico { font-size: 1.15em; }
.btn-va-petit { padding: .5rem .95rem; border-radius: 10px; }

/* ---------- Barre de menu ---------- */
.barre { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--va-ligne); transition: box-shadow .2s ease; }
.barre.defile { box-shadow: 0 6px 20px rgba(75, 43, 17, .07); }
.barre .navbar { padding: .7rem 0; }
.barre .container-xl { flex-wrap: nowrap; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--va-brun); min-width: 0; }
.marque:hover { color: var(--va-brun); }
.marque img { border-radius: 50%; flex: none; }
.marque-nom { font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.marque-nom small { display: block; font-size: .72rem; font-weight: 500; color: var(--va-texte); }
.menu { display: none; list-style: none; margin: 0 auto; padding: 0; gap: .25rem; }
.menu a { display: block; padding: .5rem .8rem; color: var(--va-encre); font-weight: 500; text-decoration: none; border-radius: 8px; }
.menu a:hover { color: var(--va-brun); background: var(--va-creme); }
.barre-actions { display: flex; align-items: center; gap: .9rem; margin-inline-start: auto; flex: none; }
.langue { font-weight: 600; font-size: .95rem; color: var(--va-brun); text-decoration: none; }
.langue:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 992px) {
  .menu { display: flex; }
  .barre-actions { margin-inline-start: 0; }
}
/* Petit téléphone : le bouton de la barre ne garde que l'icône WhatsApp (le mot reste lu par les lecteurs d'écran) */
@media (max-width: 419.98px) {
  .btn-va-petit { padding: .55rem .7rem; }
  .btn-va-petit .btn-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359.98px) {
  .marque-nom small { display: none; }
}

/* ---------- Titres et textes ---------- */
.surtitre { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--va-vert); margin-bottom: .9rem; }
.point { color: var(--va-pousse); }
.sans-coupure { white-space: nowrap; } /* le dernier mot d'un titre et son point (titre() dans inc/site.php) */
.titre-hero { font-weight: 700; font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; color: var(--va-brun); margin-bottom: 1.3rem; }
.titre-section { font-weight: 700; font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; color: var(--va-brun); margin-bottom: 1rem; }
.hero-intro, .section-intro { font-size: 1.15rem; line-height: 1.6; color: var(--va-texte); max-width: 34rem; }
.section-intro a { font-weight: 600; }

/* L'arabe : jamais d'espacement entre les lettres (il casserait leurs liaisons), un peu plus d'air entre les lignes */
[lang="ar"] .surtitre { letter-spacing: 0; text-transform: none; font-size: .92rem; }
[lang="ar"] .titre-hero, [lang="ar"] .titre-section, [lang="ar"] .bandeau-titre { letter-spacing: 0; line-height: 1.45; }
[lang="ar"] .hero-intro, [lang="ar"] .section-intro { line-height: 1.85; }

/* Le filet : un petit ver ondulé, vert pousse, qui se dessine (filet() dans inc/site.php) */
.filet { display: block; width: 64px; height: 10px; margin-bottom: 1.4rem; overflow: visible; }
.filet path { fill: none; stroke: var(--va-pousse); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 1.02; }
[dir="rtl"] .filet { scale: -1 1; }

/* ---------- Accueil : en-tête de page ---------- */
.hero { padding: 2.5rem 0 2rem; overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "texte" "scene" "benefices"; row-gap: 1.5rem; }
.hero-texte { grid-area: texte; }
.scene { grid-area: scene; }
.benefices { grid-area: benefices; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

.benefices { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.benefices li { display: flex; align-items: center; gap: .9rem; color: var(--va-texte); font-size: .95rem; }
.benefices b { display: block; color: var(--va-encre); font-size: 1rem; font-weight: 600; }

.pastille { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 1.2rem; background: var(--va-pousse-clair); color: var(--va-vert); }

/* La scène : le cycle du vermicompost. Le ver au centre, quatre médaillons sur un cercle, comme le cercle du logo.
   Tout se règle avec --s (le côté de la scène, carrée). Le ver regarde l'accroche : retourné en français, tel quel en arabe. */
.scene { --s: min(86vw, 360px); --m: calc(var(--s) * .23); position: relative; width: var(--s); height: var(--s); margin: 1.2rem auto .8rem; }
.scene::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 170, 105, .30), rgba(254, 224, 194, .22) 60%, transparent); }
.orbite { position: absolute; inset: 0; }
.anneaux { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anneau { fill: none; stroke: #e4d3bf; stroke-width: .4; stroke-dasharray: 100; }
.fleches path { fill: none; stroke: var(--va-caramel); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .anneaux { scale: -1 1; } /* en arabe, le cycle tourne dans l'autre sens, de droite à gauche */

.ver-accueil { position: absolute; z-index: 2; left: 23.97%; top: 20%; width: 52.05%; height: auto; /* 64 % de la scène en hauteur */
               filter: drop-shadow(0 16px 18px rgba(75, 43, 17, .16));
               transform: translate(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 4px)); /* --px, --py : site.js, la scène suit un peu la souris */
               transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
[dir="ltr"] .ver-accueil { scale: -1 1; }

/* Médaillons, sur les diagonales du cercle : épluchures, vermicompost, plantes, récolte */
.medaillon { position: absolute; z-index: 3; width: var(--m); height: var(--m); transform: translate(calc(-50% * var(--sens)), -50%); }
.m-1 { inset-inline-start: 14.6%; top: 14.6%; }
.m-2 { inset-inline-start: 85.4%; top: 14.6%; }
.m-3 { inset-inline-start: 85.4%; top: 85.4%; }
.m-4 { inset-inline-start: 14.6%; top: 85.4%; }
.medaillon-disque { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--va-ligne);
                    box-shadow: 0 14px 30px rgba(75, 43, 17, .13), inset 0 0 0 5px #fff, inset 0 0 0 100px var(--va-creme); }
.medaillon-disque svg { width: 66%; height: 66%; }
.medaillon-nom { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 55%); white-space: nowrap; background: #fff; border: 1px solid var(--va-ligne); border-radius: 999px;
                 padding: .08rem .55rem; font-size: .7rem; font-weight: 600; color: var(--va-encre); box-shadow: 0 4px 10px rgba(75, 43, 17, .08); }

/* Le petit ver fait le tour du cercle, derrière les médaillons et le grand ver */
.satellite { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.satellite .petit-ver { position: absolute; left: 50%; top: 0; width: 34px; height: 19px; margin: -10px 0 0 -17px; }
[dir="rtl"] .satellite .petit-ver { scale: -1 1; }

/* Apparition : le ver monte, le cercle se dessine, les médaillons s'ouvrent l'un après l'autre dans le sens du cycle,
   puis les flèches et le petit ver arrivent. Tout est en place à 1,4 s. */
@keyframes va-monte { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes va-trace { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes va-ouvre { 0% { opacity: 0; scale: .35; } 65% { opacity: 1; scale: 1.08; } 100% { opacity: 1; scale: 1; } }
@keyframes va-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes va-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes va-tourne { to { rotate: 360deg; } }
.ver-accueil { animation: va-monte .75s cubic-bezier(.2, .8, .2, 1) .05s both; }
.anneau { animation: va-trace 1s cubic-bezier(.4, 0, .2, 1) .15s both; }
.medaillon { animation: va-ouvre .5s cubic-bezier(.2, .9, .3, 1.2) .45s both; }
.m-2 { animation-delay: .6s; }
.m-3 { animation-delay: .75s; }
.m-4 { animation-delay: .9s; }
.fleches { animation: va-apparait .6s ease 1.1s both; }
.satellite { animation: va-tourne 36s linear infinite, va-apparait .8s ease 1.3s both; }
[dir="rtl"] .satellite { animation-direction: reverse, normal; }
.medaillon-disque { animation: va-flotte 7s ease-in-out 1.6s infinite; transition: scale .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .35s ease; }
.m-2 .medaillon-disque, .m-4 .medaillon-disque { animation-delay: 2.4s; }
.medaillon:hover .medaillon-disque { scale: 1.08; box-shadow: 0 20px 40px rgba(75, 43, 17, .18), inset 0 0 0 5px #fff, inset 0 0 0 100px var(--va-creme); }

/* ---------- Accueil : le texte s'anime au chargement, en même temps que la scène ---------- */
@keyframes va-surtitre { from { opacity: 0; letter-spacing: .45em; } to { opacity: 1; letter-spacing: .12em; } }
@keyframes va-mot { from { translate: 0 110%; } to { translate: 0 0; } }
@keyframes va-point { 0% { scale: 0; } 70% { scale: 1.45; } 100% { scale: 1; } }
@keyframes va-filet { from { stroke-dashoffset: 1.01; } to { stroke-dashoffset: 0; } }
@keyframes va-leve { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes va-glisse { from { opacity: 0; translate: calc(-18px * var(--sens)) 0; } to { opacity: 1; translate: 0 0; } }
@keyframes va-brille { from { translate: calc(-130% * var(--sens)) 0; } to { translate: calc(130% * var(--sens)) 0; } }

.hero .surtitre { animation: va-surtitre .9s cubic-bezier(.2, .8, .2, 1) .05s both; }
[lang="ar"] .hero .surtitre { animation-name: va-apparait; }
/* Chaque mot du grand titre monte depuis un masque, l'un après l'autre ; en arabe, le masque est plus haut (points et lettres descendantes) */
.titre-hero .mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
[lang="ar"] .titre-hero .mot { padding-block: .1em .3em; margin-block: -.1em -.3em; }
.titre-hero .mot > span { display: inline-block; animation: va-mot .8s cubic-bezier(.2, .8, .2, 1) both; }
.titre-hero .mot:nth-child(1) > span { animation-delay: .15s; }
.titre-hero .mot:nth-child(2) > span { animation-delay: .205s; }
.titre-hero .mot:nth-child(3) > span { animation-delay: .26s; }
.titre-hero .mot:nth-child(4) > span { animation-delay: .315s; }
.titre-hero .mot:nth-child(5) > span { animation-delay: .37s; }
.titre-hero .mot:nth-child(6) > span { animation-delay: .425s; }
.titre-hero .mot:nth-child(7) > span { animation-delay: .48s; }
.titre-hero .mot:nth-child(8) > span { animation-delay: .535s; }
.titre-hero .mot:nth-child(n+9) > span { animation-delay: .59s; }
.titre-hero .point { display: inline-block; animation: va-point .5s cubic-bezier(.3, 1.4, .5, 1) 1.05s both; }
.hero .filet path { animation: va-filet .8s cubic-bezier(.4, 0, .2, 1) .8s both; }
.hero-intro { animation: va-leve .7s cubic-bezier(.2, .8, .2, 1) .85s both; }
.hero-actions { animation: va-leve .7s cubic-bezier(.2, .8, .2, 1) .95s both; }
.benefices li { animation: va-glisse .6s cubic-bezier(.2, .8, .2, 1) both; }
.benefices li:nth-child(1) { animation-delay: 1.05s; }
.benefices li:nth-child(2) { animation-delay: 1.13s; }
.benefices li:nth-child(3) { animation-delay: 1.21s; }

/* Reflet sur le bouton principal : une fois après l'arrivée (::before), puis à chaque survol (::after) */
.brille { position: relative; overflow: hidden; }
.brille::before, .brille::after { content: ''; position: absolute; inset: 0; pointer-events: none; translate: calc(-130% * var(--sens)) 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .36) 50%, transparent 70%); }
.btn-va-blanc.brille::before, .btn-va-blanc.brille::after { background: linear-gradient(110deg, transparent 30%, rgba(74, 111, 1, .14) 50%, transparent 70%); }
.brille::before { animation: va-brille 1.1s ease 1.8s both; }
.brille:hover::after { translate: calc(130% * var(--sens)) 0; transition: translate .9s ease; }

@media (min-width: 576px) {
  .medaillon-nom { font-size: .75rem; padding: .1rem .65rem; }
}
@media (min-width: 768px) {
  .benefices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene { --s: 430px; }
}
/* Ordinateur : deux colonnes, l'accroche d'un côté, la scène de l'autre (à droite en français, à gauche en arabe) */
@media (min-width: 992px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-grille { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "texte scene" "benefices scene"; column-gap: 2.5rem; row-gap: 2.2rem; }
  .hero-texte { align-self: end; }
  .benefices { grid-template-columns: minmax(0, 1fr); align-self: start; }
  .scene { --s: 420px; margin: 0 auto; align-self: center; }
}
@media (min-width: 1200px) {
  .scene { --s: 500px; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-creme { background: var(--va-creme); }
.section-tete { max-width: 42rem; margin-bottom: 2.5rem; }

/* Les boîtes : trois boîtes et les grandes quantités ; les petits vers en tête de carte donnent l'échelle */
.boites { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .boites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .boites { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.carte-boite { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--va-ligne); border-radius: 20px; padding: 1.6rem 1.4rem 1.4rem;
               transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.carte-boite:hover, .carte-boite:focus-within { transform: translateY(-3px); box-shadow: var(--va-ombre); border-color: #e2d2bf; }
.carte-boite-vers { display: flex; justify-content: center; gap: 2px; height: 20px; margin-bottom: .9rem; }
.carte-boite-vers .petit-ver { width: 34px; height: 19px; }
.carte-boite-vers .petit-ver:nth-child(even) { translate: 0 2px; }
[dir="rtl"] .carte-boite-vers .petit-ver { scale: -1 1; }
.carte-boite-nom { font-size: 1.05rem; font-weight: 600; color: var(--va-texte); margin-bottom: .2rem; }
.carte-boite-nombre { margin: 0; color: var(--va-encre); font-size: 1.05rem; }
.carte-boite-nombre b { font-size: 2.4rem; font-weight: 700; line-height: 1.15; color: var(--va-brun); }
.carte-boite-nombre span { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: .15rem; font-size: .85rem; font-weight: 500; color: var(--va-vert); }
.carte-boite-prix { align-self: stretch; margin: 1rem 0 1.2rem; padding-top: 1rem; border-top: 1px dashed #e2d2bf; font-size: 1.1rem; color: var(--va-texte); }
.carte-boite-prix b { font-size: 1.9rem; font-weight: 700; color: var(--va-encre); }
.carte-boite .btn { align-self: stretch; margin-top: auto; }
.carte-grande { background: var(--va-peche); border: 1.5px dashed var(--va-caramel); }
.carte-grande .carte-boite-nombre { font-size: .98rem; color: var(--va-texte); max-width: 15rem; }
.carte-grande .carte-boite-prix { border-top-color: rgba(102, 60, 29, .25); }
.boites-conseil { margin: 1.8rem 0 0; color: var(--va-texte); }
.boites-conseil .ico { font-size: 1.15rem; color: var(--va-vert); margin-inline-end: .45rem; vertical-align: -.2em; }
.boites-conseil a { font-weight: 600; }

/* Pourquoi nous : la vraie photo, et quatre preuves */
.photo-cadre { position: relative; margin: 0; max-width: 470px; margin-inline: auto; }
.photo-cadre img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 24px 50px rgba(75, 43, 17, .18); }
.pionniers { position: absolute; inset-inline: .9rem; bottom: .9rem; display: flex; align-items: flex-start; gap: .8rem; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px);
             border-radius: 16px; padding: .9rem 1rem; box-shadow: 0 10px 30px rgba(46, 28, 15, .18); font-size: .9rem; color: var(--va-texte); }
.pionniers b { display: block; color: var(--va-encre); font-size: 1rem; font-weight: 600; }
.pionniers a { font-weight: 600; white-space: nowrap; }
.preuves { display: grid; gap: 1.6rem 2rem; }
@media (min-width: 576px) { .preuves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.preuve h3 { font-size: 1.1rem; font-weight: 600; margin: .9rem 0 .35rem; }
.preuve p { color: var(--va-texte); margin: 0; }

/* Commander : trois étapes */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.etapes li { position: relative; padding-top: 1.25rem; }
.etapes li::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--va-ligne); }
.etapes li::after { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 56px; height: 2px; background: var(--va-pousse); transform-origin: left center; }
[dir="rtl"] .etapes li::after { transform-origin: right center; }
.etapes .num { display: block; font-weight: 700; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; color: var(--va-vert); margin-bottom: .8rem; }
.etapes h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .45rem; }
.etapes p { color: var(--va-texte); margin: 0; }
@media (min-width: 768px) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* Le bandeau brun : le ver sort de son colis et dépasse du cadre */
.bandeau { position: relative; margin-top: 6rem; border-radius: 24px; padding: 0 1.5rem 2.2rem; color: #fff; box-shadow: 0 30px 60px rgba(75, 43, 17, .22);
           background: radial-gradient(120% 140% at 85% 0%, #8a5631 0%, var(--va-brun) 48%, #3e2410 100%); }
[dir="rtl"] .bandeau { background: radial-gradient(120% 140% at 15% 0%, #8a5631 0%, var(--va-brun) 48%, #3e2410 100%); }
.bandeau-ver { display: block; width: 170px; height: auto; margin: 0 auto .6rem; translate: 0 -55px; margin-bottom: -40px; }
.bandeau .surtitre { color: #f3d3ae; }
.bandeau-titre { font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; color: #fff; margin-bottom: .8rem; }
.bandeau-titre .point { color: #b9d23a; }
.bandeau-intro { color: rgba(255, 255, 255, .86); max-width: 34rem; margin-bottom: 0; }
.bandeau-liens { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
@media (min-width: 992px) {
  .bandeau { padding: 3rem 3rem 3rem 330px; }
  [dir="rtl"] .bandeau { padding: 3rem 330px 3rem 3rem; }
  .bandeau-ver { position: absolute; inset-inline-start: 50px; bottom: 0; width: 250px; margin: 0; translate: none; }
}

/* Questions fréquentes : <details>, sans JavaScript */
.faq details { background: #fff; border: 1px solid var(--va-ligne); border-radius: 14px; margin-bottom: .75rem; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* La flèche pointe vers le bas dans les deux langues : bordures physiques, pas logiques (en arabe, elles s'inverseraient) */
.faq summary::after { content: ''; flex: none; width: .55rem; height: .55rem; margin-top: -.3rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate .25s ease, margin .25s ease; }
.faq details[open] summary { color: var(--va-brun); }
.faq details[open] summary::after { rotate: 225deg; margin-top: .3rem; }
.faq details p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--va-texte); }

/* ---------- Pied de page ---------- */
.pied { background: var(--va-creme); border-top: 1px solid var(--va-ligne); padding: 3.5rem 0 6rem; }
.pied-texte { color: var(--va-texte); margin: 1rem 0 0; max-width: 28rem; }
.pied-titre { font-weight: 600; color: var(--va-encre); margin-bottom: .8rem; }
.pied ul li { margin-bottom: .45rem; }
.pied a { color: var(--va-texte); text-decoration: none; }
.pied a:hover { color: var(--va-brun); }
.pied .marque { color: var(--va-brun); }
.pied-contact a { display: inline-flex; align-items: center; gap: .5rem; }
.pied-contact .ico { color: var(--va-brun); }
.pied-bas { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--va-ligne); color: var(--va-texte); font-size: .9rem; }
@media (min-width: 992px) { .pied { padding-bottom: 2rem; } }

/* WhatsApp toujours à portée de main sur téléphone, une fois l'en-tête de page dépassé (site.js ajoute .cache tout en haut) */
.whatsapp-flottant { position: fixed; z-index: 1030; bottom: 16px; inset-inline-end: 16px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
                     background: var(--va-vert); color: #fff; font-size: 1.6rem; box-shadow: 0 10px 26px rgba(46, 28, 15, .28); transition: opacity .25s ease, translate .25s ease; }
.whatsapp-flottant:hover { color: #fff; background: var(--va-vert-fonce); }
.whatsapp-flottant.cache { opacity: 0; translate: 0 20px; pointer-events: none; }
@media (min-width: 992px) { .whatsapp-flottant { display: none; } }

/* ---------- Apparition des blocs au défilement (js/site.js) ----------
   site.js ne cache que les blocs encore sous l'écran au chargement, puis les révèle une seule fois.
   Sans JavaScript, ou si le visiteur a coupé les animations, tout reste simplement visible. */
.titre-section .point, .bandeau-titre .point { display: inline-block; }
.boite:nth-child(2), .preuve:nth-child(2), .etapes li:nth-child(2) { --delai: .1s; }
.boite:nth-child(3), .preuve:nth-child(3), .etapes li:nth-child(3) { --delai: .2s; }
.boite:nth-child(4), .preuve:nth-child(4) { --delai: .3s; }

.a-apparaitre { opacity: 0; translate: 0 28px;
                transition: opacity .7s ease var(--delai, 0s), translate .8s cubic-bezier(.2, .8, .2, 1) var(--delai, 0s), scale .8s cubic-bezier(.2, .8, .2, 1) var(--delai, 0s); }
.a-apparaitre[data-apparition="zoom"] { translate: 0 14px; scale: .94; }
.a-apparaitre.apparu { opacity: 1; translate: 0 0; scale: 1; }

/* Le point vert des titres arrive en dernier, d'un petit rebond */
.a-apparaitre .point { scale: 0; transition: scale .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--delai, 0s) + .45s); }
.a-apparaitre.apparu .point { scale: 1; }
/* Étapes : le trait vert se dessine au-dessus de chaque étape */
.etapes li.a-apparaitre::after { scale: 0 1; transition: scale .7s cubic-bezier(.2, .8, .2, 1) calc(var(--delai, 0s) + .25s); }
.etapes li.a-apparaitre.apparu::after { scale: 1 1; }
/* Preuves : les pastilles s'ouvrent */
.preuve.a-apparaitre .pastille { opacity: 0; scale: .5; transition: opacity .4s ease calc(var(--delai, 0s) + .2s), scale .5s cubic-bezier(.3, 1.5, .5, 1) calc(var(--delai, 0s) + .2s); }
.preuve.a-apparaitre.apparu .pastille { opacity: 1; scale: 1; }

@media print {
  .a-apparaitre, .a-apparaitre .point, .preuve.a-apparaitre .pastille { opacity: 1 !important; translate: none !important; scale: 1 !important; }
  .barre, .whatsapp-flottant { display: none; }
}

/* ==================== Page 404 ==================== */
.erreur { padding: 3rem 0 4.5rem; text-align: center; }
.erreur-ver { width: 210px; height: auto; margin: 0 auto 1.2rem; display: block; }
.erreur .titre-section { margin-bottom: .8rem; }
.erreur .section-intro { margin-inline: auto; }
.erreur-autre { margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--va-ligne); max-width: 30rem; color: var(--va-texte); }
.erreur .hero-actions { justify-content: center; }
@media (min-width: 768px) { .erreur-ver { width: 260px; } }

/* Le visiteur a coupé les animations dans son système : tout est en place d'emblée */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ver-accueil, .anneau, .medaillon, .medaillon-disque, .fleches, .satellite { animation: none; }
  .hero .surtitre, .titre-hero .mot > span, .titre-hero .point, .hero .filet path, .hero-intro, .hero-actions, .benefices li, .brille::before { animation: none; }
  .ver-accueil, .whatsapp-flottant { transition: none; }
}
