/* Guide Four à Pizza Québec — feuille de style */
:root {
  --vert-fonce: #57150a;
  --vert: #a8321f;
  --ambre: #e8590c;
  --ambre-clair: #fdeeda;
  --fond: #faf7f2;
  --carte: #ffffff;
  --texte: #2c2c2c;
  --texte-doux: #5a5a5a;
  --bordure: #e8ddd2;
  --rouge: #c0392b;
  --vert-ok: #1e7e34;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}

/* ---------- En-tête ---------- */
.site-header {
  background: var(--vert-fonce);
  color: #fff;
  padding: 0;
}
.site-header .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 1rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.site-nom {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.site-nom a { color: #fff; text-decoration: none; }
.site-nom .flamme { color: var(--ambre); }
.site-slogan {
  font-size: 0.85rem;
  color: #cfe3d6;
  margin: 0.15rem 0 0;
}
nav.site-nav {
  background: var(--vert);
}
nav.site-nav .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
nav.site-nav a {
  color: #eef5f0;
  text-decoration: none;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}
nav.site-nav a:hover { background: rgba(255,255,255,0.08); }
nav.site-nav a.actif { border-bottom-color: var(--ambre); font-weight: 700; color: #fff; }

/* ---------- Contenu ---------- */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
main .wrap { max-width: 760px; }

.hero {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-fonce) 100%);
  color: #fff;
  padding: 2.5rem 1rem;
  margin-bottom: 1.5rem;
}
.hero h1 { margin: 0 0 0.5rem; font-size: 2rem; line-height: 1.25; color: #fff; }
.hero p { color: #d9e8de; font-size: 1.08rem; max-width: 640px; }
.hero .cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--ambre);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
}
.hero .cta:hover { background: #b45309; }

h1 { font-size: 1.9rem; line-height: 1.3; margin: 1.6rem 0 0.8rem; color: var(--vert-fonce); }
h2 { font-size: 1.35rem; margin: 1.8rem 0 0.6rem; color: var(--vert); }
h3 { font-size: 1.1rem; margin: 1.3rem 0 0.4rem; color: var(--vert-fonce); }
p { margin: 0.7rem 0; }
li { margin: 0.35rem 0; }

.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  margin: 1rem 0;
}
.carte h2, .carte h3 { margin-top: 0.2rem; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.grille .carte { margin: 0; }
.grille .carte a { text-decoration: none; color: inherit; }
.grille .carte:hover { border-color: var(--ambre); }

.exemple {
  border-left: 4px solid var(--ambre);
  background: var(--ambre-clair);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.97rem;
}
.avertissement {
  border-left: 4px solid var(--rouge);
  background: #fdf0ef;
  padding: 0.8rem 1rem;
  margin: 1.2rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}
.astuce {
  border-left: 4px solid var(--vert-ok);
  background: #effaf1;
  padding: 0.8rem 1rem;
  margin: 1.2rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.table-defilante { overflow-x: auto; margin: 1rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  min-width: 640px;
}
th, td { border: 1px solid var(--bordure); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
th { background: var(--vert); color: #fff; }
tr:nth-child(even) td { background: #f7f9f7; }
td.prix { font-weight: 700; white-space: nowrap; }

/* ---------- Calculateur ---------- */
.calc-form label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.calc-form .appareil {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  margin: 0.4rem 0;
  background: #fff;
  cursor: pointer;
  font-weight: normal;
}
.calc-form .appareil:hover { border-color: var(--ambre); }
.calc-form .appareil input { margin-top: 0.3rem; }
.calc-form .appareil .watts { margin-left: auto; font-size: 0.85rem; color: var(--texte-doux); white-space: nowrap; }
.btn-calculer {
  background: var(--ambre);
  color: #fff;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
}
.btn-calculer:hover { background: #b45309; }
#resultats { display: none; margin-top: 1.2rem; }
#resultats.visible { display: block; }
.ligne-total {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--bordure);
}
.ligne-total.grand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vert-fonce);
  border-bottom: 2px solid var(--vert);
  margin-top: 0.5rem;
}
.note-calcul { font-size: 0.88rem; color: var(--texte-doux); }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--vert);
}
details.faq summary:hover { color: var(--ambre); }

/* ---------- Pied de page ---------- */
footer.site-footer {
  background: var(--vert-fonce);
  color: #cfe3d6;
  margin-top: 2.5rem;
  padding: 1.8rem 1rem 2.2rem;
  font-size: 0.9rem;
}
footer.site-footer .wrap { max-width: 960px; }
footer.site-footer a { color: #fff; }
footer.site-footer nav { margin-bottom: 0.8rem; }
footer.site-footer nav a { margin-right: 1rem; text-decoration: none; }
footer.site-footer nav a:hover { text-decoration: underline; }
footer.site-footer .legal { color: #a8c3b2; font-size: 0.82rem; }

.fil-ariane { font-size: 0.85rem; color: var(--texte-doux); margin: 1rem 0 0; }
.fil-ariane a { color: var(--vert); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.55rem; }
  h1 { font-size: 1.55rem; }
  nav.site-nav a { padding: 0.6rem 0.55rem; font-size: 0.88rem; }
}

/* ---------- Rafraîchissement visuel — éditorial moderne (oct. 2026) ----------
   Léger : transitions de survol subtiles, ombres douces, échelle typographique.
   Aucun framework, aucune image, aucune police externe. */
main { display: block; }

h1, h2, h3 { letter-spacing: -0.015em; text-wrap: balance; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem); line-height: 1.18; }
.hero { border-bottom: 4px solid var(--ambre); }
.hero p.sous-titre { line-height: 1.6; }

/* Cartes : ombre douce + soulèvement subtil au survol */
.carte {
  box-shadow: 0 1px 3px rgba(15, 35, 60, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.carte:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 35, 60, 0.12);
}

/* Boutons : ombre douce + micro-interaction */
.btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); }

/* Accessibilité : focus visible */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ambre);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Section « guides connexes » */
.suggestions { border-top: 1px solid var(--bordure); padding-top: 10px; }
.suggestions .carte h3 { font-size: 1.05rem; }

/* Mobile : rythme et navigation */
@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; }
  .main-nav a { padding: 7px 10px; font-size: 0.88rem; }
  .hero { padding: 40px 0 34px; }
  .hero p.sous-titre { font-size: 1.02rem; }
  section.bloc { margin: 30px 0; }
  .site-footer { margin-top: 44px; font-size: 0.88rem; }
}

/* ============ Refonte editoriale 2026 — couche « moderne » ============
   Design uniquement : aucune police externe, aucun framework, aucune image.
   La couche s'appuie sur les jetons natifs du site via --ed-*. */
:root {
  --ed-dark: var(--vert-fonce);
  --ed-mid: var(--vert);
  --ed-accent: var(--ambre);
  --ed-ink: var(--texte);
  --ed-muted: var(--texte-doux);
  --ed-bg: var(--fond);
  --ed-card: var(--carte);
  --ed-soft: var(--fond);
  --ed-line: var(--bordure);
  --ed-head: var(--vert-fonce);
  --ed-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ed-radius: 14px;
  color-scheme: light;
}
html { scroll-behavior: smooth; }
::selection { background: var(--ed-accent); color: #fff; }

/* ----- En-tete ----- */
.site-header {
  background: color-mix(in srgb, var(--ed-dark) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.main-nav a { border-radius: 999px; font-weight: 600; }

/* ----- Kicker editorial ----- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; padding: 0;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  line-height: 1.4;
}
.kicker::before {
  content: ""; flex: none; width: 28px; height: 2px;
  border-radius: 2px; background: var(--ed-accent);
}
.hero .kicker { color: color-mix(in srgb, var(--ed-accent) 55%, #fff); }
section.bloc > .kicker { color: var(--ed-accent); }

/* ----- Heros ----- */
.hero {
  border-bottom: none;
  background:
    radial-gradient(75% 110% at 88% -10%, color-mix(in srgb, var(--ed-accent) 34%, transparent), transparent 70%),
    radial-gradient(55% 85% at 6% 112%, color-mix(in srgb, var(--ed-mid) 32%, transparent), transparent 70%),
    linear-gradient(115deg, var(--ed-dark) 0%, color-mix(in srgb, var(--ed-dark) 58%, var(--ed-mid)) 60%, var(--ed-mid) 128%);
  padding: clamp(68px, 9vw, 108px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--ed-accent), color-mix(in srgb, var(--ed-accent) 35%, var(--ed-mid)));
}
.hero h1 {
  font-family: var(--ed-display);
  font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.25rem);
  line-height: 1.05; letter-spacing: -.032em; font-weight: 800;
  max-width: 19ch; text-wrap: balance;
  margin: 0 0 18px;
}
.hero p.sous-titre {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.22rem);
  line-height: 1.62; color: rgba(255, 255, 255, .85);
  max-width: 60ch; margin: 0;
}

/* ----- En-tete d'article (pages internes) ----- */
main .conteneur > section.bloc:first-of-type { padding-top: clamp(30px, 4vw, 52px); }
main .conteneur > section.bloc:first-of-type > h1 {
  font-family: var(--ed-display);
  font-size: clamp(1.95rem, 1.4rem + 2.6vw, 2.75rem);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 800;
  color: var(--ed-head); max-width: 21ch; text-wrap: balance;
  margin: 0 0 16px;
}
main .conteneur > section.bloc:first-of-type > h1 + p {
  font-size: 1.13rem; line-height: 1.66;
  color: var(--ed-muted); max-width: 63ch; margin: 0 0 8px;
}

/* ----- Sections ----- */
main { counter-reset: edito-sec; }
section.bloc { margin: clamp(46px, 6vw, 70px) 0; }
section.bloc > h2.section {
  counter-increment: edito-sec;
  font-family: var(--ed-display);
  font-size: clamp(1.42rem, 1.14rem + 1.5vw, 1.85rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.22;
  color: var(--ed-head); text-wrap: balance;
  padding-bottom: 14px; margin: 0 0 22px;
  border-bottom: 1px solid var(--ed-line);
}
section.bloc > h2.section::before {
  content: counter(edito-sec, decimal-leading-zero);
  margin-right: 12px;
  font-size: .66em; font-weight: 800; letter-spacing: .1em;
  color: var(--ed-accent); vertical-align: .14em;
}
section.suggestions > h2.section { counter-increment: none; }
section.suggestions > h2.section::before { content: none; }

/* ----- Cartes ----- */
.carte {
  background: var(--ed-card);
  border-radius: var(--ed-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 34px -14px rgba(16, 24, 40, .14);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.carte:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ed-accent) 45%, var(--ed-line));
  box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .22);
}
.carte h3 { font-size: 1.14rem; letter-spacing: -.012em; line-height: 1.32; }

/* ----- Bandeau outil ----- */
.bandeau-outil {
  border-radius: 16px;
  box-shadow: 0 14px 32px -16px rgba(16, 24, 40, .18);
}

/* ----- Boutons ----- */
.btn {
  border-radius: 999px; padding: 14px 32px;
  font-weight: 800; letter-spacing: .015em;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--ed-accent) 70%, transparent);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  transform: translateY(-2px); filter: brightness(.93);
  box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--ed-accent) 75%, transparent);
}
.btn:active { transform: translateY(1px) scale(.99); box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .25); }

/* ----- Tableaux ----- */
.tableau-defilant {
  border: 1px solid var(--ed-line); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
}
table.prix { border-collapse: separate; border-spacing: 0; margin: 0; }
table.prix th, table.prix td { border: none; border-bottom: 1px solid var(--ed-line); }
table.prix thead th {
  background: linear-gradient(180deg, var(--ed-dark), color-mix(in srgb, var(--ed-dark) 80%, #000));
  color: #fff; font-size: .84rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 14px 16px; white-space: nowrap;
}
table.prix thead th:first-child { border-top-left-radius: 13px; }
table.prix thead th:last-child { border-top-right-radius: 13px; }
table.prix tbody tr:last-child td { border-bottom: none; }
table.prix tbody tr { transition: background-color .15s ease; }
table.prix tbody tr:hover td { background: color-mix(in srgb, var(--ed-accent) 9%, transparent); }

/* ----- FAQ ----- */
.faq details {
  border-radius: 12px; background: var(--ed-card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--ed-accent) 55%, var(--ed-line));
  box-shadow: 0 10px 26px -14px rgba(16, 24, 40, .18);
}
.faq summary {
  list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-radius: 12px;
  transition: background-color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 400; line-height: 1;
  color: var(--ed-accent);
  background: color-mix(in srgb, var(--ed-accent) 13%, transparent);
  transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--ed-accent); color: #fff; }
.faq summary:hover { background: color-mix(in srgb, var(--ed-accent) 7%, transparent); }
.faq details[open] > div { animation: edito-reveal .28s ease; }
@keyframes edito-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ----- Notes & outils ----- */
.note {
  border: 1px solid var(--ed-line); border-left: 4px solid var(--ed-mid);
  border-radius: 12px; background: var(--ed-soft);
}
.note.danger { border-left-color: var(--rouge); }
.note.succes { border-left-color: var(--vert); }
.outil {
  border-radius: 18px;
  background: linear-gradient(180deg, var(--ed-card), color-mix(in srgb, var(--ed-soft) 60%, var(--ed-card)));
  box-shadow: 0 20px 46px -22px rgba(16, 24, 40, .25);
}
.champ select, .champ input[type="number"], .champ input[type="text"] {
  border-radius: 10px; padding: 12px 14px;
  background: var(--ed-card); color: var(--ed-ink); border: 1px solid var(--ed-line);
}
.champ select:focus, .champ input:focus {
  outline: 3px solid color-mix(in srgb, var(--ed-accent) 30%, transparent);
  border-color: var(--ed-accent); outline-offset: 1px;
}
.resultat { border-radius: 16px; background: var(--ed-card); }

/* ----- Pied de page ----- */
.site-footer { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--ed-accent), color-mix(in srgb, var(--ed-accent) 30%, var(--ed-mid)));
}

/* ----- Retour en haut ----- */
.retour-haut {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: var(--ed-dark); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  transition: opacity .25s ease, transform .25s ease;
}
.retour-haut[hidden] { display: block; opacity: 0; pointer-events: none; transform: translateY(10px); }
.retour-haut:hover { transform: translateY(-2px); }

/* Mode sombre retiré (2026-11-09) : le thème clair est forcé, sinon le
   mode sombre du téléphone rendait le texte des tableaux presque blanc
   sur fond blanc. */

/* ----- Mouvements reduits ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Mobile ----- */
@media (max-width: 640px) {
  .hero { padding: 54px 0 46px; }
  .kicker { font-size: .7rem; letter-spacing: .14em; }
  section.bloc > h2.section::before { margin-right: 9px; }
  .retour-haut { right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .faq summary { padding: 14px 16px; }
  /* Tableaux : tiennent dans l'écran, sans défilement horizontal. */
  table { min-width: 0; font-size: .85rem; }
  th, td { padding: .45rem .5rem; }
  /* Comparatif : la colonne « Points forts » est masquée sur mobile
     (le détail est sur chaque fiche, liée depuis le nom du modèle). */
  table.table-comparatif th:nth-child(7),
  table.table-comparatif td:nth-child(7) { display: none; }
}

