/* ==========================================================================
   Oxypro Tunisie — feuille de style principale
   Aucune ressource externe : polices auto-hébergées (compatible CSP stricte)
   ========================================================================== */

@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bleu: #085884;          /* bleu du logo */
  --bleu-fonce: #053A57;
  --bleu-nuit: #04263A;
  --vert: #17CE09;          /* vert du logo */
  --vert-clair: #5BE84F;
  --vert-texte: #0B7A05;    /* vert lisible sur fond blanc */
  --encre: #0C2433;
  --texte: #3A5262;
  --texte-doux: #5A7282;
  --fond: #F4F7F9;
  --fond-2: #E7EFF4;
  --blanc: #FFFFFF;
  --ligne: #D8E3EA;
  --rouge: #B42318;

  --titre: "Archivo", "Segoe UI", system-ui, sans-serif;
  --corps: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --rayon: 16px;
  --rayon-s: 10px;
  --ombre: 0 1px 2px rgba(4, 38, 58, .06), 0 8px 24px rgba(4, 38, 58, .07);
  --ombre-forte: 0 2px 4px rgba(4, 38, 58, .08), 0 18px 40px rgba(4, 38, 58, .14);
  --largeur: 1200px;
  --gouttiere: clamp(16px, 4vw, 32px);
  --entete: 76px;
}

/* ---------- Base ---------- */
*, *::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); }
body { margin: 0; font-family: var(--corps); font-size: 17px; line-height: 1.65; color: var(--encre); background: var(--fond); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.1; margin: 0; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--vert-clair); color: var(--bleu-nuit); }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bleu-nuit); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .2s; }
.lien-evitement:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 600 16px/1 var(--corps); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-vert { background: var(--vert); color: #05300A; box-shadow: 0 6px 18px rgba(23, 206, 9, .28); }
.btn-vert:hover { background: #22DE13; color: #05300A; }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-fonce); color: #fff; }
.btn-contour { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-contour:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.entete.defile { border-bottom-color: var(--ligne); box-shadow: 0 6px 24px rgba(4, 38, 58, .06); }
.entete-int { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--entete); }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-liens { display: flex; list-style: none; gap: 2px; }
.nav-liens a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--encre); font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.nav-liens a:hover, .nav-liens a[aria-current="true"], .nav-liens a[aria-current="page"] { background: var(--fond-2); color: var(--bleu); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; margin-left: 8px; }
.menu-bouton { display: none; width: 48px; height: 48px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--blanc); color: var(--encre); cursor: pointer; align-items: center; justify-content: center; }
.menu-bouton svg { width: 24px; height: 24px; }
.menu-bouton .ico-fermer { display: none; }
.menu-bouton[aria-expanded="true"] .ico-ouvrir { display: none; }
.menu-bouton[aria-expanded="true"] .ico-fermer { display: block; }

@media (max-width: 960px) {
  .menu-bouton { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px var(--gouttiere) 24px; background: var(--blanc); border-bottom: 1px solid var(--ligne); box-shadow: 0 18px 30px rgba(4, 38, 58, .1); display: none; }
  .nav.ouvert { display: flex; }
  .nav-liens { flex-direction: column; }
  .nav-liens a { padding: 14px 12px; border-radius: 10px; font-size: 17px; }
  .nav .btn { margin: 4px 0 0; min-height: 52px; }
  .logo img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bleu-nuit); color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60rem 40rem at 85% 20%, rgba(8, 88, 132, .9), transparent 60%),
  radial-gradient(30rem 24rem at 10% 110%, rgba(23, 206, 9, .18), transparent 70%); }
.hero-anneaux { position: absolute; right: -180px; top: 50%; width: 760px; height: 760px; transform: translateY(-50%); z-index: -1; opacity: .5; pointer-events: none; }
.hero-int { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-block: clamp(64px, 10vw, 120px); }
.surtitre { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; color: #D6E6EF; }
.surtitre .pastille { width: 22px; height: 22px; border-radius: 50%; background: var(--vert); display: grid; place-items: center; }
.surtitre .pastille::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--vert-clair); }
.hero-texte { font-size: clamp(17px, 1.6vw, 19px); color: #C9DCE7; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-carte { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-carte h2 { font-size: 15px; font-family: var(--corps); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-clair); margin-bottom: 18px; }
.hero-agences { list-style: none; display: grid; gap: 10px; }
.hero-agences a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transition: background-color .2s, transform .2s; }
.hero-agences a:hover { background: rgba(255, 255, 255, .13); transform: translateX(4px); color: #fff; }
.hero-agences strong { display: block; font-family: var(--titre); font-size: 20px; }
.hero-agences span { font-size: 14px; color: #B8CFDC; }
.hero-agences .tel { font-weight: 600; color: #fff; white-space: nowrap; font-size: 15px; }
@media (max-width: 900px) { .hero-int { grid-template-columns: 1fr; } .hero-anneaux { right: -360px; } }

/* ---------- Bandeau atouts ---------- */
.atouts { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.atouts ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; padding-block: 26px; }
.atouts li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.atouts .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--fond-2); color: var(--bleu); display: grid; place-items: center; }
.atouts .ico svg { width: 24px; height: 24px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 112px); }
.section-blanche { background: var(--blanc); }
.section-teintee { background: var(--fond-2); }
.entete-section { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.etiquette { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-texte); }
.entete-section h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; letter-spacing: -.015em; color: var(--bleu); margin-bottom: 16px; }
.entete-section p { color: var(--texte); font-size: 18px; }

/* Cartes services */
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 700px) and (max-width: 1099px) { .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carte { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 32px; box-shadow: var(--ombre); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; gap: 14px; }
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--bleu); color: #fff; font-family: var(--titre); font-weight: 800; font-size: 20px; }
.carte-ico svg { width: 28px; height: 28px; }
.carte-ico.vert { background: var(--vert); color: #05300A; }
.carte h3 { font-size: 23px; }
.carte p { color: var(--texte); }
.liste-coches { list-style: none; display: grid; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.liste-coches li { position: relative; padding-left: 30px; color: var(--encre); font-weight: 500; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305300A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Parcours */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: etape; }
.etape { position: relative; padding: 30px 26px; border-radius: var(--rayon); background: var(--fond); border: 1px solid var(--ligne); counter-increment: etape; }
.etape::before { content: counter(etape, decimal-leading-zero); display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--bleu); color: #fff; font: 800 17px var(--titre); }
.etape h3 { font-size: 21px; margin-bottom: 8px; }
.etape p { color: var(--texte); }

/* Matériel */
.materiel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.materiel .entete-section { margin-bottom: 28px; }
.puces { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.puces li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-s); font-weight: 600; transition: border-color .2s, transform .2s; }
.puces li:hover { border-color: var(--bleu); transform: translateY(-2px); }
.puces li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(23, 206, 9, .18); }
@media (max-width: 860px) { .materiel { grid-template-columns: 1fr; } }

/* Agences */
.agence { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 14px; }
.agence-siege { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.agence .type { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-texte); }
.agence-siege .type { color: var(--vert-clair); }
.agence h3 { font-size: 27px; color: var(--bleu); }
.agence-siege h3 { color: #fff; }
.agence dl { margin: 0; display: grid; gap: 10px; }
.agence dl div { display: flex; gap: 12px; align-items: flex-start; }
.agence dt { flex: none; width: 22px; padding-top: 3px; color: var(--bleu); }
.agence-siege dt { color: var(--vert-clair); }
.agence dt svg { width: 20px; height: 20px; }
.agence dd { margin: 0; color: var(--texte); }
.agence-siege dd { color: #D6E6EF; }
.agence dd a { font-weight: 600; text-decoration: none; }
.agence-siege dd a { color: #fff; }
.agence .btn { margin-top: auto; align-self: flex-start; min-height: 44px; }
.agence-siege .btn-bleu { background: #fff; color: var(--bleu); }

/* FAQ */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-s); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--bleu); box-shadow: var(--ombre); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; 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='%23085884' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--texte); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 64px); align-items: start; }
.coordonnees { list-style: none; display: grid; gap: 14px; }
.coordonnees a, .coordonnees .bloc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--ligne); text-decoration: none; color: var(--encre); transition: border-color .2s, transform .2s; }
.coordonnees a:hover { border-color: var(--bleu); transform: translateX(4px); color: var(--encre); }
.coordonnees .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--fond-2); color: var(--bleu); }
.coordonnees .ico svg { width: 22px; height: 22px; }
.coordonnees small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); }
.coordonnees strong { font-size: 18px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.formulaire { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--ombre-forte); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: 15px; }
.champ label .facultatif { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; font-size: 16px; color: var(--encre); padding: 13px 15px; border: 1.5px solid #B4C6D1; border-radius: 10px; background: var(--blanc); transition: border-color .2s, box-shadow .2s; }
.champ select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23085884' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(8, 88, 132, .15); }
.champ input:user-invalid, .champ textarea:user-invalid { border-color: var(--rouge); }
.consentement { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--texte); }
.consentement input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bleu); }
.pot-de-miel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-pied .btn { min-width: 220px; }
.form-pied .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.statut { grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.statut.ok { display: block; background: #E7F8E5; color: #0A5F05; border: 1px solid #9FE299; }
.statut.erreur { display: block; background: #FDECEA; color: var(--rouge); border: 1px solid #F5B5AE; }
@media (max-width: 600px) { .formulaire { grid-template-columns: 1fr; } .form-pied .btn { width: 100%; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--bleu-nuit); color: #B8CFDC; font-size: 15px; }
.pied-int { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 36px; padding-block: 56px 36px; }
.pied-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.pied-logo img { height: 40px; width: auto; }
.pied h2 { font-family: var(--corps); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-clair); margin-bottom: 14px; }
.pied ul { list-style: none; display: grid; gap: 8px; }
.pied a { color: #DCEAF2; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
@media (max-width: 760px) { .pied-int { grid-template-columns: 1fr; } }

/* Bouton d'appel flottant (mobile) */
.appel-flottant { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; width: 58px; height: 58px; border-radius: 50%; background: var(--vert); color: #05300A; place-items: center; box-shadow: 0 10px 26px rgba(4, 38, 58, .3); }
.appel-flottant svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .appel-flottant { display: grid; } }

/* ---------- Pages secondaires ---------- */
.page-texte { max-width: 820px; }
.page-texte h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; color: var(--bleu); margin-bottom: 28px; }
.page-texte h2 { font-size: 24px; color: var(--bleu); margin: 40px 0 12px; }
.page-texte p, .page-texte li { color: var(--texte); }
.page-texte p + p { margin-top: 12px; }
.page-texte ul { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.page-erreur { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.page-erreur .code { font: 800 clamp(80px, 16vw, 160px)/1 var(--titre); color: var(--bleu); }
.page-erreur p { margin: 12px auto 30px; max-width: 520px; color: var(--texte); font-size: 18px; }

/* ---------- Animations d'apparition ---------- */
.js .apparait { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .apparait.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
}

@media print {
  .entete, .appel-flottant, .formulaire, .hero-anneaux { display: none !important; }
  .hero { background: none; color: #000; }
  body { background: #fff; }
}

/* ==========================================================================
   Boutique
   ========================================================================== */
.btn-panier { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--blanc); color: var(--encre); font: 600 15px var(--corps); cursor: pointer; transition: border-color .2s; }
.btn-panier:hover { border-color: var(--bleu); }
.btn-panier svg { width: 22px; height: 22px; }
.btn-panier .compteur { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--vert); color: #05300A; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.btn-panier .compteur[data-vide="true"] { background: var(--fond-2); color: var(--texte-doux); }
.entete-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 960px) { .entete-actions .btn-panier .libelle { display: none; } }

.bandeau-boutique { background: var(--bleu-nuit); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.bandeau-boutique::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 30rem at 90% 0%, rgba(8, 88, 132, .95), transparent 60%); }
.bandeau-boutique .conteneur { padding-block: clamp(44px, 7vw, 76px); }
.bandeau-boutique h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.bandeau-boutique p { color: #C9DCE7; font-size: 18px; max-width: 640px; }
.garanties { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.garanties li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 15px; font-weight: 500; }
.garanties svg { width: 18px; height: 18px; color: var(--vert-clair); }

.outils { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.recherche { position: relative; flex: 1 1 320px; max-width: 460px; }
.recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--texte-doux); pointer-events: none; }
.recherche input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border: 1.5px solid #B4C6D1; border-radius: 999px; font: inherit; font-size: 16px; background: var(--blanc); }
.recherche input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(8, 88, 132, .15); }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtres select { min-height: 48px; padding: 0 40px 0 16px; border: 1.5px solid #B4C6D1; border-radius: 999px; font: inherit; font-size: 15px; appearance: none; -webkit-appearance: none; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23085884' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.interrupteur { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1.5px solid #B4C6D1; border-radius: 999px; background: var(--blanc); font-size: 15px; font-weight: 500; cursor: pointer; }
.interrupteur input { width: 18px; height: 18px; accent-color: var(--bleu); }
.resultat { color: var(--texte-doux); font-size: 15px; margin-bottom: 16px; }

.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.produit { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); transition: transform .25s, box-shadow .25s; }
.produit:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.produit-visuel { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 16px; border: 0; border-bottom: 1px solid var(--ligne); cursor: pointer; width: 100%; }
.produit-visuel img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.sans-image { width: 64px; height: 64px; color: #A9BDCA; }
.badge-stock { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge-stock.oui { background: #E7F8E5; color: #0A5F05; }
.badge-stock.non { background: #FFF4E5; color: #8A4B00; }
.produit-corps { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.produit-ref { font-size: 13px; color: var(--texte-doux); }
.produit h2 { font-family: var(--titre); font-size: 19px; line-height: 1.25; }
.produit h2 button { all: unset; cursor: pointer; }
.produit h2 button:hover { color: var(--bleu); }
.produit h2 button:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
.produit-prix { margin-top: auto; padding-top: 10px; font: 800 22px var(--titre); color: var(--bleu); }
.produit-prix small { font: 500 13px var(--corps); color: var(--texte-doux); }
.produit-actions { display: flex; gap: 8px; margin-top: 10px; }
.produit-actions .btn { flex: 1; min-height: 46px; padding: 0 14px; font-size: 15px; }
.btn-leger { background: var(--fond-2); color: var(--bleu); }
.btn-leger:hover { background: #D6E5EE; color: var(--bleu-fonce); }

.squelette { border-radius: var(--rayon); background: linear-gradient(90deg, #E7EFF4 25%, #F4F8FA 50%, #E7EFF4 75%); background-size: 200% 100%; animation: brille 1.4s infinite linear; min-height: 380px; }
@keyframes brille { to { background-position: -200% 0; } }
.message-vide { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: var(--blanc); border: 1px dashed #B4C6D1; border-radius: var(--rayon); color: var(--texte); }
.message-vide strong { display: block; font: 700 22px var(--titre); color: var(--encre); margin-bottom: 8px; }

/* Fenêtres (fiche produit, panier) */
dialog { border: 0; padding: 0; color: var(--encre); background: var(--blanc); box-shadow: 0 30px 80px rgba(4, 38, 58, .35); }
dialog::backdrop { background: rgba(4, 38, 58, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fermer { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fond-2); color: var(--encre); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.fermer:hover { background: #D6E5EE; }
.fermer svg { width: 22px; height: 22px; }

.fiche { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 22px; }
.fiche-int { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fiche-visuel { background: #fff; display: grid; place-items: center; padding: 32px; border-right: 1px solid var(--ligne); min-height: 320px; }
.fiche-visuel img { max-height: 420px; width: 100%; object-fit: contain; }
.fiche-infos { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.fiche-infos h2 { font-size: 28px; padding-right: 40px; }
.fiche-desc { color: var(--texte); white-space: pre-line; }
.fiche-prix { font: 800 30px var(--titre); color: var(--bleu); }
.fiche-ajout { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.note-prescription { font-size: 14px; color: var(--texte-doux); padding: 12px 14px; background: var(--fond); border-radius: 10px; }
@media (max-width: 760px) { .fiche-int { grid-template-columns: 1fr; } .fiche-visuel { border-right: 0; border-bottom: 1px solid var(--ligne); min-height: 220px; padding: 20px; } .fiche-visuel img { max-height: 240px; } .fiche-infos { padding: 24px 20px; } }

.quantite { display: inline-flex; align-items: center; border: 1.5px solid #B4C6D1; border-radius: 999px; overflow: hidden; background: var(--blanc); }
.quantite button { width: 44px; height: 44px; border: 0; background: none; font: 600 20px var(--corps); color: var(--bleu); cursor: pointer; }
.quantite button:hover { background: var(--fond-2); }
.quantite button:disabled { color: #B4C6D1; cursor: default; background: none; }
.quantite output, .quantite span { min-width: 34px; text-align: center; font-weight: 600; }

.panier { margin: 0 0 0 auto; width: min(480px, 100vw); height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
.panier[open] { display: flex; flex-direction: column; animation: glisse .25s ease; }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } }
.panier-tete { padding: 22px 24px; border-bottom: 1px solid var(--ligne); }
.panier-tete h2 { font-size: 24px; }
.panier-corps { flex: 1; overflow: auto; padding: 8px 24px 24px; }
.panier-pied { padding: 18px 24px 24px; border-top: 1px solid var(--ligne); background: var(--fond); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.sous-total { display: flex; justify-content: space-between; font-size: 15px; color: var(--texte); }
.sous-total .offert { color: var(--vert-texte); font-weight: 600; }
.total strong { font: 800 26px var(--titre); color: var(--bleu); }
.total-note { font-size: 13.5px; color: var(--texte-doux); }
.ligne-panier { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.ligne-panier .vignette { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--ligne); background: #fff; display: grid; place-items: center; overflow: hidden; }
.ligne-panier .vignette img { width: 100%; height: 100%; object-fit: contain; }
.ligne-panier .vignette svg { width: 28px; height: 28px; color: #A9BDCA; }
.ligne-panier h3 { font: 600 16px/1.3 var(--corps); }
.ligne-panier .pu { font-size: 14px; color: var(--texte-doux); }
.ligne-panier .droite { display: grid; justify-items: end; gap: 8px; }
.ligne-panier .st { font-weight: 700; }
.ligne-panier .quantite button { width: 36px; height: 36px; font-size: 18px; }
.lien-retirer { border: 0; background: none; padding: 4px; color: var(--rouge); font: 500 13.5px var(--corps); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.panier-vide { text-align: center; padding: 60px 10px; color: var(--texte); }
.panier-vide svg { width: 56px; height: 56px; margin: 0 auto 14px; color: #A9BDCA; }
.retour { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--bleu); font: 600 15px var(--corps); cursor: pointer; padding: 0; margin-bottom: 8px; }
.retour svg { width: 18px; height: 18px; }

.form-commande { display: grid; gap: 14px; padding-top: 14px; }
.choix-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.choix-mode legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.choix-mode label { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px solid #B4C6D1; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.choix-mode label:has(input:checked) { border-color: var(--bleu); background: #EEF5F9; }
.choix-mode input { accent-color: var(--bleu); width: 18px; height: 18px; }
.champs-livraison[hidden] { display: none; }
.confirmation { text-align: center; padding: 40px 6px; }
.confirmation .rond { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #E7F8E5; color: #0A5F05; display: grid; place-items: center; }
.confirmation .rond svg { width: 40px; height: 40px; }
.confirmation h3 { font-size: 26px; margin-bottom: 10px; }
.confirmation p { color: var(--texte); margin-bottom: 10px; }
.confirmation .ref { display: inline-block; margin: 6px 0 18px; padding: 8px 16px; border-radius: 10px; background: var(--fond-2); font: 700 18px var(--titre); color: var(--bleu); letter-spacing: .03em; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 12px; background: var(--bleu-nuit); color: #fff; font-weight: 600; box-shadow: var(--ombre-forte); transition: opacity .25s, transform .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.cta-boutique { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.badge-stock.statique { position: static; display: inline-block; }
@media (min-width: 961px) { .entete-actions { order: 3; } .entete-int .nav { margin-left: auto; } }

/* ---------- Boutique : téléphone ---------- */
@media (max-width: 640px) {
  .bandeau-boutique .conteneur { padding-block: 28px 30px; }
  .bandeau-boutique h1 { font-size: 30px; margin-bottom: 8px; }
  .bandeau-boutique p { font-size: 15.5px; }
  .garanties { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 18px calc(-1 * var(--gouttiere)) 0; padding: 0 var(--gouttiere) 4px; scrollbar-width: none; }
  .garanties::-webkit-scrollbar { display: none; }
  .garanties li { flex: none; font-size: 13.5px; padding: 6px 12px; }

  .bandeau-boutique + .section { padding-block: 20px 48px; }
  .outils { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .recherche { grid-column: 1 / -1; max-width: none; }
  .filtres { display: contents; }
  .interrupteur, .filtres select { width: 100%; min-height: 46px; font-size: 14px; padding-left: 12px; }
  .interrupteur { justify-content: center; padding-right: 12px; white-space: nowrap; }
  .resultat { font-size: 14px; margin-bottom: 10px; }

  .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .produit { border-radius: 14px; }
  .produit:hover { transform: none; }
  .produit-visuel { padding: 10px; }
  .produit-visuel img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .sans-image { width: 44px; height: 44px; }
  .badge-stock { left: 8px; top: 8px; font-size: 11px; padding: 3px 8px; }
  .produit-corps { padding: 10px 12px 12px; gap: 4px; }
  .produit-ref { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .produit h2 { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .produit-prix { font-size: 17px; padding-top: 6px; }
  .produit-prix small { font-size: 11px; }
  .produit-actions { margin-top: 8px; }
  .produit-actions .btn-leger { display: none; }       /* la photo et le nom ouvrent déjà la fiche */
  .produit-actions .btn { min-height: 42px; font-size: 14px; padding: 0 10px; }
  .squelette { min-height: 270px; }

  /* Fiche produit : plein écran depuis le bas */
  .fiche { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .fiche[open] { animation: monte .25s ease; }
  .fiche-int { max-height: 92dvh; overflow: auto; }
  .fiche-infos h2 { font-size: 22px; }
  .fiche-prix { font-size: 24px; }
  .fiche-ajout { position: sticky; bottom: 0; background: var(--blanc); padding: 10px 0; margin-top: 0; flex-wrap: nowrap; }
  .fiche-ajout .btn { flex: 1; }

  /* Panier */
  .panier { width: 100vw; }
  .panier-tete { padding: 16px 18px; }
  .panier-tete h2 { font-size: 21px; }
  .panier-corps { padding: 4px 18px 18px; }
  .panier-pied { padding: 14px 18px 18px; gap: 8px; }
  .total strong { font-size: 22px; }
  .ligne-panier { grid-template-columns: 56px 1fr; gap: 6px 12px; }
  .ligne-panier .vignette { width: 56px; height: 56px; grid-row: span 2; }
  .ligne-panier .droite { grid-column: 2; display: flex; justify-content: space-between; align-items: center; }
  .choix-mode { grid-template-columns: 1fr 1fr; }
  .choix-mode label { padding: 12px 10px; font-size: 14px; }
}
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }

/* ==========================================================================
   Langues : sélecteur, arabe (police + sens de lecture droite → gauche)
   ========================================================================== */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); }

html.i18n-attente body { visibility: hidden; }

.langues { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); }
.langues button { min-width: 38px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--texte); font: 600 13.5px var(--corps); cursor: pointer; }
.langues button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--corps); font-size: 16px; }
.langues button:hover { color: var(--bleu); background: var(--fond-2); }
.langues button[aria-pressed="true"] { background: var(--bleu); color: #fff; }
.nav .langues { margin-inline-start: 8px; }
.note-langue { font-size: 14px; color: var(--texte-doux); margin: -16px 0 24px; }
@media (max-width: 960px) {
  .nav .langues { margin: 4px 0 0; align-self: flex-start; }
  .entete-actions .langues button { min-width: 34px; }
}

/* --- Arabe : polices et lettres liées (pas d'espacement entre lettres) --- */
[lang|="ar"] body, [lang|="ar"] button, [lang|="ar"] input, [lang|="ar"] select, [lang|="ar"] textarea { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
[lang|="ar"] h1, [lang|="ar"] h2, [lang|="ar"] h3, [lang|="ar"] .fiche-prix, [lang|="ar"] .produit-prix, [lang|="ar"] .total strong,
[lang|="ar"] .carte-ico, [lang|="ar"] .etape::before, [lang|="ar"] .hero-agences strong, [lang|="ar"] .confirmation .ref { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-weight: 700; }
[lang|="ar"] * { letter-spacing: 0 !important; }
[lang|="ar"] body { line-height: 1.8; }
[lang|="ar"] h1 { line-height: 1.3; }
[lang|="ar"] h2, [lang|="ar"] h3 { line-height: 1.4; }

/* --- Numéros de téléphone, e-mails, références : toujours de gauche à droite --- */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"], [dir="rtl"] .hero-agences .tel,
[dir="rtl"] .confirmation .ref, [dir="rtl"] .compteur { direction: ltr; unicode-bidi: isolate; }

/* --- Mise en page miroir pour l'arabe --- */
[dir="rtl"] .lien-evitement { left: auto; right: 12px; }
[dir="rtl"] .surtitre { padding: 6px 8px 6px 14px; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 8px; }
@media (min-width: 961px) { [dir="rtl"] .entete-int .nav { margin-left: 0; margin-right: auto; } }
@media (max-width: 960px) { [dir="rtl"] .nav .btn { margin-right: 0; } }
[dir="rtl"] .hero-anneaux { right: auto; left: -180px; }
@media (max-width: 900px) { [dir="rtl"] .hero-anneaux { left: -360px; } }
[dir="rtl"] .hero-agences a:hover, [dir="rtl"] .coordonnees a:hover { transform: translateX(-4px); }
[dir="rtl"] .hero-actions .btn-vert svg, [dir="rtl"] .retour svg { transform: scaleX(-1); }
[dir="rtl"] .liste-coches li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .liste-coches li::before { left: auto; right: 0; }
[dir="rtl"] .champ select, [dir="rtl"] .filtres select { padding-right: 15px; padding-left: 44px; background-position: left 14px center; }
[dir="rtl"] .recherche svg { left: auto; right: 14px; }
[dir="rtl"] .recherche input { padding: 0 44px 0 16px; }
[dir="rtl"] .badge-stock { left: auto; right: 12px; }
[dir="rtl"] .fermer { right: auto; left: 14px; }
[dir="rtl"] .fiche-visuel { border-right: 0; border-left: 1px solid var(--ligne); }
[dir="rtl"] .fiche-infos h2 { padding-right: 0; padding-left: 40px; }
[dir="rtl"] .panier { margin: 0 auto 0 0; }
[dir="rtl"] .panier[open] { animation-name: glisse-rtl; }
@keyframes glisse-rtl { from { transform: translateX(-40px); opacity: 0; } }
[dir="rtl"] .appel-flottant { right: auto; left: 16px; }
[dir="rtl"] .page-texte ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .faq summary { text-align: right; }
@media (max-width: 640px) {
  [dir="rtl"] .badge-stock { right: 8px; }
  [dir="rtl"] .fiche-visuel { border-left: 0; }
}
@media (max-width: 760px) { [dir="rtl"] .fiche-visuel { border-left: 0; } }

/* --- Ajustements boutique et en-tête --- */
.nav .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  /* écran moyen : le bouton téléphone ne garde que l'icône pour laisser de la place */
  .nav .btn-bleu[href^="tel:"] { font-size: 0; gap: 0; padding: 0 12px; min-width: 44px; }
  .nav .btn-bleu[href^="tel:"] svg { width: 20px; height: 20px; }
  .nav-liens a { padding: 10px 10px; }
}
.bandeau-boutique + .section { padding-block: 36px 72px; }
@media (max-width: 640px) { .bandeau-boutique + .section { padding-block: 20px 48px; } }
