/* Finhoua — un service maroclic. Univers « étiquette d'inventaire ».
   Polices hébergées sur le site (licence OFL) : Archivo (titres, large), Public Sans (texte),
   Spline Sans Mono (codes du matériel), IBM Plex Sans Arabic (arabe). */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('polices/archivo-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('polices/public-sans-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('polices/spline-sans-mono-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('polices/plex-sans-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('polices/plex-sans-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --encre: #1E1220;
  --prune: #4A1942;
  --prune-fonce: #3B1238;
  --lilas: #F7F1F5;
  --lilas-2: #EDDDE8;
  --blanc: #FFFFFF;
  --magenta: #D6336C;
  --trait: #DCC9D6;
  --gris: #604E5C;
  --f-titre: 'Archivo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-texte: 'Public Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-code: 'Spline Sans Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
  --marge: clamp(18px, 5vw, 56px);
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--lilas); color: var(--encre); font: 400 17px/1.55 var(--f-texte); }
img, svg { display: block; max-width: 100%; }
a { color: var(--prune); text-underline-offset: 3px; }
a:hover { color: var(--prune-fonce); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-titre); margin: 0; line-height: 1.05; }
p { margin: 0; }
.envelop { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--marge); }
.code { font-family: var(--f-code); font-size: .92em; letter-spacing: -.01em; }
.saut { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; padding: 8px 12px; background: var(--blanc); }
.saut:focus { top: 12px; }

/* ---------- En-tête ---------- */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; }
.marque img { width: 38px; height: 38px; }
.marque__nom { font: 800 23px/1 var(--f-titre); font-stretch: 118%; letter-spacing: -.02em; }
.marque__ar { font: 700 15px/1 var(--f-titre); color: var(--prune); }
.hdr__actions { display: flex; align-items: center; gap: 14px; }
.hdr__langue { font-weight: 600; text-decoration: none; }
.hdr .btn { display: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 700 16px/1.1 var(--f-texte); text-decoration: none; transition: background .15s, transform .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--plein { background: var(--prune); color: var(--blanc); }
.btn--plein:hover { background: var(--prune-fonce); color: var(--blanc); transform: translateY(-1px); }
.btn--clair { background: var(--blanc); color: var(--prune); }
.btn--clair:hover { background: var(--lilas-2); color: var(--prune-fonce); }
.btn--trait { color: var(--encre); box-shadow: inset 0 0 0 2px var(--trait); }
.btn--trait:hover { color: var(--encre); box-shadow: inset 0 0 0 2px var(--prune); }

/* ---------- Héros ---------- */
.heros { display: grid; gap: 40px; padding-top: 18px; padding-bottom: 72px; }
.statut { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); font: 600 14px/1.2 var(--f-texte); color: var(--gris); }
.statut::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px rgba(214, 51, 108, .16); }
.heros h1 { margin-top: 20px; font-weight: 800; font-stretch: 116%; font-size: clamp(40px, 10.5vw, 80px); line-height: .96; letter-spacing: -.035em; }
.heros h1 em { font-style: normal; color: var(--prune); }
.heros__texte { margin-top: 22px; max-width: 34em; font-size: 19px; color: var(--gris); }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.heros__note { margin-top: 16px; font-size: 15px; color: var(--gris); }

/* Téléphone : conversation fictive */
.demo { justify-self: center; width: 100%; max-width: 380px; margin: 0; }
.demo__legende { margin-bottom: 10px; text-align: center; font: 500 13px/1.3 var(--f-code); color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.tel { border-radius: 38px; padding: 10px; background: var(--encre); box-shadow: 0 30px 60px -28px rgba(30, 18, 32, .55); }
.tel__ecran { border-radius: 29px; overflow: hidden; background-color: #F3E9F0; background-image: radial-gradient(rgba(74, 25, 66, .08) 1px, transparent 1.5px); background-size: 14px 14px; }
.tel__barre { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--prune); color: var(--blanc); }
.tel__barre img { width: 34px; height: 34px; border-radius: 50%; background: var(--blanc); padding: 4px; }
.tel__qui { font: 700 16px/1.1 var(--f-texte); }
.tel__sous { font-size: 12.5px; opacity: .8; }
.fil { display: flex; flex-direction: column; gap: 9px; padding: 16px 12px 20px; font-size: 14.5px; line-height: 1.4; }
.bulle { max-width: 86%; padding: 9px 12px; border-radius: 14px; background: var(--blanc); box-shadow: 0 1px 1px rgba(30, 18, 32, .12); }
.bulle--moi { align-self: flex-end; background: #EBD6E5; border-bottom-right-radius: 4px; }
.bulle--fh { align-self: flex-start; border-bottom-left-radius: 4px; }
.bulle__titre { font-weight: 700; margin-bottom: 4px; }
.recap { margin: 6px 0 2px; padding: 0; list-style: none; font-family: var(--f-code); font-size: 13px; }
.recap li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--trait); }
.recap li:last-child { border-bottom: 0; }
.boutons-wa { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.boutons-wa span { padding: 7px 4px; border-radius: 9px; text-align: center; font-weight: 700; color: var(--prune); background: var(--lilas); }
.jour { align-self: center; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .75); font: 500 12px/1.4 var(--f-code); color: var(--gris); }
.manque { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 30px; color: var(--blanc); background: var(--magenta); font: 700 15px/1.2 var(--f-texte);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); border-radius: 0 10px 10px 0; }
.manque::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #F3E9F0; }

/* Apparition de la conversation, une seule fois au chargement */
.fil > * { animation: entree .45s ease-out both; }
.fil > :nth-child(2) { animation-delay: .5s; }
.fil > :nth-child(3) { animation-delay: 1.2s; }
.fil > :nth-child(4) { animation-delay: 1.7s; }
.fil > :nth-child(5) { animation-delay: 2.1s; }
.fil > :nth-child(6) { animation-delay: 2.8s; }
.fil > :nth-child(7) { animation-delay: 3.4s; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section--blanc { background: var(--blanc); }
.surtitre { font: 600 13px/1.2 var(--f-code); text-transform: uppercase; letter-spacing: .08em; color: var(--prune); }
.section h2 { margin-top: 12px; max-width: 18em; font-weight: 800; font-stretch: 112%; font-size: clamp(30px, 6vw, 48px); letter-spacing: -.03em; }
.section__intro { margin-top: 16px; max-width: 38em; color: var(--gris); }

/* Les trois étapes : des étiquettes suspendues */
.etapes { display: grid; gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: etape; }
.etiquette { position: relative; padding: 26px 24px 26px 58px; border-radius: 0 var(--rayon) var(--rayon) 0; background: var(--lilas); counter-increment: etape;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px), 0 30px); }
.etiquette::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--blanc); box-shadow: inset 0 0 0 3px var(--trait); }
.etiquette__num { font: 600 13px/1 var(--f-code); color: var(--prune); letter-spacing: .06em; }
.etiquette__num::after { content: counter(etape); }
.etiquette h3 { margin-top: 10px; font-weight: 800; font-stretch: 110%; font-size: 24px; letter-spacing: -.02em; }
.etiquette p { margin-top: 8px; color: var(--gris); }
.etiquette .code { color: var(--encre); font-size: 14px; }

/* Pages d'information (confidentialité, mentions légales) */
.doc { max-width: 46em; padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-weight: 800; font-stretch: 112%; font-size: clamp(34px, 7vw, 52px); letter-spacing: -.03em; }
.doc h2 { margin-top: 36px; font-weight: 800; font-stretch: 108%; font-size: 22px; letter-spacing: -.01em; }
.doc p { margin-top: 12px; }
.doc__date { margin-top: 12px; color: var(--gris); font-size: 15px; }
.doc .btn { margin-top: 36px; }
[dir="rtl"] .doc h1, [dir="rtl"] .doc h2 { letter-spacing: 0; font-stretch: 100%; }

/* Ce que Finhoua suivra */
.suivi { display: grid; gap: 1px; margin-top: 36px; border-radius: var(--rayon); overflow: hidden; background: var(--trait); }
.suivi__item { padding: 24px; background: var(--lilas); }
.suivi__item h3 { font-weight: 750; font-stretch: 105%; font-size: 20px; letter-spacing: -.01em; }
.suivi__item p { margin-top: 8px; color: var(--gris); }
.suivi__exemple { display: inline-block; margin-top: 12px; padding: 4px 9px; border-radius: 6px; background: var(--blanc); font: 500 13px/1.4 var(--f-code); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait); }

/* Règles et limites */
.regles { display: grid; gap: 22px; margin-top: 36px; }
.regles__bloc { padding: 26px 24px; border-radius: var(--rayon); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); }
.regles__bloc--non { background: transparent; box-shadow: none; border: 2px dashed var(--trait); }
.regles__bloc h3 { font-weight: 800; font-stretch: 108%; font-size: 21px; }
.liste { margin: 14px 0 0; padding: 0; list-style: none; }
.liste li { position: relative; padding: 9px 0 9px 32px; border-top: 1px solid var(--trait); }
.liste li:first-child { border-top: 0; }
.liste li::before { position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; text-align: center; font: 700 14px/22px var(--f-texte); }
.liste--oui li::before { content: "✓"; color: var(--blanc); background: var(--prune); }
.liste--non li::before { content: "–"; color: var(--gris); background: var(--lilas-2); }

/* Pour qui */
.metiers { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.metiers li { padding: 10px 16px 10px 30px; position: relative; border-radius: 0 10px 10px 0; background: var(--blanc); font-weight: 600;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.metiers li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--lilas-2); }

/* Questions */
.faq { margin-top: 30px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 700 18px/1.3 var(--f-texte); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 24px/1 var(--f-code); color: var(--prune); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; max-width: 42em; color: var(--gris); }

/* Appel final */
.appel { padding-top: 64px; padding-bottom: 64px; background: var(--prune); color: var(--blanc); }
.appel h2 { color: var(--blanc); font-weight: 800; font-stretch: 114%; font-size: clamp(30px, 6vw, 50px); letter-spacing: -.03em; max-width: 16em; }
.appel p { margin-top: 14px; max-width: 34em; opacity: .9; }
.appel .btn { margin-top: 28px; }
.appel a:not(.btn) { color: var(--blanc); }

/* Pied de page */
.pied { padding-top: 36px; padding-bottom: 110px; font-size: 15px; color: var(--gris); }
.pied__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 18px; }
.pied .marque img { width: 30px; height: 30px; }
.pied .marque__nom { font-size: 19px; }
.pied__service { margin-top: 18px; }

/* Bouton WhatsApp flottant */
.flottant { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 9px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--prune); color: var(--blanc); text-decoration: none; font: 700 15px/1 var(--f-texte); box-shadow: 0 14px 30px -12px rgba(30, 18, 32, .6); }
.flottant:hover { background: var(--prune-fonce); color: var(--blanc); }
.flottant svg { width: 22px; height: 22px; }

/* Fenêtre de discussion commune (assets/chat-web.css, v3) aux couleurs de Finhoua.
   « body .cw » : chat-web.css est chargé après ce fichier, un simple « .cw » perdait. Le bouton WhatsApp du widget
   garde son texte blanc au survol (sinon « a:hover » ci-dessus le passait en prune sur fond vert). */
body .cw { --cw-accent: #4A1942; --cw-accent-texte: #FFFFFF; --cw-moi-texte: #FFFFFF; }
body .cw a.cw__wa, body .cw a.cw__wa:hover { color: var(--cw-wa-texte); }

/* ---------- Arabe (droite à gauche) ---------- */
[dir="rtl"] body { font-size: 18px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .marque__nom { letter-spacing: 0; font-stretch: 100%; }
[dir="rtl"] .heros h1 { line-height: 1.2; }
[dir="rtl"] .surtitre, [dir="rtl"] .demo__legende, [dir="rtl"] .jour, [dir="rtl"] .recap { letter-spacing: 0; text-transform: none; font-family: var(--f-texte); }
[dir="rtl"] .bulle--moi { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
[dir="rtl"] .bulle--fh { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
[dir="rtl"] .manque, [dir="rtl"] .metiers li { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 10px 0 0 10px; padding: 9px 30px 9px 16px; }
[dir="rtl"] .manque::before, [dir="rtl"] .metiers li::before { left: auto; right: 13px; }
[dir="rtl"] .metiers li { padding: 10px 30px 10px 16px; }
[dir="rtl"] .etiquette { padding: 26px 58px 26px 24px; border-radius: var(--rayon) 0 0 var(--rayon); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }
[dir="rtl"] .etiquette::before { left: auto; right: 16px; }
[dir="rtl"] .liste li { padding: 9px 32px 9px 0; }
[dir="rtl"] .liste li::before { left: auto; right: 0; }
[dir="rtl"] .flottant { right: auto; left: 18px; }
[dir="rtl"] .code { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .suivi { grid-template-columns: 1fr 1fr; }
  .regles { grid-template-columns: 1fr 1fr; }
  .hdr .btn { display: inline-flex; min-height: 44px; padding: 0 18px; font-size: 15px; }
}
@media (min-width: 980px) {
  .heros { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding-top: 36px; padding-bottom: 96px; }
  .heros h1 { font-size: clamp(52px, 5.4vw, 72px); }
  .section { padding-top: 96px; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fil > * { animation: none; }
  .btn, .btn--plein:hover { transition: none; transform: none; }
}

/* ---------- Bandeau : mesure des publicités Meta (consentement.js, 04/11/2026, modèle maroclic.com 1e0b0bc) ----------
   Au-dessus du bouton WhatsApp flottant, qui reste visible ; côté du début de ligne (gauche en français, droite en arabe).
   Refuser et Accepter ont le même poids : même taille, même style. */
.cmp { position: fixed; z-index: 30; inset-inline: 16px; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 68px); max-width: 560px; box-sizing: border-box; display: grid; gap: 12px; padding: 16px 18px; background: var(--blanc); color: var(--encre); border: 1px solid var(--trait); border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(30, 18, 32, .45); font: 400 15px/1.5 var(--f-texte); }
.cmp__texte { margin: 0; }
.cmp__texte a { color: var(--prune); font-weight: 700; }
.cmp__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp__btn { flex: 1 1 110px; min-height: 48px; border: 0; cursor: pointer; }
.cmp__btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
@media print { .cmp { display: none; } }
