/* Icônes au trait devant le texte des boutons (même couleur que le texte).
   Dessinées ici une fois pour tout le site ; le texte des boutons reste inchangé. */
.vers-catalogue::before,
a.fiche-shop-btn::before,
nav.site-nav a[href$="#catalogue"]::before,
a.back[href$="#catalogue"]::before,
.nav-actions > a[href="/fr/"]::before,
.nav-actions > a[href="/ar/"]::before,
.hero-actions a[href="#catalogue"]::before,
.top-actions a.back-shop::before,
.vers-academie::before,
nav.site-nav a[href$="/academie/"]::before,
.btn-primary[href*="#devis"]::before,
.bp-devis::before,
.hero-actions a[href="#devis"]::before,
.btn-whatsapp::before,
.bp-wa::before,
.op-partage::before,
.cta-app::before,
a.langue::before,
.op-langue::before,
a.lang-alt::before{content:'';display:inline-block;width:1.05em;height:1.05em;flex:none;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;vertical-align:-0.17em;margin-inline-end:.4em;}
.vers-catalogue::before,
a.fiche-shop-btn::before,
nav.site-nav a[href$="#catalogue"]::before,
a.back[href$="#catalogue"]::before,
.nav-actions > a[href="/fr/"]::before,
.nav-actions > a[href="/ar/"]::before,
.hero-actions a[href="#catalogue"]::before,
.top-actions a.back-shop::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E");}
.vers-academie::before,
nav.site-nav a[href$="/academie/"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h14v16H6a2 2 0 0 0-2 2.5z'/%3E%3Cpath d='M8 7h8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h14v16H6a2 2 0 0 0-2 2.5z'/%3E%3Cpath d='M8 7h8'/%3E%3C/svg%3E");}
.btn-primary[href*="#devis"]::before,
.bp-devis::before,
.hero-actions a[href="#devis"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h4'/%3E%3C/svg%3E");}
.btn-whatsapp::before,
.bp-wa::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.4 7.6L3.5 20.5l1.4-4A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M9.2 8.6c.3 2.9 2.4 5 5.2 5.3l.9-1.4-1.8-.9-.8.8a4 4 0 0 1-1.9-1.9l.8-.8-.9-1.8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.4 7.6L3.5 20.5l1.4-4A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M9.2 8.6c.3 2.9 2.4 5 5.2 5.3l.9-1.4-1.8-.9-.8.8a4 4 0 0 1-1.9-1.9l.8-.8-.9-1.8z'/%3E%3C/svg%3E");}
.op-partage::before,
.cta-app::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4.4M8.2 13.2l7.6 4.4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4.4M8.2 13.2l7.6 4.4'/%3E%3C/svg%3E");}
a.langue::before,
.op-langue::before,
a.lang-alt::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");}

/* Rangée « langue · partager » sous l'en-tête des pages qui n'en avaient pas */
.outils-page{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;max-width:1100px;margin:0 auto;padding:10px 16px 0;}
.outils-page a,.outils-page button{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:999px;
  border:1px solid rgba(180,140,40,.45);background:rgba(255,255,255,.7);color:#6B5320;font:600 .8rem/1 inherit;
  text-decoration:none;cursor:pointer;}
.outils-page a:hover,.outils-page button:hover{border-color:#B48C28;background:#fff;}
.outils-page a:focus-visible,.outils-page button:focus-visible{outline:2px solid #3A2E1A;outline-offset:2px;}
.outils-page .op-langue[lang=ar]{font-family:'Noto Naskh Arabic',system-ui,sans-serif;font-size:.85rem;}
/* Bouton « Partager » discret de l'accueil */
.hero-actions .op-partage{background:none;border:0;color:inherit;font:inherit;font-weight:600;font-size:.9rem;opacity:.8;cursor:pointer;padding:10px 6px;display:inline-flex;align-items:center;}
.hero-actions .op-partage:hover{opacity:1;text-decoration:underline;}

/* Pastilles d'en-tête : jamais coupées en deux */
.vers-catalogue,.vers-academie,a.langue{white-space:nowrap;display:inline-flex;align-items:center;}
/* Menu des fiches produits sur téléphone : texte seul, pour tenir sur une ligne */
@media (max-width:480px){nav.site-nav a[href]::before{display:none;}}
/* Petit logo en tête des pages (lien vers l'accueil) */
header.entete-simple{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
.logo-entete{display:inline-flex;flex:none;}
.logo-entete img{display:block;width:34px;height:auto;border-radius:8px;}
/* Bouton vitrine (« Catalogue 4Cake », « Magasin ») : le plus visible de chaque page.
   Rouge du logo, seul bouton rouge du site ; la navigation (Académie, Science…) reste en contour
   et les outils (langue, partage) restent discrets. Contraste texte blanc : 5,2:1. */
a.vers-catalogue,
.top-actions a.back-shop,
.nav-actions > a[href="/fr/"],
.nav-actions > a[href="/ar/"]{background:#D71920 !important;border:1px solid #D71920 !important;color:#fff !important;font-weight:700 !important;text-decoration:none !important;box-shadow:0 2px 8px rgba(215,25,32,.28);}
header a.vers-catalogue{padding:5px 14px !important;}
a.vers-catalogue,.top-actions a.back-shop{border-radius:100px;} /* même pilule sur toutes les pages (l'accueil de l'Académie l'avait carrée) */
a.vers-catalogue:hover,
.top-actions a.back-shop:hover,
.nav-actions > a[href="/fr/"]:hover,
.nav-actions > a[href="/ar/"]:hover{background:#B8141A !important;border-color:#B8141A !important;}
.top-actions a.back-shop svg{display:none;}
a.vers-catalogue:focus-visible,.top-actions a.back-shop:focus-visible{outline:2px solid #3A2E1A;outline-offset:2px;}
/* Miniatures et encadrés rouges (Science, SOS Pâtisserie) : outils/miniatures.py.
   Le rouge du logo encadre ce qui compte (« À retenir », produits 4Cake, SOS) ; le reste reste neutre. */
a.science-card{display:grid !important;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;}
a.science-card > .mini{grid-row:1 / 3;width:56px;height:56px;object-fit:cover;border-radius:10px;}
a.science-card > div{grid-column:2;}
.mini-titre{float:left;width:64px;height:64px;object-fit:cover;border-radius:12px;margin:6px 14px 8px 0;}
html[dir=rtl] .mini-titre{float:right;margin:6px 0 8px 14px;}
.fiche-header .badges,.mini-titre ~ h2,.mini-titre ~ .hook + h2{clear:both;}
.mini-rond{width:24px;height:24px;border-radius:50%;object-fit:cover;margin-inline-end:8px;flex:none;}
.notions-liees a{display:inline-flex;align-items:center;}
.mini-cartes{display:grid;gap:8px;margin:10px 0 6px;}
@media (min-width:700px){.mini-cartes{grid-template-columns:1fr 1fr;}}
.mini-carte{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #EFE5CF;border-radius:10px;padding:8px 10px;text-decoration:none;color:#3A2E1A;font-size:.9rem;font-weight:600;line-height:1.35;}
.mini-carte:hover{border-color:#D4A017;}
.mini-carte img{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none;}
.mini-carte img[src*="LOGO"]{object-fit:contain;padding:4px;border:1px solid #F1E7D2;}
.encadre-4cake{border:1.5px solid #D71920;border-radius:14px;padding:14px 16px;margin:24px 0;background:#fff;}
.encadre-4cake h2{border:none !important;padding:0 !important;margin:0 0 10px !important;color:#D71920;font-size:1.05rem;}
.callout.retenir{border:1.5px solid #D71920 !important;background:#fff !important;border-radius:14px !important;}
.callout.retenir h3{color:#D71920;}
/* Accueil de l'Académie : aperçu en miniatures des espaces, bandeau SOS au cadre rouge */
.hub-minis{display:flex;gap:8px;margin:4px 0 22px;}
.hub-minis .mini{width:56px;height:56px;border-radius:12px;object-fit:cover;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.science-bandeau .hub-minis{flex-basis:100%;margin:0 0 6px;}
.science-bandeau .hub-minis .mini{width:44px;height:44px;border-radius:10px;box-shadow:none;}
.science-bandeau.sos-bandeau{border-color:#D71920 !important;}
.science-bandeau.sos-bandeau strong{color:#D71920;}
.science-bandeau.sos-bandeau em{color:#D71920 !important;}
/* Fiches produits : « Autres produits de la catégorie » en mini-cartes, bloc SOS en encadré */
.related-list.mini-cartes{display:grid;gap:8px;}
.related-list.mini-cartes a.mini-carte{border-radius:10px;padding:8px 10px;font-size:.9rem;color:#3A2E1A;background:#fff;border:1px solid #EFE5CF;}
.problemes-4cake.encadre-4cake{margin-top:24px;}
/* Accueil de l'Académie : « Que cherchez-vous ? » (entrée par besoin) */
.quete{max-width:1180px;margin:8px auto 26px;padding:0 24px;}
.quete h2{font-size:1.15rem;margin:0 0 12px;color:#3A2E1A;}
.quete-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;}
.quete-grille a{display:grid;grid-template-columns:auto 1fr;gap:0 10px;align-items:center;background:#fff;border:1px solid #EFE5CF;border-radius:14px;padding:12px;text-decoration:none;color:#3A2E1A;}
.quete-grille a:hover{border-color:#D4A017;}
.quete-grille .q-ico{grid-row:1/3;font-size:1.5rem;line-height:1;}
.quete-grille b{font-size:.92rem;line-height:1.25;}
.quete-grille b + span{font-size:.78rem;color:#6B5E4E;}
.quete-grille a.quete-produit{border-color:#D71920;}
.quete-grille a.quete-produit b{color:#D71920;}
/* Accueil Science : titres de famille */
h2.famille-science{margin:30px 0 12px;font-size:1.1rem;}
/* Lisibilité : texte brun sur les fonds dorés de toutes les pages (le blanc sur ce doré n'atteint
   que 2:1 ; le brun du site atteint 5,6:1). Les pages gardent leur doré, seule la couleur du texte change.
   Le bouton WhatsApp de la page devis (.cta brun) n'est pas concerné. */
.btn-primary,.devis-sos .btn-primary,a.cta:not([href*="wa.me"]),.cta-pdf,.status,.fiche-shop-btn,.ing-4cake,.produit a,.etapes li:before,
.parcours .entrer,.rec-link:hover,.qty-row button,.fv-step-num,.fv-shop-btn,.fv-share-btn,.pro-cta,.pt-btn-primary,
.fiche-science-tags a:hover,.fiche-science-tags a:hover svg{color:#3A2E1A;}
/* En-tête unique : le bandeau crème de l'accueil sur toutes les pages (fond crème, filet léger, liens bruns),
   à la place des bandeaux bruns à liens dorés et des en-têtes blancs des fiches produits.
   Le bouton rouge « Catalogue » reste le bouton le plus visible de chaque page. */
header.entete-simple,header.site{background:rgba(255,248,239,.94);border-bottom:1px solid rgba(58,46,26,.08);}
header.entete-simple a{color:#3A2E1A;}
header.entete-simple a:not(.vers-catalogue):not(.logo-entete):hover{color:#8A6D1F;}
header.entete-simple a.langue{border-color:rgba(58,46,26,.18);}
/* Police arabe Cairo (même fichier que fonts/polices.css) : disponible aussi sur les pages qui ne chargent pas
   polices.css (Académie, SOS Pâtisserie, bandeau cookies en arabe). Téléchargée seulement si la page l'utilise. */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-display: optional;
  font-weight: 200 1000;
  src: url(/fonts/cairo-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-display: optional;
  font-weight: 200 1000;
  src: url(/fonts/cairo-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* WhatsApp : vert de la charte #128C4A, texte blanc (contraste 4,6:1) ;
   même vert foncé pour le texte des boutons WhatsApp à fond blanc. */
.btn-whatsapp,.cta-wa{background:#128C4A;}
.btn-whatsapp:hover,.cta-wa:hover{background:#0B6E35;}
.boutons-contact .cta.wa{color:#128C4A;}
/* En-tête des pages sur téléphone : logo, lien retour, langue et « Catalogue » tiennent sur une seule ligne
   (marges et icônes réduites ; le contenu remonte d'environ 40 px). */
@media (max-width:480px){
  header.entete-simple{padding:10px 12px;gap:6px 8px;}
  header.entete-simple a{font-size:.85rem;}
  header.entete-simple a.langue,header.entete-simple a.vers-catalogue{padding:4px 10px !important;font-size:.8rem;margin-inline-start:0;}
  header.entete-simple a.langue::before,header.entete-simple a.vers-catalogue::before{display:none;}
}
@media (max-width:380px){header.entete-simple{padding:10px;gap:6px;}}

/* ===== Boutons resserrés : icône seule pour les actions secondaires (le texte reste lu par les lecteurs d'écran) =====
   Langue (code court), Partager, Appeler, WhatsApp à côté du bouton Devis, bouton WhatsApp flottant. */
.outils-page{padding:6px 16px 0;gap:6px;}
.outils-page .op-partage,.hero-actions .op-partage,
.cta-row .btn-whatsapp,.fp-boutons .cta.wa,.fp-boutons .cta.tel,#barre-produit .bp-wa{
  font-size:0 !important;width:44px;height:44px;min-width:44px;padding:0 !important;flex:none !important;
  justify-content:center;display:inline-flex !important;align-items:center;border-radius:50% !important;gap:0 !important;}
.outils-page .op-partage{width:36px;height:36px;min-width:36px;}
.outils-page .op-partage::before,.hero-actions .op-partage::before,.cta-row .btn-whatsapp::before,.fp-boutons .cta.wa::before,#barre-produit .bp-wa::before{
  width:20px;height:20px;margin:0;}
.outils-page .op-partage::before{width:17px;height:17px;}
/* Langue : « ع » ou « FR » au lieu du nom complet */
.outils-page .op-langue{font-size:0 !important;padding:0 12px !important;min-height:36px;gap:5px;}
.outils-page .op-langue::before{width:16px;height:16px;margin:0;}
.outils-page .op-langue[lang=ar]::after{content:'ع';font:700 1rem/1 'Noto Naskh Arabic',system-ui,sans-serif;}
.outils-page .op-langue[lang=fr]::after{content:'FR';font:700 .8rem/1 system-ui,sans-serif;}
/* Bouton « Continuer » des fenêtres de passage Pro ↔ Public : flèche à taille fixe */
.pt-btn-primary svg{width:15px;height:15px;flex:none;}
/* WhatsApp à côté du Devis : pastille verte pleine, bien visible */
.cta-row .btn-whatsapp,.fp-boutons .cta.wa,#barre-produit .bp-wa{background:#128C4A !important;color:#fff !important;border:0 !important;margin:0 !important;}
.fp-boutons .cta.tel{margin:0 !important;}
.cta-row,.fp-boutons{display:flex !important;flex-wrap:nowrap !important;align-items:center;gap:8px !important;}
.cta-row .btn-primary,.fp-boutons .cta.btn-primary{flex:1 1 auto;justify-content:center;text-align:center;margin:0 !important;white-space:nowrap;}
#barre-produit .bp-wa{width:40px;height:40px;min-width:40px;}
/* Bouton WhatsApp flottant (pages feuilletine) : rond, dans le coin, ne cache plus la page */
a.fp-wa-fixe{left:auto !important;right:14px !important;bottom:calc(14px + env(safe-area-inset-bottom)) !important;width:56px;height:56px;padding:0 !important;
  border-radius:50% !important;font-size:0 !important;justify-content:center;}
[dir=rtl] a.fp-wa-fixe{right:auto !important;left:14px !important;}
a.fp-wa-fixe::before{width:28px;height:28px;margin:0;}
body:has(.fp-wa-fixe) .ui-haut{bottom:84px;}
/* Accueil : raccourcis du contact en icônes */
.info-card .contact-rapide{display:flex;justify-content:center;gap:14px;}
.info-card .contact-rapide a{position:relative;width:52px;height:52px;padding:0;border-radius:50%;justify-content:center;font-size:1.15rem;}
.info-card .contact-rapide a.wa{background:#128C4A;color:#fff;border-color:#128C4A;}
.info-card .contact-rapide a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.info-card .contact-rapide svg{width:22px;height:22px;}

/* ===== Passages entre pages (navigateurs récents : Chrome, Edge, Android) ; rien si l'on a demandé moins d'animations =====
   - la page glisse légèrement : vers la gauche quand on avance, vers la droite quand on revient (inversé en arabe) ;
   - l'en-tête reste en place ;
   - la photo touchée (produit, recette) « vole » jusqu'à sa place sur la page suivante (ui.js lui donne le nom photo-vue). */
@media (prefers-reduced-motion: no-preference){
  @view-transition{navigation:auto;types:avance;}
  ::view-transition-group(root){animation-duration:.26s;}
  ::view-transition-group(vt-photo){animation-duration:.42s;animation-timing-function:cubic-bezier(.2,.8,.2,1);z-index:2;}
  ::view-transition-old(vt-photo),::view-transition-new(vt-photo){height:100%;width:100%;object-fit:cover;overflow:hidden;border-radius:12px;}
  html:active-view-transition-type(avance)::view-transition-old(root){animation:vt-sort-g .2s ease-in both;}
  html:active-view-transition-type(avance)::view-transition-new(root){animation:vt-entre-d .26s ease-out both;}
  html:active-view-transition-type(retour)::view-transition-old(root){animation:vt-sort-d .2s ease-in both;}
  html:active-view-transition-type(retour)::view-transition-new(root){animation:vt-entre-g .26s ease-out both;}
  html[dir=rtl]:active-view-transition-type(avance)::view-transition-old(root){animation-name:vt-sort-d;}
  html[dir=rtl]:active-view-transition-type(avance)::view-transition-new(root){animation-name:vt-entre-g;}
  html[dir=rtl]:active-view-transition-type(retour)::view-transition-old(root){animation-name:vt-sort-g;}
  html[dir=rtl]:active-view-transition-type(retour)::view-transition-new(root){animation-name:vt-entre-d;}
  body > header:first-of-type{view-transition-name:entete;}
  ::view-transition-group(entete){animation-duration:.26s;}
  .product-img img,img.recette-photo{view-transition-name:photo-vue;}
  ::view-transition-group(photo-vue){animation-duration:.38s;animation-timing-function:cubic-bezier(.2,.8,.2,1);}
  ::view-transition-old(photo-vue),::view-transition-new(photo-vue){height:100%;object-fit:contain;}
  html{scroll-behavior:smooth;}
}
@keyframes vt-sort-g{to{opacity:0;transform:translateX(-28px);}}
@keyframes vt-sort-d{to{opacity:0;transform:translateX(28px);}}
@keyframes vt-entre-d{from{opacity:0;transform:translateX(28px);}}
@keyframes vt-entre-g{from{opacity:0;transform:translateX(-28px);}}
/* Ancres (#devis, #catalogue…) : le titre visé n'est plus caché sous l'en-tête fixe */
html{scroll-padding-top:84px;}
/* Images : apparition en fondu sur fond crème au lieu de surgir (ui.js ajoute .ui-img puis .ok à chaque image chargée) */
.ui-img img[loading=lazy]{transition:opacity .45s ease,filter .6s ease;}
/* Images floues puis nettes : un fond crème qui chatoie pendant le chargement, puis l'image passe du flou au net */
.ui-img img[loading=lazy]:not(.ok){filter:blur(14px);background:linear-gradient(110deg,#F1E6CB 30%,#FBF6E9 50%,#F1E6CB 70%) 0 0/220% 100%;animation:ui-chatoie 1.3s linear infinite;}
@keyframes ui-chatoie{to{background-position:-220% 0;}}
/* Squelettes de chargement : stories, carte « En bref », listes chargées après coup */
.tv-stories:empty{background:radial-gradient(circle at 34px 34px,#EFE3C5 30px,transparent 31px) 0 0/86px 100% repeat-x,linear-gradient(110deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%) 0 0/220% 100%;animation:ui-chatoie 1.3s linear infinite;border-radius:0;}
.rc-bref.rc-attente,.ui-squelette{background:linear-gradient(110deg,#F3E9CE 30%,#FBF6E9 50%,#F3E9CE 70%) 0 0/220% 100% !important;animation:ui-chatoie 1.3s linear infinite;}
@media (prefers-reduced-motion:reduce){.ui-img img[loading=lazy]:not(.ok),.tv-stories:empty,.rc-bref.rc-attente,.ui-squelette{animation:none;}}
/* Petites réactions : compteur Devis qui saute, panier rouge qui respire */
@keyframes ui-saute{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.saute{display:inline-block;animation:ui-saute .45s ease;}
@media (prefers-reduced-motion: no-preference){
  @keyframes ui-respire{0%,85%,100%{transform:scale(1)}92%{transform:scale(1.08)}}
  .hero-offre .hero-actions .btn{animation:ui-respire 4s ease-in-out 2s 3;}
}
/* Rangées Devis + WhatsApp + Appeler : le bouton Devis se resserre au lieu de sortir du cadre sur les petits écrans */
.cta-row,.fp-boutons{max-width:100%;box-sizing:border-box;}
.cta-row .btn-primary,.fp-boutons .cta.btn-primary{flex:1 1 0 !important;min-width:0;overflow:hidden;text-overflow:ellipsis;padding-left:14px !important;padding-right:14px !important;}
@media (max-width:400px){.cta-row .btn-primary,.fp-boutons .cta.btn-primary{font-size:.92rem;}.cta-row .btn-primary::before,.fp-boutons .cta.btn-primary::before{display:none;}}

/* ===== Icônes au trait (une seule famille, à la place des emojis) : <span class="ico ico-nom" aria-hidden="true"></span> ===== */
.ico{display:inline-block;width:1.1em;height:1.1em;flex:none;vertical-align:-.18em;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat;}
.ico-cadeau{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v4H3zM5 12v9h14v-9M12 8v13M12 8C10 4 6 5 8 8M12 8c2-4 6-3 4 0'/%3E%3C/svg%3E");}
.ico-liste{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E");}
.ico-contact{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V8l7-5 7 5v13M9 21v-6h6v6'/%3E%3C/svg%3E");}
.ico-calc{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8 12h.01M12 12h.01M16 12h.01M8 16h.01M12 16h.01M16 16h.01'/%3E%3C/svg%3E");}
.ico-toque{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 14a4 4 0 1 1 2-7.5A4 4 0 0 1 16 6.5 4 4 0 1 1 18 14v5H6zM6 17h12'/%3E%3C/svg%3E");}
.ico-gateau{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21h16M5 21v-7h14v7M4 14h16M12 7v4M12 3.5c1 1 1 2 0 3'/%3E%3C/svg%3E");}
.ico-fiole{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 2 3h10a2 2 0 0 0 2-3l-5-9V3M7 15h10'/%3E%3C/svg%3E");}
.ico-bouee{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M5.6 5.6l3.6 3.6M14.8 14.8l3.6 3.6M18.4 5.6l-3.6 3.6M9.2 14.8l-3.6 3.6'/%3E%3C/svg%3E");}
.ico-sac{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2zM9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E");}
.ico-ecole{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-5 9 5-9 5zM7 11v5c3 2 7 2 10 0v-5'/%3E%3C/svg%3E");}
.ico-loupe{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");}
/* Icônes fines (remplacent les émojis dans l'Académie et la calculette) */
.ico-horloge{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");}
.ico-prix{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V3h8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");}
.ico-feuille{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-14 15-14 0 10-6 15-14 15'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E");}
.ico-livre{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h14v16H6.5A2.5 2.5 0 0 0 4 21.5'/%3E%3Cpath d='M20 19v3H6.5'/%3E%3C/svg%3E");}
.ico-crayon{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3Cpath d='M14 6l3 3'/%3E%3C/svg%3E");}
.ico-reglage{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");}
.ico-doc{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4M9 13h6M9 17h6'/%3E%3C/svg%3E");}
.ico-tableur{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M3 15h18M9 4v16'/%3E%3C/svg%3E");}
.ico-disque{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h11l3 3v15H5z'/%3E%3Cpath d='M8 3v5h7V3M8 21v-7h8v7'/%3E%3C/svg%3E");}
.ico-compare{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M17 4v16M4 8h6M14 16h6'/%3E%3C/svg%3E");}
.ico-partage{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4.4M8.2 13.2l7.6 4.4'/%3E%3C/svg%3E");}
.ico-flamme{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c1 4 5 6 5 11a5 5 0 0 1-10 0c0-3 2-4 2-7 1.5 1 2 2.5 2 4 1-1 1.5-4 1-8z'/%3E%3C/svg%3E");}
.ico-son{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4h4l5 4V6L8 10z'/%3E%3Cpath d='M16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E");}
.ico-assiette{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3C/svg%3E");}
/* Transitions douces entre les pages (navigateurs récents) */
@view-transition{navigation:auto;}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s;}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none;}}
/* Retour au toucher : le bouton s'enfonce légèrement */
:is(button,.cta,.btn-primary,.ui-btn,a.card,.rcard,.app-tabs a,.app-tabs button,.raccourcis button,.proches-liste a,.ui-sugg button){transition:transform .1s ease;}
:is(button,.cta,.btn-primary,.ui-btn,a.card,.rcard,.app-tabs a,.app-tabs button,.raccourcis button,.proches-liste a,.ui-sugg button):active{transform:scale(.97);}
@media (prefers-reduced-motion:reduce){:is(button,.cta,.btn-primary,.ui-btn,a.card,.rcard):active{transform:none;}}
/* Arabe : la même police (Cairo) pour les champs, boutons et petits titres */
html[lang^=ar] body :is(button,input,select,textarea,label,h4,h5,h6,.pill,.rcard-title,.card h3,.ecran b){font-family:'Cairo',sans-serif;}
/* Cartes recettes « magazine » : titre et temps posés sur la photo, sur un dégradé brun */
.rcard:has(.rcard-visual.has-img:not(.no-img)){position:relative;}
.rcard .rcard-visual.has-img:not(.no-img){height:200px;}
.rcard .rcard-visual.has-img:not(.no-img)::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(43,34,22,.88) 0%,rgba(43,34,22,.45) 38%,rgba(43,34,22,0) 62%);pointer-events:none;}
.rcard:has(.rcard-visual.has-img:not(.no-img)) .rcard-body{position:absolute;left:0;right:0;bottom:0;padding:12px 14px;gap:6px;z-index:1;}
.rcard:has(.rcard-visual.has-img:not(.no-img)) .rcard-title{color:#FFF8E7;font-size:1rem;line-height:1.3;text-shadow:0 1px 6px rgba(0,0,0,.35);}
.rcard:has(.rcard-visual.has-img:not(.no-img)) .rcard-meta span{background:rgba(255,248,231,.18);color:#FFF8E7;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}
.rcard:has(.rcard-visual.has-img:not(.no-img)) .rcard-play{display:none;}
.ico-pin{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6-7-12a7 7 0 0 1 14 0c0 6-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");}

/* ===== Style unique sur tout le site : mêmes polices que l'accueil (Karla pour le texte, Poppins pour les titres,
   Cairo en arabe), y compris sur l'Académie qui utilisait la police du système. Mêmes arrondis et ombres pour les cartes. ===== */
@font-face {font-family: 'Poppins'; font-style: normal; font-display: optional; font-weight: 600; src: url(/fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face {font-family: 'Poppins'; font-style: normal; font-display: optional; font-weight: 600; src: url(/fonts/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face {font-family: 'Poppins'; font-style: normal; font-display: optional; font-weight: 700; src: url(/fonts/poppins-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face {font-family: 'Poppins'; font-style: normal; font-display: optional; font-weight: 700; src: url(/fonts/poppins-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face {font-family: 'Cairo'; font-style: normal; font-display: optional; font-weight: 200 1000; src: url(/fonts/cairo-arabic-wght-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;}
@font-face {font-family: 'Cairo'; font-style: normal; font-display: optional; font-weight: 200 1000; src: url(/fonts/cairo-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face {font-family: 'Cairo'; font-style: normal; font-display: optional; font-weight: 200 1000; src: url(/fonts/cairo-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face {font-family: 'Karla'; font-style: normal; font-display: optional; font-weight: 200 800; src: url(/fonts/karla-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face {font-family: 'Karla'; font-style: normal; font-display: optional; font-weight: 200 800; src: url(/fonts/karla-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
html body{font-family:'Karla',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
html[lang^=ar] body{font-family:'Cairo','Karla',-apple-system,sans-serif;}
html body h1:not(.hero-title),html body h2,html body h3{font-family:'Poppins','Karla',sans-serif;letter-spacing:-.01em;}
html[lang^=ar] body h1:not(.hero-title),html[lang^=ar] body h2,html[lang^=ar] body h3{font-family:'Cairo',sans-serif;letter-spacing:0;}
html body input,html body select,html body textarea,html body button{font-family:inherit;}
/* Cartes : même arrondi, même ombre douce partout */
.fp-atouts>div,.fp-faq details,.quete-grille a,.acad-carte,.rm-boite,.info-card,.cart-panel,.form-panel,.ui-circuit,.devis-box,.product-card,.encadre-4cake{border-radius:16px !important;}
.fp-atouts>div,.quete-grille a,.acad-carte,.product-card{box-shadow:0 4px 16px rgba(58,46,26,.07);}

/* ===== Lisibilité : jamais de texte blanc sur fond doré. Sur le doré (#D4A017), le texte est brun (#3A2E1A),
   bien plus lisible (contraste 5,6:1 au lieu de 2,1:1). Couvre tout le site, y compris les pages générées. ===== */
.hero-promo .hp-tag,.qty-rapide button.actif,.cart-ajout-rapide,.devis-etapes li.actuel::before,
.ui-nav a.ui-nav-devis,.ui-circuit-devis,.promo-4cake a,#barre-produit .bp-devis,
.dx button,.etapes li::before,.etapes li:before,
a.cta:not(.wa):not(.tel):not(.btn-whatsapp):not(.cta-parrain):not(.vers-catalogue),
.fiche-shop-btn,.fiche-science-tags a:hover,.cc-go,.cc-touches i.eg,.etapes-calc b,.rapides button.on{color:#3A2E1A !important;}

/* Bouton « Envoyer » du devis de l'accueil : icône WhatsApp devant le mot (le devis part sur WhatsApp) */
#order-form button[type=submit]::before{content:"";display:inline-block;width:1.1em;height:1.1em;margin-inline-end:.45em;vertical-align:-.18em;background:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.4 7.6L3.5 20.5l1.4-4A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M9.2 8.6c.3 2.9 2.4 5 5.2 5.3l.9-1.4-1.8-.9-.8.8a4 4 0 0 1-1.9-1.9l.8-.8-.9-1.8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.4 7.6L3.5 20.5l1.4-4A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M9.2 8.6c.3 2.9 2.4 5 5.2 5.3l.9-1.4-1.8-.9-.8.8a4 4 0 0 1-1.9-1.9l.8-.8-.9-1.8z'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;}
/* Actions WhatsApp : vert WhatsApp foncé, texte blanc (contraste 4,6:1) — envoi du devis de l'accueil, devis express, boutons « WhatsApp » */
#order-form button[type=submit],.dx button[type=submit],a.cta.wa,a.cta.btn-whatsapp,a.btn.btn-whatsapp:not(.cta-row .btn-whatsapp){background:#128C4A !important;border-color:#128C4A !important;color:#fff !important;}
#order-form button[type=submit]:hover,.dx button[type=submit]:hover,a.cta.wa:hover,a.cta.btn-whatsapp:hover{background:#128C4A !important;}
/* Accueil, contact : l'icône repère (Itinéraire) n'est plus masquée avec les libellés */
.info-card .contact-rapide a span.ico{position:static;width:22px;height:22px;overflow:visible;clip:auto;}
/* Téléphone : barres de recherche et de filtres compactes (SOS, Académie) — une seule ligne de filtres qui défile */
@media (max-width:700px){
  .puces,.section-tabs,.niveau-tabs{flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px;}
  .puces::-webkit-scrollbar,.section-tabs::-webkit-scrollbar,.niveau-tabs::-webkit-scrollbar{display:none;}
  .puces>*,.section-tabs>*,.niveau-tabs>*{flex:none !important;white-space:nowrap;}
  .puces{margin-top:6px !important;}
  .puces button{padding:4px 11px !important;font-size:.8rem !important;}
  .sos-outils{padding:6px 0 4px !important;}
  .sos-outils input{padding:9px 12px !important;}
}

/* ===== Pages recettes (Académie) : mise en page « magazine » ===== */
main:has(> ol.steps) > h1{font-family:'Poppins',sans-serif;font-size:clamp(1.7rem,6vw,2.4rem);line-height:1.15;letter-spacing:-.01em;margin-top:4px;}
main:has(> ol.steps) > .hook{font-size:1.1rem;font-style:italic;color:#6B5E4E;border-inline-start:3px solid #D4A017;padding-inline-start:12px;}
main:has(> ol.steps) > img.recette-photo{border-radius:20px;aspect-ratio:4/3;object-fit:cover;box-shadow:0 10px 30px rgba(58,46,26,.14);margin:6px 0 26px;}
@media (max-width:720px){main:has(> ol.steps) > img.recette-photo{width:calc(100% + 40px);max-width:none;margin-inline:-20px;border-radius:0;box-shadow:none;}}
main:has(> ol.steps) > h2{border-bottom:none;font-family:'Poppins',sans-serif;font-size:1.25rem;display:flex;align-items:center;gap:10px;}
main:has(> ol.steps) > h2::after{content:'';flex:1;height:2px;background:linear-gradient(90deg,#D4A017,transparent);}
[dir="rtl"] main:has(> ol.steps) > h2::after{background:linear-gradient(270deg,#D4A017,transparent);}
main:has(> ol.steps) ul.ingredients{background:#fff;border:1px solid #E9DCC0;border-radius:16px;padding:6px 16px;}
main:has(> ol.steps) ul.ingredients li:last-child{border-bottom:none;}
main:has(> ol.steps) ul.ingredients li > span:last-child{font-weight:700;white-space:nowrap;padding-inline-start:12px;}
ol.steps{list-style:none;padding:0;counter-reset:etape;}
ol.steps > li:not(.callout){counter-increment:etape;position:relative;background:#fff;border:1px solid #E9DCC0;border-radius:16px;padding:14px 16px 14px 58px;margin-bottom:12px;}
ol.steps > li:not(.callout)::before{content:counter(etape);position:absolute;left:14px;top:12px;width:32px;height:32px;border-radius:50%;background:#F3E9CE;color:#3A2E1A;font-weight:800;display:flex;align-items:center;justify-content:center;font-family:'Poppins',sans-serif;}
[dir="rtl"] ol.steps > li:not(.callout){padding:14px 58px 14px 16px;}
[dir="rtl"] ol.steps > li:not(.callout)::before{left:auto;right:14px;}
ol.steps > li.callout{list-style:none;border-radius:12px;}

/* Liens sans style propre : or foncé de la charte au lieu du bleu du navigateur (contraste 4,9:1 sur crème) */
:where(a:link,a:visited){color:#8A6A0A;}
:where(a:link,a:visited):hover{color:#3A2E1A;}

/* ===== Finitions (discrètes) ===== */
/* 7) Trois niveaux d'ombre et des arrondis communs */
:root{--ombre-1:0 1px 3px rgba(58,46,26,.08);--ombre-2:0 6px 18px rgba(58,46,26,.12);--ombre-3:0 14px 34px rgba(58,46,26,.18);--rayon:16px;}
.card,.rcard,.acad-carte,.proches-liste a,.mini-carte,.fiche-shop,.app-favoris li{border-radius:var(--rayon);box-shadow:var(--ombre-1);}
.ui-circuit,.lec-bref{box-shadow:var(--ombre-1);}
.app-reprendre,.cart-fab,.ui-haut{box-shadow:var(--ombre-3);}
/* 1) Cartes qui se soulèvent au survol (ordinateur) ou au toucher (téléphone) */
@media (prefers-reduced-motion:no-preference){
  .card,.rcard,.acad-carte,.proches-liste a,.mini-carte{transition:transform .2s ease,box-shadow .2s ease;}
  @media (hover:hover){.card:hover,.rcard:hover,.acad-carte:hover,.proches-liste a:hover,.mini-carte:hover{transform:translateY(-2px);box-shadow:var(--ombre-2);}}
  .rcard:active,.acad-carte:active,.proches-liste a:active,.mini-carte:active{transform:translateY(-1px);box-shadow:var(--ombre-2);}
  /* 3) Photos qui s'installent : léger zoom arrière en apparaissant */
  .ui-img img[loading=lazy]{transition:opacity .45s ease,transform .6s ease,filter .6s ease;}
  .ui-img img[loading=lazy]:not(.ok){transform:scale(1.04);}
  /* 2) Trait doré qui se dessine sous les titres (ajouté par appli.js aux titres sans soulignement) */
  .ui-trait::after{content:"";display:block;height:2px;width:0;margin-top:6px;background:#D4A017;border-radius:2px;transition:width .7s cubic-bezier(.2,.8,.2,1);}
  [dir=rtl] .ui-trait::after{margin-inline-start:0;}
  .ui-trait.ui-trace::after{width:56px;}
  /* 5) Attente dorée à la place d'une image qui se charge */
  .rcard-visual:has(> img[loading=lazy]:not(.ok)),.card-top:has(img[loading=lazy]:not(.ok)){
    background:linear-gradient(100deg,#F3E9CE 30%,#FBF3DC 50%,#F3E9CE 70%) 0 0/300% 100%;animation:ui-attente 1.4s linear infinite;}
}
@keyframes ui-attente{from{background-position:100% 0;}to{background-position:-100% 0;}}
/* 6) Grain de papier très léger sur le fond */
body{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");}
/* En-têtes de l'Académie (publique et Pro) : marges latérales et boutons sur une seule ligne qui défile au doigt */
header .container.top-row{padding:10px 16px;gap:8px 12px;}
@media (max-width:760px){
  header .top-row .nav-actions{width:100%;flex-wrap:wrap;gap:8px;justify-content:stretch;padding:2px 0;}
  header .top-row .nav-actions > *{flex:1 1 auto;justify-content:center;text-align:center;}
  header .top-row .nav-actions a{padding:7px 12px;white-space:nowrap;font-size:.82rem;}
  header .top-row .lang-toggle{flex:0 0 auto;}
  header.entete-simple{justify-content:flex-start;}
}
/* Toucher : pas de surbrillance bleue du téléphone, un léger halo doré à la place ; contour clavier doré */
html{-webkit-tap-highlight-color:rgba(212,160,23,.18);}
:focus-visible{outline:2px solid #D4A017;outline-offset:2px;}
button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none;}
/* Stories : place réservée avant leur affichage (évite que la page saute) */
.tv-stories{display:flex;min-height:108px;box-sizing:border-box;}
@media (max-width:760px){header.entete-simple + .outils-page{visibility:hidden;height:0;min-height:0;padding:0;margin:0;overflow:hidden;}}
@media (max-width:760px){header.entete-simple{flex-wrap:nowrap;}header.entete-simple > a:not(.logo-entete):not(.vers-catalogue){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto;}header.entete-simple > *{flex-shrink:0;}header.entete-simple > a:not(.logo-entete):not(.vers-catalogue){flex-shrink:1;}}
/* Icônes fines : leur couleur ne doit jamais être écrasée par le fond d'une pastille parente */
.ico{background-color:currentColor !important;background-image:none !important;}
/* Couverture des fiches Science et SOS (outils/miniatures.py) : photo HD en tête, sans décalage (taille réservée) */
.couv-fiche{margin:0 -20px 16px;}
.couv-fiche img{display:block;width:100%;height:auto;aspect-ratio:40/21;object-fit:cover;}
.fiche-header .couv-fiche{margin:-20px -20px 16px;border-radius:inherit;overflow:hidden;}
@media (min-width:760px){.couv-fiche{margin:0 0 18px;border-radius:18px;overflow:hidden;}.fiche-header .couv-fiche{margin:-20px -20px 16px;border-radius:18px 18px 0 0;}}
/* Fiches avec couverture : titres serif et lettrine dès l'affichage (aucun décalage) */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:700;font-display:optional;src:url(/fonts/playfair-display-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212;}
html:not([lang^=ar]) main:has(.couv-fiche) h1,html:not([lang^=ar]) main:has(.couv-fiche) h2{font-family:"Playfair Display",Georgia,"Times New Roman",serif;letter-spacing:0;}
html:not([lang^=ar]) main:has(.couv-fiche) h2:first-of-type + p::first-letter,html:not([lang^=ar]) main:has(.couv-fiche) h2:first-of-type + div > p:first-child::first-letter{float:left;font-family:"Playfair Display",Georgia,serif;font-size:3.3em;line-height:.82;padding:6px 8px 0 0;color:#B8860B;font-weight:700;}

/* En-tête qui se compacte au défilement (en-têtes collants : accueil, Académie) : verre dépoli, ombre, logo réduit
   (transform : aucune page ne bouge) ; ui.js ajoute .ui-defile sur <html> après 40 px de défilement */
body > header img,body > header .logo img{transition:transform .25s ease;}
html.ui-defile body > header{-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);background:rgba(255,248,239,.8) !important;box-shadow:0 6px 18px rgba(58,46,26,.12);transition:box-shadow .25s,background .25s;}
html.ui-defile body > header .logo img{transform:scale(.86);}
/* Aperçu au survol (ordinateur) : ui.js */
.ui-apercu{position:fixed;z-index:2147483300;width:300px;border-radius:16px;overflow:hidden;background:#fff;border:1px solid #E9DCC0;box-shadow:0 18px 40px rgba(58,46,26,.22);pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .18s,transform .18s;}
.ui-apercu.ui-vu{opacity:1;transform:none;}
.ui-apercu img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#F3E9CE;}
.ui-apercu div{padding:12px 14px;}.ui-apercu b{display:block;color:#3A2E1A;font-size:.95rem;line-height:1.35;margin-bottom:4px;}
.ui-apercu p{margin:0;color:#6B5E4E;font-size:.82rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
