/* OPTICLEAN — feuille de style unique. Propriétés logiques partout : le même CSS sert le français (LTR) et l'arabe (RTL). */
:root {
  --marine: #103b6c;
  --marine-2: #174c86;
  --turquoise: #1aaeac;
  --turquoise-vif: #35d6d0;
  --turquoise-fonce: #0e7c79;
  --nuit: #06162e;
  --fond: #f4f8fb;
  --fond-2: #eaf2f8;
  --blanc: #ffffff;
  --texte: #1c2430;
  --texte-doux: #4a5565;
  --bord: #dde7f0;
  --or: #b98a3a;
  --wa: #1c9a52;
  --rayon: 18px;
  --rayon-s: 12px;
  --ombre: 0 1px 2px rgba(16, 59, 108, .06), 0 12px 32px -12px rgba(16, 59, 108, .18);
  --ombre-forte: 0 24px 60px -20px rgba(6, 22, 46, .45);
  --police: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --entete: 72px;
  color-scheme: light;
}
html[lang="ar"] { --police: "Cairo", "Segoe UI", Tahoma, system-ui, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.65; color: var(--texte); background: var(--blanc); overflow-x: hidden; }
html[lang="ar"] body { line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--marine); text-underline-offset: 3px; }
a:hover { color: var(--turquoise-fonce); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; color: var(--marine); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--marine); color: #fff; padding: 10px 16px; border-radius: 10px; }
.lien-evitement:focus { top: 12px; color: #fff; }

.conteneur { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .conteneur { padding-inline: 28px; } }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--fond { background: var(--fond); }
.section--marine { background: radial-gradient(120% 140% at 80% 0%, #1a5596 0%, var(--marine) 45%, var(--nuit) 100%); color: #dfe9f5; }
.section--marine h2, .section--marine h3 { color: #fff; }
.entete-section { max-width: 720px; margin-block-end: clamp(28px, 4vw, 48px); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--turquoise-fonce); margin: 0 0 14px; }
html[lang="ar"] .surtitre { letter-spacing: 0; font-size: .95rem; }
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--marine .surtitre, .hero .surtitre { color: var(--turquoise-vif); }
.chapeau { font-size: 1.1rem; color: var(--texte-doux); }
.section--marine .chapeau { color: #c4d5ea; }

/* Boutons */
.btn { --bg: var(--turquoise-fonce); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; text-align: center; }
.btn:hover { --bg: #0b6664; color: var(--fg); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(14, 124, 121, .7); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--vif { --bg: var(--turquoise-vif); --fg: var(--nuit); }
.btn--vif:hover { --bg: #5fe2dc; --fg: var(--nuit); }
.btn--contour { --bg: transparent; --fg: var(--marine); border-color: var(--marine); }
.btn--contour:hover { --bg: var(--marine); --fg: #fff; }
.btn--contour-clair { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--contour-clair:hover { --bg: rgba(255, 255, 255, .12); --fg: #fff; border-color: #fff; }
.btn--wa { --bg: var(--wa); }
.btn--wa:hover { --bg: #16804a; }
.btn--plein { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
[dir="rtl"] .icone-fleche { transform: scaleX(-1); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bord); }
.entete__barre { display: flex; align-items: center; gap: 16px; min-height: var(--entete); }
.entete__logo { display: inline-flex; flex: none; padding-block: 8px; }
.entete__logo img { width: 168px; height: auto; }
.nav { margin-inline-start: auto; }
.nav__liste { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__lien { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--texte); text-decoration: none; }
.nav__lien:hover { background: var(--fond); color: var(--marine); }
.nav__lien[aria-current="page"] { color: var(--marine); background: var(--fond-2); }
.entete__actions { display: flex; align-items: center; gap: 10px; }
.langue { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--bord); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--marine); white-space: nowrap; }
.langue:hover { border-color: var(--marine); }
.langue svg { width: 18px; height: 18px; }
.langue[lang="ar"] { font-family: "Cairo", Tahoma, sans-serif; font-size: 1rem; }
.langue[lang="fr"] { font-family: "Montserrat", "Segoe UI", sans-serif; }
.entete .btn { min-height: 42px; padding: 9px 16px; font-size: .9rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--bord); background: #fff; color: var(--marine); align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
@media (max-width: 1080px) {
  .entete__cta-texte { display: none; }
  .entete .btn--wa { padding-inline: 12px; }
}
@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .entete__logo img { width: 146px; }
  .entete__actions { margin-inline-start: auto; }
  .nav { position: fixed; inset: var(--entete) 0 auto 0; margin: 0; background: #fff; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre); padding: 8px 16px 18px; display: none; max-height: calc(100vh - var(--entete)); overflow-y: auto; }
  .nav.est-ouvert { display: block; }
  .nav__liste { flex-direction: column; }
  .nav__lien { padding: 14px 12px; font-size: 1.02rem; }
}
@media (max-width: 420px) {
  .entete__logo img { width: 124px; }
  .entete .btn--wa { display: none; }
  .langue { padding: 8px 10px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #dfe9f5; background: radial-gradient(110% 120% at 75% 30%, #1a5596 0%, var(--marine) 42%, var(--nuit) 100%); min-height: clamp(600px, calc(100svh - var(--entete)), 860px); display: flex; align-items: center; }
.hero3d { position: absolute; inset: 0; z-index: -2; background-color: var(--nuit); background-image: url("/assets/img/hero/poster.jpg"); background-size: cover; background-position: 70% 50%; }
.hero3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero3d.est-pret { background-image: none; }
/* Accueil : vidéo de fond (flacon à droite en français, à gauche en arabe) ; l'image fixe sert d'attente */
.hero3d--video { background-image: url("/assets/video/hero-fr.jpg"); background-position: 73% 45%; }
[dir="rtl"] .hero3d--video { background-image: url("/assets/video/hero-ar.jpg"); background-position: 27% 45%; }
.hero3d__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 73% 45%; }
[dir="rtl"] .hero3d__video { object-position: 27% 45%; }
.hero__voile { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(6, 22, 46, .88) 0%, rgba(6, 22, 46, .62) 38%, rgba(6, 22, 46, 0) 66%); }
[dir="rtl"] .hero__voile { background: linear-gradient(270deg, rgba(6, 22, 46, .88) 0%, rgba(6, 22, 46, .62) 38%, rgba(6, 22, 46, 0) 66%); }
.hero__contenu { position: relative; padding-block: 64px; }
.hero__bloc { max-width: 560px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: .45em; }
.hero h1 span { color: var(--turquoise-vif); }
.hero__texte { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #c9d8ea; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: .9rem; color: #9fb6d2; display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 18px; height: 18px; color: var(--turquoise-vif); flex: none; }
/* Décalage de la scène 3D (lu par hero.js) : objets côté fin de ligne sur grand écran */
.hero3d { --hero-dx: .21; --hero-dy: 0; }
.hero__bloc { max-width: min(560px, 46vw); }
@media (max-width: 980px) {
  /* Mise en page empilée : la scène 3D occupe une zone en haut, le texte vient dessous (aucun chevauchement) */
  .hero { --zone3d: clamp(250px, 40svh, 380px); display: block; min-height: 0; background: var(--nuit); }
  .hero3d { --hero-dx: 0; --hero-dy: .05; inset: 0 0 auto 0; height: calc(var(--zone3d) + 56px); background-position: 50% 30%; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
  .hero3d--video, .hero3d__video { background-position: 100% 40%; object-position: 100% 40%; }
  [dir="rtl"] .hero3d--video, [dir="rtl"] .hero3d__video { background-position: 0% 40%; object-position: 0% 40%; }
  .hero__voile, [dir="rtl"] .hero__voile { display: none; }
  .hero__contenu { padding-block: calc(var(--zone3d) + 4px) 40px; }
  .hero__bloc { max-width: 640px; }
}
@media (max-width: 760px) { .hero__actions .btn { width: 100%; } }

/* Bandeau de confiance */
.confiance { background: #fff; border-bottom: 1px solid var(--bord); }
.confiance__liste { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.confiance__item { display: flex; gap: 12px; align-items: flex-start; }
.confiance__icone { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--fond-2); color: var(--turquoise-fonce); display: grid; place-items: center; }
.confiance__icone svg { width: 22px; height: 22px; }
.confiance__item strong { display: block; color: var(--marine); font-size: .95rem; line-height: 1.3; }
.confiance__item span { font-size: .85rem; color: var(--texte-doux); line-height: 1.45; display: block; margin-top: 2px; }
@media (max-width: 900px) { .confiance__liste { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .confiance__liste { grid-template-columns: 1fr; gap: 14px; } }

/* Cartes produits (accueil) */
.grille-produits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ombre); transition: transform .2s ease, box-shadow .2s ease; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 59, 108, .06), 0 22px 44px -18px rgba(16, 59, 108, .28); }
.grille-produits .carte { grid-column: span 2; }
.grille-produits .carte:nth-child(4), .grille-produits .carte:nth-child(5) { grid-column: span 3; }
.carte__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f7fafd 0%, #e4edf6 100%); overflow: hidden; }
.carte__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte:hover .carte__media img { transform: scale(1.04); }
.carte__etiquette { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255, 255, 255, .92); color: var(--marine); font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.carte__corps { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte__corps h3 { margin: 0; }
.carte__corps p { margin: 0; color: var(--texte-doux); font-size: .95rem; }
.carte__min { font-size: .82rem; font-weight: 700; color: var(--turquoise-fonce); }
.carte__lien { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.carte__lien svg { width: 18px; height: 18px; }
@media (max-width: 980px) { .grille-produits { grid-template-columns: repeat(2, 1fr); } .grille-produits .carte, .grille-produits .carte:nth-child(4), .grille-produits .carte:nth-child(5) { grid-column: span 1; } .grille-produits .carte:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .grille-produits { grid-template-columns: 1fr; } .grille-produits .carte:nth-child(5) { grid-column: auto; } }

/* Média absent : fond propre + pictogramme */
.media--vide { background: linear-gradient(160deg, #f7fafd 0%, #e2ecf6 100%); }
.media--vide img { display: none !important; }
.media--vide::after { content: ""; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; opacity: .35; background: url("/assets/img/logo/favicon.png") center / contain no-repeat; }

/* Pourquoi la marque blanche */
.pourquoi { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pourquoi__visuel { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--ombre-forte); background: #e8f0f7; aspect-ratio: 16 / 11; }
.pourquoi__visuel img { width: 100%; height: 100%; object-fit: cover; }
.citation { margin: 28px 0 0; padding: 18px 22px; border-inline-start: 4px solid var(--turquoise); background: rgba(255, 255, 255, .06); border-radius: 0 14px 14px 0; font-size: 1.1rem; font-weight: 600; color: #fff; }
[dir="rtl"] .citation { border-radius: 14px 0 0 14px; }
.avantages { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.avantages li { display: flex; gap: 12px; }
.avantages svg { width: 26px; height: 26px; flex: none; color: var(--turquoise-vif); margin-top: 2px; }
.avantages strong { display: block; color: #fff; }
.avantages span { display: block; font-size: .92rem; color: #b9cbe2; }
@media (max-width: 900px) { .pourquoi { grid-template-columns: 1fr; } .avantages { grid-template-columns: 1fr; } }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: etape; }
.etapes--5 { grid-template-columns: repeat(5, 1fr); }
.etape { position: relative; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 22px 24px; counter-increment: etape; box-shadow: var(--ombre); }
.etape::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marine); color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.etape:last-child::before { background: var(--turquoise-fonce); }
.etape h3 { margin-bottom: 6px; }
.etape p { margin: 0; font-size: .95rem; color: var(--texte-doux); }
@media (max-width: 1060px) { .etapes--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .etapes, .etapes--5 { grid-template-columns: 1fr; } }
.centre-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* Réalisations */
.galerie { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client { margin: 0; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.client__media { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #f7fafd 0%, #e2ecf6 100%); }
.client__media img { width: 100%; height: 100%; object-fit: cover; }
.client figcaption { padding: 12px 14px 14px; }
.client strong { display: block; color: var(--marine); font-size: .95rem; line-height: 1.3; }
.client span { font-size: .85rem; color: var(--texte-doux); }
@media (max-width: 980px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .galerie { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.temoignages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.temoignage { margin: 0; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; }
.temoignage blockquote { margin: 0 0 12px; font-size: 1.02rem; color: var(--texte); }
.temoignage figcaption { font-size: .9rem; color: var(--texte-doux); }
.bandeau-photo { margin-top: 40px; border-radius: 24px; overflow: hidden; position: relative; background: #e8f0f7; aspect-ratio: 16 / 9; box-shadow: var(--ombre); }
.bandeau-photo img { width: 100%; height: 100%; object-fit: cover; }
.bandeau-photo figcaption { position: absolute; inset-inline-start: 16px; bottom: 16px; background: rgba(6, 22, 46, .72); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: .88rem; }

/* Encart échantillon & CTA */
.encart { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 160% at 100% 0%, #1a5596 0%, var(--marine) 45%, var(--nuit) 100%); color: #d5e2f1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; box-shadow: var(--ombre-forte); }
.encart h2 { color: #fff; }
.encart p { color: #c4d5ea; }
.encart__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.encart__deco { position: absolute; inset-inline-end: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(53, 214, 208, .12); pointer-events: none; }
@media (max-width: 820px) { .encart { grid-template-columns: 1fr; } }
.cta-final { text-align: center; max-width: 760px; margin-inline: auto; }
.cta-final p { color: var(--texte-doux); font-size: 1.08rem; }

/* Page intérieure : bandeau titre */
.bandeau { background: radial-gradient(120% 160% at 90% 0%, #1a5596 0%, var(--marine) 45%, var(--nuit) 100%); color: #d1def0; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.bandeau h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.bandeau p { max-width: 700px; font-size: 1.1rem; color: #c4d5ea; margin: 0; }
.fil { font-size: .85rem; margin: 0 0 14px; color: #9fb6d2; }
.fil a { color: #cfe0f3; }

/* Page produits */
.outil-devis { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px 20px; box-shadow: var(--ombre); margin-top: -36px; position: relative; z-index: 2; }
.outil-devis .champ { flex: 1 1 260px; margin: 0; }
.outil-devis p { flex: 1 1 280px; margin: 0; font-size: .92rem; color: var(--texte-doux); }
.produit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--bord); }
.produit:last-of-type { border-bottom: 0; }
.produit:nth-of-type(even) .produit__media { order: 2; }
.produit__media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #f7fafd 0%, #e2ecf6 100%); box-shadow: var(--ombre); }
.produit__media img { width: 100%; height: 100%; object-fit: cover; }
.produit__tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--turquoise-fonce); background: #e3f5f4; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.produit h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.produit__texte { color: var(--texte-doux); font-size: 1.02rem; }
.produit__texte strong { color: var(--marine); }
.points { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--turquoise-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.paliers { border: 0; margin: 0 0 16px; padding: 0; }
.paliers legend { font-weight: 700; color: var(--marine); margin-bottom: 10px; padding: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; }
.puce input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puce span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--bord); background: #fff; font-weight: 700; font-size: .92rem; color: var(--texte); cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.puce input:hover + span { border-color: var(--marine); }
.puce input:checked + span { background: var(--marine); border-color: var(--marine); color: #fff; }
.puce input:focus-visible + span { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.qte-libre { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.qte-libre label { font-size: .9rem; color: var(--texte-doux); }
.qte-libre input { width: 140px; }
.note-min { font-size: .88rem; color: var(--texte-doux); margin: 8px 0 18px; }
.note-min strong { color: var(--marine); }
.alerte { font-size: .88rem; color: #9b2c2c; margin: 6px 0 0; min-height: 1.2em; }
@media (max-width: 820px) { .produit { grid-template-columns: 1fr; } .produit:nth-of-type(even) .produit__media { order: 0; } .produit__media { aspect-ratio: 4 / 3; } }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.champ label, .etiquette-champ { font-weight: 700; font-size: .92rem; color: var(--marine); }
.champ small, .aide { font-size: .84rem; color: var(--texte-doux); }
input[type="text"], input[type="tel"], input[type="number"], select { font: inherit; font-size: 1rem; color: var(--texte); background: #fff; border: 1.5px solid #cfdbe7; border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; }
input:hover, select:hover { border-color: #9fb3c8; }
input:focus-visible, select:focus-visible { outline: 3px solid rgba(26, 174, 172, .45); outline-offset: 1px; border-color: var(--turquoise-fonce); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; margin: 4px 0 18px; }
.case input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--turquoise-fonce); flex: none; }
.depot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #b8c8d8; border-radius: 14px; background: var(--fond); }
.depot__vignette { width: 64px; height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--bord); display: grid; place-items: center; overflow: hidden; flex: none; }
.depot__vignette img { max-width: 100%; max-height: 100%; object-fit: contain; }
.depot__vignette svg { width: 28px; height: 28px; color: #9fb3c8; }
.depot input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot .btn { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.depot__nom { font-size: .88rem; color: var(--texte-doux); word-break: break-all; flex: 1 1 140px; }
.lien-bouton { background: none; border: 0; padding: 4px; font: inherit; font-size: .88rem; color: #9b2c2c; text-decoration: underline; cursor: pointer; }

/* Configurateur */
.config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.config__panneau { background: #fff; border: 1px solid var(--bord); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--ombre); }
.config__apercu { position: sticky; top: calc(var(--entete) + 20px); }
.apercu { position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(90% 80% at 50% 35%, #ffffff 0%, #e6eef6 70%, #d7e3ef 100%); box-shadow: var(--ombre); aspect-ratio: 4 / 5; }
.apercu__scene { position: absolute; inset: 0; display: none; }
.apercu__scene.est-active { display: block; }
.apercu__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.apercu__scene.avec-image { transform: translateX(-13%) scale(1.14); transform-origin: 50% 62%; }
[dir="rtl"] .apercu__scene.avec-image { transform: translateX(13%) scale(1.14); }
.avec-image .etiq--flacon { background: transparent; }
.avec-image .etiq--flacon::after { display: none; }
.apercu__loupe { position: absolute; inset-inline-end: 4%; bottom: 6%; width: 33%; display: flex; flex-direction: column; gap: 6px; }
.apercu__loupe-titre { font-size: .72rem; font-weight: 700; color: var(--texte-doux); text-align: center; }
.apercu__loupe .etiq--plat { position: relative; width: 100%; aspect-ratio: 222 / 420; border-radius: 6px; box-shadow: 0 10px 26px -10px rgba(6, 22, 46, .45); }
.apercu__loupe .etiq--plat::after { display: none; }
.apercu__silhouette { position: absolute; inset: 0; width: 100%; height: 100%; }
.apercu__legende { margin: 12px 4px 0; font-size: .85rem; color: var(--texte-doux); }
.config__actions { display: grid; gap: 10px; margin-top: 8px; }
.rappel { display: flex; gap: 10px; align-items: flex-start; background: #e9f7f6; color: #0b5856; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 8px 0 4px; }
.rappel svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.mention { font-size: .82rem; color: var(--texte-doux); margin-top: 16px; }
@media (max-width: 880px) { .config { grid-template-columns: 1fr; } .config__apercu { position: static; order: -1; max-width: 460px; width: 100%; margin-inline: auto; } }

/* Étiquette d'aperçu (dessinée en HTML) */
.etiq { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fbfbf9; color: #252b36; overflow: hidden; container-type: inline-size; padding: 0; }
.etiq > * { margin-block: 2.2cqi; max-width: 86%; }
.etiq::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20, 40, 70, .22) 0%, rgba(20, 40, 70, 0) 18%, rgba(255, 255, 255, .25) 42%, rgba(20, 40, 70, 0) 70%, rgba(20, 40, 70, .2) 100%); }
.etiq--flacon { border-radius: 2px; }
.etiq__entete { font-size: 6.8cqi; font-weight: 700; letter-spacing: .12em; color: var(--or); line-height: 1.2; }
html[lang="ar"] .etiq__entete { letter-spacing: 0; font-size: 7.5cqi; }
.etiq__zone { width: 86%; border: 1.5px dashed #c3c9d2; border-radius: 6px; padding: 6% 4%; display: flex; flex-direction: column; align-items: center; gap: 4cqi; }
.etiq.a-logo .etiq__zone { border-color: transparent; }
.etiq__logo { max-width: 92%; max-height: 42cqi; object-fit: contain; display: none; }
.etiq.a-logo .etiq__logo { display: block; }
.etiq__picto { width: 40cqi; color: var(--or); }
.etiq.a-logo .etiq__picto { display: none; }
.etiq__nom { font-size: 11cqi; font-weight: 800; line-height: 1.15; color: #252b36; word-break: break-word; max-width: 100%; }
.etiq__indice { font-size: 4.6cqi; color: #9aa1ad; letter-spacing: .08em; }
.etiq.a-logo .etiq__indice { display: none; }
.etiq__metiers { font-size: 4.3cqi; font-weight: 700; color: var(--or); letter-spacing: .06em; line-height: 1.3; }
html[lang="ar"] .etiq__metiers { letter-spacing: 0; font-size: 5.2cqi; }
.etiq__coord { font-size: 5.6cqi; color: #4a5160; line-height: 1.35; word-break: break-word; }
.etiq__vol { font-size: 4.6cqi; font-weight: 700; color: #4a5160; border-top: 1px solid var(--or); padding-top: 2%; width: 70%; }
.etiq--carte { border-radius: 4%; }
.etiq--tissu { background: transparent; color: #fff; }
.etiq--tissu::after { display: none; }
.etiq--tissu .etiq__nom { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.etiq--tissu .etiq__coord { color: rgba(255, 255, 255, .9); }
.etiq--tissu .etiq__zone { border-color: rgba(255, 255, 255, .6); }
.etiq--tissu .etiq__indice { color: rgba(255, 255, 255, .75); }
.etiq--tissu .etiq__picto { color: #fff; }
.etiq--boite { background: transparent; color: #fff; }
.etiq--boite::after { display: none; }
.etiq--boite .etiq__nom { color: #fff; }
.etiq--boite .etiq__coord, .etiq--boite .etiq__indice { color: rgba(255, 255, 255, .85); }
.etiq--boite .etiq__zone { border-color: rgba(255, 255, 255, .5); }
.etiq--boite .etiq__picto, .etiq--boite .etiq__entete, .etiq--boite .etiq__metiers { color: #e9c98d; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 0 20px; box-shadow: 0 1px 2px rgba(16, 59, 108, .05); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--marine); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fond-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23103b6c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--texte-doux); }

/* Texte courant (mentions) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--texte-doux); }
.a-completer { background: #fff3cd; color: #7a5300; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Pied */
.pied { background: var(--nuit); color: #a9bbd3; padding-block: 56px 28px; font-size: .95rem; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pied__logo img { width: 190px; margin-bottom: 14px; }
.pied h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied a { color: #dce7f4; text-decoration: none; }
.pied a:hover { color: var(--turquoise-vif); text-decoration: underline; }
.pied__contact li { display: flex; gap: 10px; align-items: center; }
.pied__contact svg { width: 18px; height: 18px; color: var(--turquoise-vif); flex: none; }
.pied__bas { margin-top: 40px; padding-top: 20px; padding-inline-end: 72px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 820px) { .pied__grille { grid-template-columns: 1fr 1fr; } .pied__marque { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pied__grille { grid-template-columns: 1fr; } }
[dir="ltr"] .ltr-num, .num { direction: ltr; unicode-bidi: isolate; }

/* Bouton WhatsApp flottant */
.wa-flottant { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(6, 22, 46, .55); transition: transform .2s ease; }
.wa-flottant:hover { transform: scale(1.06); color: #fff; }
.wa-flottant svg { width: 32px; height: 32px; }
@media (max-width: 480px) { .wa-flottant { width: 54px; height: 54px; inset-inline-end: 14px; bottom: 14px; } }

/* Apparition douce au défilement */
.reveler { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveler.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveler { opacity: 1; transform: none; } }

/* Blog / conseils */
.bandeau .surtitre { color: var(--turquoise-vif); }
.bandeau__note { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .92rem; }
.bandeau--article h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 900px; }
.grille-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .grille-articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille-articles { grid-template-columns: 1fr; gap: 16px; } }
.article-carte { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); text-align: start; transition: transform .15s ease, box-shadow .15s ease; }
.article-carte:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(16, 59, 108, .35); }
.article-carte__meta { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--turquoise-fonce); margin: 0 0 10px; }
.article-carte h2 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 10px; }
.article-carte h2 a { color: var(--marine); text-decoration: none; }
.article-carte h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.article-carte > p:not(.article-carte__meta) { color: var(--texte-doux); font-size: .95rem; margin: 0 0 16px; }
.lien-fleche { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; color: var(--turquoise-fonce); text-decoration: none; }
.lien-fleche svg { width: 18px; height: 18px; }
.article { max-width: 760px; font-size: 1.05rem; line-height: 1.75; }
.article .chapo { font-size: 1.18rem; line-height: 1.65; color: var(--marine); font-weight: 500; border-inline-start: 4px solid var(--turquoise); padding-inline-start: 18px; margin-bottom: 1.6em; }
.article h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 1.8em 0 .6em; }
.article h3 { font-size: 1.1rem; margin: 2em 0 .7em; }
.article ul { list-style: none; padding: 20px 22px; margin: 0 0 1.4em; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-s); }
.article li { position: relative; padding-inline-start: 30px; margin-bottom: .6em; }
.article li:last-child { margin-bottom: 0; }
.article li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 16px; height: 9px; border-inline-start: 3px solid var(--turquoise); border-bottom: 3px solid var(--turquoise); transform: rotate(-45deg) translateY(-4px); }
.article__retour { margin-top: 2.4em; }
.nav__lien, .entete .btn { white-space: nowrap; }
@media (max-width: 1300px) { .entete__cta-texte { display: none; } .entete .btn--wa { padding-inline: 12px; } }
@media (max-width: 1240px) and (min-width: 1041px) { .nav__lien { padding-inline: 8px; font-size: .88rem; } .entete__logo img { width: 150px; } }
/* Bandeau de confiance : 4 engagements */
.confiance__liste { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .confiance__liste { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .confiance__liste { grid-template-columns: 1fr; } }
/* Logo officiel (PNG détouré) : un peu plus grand dans l'en-tête */
.entete__logo img { width: 204px; }
@media (max-width: 1240px) { .entete__logo img { width: 166px; } }
@media (max-width: 1040px) { .entete__logo img { width: 160px; } }
@media (max-width: 420px) { .entete__logo img { width: 138px; } }

/* === Ajouts 2026-11-22 : cartes du blog avec image, accueil mobile compact === */
.article-carte { overflow: hidden; }
.article-carte__media { margin: -24px -24px 20px; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f7fafd 0%, #e4edf6 100%); overflow: hidden; }
.article-carte__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.article-carte:hover .article-carte__media img { transform: scale(1.04); }
@media (max-width: 600px) {
  .page-index .grille-produits, .page-index .galerie { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 22px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .page-index .grille-produits::-webkit-scrollbar, .page-index .galerie::-webkit-scrollbar { display: none; }
  .page-index .grille-produits .carte { flex: 0 0 80%; scroll-snap-align: start; position: relative; }
  .page-index .galerie .client { flex: 0 0 44%; scroll-snap-align: start; position: relative; }
  .page-index .grille-produits .reveler, .page-index .galerie .reveler { opacity: 1; transform: none; }
  .page-index .etapes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-index .etape { padding: 18px 14px 16px; }
  .page-index .etape::before { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 10px; }
  .page-index .etape h3 { font-size: 1rem; }
  .page-index .etape p { font-size: .88rem; }
}
