/* Refonte v2 — base commune.
   .clp-scope délimite tout ce que rend la refonte (header, footer, écrans codés, tiroirs).
   Les remises à zéro passent par :where() pour égaler (et non dépasser) la spécificité du reset
   de Hello Elementor : chargées après lui, elles l'emportent, et les classes des composants
   (chargées encore après) l'emportent sur elles. */

body.clp-v2{font-family:var(--clp-font);color:var(--clp-ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.clp-coded{background:#fff;overflow-x:clip}

:where(.clp-scope),:where(.clp-scope) *,:where(.clp-scope) *::before,:where(.clp-scope) *::after{box-sizing:border-box}
:where(.clp-scope){font-family:var(--clp-font);color:var(--clp-ink);line-height:1.5}
:where(.clp-scope) a{color:var(--clp-link);text-decoration:underline}
:where(.clp-scope) a:hover{color:var(--clp-terra-dark)}
:where(.clp-scope) :is(h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.clp-scope) :is(h1,h2,h3,h4,h5,h6){font-weight:inherit;line-height:inherit;font-size:inherit;color:inherit;font-family:inherit}
:where(.clp-scope) :is(ul,ol){padding:0;list-style:none}
:where(.clp-scope) img{max-width:100%;height:auto;display:block}
/* <picture> ajouté par Imagify autour des images (source AVIF) : sans effet sur la mise en page (inc/images.php).
   La <source> est masquée, sinon elle devient une case de la grille ou du flex parent (le choix du fichier n'en dépend pas). */
.clp-picture{display:contents}
.clp-picture>source{display:none}

/* Boutons : neutres par défaut (le reset Hello les met en rose #c36). */
:where(.clp-scope) :is(button,[type=button],[type=submit],[type=reset]){
  font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-transform:none;
  background:none;border:0;border-radius:0;padding:0;margin:0;color:inherit;cursor:pointer;text-align:inherit;
  white-space:normal;user-select:auto;transition:background .2s,color .2s,border-color .2s;display:inline-flex;align-items:center;justify-content:center
}
:where(.clp-scope) :is(button,[type=button],[type=submit],[type=reset]):is(:hover,:focus){background-color:transparent;color:inherit;text-decoration:none}
:where(.clp-scope) :is(button,[type=button],[type=submit]):focus-visible{outline:2px solid var(--clp-terra);outline-offset:2px}

/* Champs */
:where(.clp-scope) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],input[type=number],input[type=url],select,textarea){
  font-family:inherit;font-size:15px;color:var(--clp-ink);background:#fff;border:1px solid var(--clp-line);border-radius:var(--clp-radius);
  padding:0 14px;height:48px;width:100%;outline:none;box-shadow:none;transition:border-color .2s
}
:where(.clp-scope) textarea{height:auto;padding:12px 14px}
:where(.clp-scope) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],input[type=number],select,textarea):focus{border-color:var(--clp-ink)}
:where(.clp-scope) ::placeholder{color:#8A847E;opacity:1}

/* Utilitaires partagés */
.clp-wrap{max-width:1440px;margin:0 auto;padding-left:var(--clp-px);padding-right:var(--clp-px)}
.clp-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Pots de miel des formulaires (alerte stock, être recontacté, newsletter) : jamais visibles, même si la feuille
   de l'écran n'est pas chargée (recette 03/11, point 21). Le style en ligne du gabarit sert de second filet. */
.clp-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.clp-script{font-family:var(--clp-script);font-weight:400;color:#000}
.clp-kicker{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--clp-muted)}
.clp-icon{flex:none;display:block}
.clp-paylogos{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.clp-paylogos svg{display:block}

/* Boutons de la maquette */
.clp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 28px;border-radius:var(--clp-radius);font-size:15px;font-weight:500;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s;white-space:nowrap}
.clp-btn--primary{background:var(--clp-terra);color:#fff;border:0}
.clp-btn--primary:hover{background:var(--clp-terra-dark);color:#fff}
.clp-btn--outline{background:#fff;color:var(--clp-link);border:2px solid var(--clp-terra)}
.clp-btn--outline:hover{background:var(--clp-terra);color:#fff}
.clp-btn--block{width:100%}
.clp-btn[disabled],.clp-btn.is-disabled{background:var(--clp-greige);color:#fff;cursor:not-allowed}
.clp-link{background:none;border:0;padding:0;color:var(--clp-link);text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:500;cursor:pointer}
.clp-link:hover{color:var(--clp-terra-dark)}

/* Toasts (core.js) */
/* Centré par les marges (pas de translateX : l'animation clpacUp écrase transform et le toast sautait). */
.clp-toast{position:fixed;left:16px;right:16px;margin:0 auto;width:max-content;bottom:24px;z-index:200;background:var(--clp-ink);color:#fff;font-size:14px;padding:12px 20px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.2);display:flex;align-items:center;gap:10px;animation:clpacUp .25s ease;max-width:560px}
.clp-toast__msg{flex:1 1 auto;min-width:0}
.clp-toast a{flex:none;white-space:nowrap;min-height:44px;margin:-12px 0;display:inline-flex;align-items:center;color:#fff;font-weight:500}
.clp-toast[hidden]{display:none}
.clp-toast .clp-toast__close{flex:none;width:44px;height:44px;margin:-12px -14px -12px 0;padding:0;border:0;border-radius:22px;background:transparent;color:#fff;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}
.clp-toast .clp-toast__close:hover,.clp-toast .clp-toast__close:focus-visible{background:rgba(255,255,255,.12);color:#fff}
/* Recette AGCI du 13/11 : en mobile, le toast prend toute la largeur (16 px de marge) au lieu de se tasser sur 3-4 lignes. */
@media (max-width:819.98px){.clp-toast{width:auto;max-width:none;padding:12px 16px;gap:8px;bottom:calc(24px + env(safe-area-inset-bottom))}}

/* Notices WooCommerce dans les écrans codés */
.clp-coded .woocommerce-notices-wrapper:empty{display:none}
.clp-notice{border-radius:8px;padding:12px 16px;font-size:14px;margin:0 0 16px;background:var(--clp-cream);border:1px solid var(--clp-line-soft)}
.clp-notice--error{background:#FBEDEC;border-color:#F0C8C5;color:var(--clp-error)}

/* Bandeau de consentement SEOPress (recette du 05/11) : le bouton flottant « modifier mes choix » est remplacé
   par le lien « Cookies » du pied de page (core.js) ; boutons Accepter / Refuser à 44 px, police du site. */
.seopress-user-consent.seopress-edit-choice{display:none!important}
.seopress-user-consent.seopress-user-message{font-family:var(--clp-font);font-size:14px;line-height:1.5;box-shadow:0 10px 30px rgba(0,0,0,.15);border-radius:8px}
.seopress-user-consent.seopress-user-message button{min-height:44px;padding:0 22px;border-radius:5px;font-family:var(--clp-font);font-size:14px;font-weight:500}

/* Page Livraison (outils-audit/recette-0511/livraison-page.php, recette du 05/11) */
.clp-liv{max-width:820px;margin:0 auto;padding:0 16px 64px;font-family:var(--clp-font);font-size:16px;line-height:1.7;color:#2B2B2B}
.clp-liv h2{margin:40px 0 12px;font-family:var(--clp-font);font-size:22px;font-weight:600;line-height:1.3;color:#000}
.clp-liv p{margin:0 0 14px}
.clp-liv a,.elementor .clp-liv a{color:var(--clp-link,#8E4222);text-decoration:underline;text-underline-offset:3px}
.clp-liv__lead{font-size:17px}
.clp-liv__note{font-size:14px;color:var(--clp-muted)}
.clp-liv__grid{width:100%;max-width:520px;margin:8px 0 18px;border-collapse:collapse;font-size:15px}
.clp-liv__grid caption{caption-side:top;text-align:left;font-size:13px;color:var(--clp-muted);padding-bottom:6px}
.clp-liv__grid th,.clp-liv__grid td{padding:9px 12px;border-bottom:1px solid var(--clp-line);text-align:left}
.clp-liv__grid th{font-size:13px;font-weight:600;background:var(--clp-cream)}
.clp-liv__grid td:last-child,.clp-liv__grid th:last-child{text-align:right;white-space:nowrap}
@media (max-width:819.98px){.clp-liv h2{font-size:20px;margin-top:32px}.clp-liv{font-size:15px}}

/* Page 404 (404.php, recette AGCI du 10/11) : recherche, 3 univers, retour à l'accueil. Cibles ≥ 44 px. */
.clp-404{padding:56px var(--clp-px) 80px}
.clp-404__inner{max-width:1180px;margin:0 auto;text-align:center}
.clp-404__kicker{margin:0 0 10px}
.clp-404__title{margin:0 0 14px;font-family:var(--clp-font);font-size:clamp(30px,3.4vw,44px);font-weight:500;line-height:1.2;color:#000;text-wrap:balance}
.clp-404__lead{max-width:620px;margin:0 auto 28px;font-size:16px;line-height:1.6;color:var(--clp-ink);text-wrap:pretty}
.clp-404__search{display:flex;align-items:center;gap:12px;max-width:560px;height:56px;margin:0 auto 48px;padding:0 6px 0 22px;border:1px solid #F0EFEF;border-radius:28px;background:#fff;box-shadow:0 2px 14px rgba(43,43,43,.10);text-align:left}
.clp-404__search:focus-within{border-color:var(--clp-ink)}
.clp-404__search-icon{flex:none;stroke:#2B2B2B}
.clp-scope .clp-404__search-input{flex:1;min-width:0;width:auto;height:44px;margin:0;padding:0 2px;border:0;border-radius:0;outline:none;background:transparent;box-shadow:none;font-size:16px;color:#2B2B2B;-webkit-appearance:none;appearance:none}
.clp-scope .clp-404__search-input:focus{border:0}
.clp-404__search-input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.clp-404__search-input::placeholder{color:#757575}
.clp-404__search-go{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:22px;background:var(--clp-terra);color:#fff;cursor:pointer;transition:background .2s}
.clp-404__search-go:is(:hover,:focus-visible){background:var(--clp-terra-dark);color:#fff}
.clp-404__h2{margin:0 0 18px;font-family:var(--clp-font);font-size:22px;font-weight:500;line-height:1.3;color:#000}
.clp-404__univers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0 0 40px;padding:0;list-style:none}
.clp-404__uni{position:relative;display:block;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--clp-cream);color:#fff;text-decoration:none}
.clp-404__uni-img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .6s}
.clp-404__uni::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,16,12,.7) 0%,rgba(20,16,12,0) 55%);pointer-events:none}
.clp-404__uni:hover .clp-404__uni-img{transform:scale(1.04)}
.clp-404__uni-name{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:16px 20px;font-size:18px;font-weight:500;color:#fff;text-align:left}
.clp-404__home{margin:0}
@media (max-width:819.98px){
  .clp-404{padding-top:36px;padding-bottom:56px}
  .clp-404__lead{font-size:15px}
  .clp-404__search{height:52px;margin-bottom:36px;padding-left:16px}
  .clp-404__univers{grid-template-columns:minmax(0,1fr);gap:14px}
  .clp-404__uni{aspect-ratio:16/7}
}
@media (min-width:820px) and (max-width:1179.98px){.clp-404__univers{gap:16px}}
