/* Palettes adoptées le 1er décembre 2026 ; mêmes contenus et photographies. */
:root[data-theme="bloc"],:root[data-theme="bloc"] body {
  --theme-name:"Couleurs de vie";
  --bg-main:#FAF8F2;
  --bg-soft:#E4EEE5;
  --surface-card:#FFFFFF;
  --text-main:#173F43;
  --text-muted:#4C5F5D;
  --border-subtle:#D7DED7;
  --border-control:#75857D;
  --header-bg:#17464B;
  --header-text:#FFFFFF;
  --banner-bg:#17464B;
  --banner-text:#FFFFFF;
  --immersive-bg:#DCE9DF;
  --immersive-text:#173F43;
  --method-bg:#E4D9EB;
  --method-text:#243137;
  --cta-bg:#A13E2E;
  --cta-text:#FFFFFF;
  --cta-on-strong-bg:#FFFFFF;
  --cta-on-strong-text:#17464B;
  --offer-clean:#27645F;
  --offer-clean-soft:#E4EEE5;
  --offer-restore:#A13E2E;
  --offer-restore-soft:#F8E9E3;
  --offer-color:#76540E;
  --offer-color-soft:#F6EECB;
  --dial-ring:#17464B;
  --dial-accent:#A13E2E;
  --photo-mat:#F6F5F1;
  --selected-bg:#17464B;
  --selected-text:#FFFFFF;
  --link:#A13E2E;
  --focus-inner:#FFFFFF;
  --focus-outer:#173F43;
  --state-error:#A5252D;
  --state-success:#236247;
  --state-warning:#775000;
  --state-info:#18518B;
}
:root[data-theme="technicolor"],:root[data-theme="technicolor"] body {
  --theme-name:"Technicolor";
  --bg-main:#F5F7FF;
  --bg-soft:#E3EAFF;
  --surface-card:#FFFFFF;
  --text-main:#172D4F;
  --text-muted:#43516A;
  --border-subtle:#CDD6EA;
  --border-control:#7787A8;
  --header-bg:#225CD2;
  --header-text:#FFFFFF;
  --banner-bg:#1749AB;
  --banner-text:#FFFFFF;
  --immersive-bg:#2B5FC7;
  --immersive-text:#FFFFFF;
  --method-bg:#225CD2;
  --method-text:#FFFFFF;
  --cta-bg:#A81765;
  --cta-text:#FFFFFF;
  --cta-on-strong-bg:#FFFFFF;
  --cta-on-strong-text:#1749AB;
  --offer-clean:#126580;
  --offer-clean-soft:#E3F0F6;
  --offer-restore:#A81765;
  --offer-restore-soft:#FAE7F1;
  --offer-color:#904714;
  --offer-color-soft:#FAEDDF;
  --dial-ring:#225CD2;
  --dial-accent:#A81765;
  --photo-mat:#F6F5F1;
  --selected-bg:#225CD2;
  --selected-text:#FFFFFF;
  --link:#A81765;
  --focus-inner:#FFFFFF;
  --focus-outer:#172D4F;
  --state-error:#A5252D;
  --state-success:#236247;
  --state-warning:#775000;
  --state-info:#18518B;
}
:root[data-theme="portrait"],:root[data-theme="portrait"] body {
  --theme-name:"Portrait doux";
  --bg-main:#F7F1E6;
  --bg-soft:#EADBCB;
  --surface-card:#FFFDF8;
  --text-main:#352E29;
  --text-muted:#65564C;
  --border-subtle:#D7C8B8;
  --border-control:#948173;
  --header-bg:#4E3A32;
  --header-text:#FFFDF8;
  --banner-bg:#4E3A32;
  --banner-text:#FFFDF8;
  --immersive-bg:#EADBCB;
  --immersive-text:#352E29;
  --method-bg:#EDDFD9;
  --method-text:#352E29;
  --cta-bg:#7C3F50;
  --cta-text:#FFFFFF;
  --cta-on-strong-bg:#FFFDF8;
  --cta-on-strong-text:#4E3A32;
  --offer-clean:#3D6557;
  --offer-clean-soft:#E6EDE6;
  --offer-restore:#7C3F50;
  --offer-restore-soft:#F3E4E8;
  --offer-color:#7D591F;
  --offer-color-soft:#F4EBCF;
  --dial-ring:#4E3A32;
  --dial-accent:#7C3F50;
  --photo-mat:#F6F5F1;
  --selected-bg:#4E3A32;
  --selected-text:#FFFDF8;
  --link:#7C3F50;
  --focus-inner:#FFFFFF;
  --focus-outer:#352E29;
  --state-error:#A5252D;
  --state-success:#236247;
  --state-warning:#775000;
  --state-info:#18518B;
}
:root[data-theme="monochrome"],:root[data-theme="monochrome"] body {
  --theme-name:"Monochrome";
  --bg-main:#F5F5F2;
  --bg-soft:#E5E5DF;
  --surface-card:#FFFFFF;
  --text-main:#202020;
  --text-muted:#50504C;
  --border-subtle:#D2D2CA;
  --border-control:#808078;
  --header-bg:#202020;
  --header-text:#FFFFFF;
  --banner-bg:#202020;
  --banner-text:#FFFFFF;
  --immersive-bg:#2F2F2F;
  --immersive-text:#FFFFFF;
  --method-bg:#E5E5DF;
  --method-text:#202020;
  --cta-bg:#333333;
  --cta-text:#FFFFFF;
  --cta-on-strong-bg:#FFFFFF;
  --cta-on-strong-text:#202020;
  --offer-clean:#444444;
  --offer-clean-soft:#ECECE6;
  --offer-restore:#444444;
  --offer-restore-soft:#ECECE6;
  --offer-color:#444444;
  --offer-color-soft:#ECECE6;
  --dial-ring:#73736B;
  --dial-accent:#333333;
  --photo-mat:#F6F5F1;
  --selected-bg:#202020;
  --selected-text:#FFFFFF;
  --link:#333333;
  --focus-inner:#FFFFFF;
  --focus-outer:#202020;
  --state-error:#333333;
  --state-success:#333333;
  --state-warning:#333333;
  --state-info:#333333;
}
/* Repères sur les fonds cobalt, sans filet de section isolé. */
:root[data-theme="technicolor"]:not([data-high-contrast="true"]) .section-proof>.container>.eyebrow{background:var(--cta-bg);color:var(--cta-text)}
:root[data-theme="technicolor"] .section-method>.container>.eyebrow{background:var(--banner-bg);color:var(--banner-text)}
/* Commande sur fond fort et limites des champs, distinctes des bordures décoratives. */
:root:not([data-high-contrast="true"]) .site-header .btn-cart,
:root:not([data-high-contrast="true"]) body.gnp-harmonise .gnp-harmony-header .gnp-harmony-cart{background:var(--cta-on-strong-bg)!important;color:var(--cta-on-strong-text)!important;border-color:var(--cta-on-strong-bg)!important}
:root:not([data-high-contrast="true"]) .form-row :is(input,select,textarea),
:root:not([data-high-contrast="true"]) body.gnp-harmonise :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border-color:var(--border-control)!important}
:root[data-high-contrast="true"],:root[data-high-contrast="true"] body {
  --bg-main:#FFFFFF;--bg-soft:#EEEEEB;--surface-card:#FFFFFF;--border-subtle:#5C5C56;
  --text-main:#141414;--text-muted:#303030;--header-bg:#151515;--header-text:#FFFFFF;
  --banner-bg:#151515;--banner-text:#FFFFFF;--immersive-bg:#EEEEEB;--immersive-text:#141414;
  --method-bg:#EEEEEB;--method-text:#141414;--cta-bg:#151515;--cta-text:#FFFFFF;
  --offer-clean:#252525;--offer-restore:#252525;--offer-color:#252525;
  --offer-clean-soft:#F2F2EE;--offer-restore-soft:#F2F2EE;--offer-color-soft:#F2F2EE;
}
:root[data-large-text="true"] {font-size:20px}
:root[data-large-text="true"] body {font-size:1rem;line-height:1.65}
:root[data-large-text="true"] :is(input,select,textarea,button){font-size:1rem}
:root[data-essential="true"] .top-banner{display:none!important}
:root[data-essential="true"]:not([data-method-visible="true"]) #methode{display:none!important}
:root[data-theme] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid currentColor;outline-offset:4px;box-shadow:0 0 0 6px var(--bg-main)}
.gp-preferences-entry{flex:0 1 auto;max-width:100%}
.gp-preferences-open{font:700 .85rem/1.3 system-ui;min-height:44px;padding:10px 13px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;cursor:pointer;max-width:100%}
#gpPreferences{width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;margin:auto;padding:24px;border:1px solid var(--border-subtle);border-radius:20px;background:var(--bg-main);color:var(--text-main);overflow:auto;font:1rem/1.55 system-ui;}
#gpPreferences::backdrop{background:rgba(0,0,0,.55)}
.gp-pref-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#gpPreferences h2{font-size:1.5rem;margin:0;line-height:1.2;color:var(--text-main)}
#gpPreferences button{box-sizing:border-box;cursor:pointer;font:700 .95rem/1.35 system-ui;white-space:normal;min-height:44px;padding:12px;border:1px solid var(--border-subtle);background:var(--surface-card);color:var(--text-main);border-radius:10px}
#gpPreferences .gp-pref-close{font-size:.85rem;flex-shrink:0;padding:10px}
#gpPreferences fieldset{margin:18px 0;padding:0;border:0;min-width:0}
#gpPreferences legend{font-weight:750;margin-bottom:8px}
.gp-ambiance-grid,.gp-confort-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#gpPreferences [aria-pressed="true"]{border:2px solid var(--text-main);box-shadow:inset 0 0 0 1px var(--text-main)}
#gpPreferences [aria-pressed="true"]::after{content:' ✓';font-weight:900}
.gp-swatch{display:block;height:16px;border-radius:4px;margin-bottom:8px}
.gp-swatch-bloc{background:linear-gradient(90deg,#17464B 33%,#A13E2E 33%,#A13E2E 66%,#E4D9EB 66%)}
.gp-swatch-technicolor{background:linear-gradient(90deg,#225CD2 33%,#A81765 33%,#A81765 66%,#E3EAFF 66%)}
.gp-swatch-portrait{background:linear-gradient(90deg,#4E3A32 33%,#EDDFD9 33%,#EDDFD9 66%,#7C3F50 66%)}
.gp-swatch-monochrome{background:linear-gradient(90deg,#202020 33%,#73736B 33%,#73736B 66%,#E5E5DF 66%)}
.gp-pref-note{font-size:.85rem;color:var(--text-muted)}
.gp-pref-status{min-height:1.5em;font-size:.85rem}
.gp-comparison-choice{display:block;border:1px solid #44443E;background:#FFF;color:#1C1C1A;min-height:44px;padding:10px 14px;border-radius:8px;font-weight:700;margin:12px 0;cursor:pointer}
.photo-tab,.ba-quick-btns button{min-height:44px}
.ba-quick-btns{flex-wrap:wrap}
:root[data-compare="separate"] #baStage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;aspect-ratio:auto!important;max-height:none;overflow:visible;cursor:default}
:root[data-compare="separate"] .ba-layer{position:relative;inset:auto;width:auto;height:auto;clip-path:none!important;min-width:0}
:root[data-compare="separate"] .ba-layer::before{content:'Avant';display:block;font:700 .9rem/1.4 system-ui;margin-bottom:8px;color:#1C1C1A}
:root[data-compare="separate"] .ba-after::before{content:'Après'}
:root[data-compare="separate"] .ba-layer img{width:100%;height:auto;object-fit:contain;filter:none;mix-blend-mode:normal}
:root[data-compare="separate"] :is(.ba-divider,.ba-handle,.ba-pill-label,.ba-controls){display:none!important}
@media(max-width:700px){
  .header-inner{flex-wrap:wrap;gap:10px}
  .gp-preferences-entry{flex-basis:100%}
  .header-actions{flex-wrap:wrap}
  .header-actions .gp-preferences-entry{flex:0 1 auto}
  .gp-preferences-open{min-height:40px;padding:8px 12px;font-size:.8rem}
  #gpPreferences{padding:18px}
  :root[data-large-text="true"] .header-inner{gap:12px}
  :root[data-compare="separate"] #baStage{grid-template-columns:minmax(0,1fr)}
  :root[data-theme] :is(.offer-switcher,.triage-grid){min-width:0}
  .mobile-sticky-bar{max-width:100%;box-sizing:border-box}
  .mobile-sticky-bar>*{min-width:0}
  .mobile-sticky-bar .btn-pill{flex:1;white-space:normal;text-align:center}
  :root[data-theme] body.gnp-harmonise .contenu section.trio{grid-template-columns:repeat(3,minmax(0,1fr))}
  :root[data-theme] body.gnp-harmonise .contenu section.trio>*{min-width:0}
  :root[data-theme] body.gnp-harmonise .contenu .cas-cta a{max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
}
@media(max-width:430px){
  :root[data-large-text="true"] .offer-switcher{grid-template-columns:minmax(0,1fr)}
  :root[data-large-text="true"] .offer-tab-btn{flex-direction:row;justify-content:space-between;text-align:left;gap:12px;min-width:0;padding:12px}
}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}body :is(.dial-disc,.dial-pointer,.photo-tab,.offer-tab-btn){transition:none!important}}

/* Phone discovery: current photo, comparison controls, then example choices. */
.gp-photo-current,.gp-photo-picker-title{display:none}
@media(max-width:700px){
  .photo-mat .gp-photo-current{display:block;color:#1C1C1A;font-size:.9rem;font-weight:750;line-height:1.4;margin:0 0 10px}
  .photo-mat .gp-photo-picker-title{display:block;color:#1C1C1A;font-size:1rem;font-weight:750;line-height:1.4;margin:20px 0 10px}
  .photo-mat #photoExampleChoices{margin-top:0}
}

/* Repère central lisible sur le moyeu noir, dans l’ambiance Monochrome. */
:root[data-theme="monochrome"] #dialNeedle + circle {
  stroke:#F6F5F1;
  stroke-width:2;
}

/* Les cadeaux des packs sont lisibles sans calcul ni ouverture de détails. */
#packsRestaurerTitle{margin:0 0 8px;font-size:1.15rem;line-height:1.35}
.gp-packs-intro,.gp-packs-conditions{font-size:.88rem;line-height:1.5;margin:8px 0 14px}
.gp-pack-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.gp-pack-card{min-width:0;background:var(--surface-card);color:var(--text-main);border:1px solid var(--border-subtle);border-radius:12px;padding:16px}
.gp-pack-card h4{font-size:1.05rem;line-height:1.35;margin:5px 0 10px}
.gp-pack-size{font-size:.8rem;font-weight:750;margin:0;color:var(--text-muted)}
.gp-pack-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.gp-pack-price strong{font-size:1.65rem;line-height:1.2;white-space:nowrap}
.gp-pack-price span{font-size:.85rem;color:var(--text-muted)}
.gp-pack-choice-label{font-size:.85rem;font-weight:750;margin:0 0 8px}
.gp-pack-benefit{border-left:3px solid var(--offer-restore);padding:4px 0 4px 10px}
.gp-pack-benefit strong{display:block;font-size:1rem;line-height:1.4}
.gp-pack-benefit span{display:block;font-size:.85rem;line-height:1.45;margin-top:3px}
.gp-pack-or{font-size:.8rem;font-weight:800;margin:8px 0 8px 13px}
.gp-pack-next{font-size:.8rem;color:var(--text-muted);line-height:1.45;margin:12px 0}
.gp-pack-card .pack-btn{display:block;width:100%;min-height:44px;background:var(--cta-bg);color:var(--cta-text);border-color:var(--cta-bg);font-size:.9rem;padding:10px 12px;white-space:normal}
@media(min-width:820px){.gp-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Accès au film existant, visible avant la roue et adapté au téléphone. */
.gp-pupitre-film-link{min-height:44px;max-width:100%;margin:12px 0 2px;text-align:center;white-space:normal;box-sizing:border-box}
