/* ============================================================
   Chrome refonte (header + sidebar flottante) — chargé sur toutes
   les pages refondues. Reproduit la maquette et masque le chrome mediweb.
   ============================================================ */

/* NB : le masquage de .main-section__contacts et le reset de body.--pt sont
   désormais inline dans parts/cafeo-chrome.php (ils ne s'appliquent que là où
   le chrome est réellement affiché) → ce CSS peut être chargé partout sans
   impacter les gabarits qui gardent le header mediweb. */

/* Header sticky : neutraliser les overflow des ancêtres (body + .wrapper) qui
   cassaient position:sticky. overflow:clip empêche le débordement horizontal
   SANS créer de conteneur de défilement → le header reste collé en haut. */
html{overflow-x:clip;}
body{overflow:visible !important;}
.wrapper{overflow:clip !important;}

/* Fond crème du redesign sur TOUTES les pages WooCommerce (boutique, fiche
   produit, panier, commande…) — le thème parent laissait un fond blanc. */
body.woocommerce-wrapper{background:#fcf3e5;}

/* Bandeau livraison — sticky lui aussi : il colle en haut et le header se cale
   juste en dessous (top:var(--cf-promo-h) posé par cafeo-anim.js car la hauteur
   du bandeau varie quand le texte s'enroule sur petit écran). */
.cf-promo{position:sticky;top:0;z-index:301;background:#ffd17c;color:#42240c;padding:10px 0;font-size:14px;letter-spacing:.04em;line-height:1.5;font-weight:500;font-family:'Onest',sans-serif;overflow:hidden;white-space:nowrap;}
/* Marquee : texte livraison sur UNE ligne qui défile en continu (desktop + mobile).
   Le track contient 2 copies identiques → translateX(-50%) = boucle sans couture. */
.cf-promo__track{display:inline-flex;align-items:center;will-change:transform;animation:cf-promo-scroll 28s linear infinite;}
.cf-promo__item{flex:0 0 auto;padding:0 2.5rem;}
.cf-promo:hover .cf-promo__track{animation-play-state:paused;}
@keyframes cf-promo-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media(prefers-reduced-motion:reduce){.cf-promo__track{animation:none;}.cf-promo{text-align:center;white-space:normal;}}

/* Header */
.cf-header{position:sticky;top:var(--cf-promo-h, 41px);z-index:300;background:#fcf3e5;border-bottom:1px solid rgba(44,50,53,.1);padding:0 max(90px, calc(50vw - 660px));height:84px;display:flex;align-items:center;justify-content:space-between;font-family:'Onest',sans-serif;}
.cf-header__logo{display:flex;align-items:center;}
.cf-header__logo img{height:56px;width:auto;display:block;}
.cf-header__logo-txt{font-size:22px;font-weight:700;color:#42240c;letter-spacing:1px;}
.cf-header__nav > ul{list-style:none;display:flex;align-items:center;gap:0;margin:0;padding:0;}
.cf-header__nav li{margin:0;position:relative;list-style:none;}
/* Design system « Navigation / Item (header) » : 15px · #2c3235 → hover #482b13
   → page courante : graisse 500 + soulignement jaune #ffd17c. */
.cf-header__nav a{display:block;text-decoration:none;color:#2c3235;transition:color .2s,text-shadow .2s;}
/* Survol : virage charcoal → brun #42240c + léger épaississement (faux-gras via
   text-shadow, sans reflow) + soulignement doré #ffd17c (le doré est un effet de
   SURVOL, pas un marqueur permanent). */
.cf-header__nav a:hover{color:#42240c;text-shadow:0 0 .35px currentColor;text-decoration:underline;text-decoration-color:#ffd17c;text-decoration-thickness:2px;text-underline-offset:6px;}
/* « Se former au café » : libellé non cliquable (le sous-menu reste accessible). */
.cf-header__nav a.cf-nav-label{cursor:default;}
.cf-header__nav > ul > li > a{padding:0 20px;line-height:84px;font-size:15px;letter-spacing:.02em;white-space:nowrap;}
/* Page/section courante : marquée en GRAS seulement (« vous êtes ici » discret) —
   PAS de trait doré permanent (le doré est réservé au survol). Groupe actif en haut
   de nav (parent/ancestor) + item courant exact (tous niveaux, déroulant/mobile). */
.cf-header__nav > ul > li.current-menu-item > a,
.cf-header__nav > ul > li.current-menu-parent > a,
.cf-header__nav > ul > li.current-menu-ancestor > a,
.cf-header__nav > ul > li.current_page_item > a,
.cf-header__nav > ul > li.current_page_parent > a,
.cf-header__nav li.current-menu-item > a,
.cf-header__nav li.current_page_item > a{
	color:#482b13;font-weight:500;
}
/* Caret pour les items avec sous-menu */
.cf-header__nav > ul > li.menu-item-has-children > a::after{content:"";display:inline-block;width:6px;height:6px;margin-left:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.55;}
/* Sous-menu déroulant */
.cf-header__nav ul ul{list-style:none;margin:0;padding:8px 0;position:absolute;top:100%;left:0;min-width:230px;background:#fcf3e5;border:1px solid rgba(44,50,53,.1);border-radius:8px;box-shadow:0 10px 28px rgba(44,50,53,.14);display:none;z-index:400;}
.cf-header__nav > ul > li:hover > ul{display:block;}
.cf-header__nav ul ul a{padding:9px 20px;font-size:14px;line-height:1.4;white-space:normal;}
.cf-header__nav ul ul a:hover{background:rgba(44,50,53,.05);}
.cf-header__cta{display:inline-flex;align-items:center;gap:10px;background:#ffd17c;color:#42240c;padding:14px 32px;border-radius:30px;font-size:14px;letter-spacing:2.24px;white-space:nowrap;text-decoration:none;transition:background .2s;}
.cf-header__cta:hover{background:#dfa63e;}
.cf-header__burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px;}
.cf-header__burger span{display:block;width:24px;height:2px;background:#42240c;}
/* Badge compteur du panier rapproché de l'icône (au lieu de flotter loin).
   !important pour battre le style inline du thème parent (.menu-item-cafeo-cart
   .cafeo-cart-count, même spécificité mais chargé après). */
.cf-header .cafeo-cart-count{right:-4px !important;top:-5px !important;}
/* Panier cloné dans le header (via JS) : masqué en desktop, le panier du menu suffit. */
.cf-header__cart-m{display:none;}
/* Clone : masquer le compteur « 0 » quand le panier est vide (comme le panier desktop). */
.cf-header__cart-m .cafeo-cart-count.is-empty{display:none;}

/* Sidebar flottante dorée */
.cf-floating{position:fixed;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;z-index:250;box-shadow:0 4px 20px rgba(44,50,53,.2);border-radius:40px;overflow:hidden;background:#ffd17c;}
.cf-floating__btn{width:56px;height:56px;display:flex;align-items:center;justify-content:center;transition:background .2s;}
.cf-floating__btn:hover{background:#dfa63e;}
.cf-floating__sep{height:1px;background:rgba(66,36,12,.15);margin:0 12px;}

/* ===== Footer refonte (identique sur toutes les pages) ===== */
.cf-footer{font-family:'Onest',sans-serif;}
.cf-footer__contact{background:#4b2d1f;padding:90px max(90px, calc(50vw - 660px)) 70px;}
.cf-footer__title{font-size:30px;letter-spacing:3px;color:#fff;text-transform:uppercase;font-weight:400;margin:0 0 40px;}
/* Formulaire CF7 sur fond sombre : textes/labels en clair (lisibilité) */
.cf-footer__contact{color:#f9f9f9;}
.cf-footer__contact label,
.cf-footer__contact .wpcf7-form,
.cf-footer__contact .wpcf7-form p,
.cf-footer__contact .wpcf7-list-item-label,
.cf-footer__contact span{color:#f9f9f9;}
.cf-footer__contact input:not([type="submit"]),
.cf-footer__contact textarea,
.cf-footer__contact select{color:#f9f9f9;border-color:rgba(249,249,249,.4);background:transparent;}
.cf-footer__contact input::placeholder,
.cf-footer__contact textarea::placeholder{color:rgba(249,249,249,.6);}
.cf-footer__contact .wpcf7-not-valid-tip{color:#ffb3a1;}
/* Champ « Message » : sur toute la largeur du conteneur (la grille parent
   est en 3 colonnes → le dernier champ ne prendrait qu'une colonne sinon). */
.cf-footer__contact .main-form__wrap .main-form__row:last-child{grid-column:1 / -1;}
/* Bouton Envoyer (CF7) → pill doré, texte brun lisible */
.cf-footer__contact input[type="submit"],
.cf-footer__contact button[type="submit"],
.cf-footer__contact .wpcf7-submit{background:#ffd17c !important;color:#42240c !important;border:0 !important;border-radius:30px !important;padding:14px 40px !important;letter-spacing:1.5px;font-weight:500;box-shadow:none !important;cursor:pointer;transition:background .2s;}
.cf-footer__contact input[type="submit"]:hover,
.cf-footer__contact button[type="submit"]:hover,
.cf-footer__contact .wpcf7-submit:hover{background:#dfa63e !important;}
/* Le libellé est dans un <span> (style mediweb) → forcer le brun, comme BOUTIQUE */
.cf-footer__contact button[type="submit"] span,
.cf-footer__contact .wpcf7-submit span,
.cf-footer__contact button[type="submit"]:hover span,
.cf-footer__contact input[type="submit"]{color:#42240c !important;}

/* ===== Boutons WooCommerce principaux → pill doré (charte café) ===== */
.woocommerce .button.alt,
.woocommerce button.single_add_to_cart_button,
.woocommerce a.checkout-button,
.woocommerce #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.button,
.woocommerce a.added_to_cart{
	background:#ffd17c !important;color:#42240c !important;border:0 !important;
	border-radius:30px !important;letter-spacing:1.5px;font-weight:500;box-shadow:none !important;
}
.woocommerce .button.alt:hover,
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover,
.woocommerce-cart .wc-proceed-to-checkout a.button:hover,
.woocommerce a.added_to_cart:hover{background:#dfa63e !important;color:#42240c !important;}
/* Menu footer (3 colonnes) sous le formulaire */
.cf-footer__nav{margin-top:56px;padding-top:40px;border-top:1px solid rgba(255,255,255,.12);display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.cf-footer__col{display:flex;flex-direction:column;gap:12px;}
.cf-footer__col a{font-size:15px;color:rgba(255,255,255,.7);letter-spacing:.3px;text-decoration:none;transition:color .2s;}
.cf-footer__col a:hover{color:#fff;}
@media(max-width:760px){.cf-footer__nav{grid-template-columns:1fr;gap:24px;margin-top:40px;padding-top:32px;}}

.cf-footer__brand{background:#4b2d1f;padding:36px max(90px, calc(50vw - 660px)) 40px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;}
/* Vrai logo footer (sceau doré + texte blanc) en background — masque l'image ACF */
.cf-footer__logo{display:block;width:min(286px,60vw);aspect-ratio:286/65;background:url('../img/footer-logo.svg?v=2') left center/contain no-repeat;}
.cf-footer__logo img,.cf-footer__logo span{display:none;}
.cf-footer__cta{display:inline-flex;align-items:center;gap:10px;background:#ffd17c;color:#42240c;padding:14px 32px;border-radius:30px;font-size:14px;letter-spacing:2.24px;white-space:nowrap;text-decoration:none;transition:background .2s;}
.cf-footer__cta:hover{background:#dfa63e;}

/* ── Uniformisation de la hauteur des boutons (46px partout) ───────────────
   Les boutons « pill » (contenu, header, footer) font déjà 46px. Le bouton
   d'envoi du formulaire (thème parent `.button`) montait à 58px à cause d'une
   flèche SVG de 30px : on borne sa flèche (13px, comme les pills) + on aligne
   police/padding. On force aussi une flèche identique dans tous les boutons. */
.btn--pill,
.cf-header__cta,
.cf-footer__cta,
.cf-footer__contact button[type="submit"]{min-height:46px;box-sizing:border-box;}
.cf-footer__contact button[type="submit"]{font-size:14px !important;line-height:1.2 !important;padding:14px 32px !important;letter-spacing:2.24px !important;font-weight:400 !important;height:auto !important;}
.cf-footer__contact button[type="submit"] span{font-size:14px !important;line-height:1.2 !important;}
.btn--pill svg,
.cf-header__cta svg,
.cf-footer__cta svg,
.cf-footer__contact button[type="submit"] svg{width:26px !important;height:13px !important;flex:0 0 auto !important;}
.cf-footer__bottom{background:#4b2d1f;border-top:1px solid rgba(255,255,255,.1);padding:16px max(90px, calc(50vw - 660px)) 20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;}
.cf-footer__bottom p{margin:0;font-size:14px;}
.cf-footer__meta{display:flex;gap:24px;align-items:center;font-size:14px;}
.cf-footer__meta,.cf-footer__meta p,.cf-footer__meta a{font-size:14px;}

/* Conteneur réduit à 1240px (marge 620) UNIQUEMENT sur l'accueil et les
   archives : la classe body `cafeo-narrow` (ajoutée via body_class dans
   functions.php) aligne le header + les bandes du footer sur le même bord
   que le contenu. Les autres pages restent à 1320. */
.cafeo-narrow .cf-header{padding-left:max(90px, calc(50vw - 620px));padding-right:max(90px, calc(50vw - 620px));}
.cafeo-narrow .cf-footer__contact,
.cafeo-narrow .cf-footer__brand,
.cafeo-narrow .cf-footer__bottom{padding-left:max(90px, calc(50vw - 620px));padding-right:max(90px, calc(50vw - 620px));}
.cf-footer__meta a{text-decoration:none;transition:color .2s;}
/* Bas de footer : tous les textes ET liens EXACTEMENT la même couleur */
.cf-footer__bottom p,.cf-footer__bottom a{color:rgba(255,255,255,.6) !important;}
.cf-footer__bottom a:hover{color:#fff !important;}

@media(max-width:1080px){
	.cf-header{padding:0 40px;}
	.cf-footer__contact,.cf-footer__brand,.cf-footer__bottom{padding-left:40px;padding-right:40px;}
	.cf-footer__contact{padding-top:64px;padding-bottom:48px;}
}
@media(max-width:680px){
	.cf-footer__contact,.cf-footer__brand,.cf-footer__bottom{padding-left:24px;padding-right:24px;}
	.cf-footer__bottom{flex-direction:column;align-items:flex-start;}
	.cf-footer__meta{flex-wrap:wrap;gap:14px;}
}
@media(max-width:820px){
	/* Header compact : logo (sceau) + BOUTIQUE + panier + croix sur UNE ligne. */
	.cf-header{padding:0 12px;height:64px;min-height:64px;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:10px;}
	/* Certains gabarits ajoutent .cafeo-narrow (padding latéral large, spécificité
	   0,2,0) → on le neutralise en mobile pour que le sceau soit bien collé à gauche. */
	.cafeo-narrow .cf-header{padding-left:12px;padding-right:12px;}
	/* Logo mobile : uniquement le symbole (sceau), collé à gauche. */
	.cf-header__logo{order:0;flex:none;margin-right:auto;width:44px;height:44px;background:url('../img/logo-sceau.png') left center/contain no-repeat;}
	.cf-header__logo img,.cf-header__logo-txt{display:none;}
	.cf-header__cta{order:1;flex:none;padding:0 14px;min-height:38px;font-size:14px;letter-spacing:.5px;gap:0;}
	.cf-header__cta svg{display:none !important;} /* flèche masquée pour gagner de la largeur */
	/* Panier cloné visible dans le header mobile (hors menu replié), avant le burger. */
	.cf-header__cart-m{display:inline-flex;align-items:center;justify-content:center;position:relative;width:34px;height:38px;color:#42240c;order:2;flex:none;text-decoration:none;}
	.cf-header__cart-m .cafeo-cart-ico{display:inline-flex;}
	.cf-header__cart-m .cafeo-cart-ico svg{width:23px;height:23px;}
	/* Le panier est déjà présent en haut via le clone : on masque l'item panier
	   d'origine dans le menu déroulant pour éviter un 2e panier orphelin. */
	.cf-header__nav .menu-item-cafeo-cart{display:none;}
	.cf-header__burger{display:flex;order:3;flex:none;padding:6px;position:relative;z-index:310;}
	/* Burger → croix (X) quand le menu est ouvert (permet de refermer). */
	.cf-header__burger span{transition:transform .25s ease,opacity .2s ease;}
	.cf-header.is-open .cf-header__burger span:nth-child(1){transform:translateY(7px) rotate(45deg);}
	.cf-header.is-open .cf-header__burger span:nth-child(2){opacity:0;}
	.cf-header.is-open .cf-header__burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
	.cf-header__nav{order:4;display:none;}
	/* Menu mobile ouvert : PLEIN ÉCRAN sous le header (fixed, du bas du header
	   jusqu'en bas de l'écran). En flux flex la largeur se calculait mal (~195px,
	   menu « cassé ») → on sort la nav du flux pour un panneau plein écran. */
	.cf-header.is-open .cf-header__nav{display:block;position:fixed;left:0;right:0;top:calc(var(--cf-promo-h, 41px) + 64px);bottom:0;width:auto;padding:14px 18px 28px;background:#fcf3e5;border-top:1px solid rgba(44,50,53,.1);overflow-y:auto;z-index:290;}
	.cf-header__nav > ul{flex-direction:column;align-items:flex-start;gap:0;}
	.cf-header__nav > ul > li > a{line-height:2.2;padding:6px 0;}
	.cf-header__nav > ul > li.menu-item-has-children > a::after{display:none;}
	/* Sous-menus : empilés et indentés (pas de déroulant sur mobile) */
	.cf-header__nav ul ul{position:static;display:block;min-width:0;background:transparent;border:0;box-shadow:none;padding:0 0 6px 16px;}
	.cf-header__nav ul ul a{padding:5px 0;font-size:14px;color:#6b4a2f;}
	.cf-floating{right:16px;}
	.cf-floating__btn{width:48px;height:48px;}
}

/* ============================================================
   Hero de page — WooCommerce (boutique / produit / panier / commande)
   Remplace l'ancien bandeau crème mediweb par le hero sombre refondu.
   ============================================================ */
.cf-pagehero{
	background:linear-gradient(135deg,#1c0c04 0%,#3a1a08 35%,#6b3818 70%,#a35e14 100%);
	padding:72px 90px 64px;min-height:300px;color:#f9f9f9;font-family:'Onest',sans-serif;position:relative;overflow:hidden;
}
.cf-pagehero__inner{position:relative;max-width:1320px;margin:0 auto;}
.cf-pagehero__crumb{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:14px;letter-spacing:2px;text-transform:uppercase;}
.cf-pagehero__crumb a{color:rgba(255,209,124,.55);text-decoration:none;transition:color .2s ease;}
.cf-pagehero__crumb a:hover{color:#ffd17c;}
.cf-pagehero__crumb span{color:rgba(255,255,255,.3);}
.cf-pagehero__crumb .is-current{color:rgba(255,255,255,.55);}
.cf-pagehero__title{margin:0;font-size:clamp(30px,3.6vw,48px);font-weight:400;letter-spacing:3px;line-height:1.2;text-transform:uppercase;color:#f9f9f9;}
/* Sous-titre du bandeau : nom de l'atelier sur la page de réservation. */
.cf-pagehero__sub{margin:14px 0 0;font-size:clamp(19px,1.9vw,26px);font-weight:400;letter-spacing:1px;line-height:1.3;color:#ffd17c;}
/* Déco unifiée : anneau + grain de café (comme archive/article) */
.cf-pagehero__ring{position:absolute;top:-80px;right:-80px;width:480px;height:480px;border-radius:50%;border:1px solid rgba(255,209,124,.08);pointer-events:none;}
.cf-pagehero__bean{position:absolute;right:120px;top:20px;opacity:.07;pointer-events:none;}
@media (max-width:760px){.cf-pagehero__bean{right:20px;width:110px;}}
@media (max-width:760px){.cf-pagehero{padding:40px 24px;}}

/* ============================================================
   WooCommerce — tri, compteur de résultats, pagination, filtres
   ============================================================ */
.woocommerce .woocommerce-result-count{font-family:'Onest',sans-serif;font-size:14px;color:#6b4a2f;margin-top:6px;}
.woocommerce .woocommerce-ordering select{
	font-family:'Onest',sans-serif;font-size:14px;color:#42240c;background-color:#fff;
	border:1px solid #e2d3bd;border-radius:30px;padding:10px 42px 10px 18px;cursor:pointer;
	-webkit-appearance:none;-moz-appearance:none;appearance:none;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2342240c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat:no-repeat;background-position:right 16px center;transition:border-color .2s ease;
}
.woocommerce .woocommerce-ordering select:focus{outline:none;border-color:#ffd17c;box-shadow:0 0 0 3px rgba(255,209,124,.35);}
.woocommerce nav.woocommerce-pagination{margin-top:32px;}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0;overflow:visible;}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
	font-family:'Onest',sans-serif;font-size:14px;min-width:42px;height:42px;line-height:42px;padding:0 12px;
	border-radius:50%;color:#2c3235;background:#fff;border:1px solid rgba(44,50,53,.12);transition:background .2s ease,border-color .2s ease;
}
.woocommerce nav.woocommerce-pagination ul li a:hover{background:#fcf3e5;}
.woocommerce nav.woocommerce-pagination ul li span.current{background:#482b13;border-color:#482b13;color:#fff;}
/* Filtres (colonne de gauche) */
.woocommerce .widget-area .widget,.woocommerce-page .widget-area .widget{font-family:'Onest',sans-serif;color:#2c3235;}
.woocommerce .widget-area .widgettitle,.woocommerce .widget-area h2,.woocommerce .widget-area h3,.woocommerce-page .widget-area h2,.woocommerce-page .widget-area h3{font-family:'Onest',sans-serif;color:#42240c;letter-spacing:.5px;}
.woocommerce .price_slider_wrapper .ui-slider .ui-slider-range{background:#ffd17c;}
.woocommerce .price_slider_wrapper .ui-slider .ui-slider-handle{background:#42240c;border:2px solid #ffd17c;}
.woocommerce .widget_price_filter .price_slider_amount .button,.woocommerce .widget a.button{
	background:#ffd17c!important;color:#42240c!important;border-radius:30px!important;border:0!important;font-family:'Onest',sans-serif;letter-spacing:1px;
}

/* ============================================================
   Prix : remplacer l'ancien vert/olive (#958809) du thème médical
   par le brun de la charte, lisible sur fond clair. Vaut partout
   (boutique, fiche produit, panier, cartes d'accueil).
   ============================================================ */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol,
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce ul.products li.product .price,
.cf-card__price .woocommerce-Price-amount{color:#42240c !important;}
/* Ancien prix barré (promo) : garder un ton discret */
.woocommerce del .woocommerce-Price-amount{color:#9a7862 !important;opacity:.8;}

/* ============================================================
   Design system : état ACTIF des boutons/CTA jaunes = #c8932e
   (hover #dfa63e déjà appliqué). Le :active doit primer le :hover.
   ============================================================ */
.btn--pill:active,
.cf-header__cta:active,
.cf-footer__cta:active,
.woocommerce .button.alt:active,
.woocommerce button.single_add_to_cart_button:active,
.woocommerce a.checkout-button:active,
.woocommerce #place_order:active,
.woocommerce-cart .wc-proceed-to-checkout a.button:active{background:#c8932e !important;color:#42240c !important;}
.cf-floating__btn:active{background:#c8932e;}
.cf-footer__contact input[type="submit"]:active,
.cf-footer__contact button[type="submit"]:active,
.cf-footer__contact .wpcf7-submit:active{background:#c8932e !important;}

/* « TTC » sur les prix du panier / commande / mini-panier (blocs WooCommerce
   rendus en JS : pas de hook PHP, mais classe stable → suffixe via ::after,
   résistant aux re-rendus React). Scopé aux racines de blocs = panier/checkout. */
.wp-block-woocommerce-cart .wc-block-formatted-money-amount::after,
.wp-block-woocommerce-checkout .wc-block-formatted-money-amount::after,
.wc-block-mini-cart .wc-block-formatted-money-amount::after{content:" TTC";font-size:.82em;opacity:.75;}

/* ===== Panier / commande (blocs WooCommerce) — habillage charte ===== */
/* Bouton principal (« Valider la commande » / « Passer la commande ») = pilule dorée. */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button{
	background:#ffd17c !important;color:#42240c !important;border:0 !important;border-radius:30px !important;
	font-family:'Onest',sans-serif;font-weight:600;letter-spacing:1px;padding:16px 34px !important;
	box-shadow:0 4px 14px rgba(255,209,124,.4);transition:background .2s,box-shadow .2s;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover{background:#e9b74f !important;color:#42240c !important;box-shadow:0 6px 18px rgba(233,183,79,.5);}
/* Bouton coupon « Appliquer » = pilule brune (action secondaire). */
.wc-block-components-totals-coupon__button{
	background:#ffd17c !important;color:#42240c !important;border:0 !important;border-radius:30px !important;
	font-family:'Onest',sans-serif;font-weight:600;letter-spacing:.5px;
}
.wc-block-components-totals-coupon__button:hover{background:#e9b74f !important;color:#42240c !important;}

/* Lignes produits du panier : un peu plus grandes (plus d'air + vignette). */
.wc-block-cart-items__row{padding-top:28px !important;padding-bottom:28px !important;}
/* Vignette + espace RÉEL avant le texte (content-box : la cellule = image 72px
   + 20px de marge, sinon l'image de 88px débordait sur le titre/prix). */
.wc-block-cart-item__image{width:72px !important;max-width:72px !important;padding-right:20px !important;box-sizing:content-box !important;vertical-align:top;}
.wc-block-cart-item__image img{width:72px !important;max-width:72px !important;height:auto;}
.wc-block-cart-item__product{padding-left:18px !important;}
.wc-block-cart-items__row .wc-block-components-product-name{font-size:17px !important;}
.wc-block-cart-item__prices .wc-block-formatted-money-amount{font-size:15px;}

/* Notification WooCommerce (« … a été ajouté au panier », infos) = charte.
   Message à gauche, bouton doré poussé à droite (au lieu du bouton gris collé). */
.woocommerce-message,
.woocommerce-info{
	font-family:'Onest',sans-serif;color:#2c3235;background:#fff;
	border:1px solid rgba(74,45,31,.14);border-top:3px solid #ffd17c;
	border-radius:12px;box-shadow:0 8px 24px rgba(44,50,53,.08);
	padding:16px 22px;margin:0 0 22px;
	display:flex;align-items:center;flex-wrap:wrap;gap:12px;list-style:none;line-height:1.4;
}
.woocommerce-message::before,
.woocommerce-info::before{position:static;margin:0;color:#3a9d5d;}
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message a.button.wc-forward,
.woocommerce-info .button,
.woocommerce-info a.button{
	background:#ffd17c !important;color:#42240c !important;border:0 !important;border-radius:30px !important;
	padding:11px 24px !important;font-weight:600;letter-spacing:.5px;text-transform:uppercase;font-size:13px;
	box-shadow:none !important;margin-left:auto !important;order:9;transition:background .2s;
}
.woocommerce-message .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-info .button:hover{background:#e9b74f !important;color:#42240c !important;}
/* Avis en bloc (notice banner React) — même esprit. */
/* Notices bloc React (« ajouté au panier »… souvent .is-info = bordure BLEUE).
   On neutralise le bleu sur TOUTES les variantes (base + modificateurs) : bordure
   jaune charte, icône verte, contour supprimé. Seule .is-error garde son rouge. */
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-warning{
	font-family:'Onest',sans-serif;border-radius:12px;
	background:#fff !important;border-color:#ffd17c !important;outline-color:#ffd17c !important;box-shadow:none !important;
}
.wc-block-components-notice-banner.is-error{border-color:#c0392b !important;}
/* Le « truc bleu » = le FOND (cercle) de l'icône SVG, pas la bordure.
   → cercle vert + glyphe blanc (rouge pour les erreurs). */
.wc-block-components-notice-banner svg,
.wc-block-components-notice-banner__content svg{fill:#fff !important;background-color:#3a9d5d !important;}
.wc-block-components-notice-banner.is-error svg,
.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content svg{background-color:#c0392b !important;}
.wc-block-components-notice-banner a.wc-block-components-button,
.wc-block-components-notice-banner .wc-block-components-button{background:#ffd17c !important;color:#42240c !important;border-radius:30px !important;}

/* Case « J'ai lu et j'accepte… » du tunnel de commande. Un panier mixte
   (café + formation) en affiche deux : elles doivent rester lisibles et
   nettement séparées du bouton de paiement. */
.woocommerce .cafeo-cgv{margin:0 0 14px;}
.woocommerce .cafeo-cgv label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;cursor:pointer;}
.woocommerce .cafeo-cgv input[type=checkbox]{margin:2px 0 0;flex-shrink:0;width:17px;height:17px;accent-color:#ffd17c;}
.woocommerce .cafeo-cgv a{color:#42240c;text-decoration:underline;}
.woocommerce .cafeo-cgv a:hover{color:#9a7862;}
.woocommerce .cafeo-cgv abbr.required{border:0;text-decoration:none;color:#b3261e;}
/* Bouton de commande verrouillé tant que les conditions ne sont pas acceptées. */
.woocommerce #place_order.cafeo-btn-bloque,
.woocommerce #place_order:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(35%);}

/* ── Page « Validation de la commande » ──────────────────────────────────────
   Trois corrections. 1) Le blanc au-dessus de « Coordonnées » : la section du
   thème parent réservait 100 px, ramenés à 36. 2) Le conteneur `--small` du
   parent bridait la page à 846 px, ce qui écrasait le résumé de commande à
   286 px de large — porté à la largeur du site. 3) Les lignes du résumé
   étaient étirées à 153 px de haut : les styles éditoriaux du parent faisaient
   grandir le titre du produit dans la colonne. On fige l'alignement en haut et
   on empêche les éléments de s'étirer. */
body.woocommerce-checkout .section.page-text{padding-top:36px;}
body.woocommerce-checkout .container.--small{max-width:1240px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout{padding-top:0;}
body.woocommerce-checkout .wc-block-components-order-summary-item{align-items:flex-start;}
body.woocommerce-checkout .wc-block-components-order-summary-item__image{flex:0 0 48px;height:48px;}
body.woocommerce-checkout .wc-block-components-order-summary-item__description{flex:1 1 auto;}
body.woocommerce-checkout .wc-block-components-order-summary-item__description > *{flex:0 0 auto;}
/* Le thème parent pousse toutes les images de 40 px vers le bas (règle prévue
   pour les images d'articles) : la photo du produit se retrouvait décalée sous
   son propre nom. On la remet au ras du haut de la ligne. */
body.woocommerce-checkout .wc-block-components-order-summary-item__image img{margin:0;}
body.woocommerce-checkout .wc-block-components-order-summary-item__image{padding-bottom:0;}
/* Colonne nom/poids élargie, et écart resserré avec la colonne des prix. */
body.woocommerce-checkout .wc-block-components-order-summary-item__description{padding:4px 8px 12px 12px;}
body.woocommerce-checkout .wc-block-components-order-summary-item .wc-block-components-product-name{max-width:none;line-height:1.4;}
@media(max-width:1100px){
	body.woocommerce-checkout .container.--small{max-width:100%;}
}

/* ── Page de confirmation de commande ────────────────────────────────────────
   WooCommerce rend cette page avec son gabarit CLASSIQUE (contrairement au
   tunnel, qui est en blocs) : tout est donc habillable en CSS, sans remplacer
   aucun fichier. On reprend le vocabulaire visuel du site — cartes crème,
   filets discrets, titres en majuscules espacées, accents dorés. */
body.woocommerce-order-received .woocommerce-order{font-family:'Onest',sans-serif;color:#2c3235;}
body.woocommerce-order-received .woocommerce-order,
body.woocommerce-order-received .woocommerce-order p,
body.woocommerce-order-received .woocommerce-order td,
body.woocommerce-order-received .woocommerce-order address{text-align:left;}

/* Message de confirmation */
body.woocommerce-order-received .woocommerce-notice--success{
	background:#fcf3e5;border:1px solid #f0dfc2;border-radius:14px;padding:26px 30px;margin:0 0 28px;
	font-size:19px;color:#42240c;display:flex;align-items:center;gap:14px;}
body.woocommerce-order-received .woocommerce-notice--success::before{
	content:'';flex:0 0 36px;height:36px;border-radius:50%;
	background:#ffd17c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2342240c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/20px no-repeat;}

/* Récapitulatif : numéro, date, e-mail, total, paiement */
body.woocommerce-order-received ul.woocommerce-order-overview{
	list-style:none;margin:0 0 44px;padding:0;border:0;display:grid;gap:14px;
	grid-template-columns:repeat(auto-fit,minmax(190px,1fr));}
body.woocommerce-order-received ul.woocommerce-order-overview > li,
body.woocommerce-order-received ul.woocommerce-order-overview > li:last-child{
	background:#fff;border:1px solid #efe6d6;border-radius:12px;padding:16px 18px;margin:0;text-align:left;
	font-size:13px;letter-spacing:1.4px;text-transform:uppercase;color:#9a7862;font-weight:400;line-height:1.5;}
body.woocommerce-order-received ul.woocommerce-order-overview > li strong{
	display:block;margin-top:6px;font-size:17px;letter-spacing:0;text-transform:none;color:#42240c;font-weight:500;line-height:1.4;}

/* Titres de section */
body.woocommerce-order-received .woocommerce-order h2{
	font-size:22px;letter-spacing:2.5px;text-transform:uppercase;font-weight:400;color:#42240c;margin:0 0 18px;}

/* Tableau du détail de la commande */
body.woocommerce-order-received .woocommerce-table--order-details{
	width:100%;border-collapse:separate;border-spacing:0;background:#fff;
	border:1px solid #efe6d6;border-radius:12px;overflow:hidden;}
body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td{
	padding:14px 20px;border:0;border-bottom:1px solid #f3ece0;text-align:left;}
body.woocommerce-order-received .woocommerce-table--order-details thead th{
	background:#fcf3e5;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;font-size:13px;color:#9a7862;}
body.woocommerce-order-received .woocommerce-table--order-details th:last-child,
body.woocommerce-order-received .woocommerce-table--order-details td:last-child{text-align:right;white-space:nowrap;}
body.woocommerce-order-received .woocommerce-table--order-details tfoot th{
	background:transparent;text-transform:none;letter-spacing:0;font-size:15px;color:#42240c;}
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td{
	font-size:19px;color:#42240c;border-bottom:0;}

/* Adresses. Le thème parent impose un placement en grille qui inversait les
   deux colonnes : on repasse en disposition souple, qu'il n'affecte pas. */
body.woocommerce-order-received .woocommerce-customer-details{margin-top:44px;}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns{
	display:flex;flex-wrap:wrap;gap:20px;}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column{
	flex:1 1 280px;width:auto;max-width:none;float:none;
	background:#fff;border:1px solid #efe6d6;border-radius:12px;padding:22px 24px;}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column h2{font-size:15px;letter-spacing:2px;margin:0 0 12px;}
body.woocommerce-order-received .woocommerce-customer-details address{
	border:0;padding:0;width:auto;font-style:normal;line-height:1.7;}

/* ============================================================
   PANIER VIDE
   ============================================================ */
/* Le bonhomme triste gris de WooCommerce (masque SVG de 150px) n'appartient
   pas à la charte : le message et le bouton disent la même chose, mieux. */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before{display:none !important;}

.cafeo-panier-cta{text-align:center;margin:26px 0 0;}
.cafeo-panier-cta__btn{
	display:inline-flex;align-items:center;gap:10px;min-height:46px;box-sizing:border-box;
	background:#ffd17c;color:#42240c;padding:14px 32px;border-radius:30px;
	font-family:'Onest',sans-serif;font-size:14px;letter-spacing:2.24px;text-transform:uppercase;
	text-decoration:none;white-space:nowrap;transition:background .2s;
}
.cafeo-panier-cta__btn:hover{background:#f0be63;}
.cafeo-panier-cta__btn svg{width:26px;height:13px;flex:0 0 auto;}

/* Grille « Nouveau dans la boutique » : les boutons du bloc arrivaient en
   gris ardoise (#32373c) avec un texte brun délavé — hors charte et peu
   lisible. Même pill doré que tous les autres boutons d'achat du site. */
.wc-block-grid__product-add-to-cart .wp-block-button__link{
	background:#ffd17c !important;color:#42240c !important;border:0 !important;
	border-radius:30px !important;padding:12px 26px !important;
	font-family:'Onest',sans-serif !important;font-size:13px !important;
	letter-spacing:1.5px !important;font-weight:500 !important;box-shadow:none !important;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover{background:#dfa63e !important;}
/* Le nom du café sortait en 12px #9a7862 : illisible sous la photo. */
.wc-block-grid__product-title{font-size:15px !important;font-weight:500 !important;color:#42240c !important;}

/* Confirmation de commande : rappel de la livraison offerte. */
.cafeo-franco{
	margin:0 0 26px;padding:16px 20px;
	background:#fcf3e5;border:1px solid #f0e0c6;border-left:4px solid #ffd17c;border-radius:10px;
	font-family:'Onest',sans-serif;font-size:15px;line-height:1.6;color:#5c5347;
}
.cafeo-franco strong{color:#42240c;}

/* Rappel « livraison offerte » en tête du panier et de la commande. */
.cafeo-franco--tunnel{
	max-width:1240px;margin:0 auto 24px;
	display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.cafeo-franco--tunnel strong{color:#42240c;}
.cafeo-franco__suite{display:block;width:100%;margin-top:4px;font-size:14px;color:#6b5c47;}

/* Téléphones : bandeau ramené de 300 à 170px (cf. cafeo-article.css). */
@media (max-width:600px){
	.cf-pagehero{min-height:170px;padding:30px 22px;}
	.cf-pagehero__crumb{margin-top:10px;}
}
