/* =========================================================
   Sud Sites — studio web pour commerces
   ========================================================= */

/* ---------- Polices auto-hébergées ---------- */
@font-face { font-family: "Rozha One"; src: url("../fonts/rozha-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --ink: #16181D;
  --text-2: #3D3B36;
  --text-3: #4F4C45;
  --green: #1E3A2F;
  --green-soft: #C9D6CE;
  --green-line: #8FA89B;
  --brick: #B23E24;
  --brick-dark: #8C2F1A;
  --brick-light: #F08A6E;
  --rose: #EBC9B9;
  --serif: "Rozha One", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brick); }
a:hover { color: var(--brick-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.band { background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band--green { background: var(--green); color: var(--paper); border: 0; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .3px; }
.muted { color: var(--text-3); }
.lead { font-size: 20px; color: var(--text-2); max-width: 540px; }
.h-xl { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -1px; }
.h-lg { font-size: clamp(34px, 4.2vw, 56px); line-height: 1; }
.h-md { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Store (auvent) ---------- */
.awning { height: 34px; background: repeating-linear-gradient(90deg, var(--brick) 0 40px, var(--rose) 40px 80px); }
.awning--thin { height: 18px; }
.scallop {
  height: 20px;
  background:
    radial-gradient(circle at 20px 0, var(--brick) 0 19px, transparent 20px) 0 0 / 80px 20px repeat-x,
    radial-gradient(circle at 60px 0, var(--rose) 0 19px, transparent 20px) 0 0 / 80px 20px repeat-x;
}

/* ---------- Boutons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 15px 22px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; text-align: center; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: none; box-shadow: 0 0 0 var(--ink); }
.btn--brick { background: var(--brick); color: var(--white); }
.btn--brick:hover { color: var(--white); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--brick); }
.btn--ink:hover { color: var(--paper); box-shadow: 6px 6px 0 var(--brick); }

.toggle { border: 2px solid var(--ink); background: var(--white); color: var(--ink); min-height: 44px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle--dark { border-color: var(--paper); background: transparent; color: var(--paper); }
.toggle--dark[aria-pressed="true"] { background: var(--paper); color: var(--green); }
.chip { border: 2px dashed var(--green-line); background: transparent; color: var(--paper); min-height: 44px; padding: 10px 16px; font-weight: 500; cursor: pointer; text-align: left; }
.chip[aria-pressed="true"] { background: var(--brick-light); border-color: var(--brick-light); color: var(--ink); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- En-tête ---------- */
.site-header { background: var(--green); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand__name { font-family: var(--serif); font-size: 34px; line-height: 1; }
.brand__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--green-soft); }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--paper); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav a:hover { border-bottom-color: var(--brick-light); color: var(--paper); }
.nav .nav__cta { background: var(--paper); color: var(--green); padding: 10px 16px; font-weight: 700; border: 2px solid var(--paper); }
.nav .nav__cta:hover { color: var(--green); background: var(--rose); border-color: var(--rose); }
@media (max-width: 720px) {
  .nav { gap: 14px; font-size: 15px; }
  .nav a:not(.nav__cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__demo { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero h1 em { font-style: normal; color: var(--brick); text-decoration: underline wavy var(--brick) 3px; text-underline-offset: 10px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 2px solid var(--ink); }
.seg .toggle { border: 0; }
.seg .toggle + .toggle { border-left: 2px solid var(--ink); }
.seg .toggle[data-view="apres"][aria-pressed="true"] { background: var(--brick); color: var(--white); }
.browser { background: var(--white); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--green); }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #ECE9E1; border-bottom: 2px solid var(--ink); }
.browser__dot { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.browser__url { margin-left: 8px; flex: 1; background: var(--white); border: 1.5px solid var(--ink); padding: 3px 10px; font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__screen { height: 400px; overflow: hidden; }
.browser__screen[hidden] { display: none; }

.old { background: #FFFF99; font-family: "Comic Sans MS", "Comic Neue", cursive; color: #000080; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.old__title { font-size: 26px; font-weight: 700; color: #FF0000; }
.old__photo { margin: 6px auto; width: 70%; height: 110px; background: #CCCCCC; border: 3px ridge #999999; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #555555; }

.new { background: #FBF7F1; color: #2A2118; padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.new__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.new__logo { font-family: var(--serif); font-size: 24px; }
.new__title { font-family: var(--serif); font-size: 36px; line-height: 1.02; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; }
.pill--open { background: #E3F1E6; color: #1F5A2E; font-weight: 700; }
.pill--line { background: var(--white); border: 1px solid #E5DACB; }
.new__ctas { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.new__ctas span { flex: 1 1 140px; text-align: center; padding: 13px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.new__ctas span:first-child { background: #2A2118; color: #FBF7F1; }
.new__ctas span:last-child { border: 1.5px solid #2A2118; }
.new__photos { display: flex; gap: 10px; }
.new__photos span { flex: 1; height: 62px; border-radius: 8px; }

/* ---------- 4 choses ---------- */
.four { display: flex; flex-wrap: wrap; margin-top: 36px; }
.four > div { flex: 1 1 230px; padding: 4px 24px; margin-bottom: 20px; border-left: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.four > div:first-child { border-left: 0; padding-left: 0; }
.four__n { font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--brick); }
.four strong { font-size: 19px; }
@media (max-width: 560px) { .four > div { border-left: 0; padding-left: 0; } }

/* ---------- Offres (étiquettes) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 26px; align-items: stretch; }
.tag { flex: 1 1 240px; background: var(--white); border: 2px solid var(--ink); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease; }
.tag:hover { transform: rotate(0deg) translateY(-4px); }
.tag__top { display: flex; justify-content: space-between; align-items: center; }
.tag__hole { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; }
.tag__ref { font-family: var(--mono); font-size: 12px; }
.tag h3 { font-size: 32px; line-height: 1; }
.tag__price { font-family: var(--mono); font-weight: 700; font-size: 38px; border-top: 1.5px dashed currentColor; border-bottom: 1.5px dashed currentColor; padding: 8px 0; }
.tag__price small { font-size: 16px; font-weight: 400; }
.tag ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tag--green { background: var(--green); color: var(--paper); }
.tag--green .muted { color: var(--green-soft); }
.tag--green .tag__ref { background: var(--brick-light); color: var(--ink); padding: 2px 8px; font-weight: 700; }
.tag--brick { border-color: var(--brick); outline: 2px solid var(--brick); outline-offset: 4px; }
.tag--brick .tag__top, .tag--brick .tag__price { color: var(--brick); }
.tag--brick .tag__price small { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tag, .tag:hover { transform: none; } }

/* ---------- Diagnostic ---------- */
.diag { display: flex; flex-wrap: wrap; gap: 56px; }
.diag__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.diag__list { flex: 1 1 540px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.diag__list.is-disabled { opacity: .4; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.q__text { flex: 1 1 280px; min-width: 0; display: flex; gap: 14px; align-items: baseline; }
.q__num { font-family: var(--mono); font-size: 14px; color: var(--brick); }
.yn { display: flex; border: 2px solid var(--ink); }
.yn button { min-width: 62px; min-height: 44px; border: 0; background: var(--white); font-weight: 700; cursor: pointer; }
.yn button + button { border-left: 2px solid var(--ink); }
.yn button[data-v="1"][aria-pressed="true"] { background: var(--green); color: var(--white); }
.yn button[data-v="0"][aria-pressed="true"] { background: var(--brick); color: var(--white); }
.score { margin-top: 14px; background: var(--paper); border: 2px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.score__head { display: flex; justify-content: space-between; align-items: baseline; }
.score__value { font-family: var(--serif); font-size: 44px; line-height: 1; }
.score__bar { height: 14px; border: 2px solid var(--ink); background: var(--white); }
.score__fill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--brick) 0 12px, #C9563B 12px 24px); transition: width .3s ease; }
.score__title { font-weight: 700; font-size: 19px; }
.score .btn { align-self: flex-start; }

/* ---------- Devis ---------- */
.devis { display: flex; flex-wrap: wrap; gap: 56px; }
.devis__form { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.devis__step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.devis__step legend { font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.receipt { flex: 1 1 320px; min-width: 0; align-self: flex-start; transform: rotate(1.2deg); filter: drop-shadow(6px 8px 0 rgba(0,0,0,.25)); }
.receipt__paper { background: #FFFEFA; color: var(--ink); font-family: var(--mono); padding: 26px 24px 18px; display: flex; flex-direction: column; gap: 10px; }
.receipt__head { text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.receipt__head span:first-child { font-family: var(--serif); font-size: 28px; line-height: 1; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--ink); margin: 0; width: 100%; }
.receipt__line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.receipt__line span:last-child { white-space: nowrap; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt__total strong:first-child { font-size: 18px; }
.receipt__total strong:last-child { font-size: 34px; }
.receipt small { font-size: 12px; line-height: 1.45; }
.receipt__thanks { text-align: center; letter-spacing: 1px; font-size: 12px; }
.receipt .btn { margin-top: 6px; font-family: var(--sans); }
.receipt__edge {
  height: 14px;
  background:
    linear-gradient(-45deg, transparent 7px, #FFFEFA 0) 0 0 / 14px 14px repeat-x,
    linear-gradient(45deg, transparent 7px, #FFFEFA 0) 0 0 / 14px 14px repeat-x;
}
@media (prefers-reduced-motion: reduce) { .receipt { transform: none; } }
@media (max-width: 560px) {
  .tag { transform: rotate(calc(var(--tilt, 0deg) / 2)); }
  .receipt { transform: rotate(.6deg); }
  .browser, .card-form { box-shadow: 6px 6px 0 var(--green); }
}
main, .band { overflow-x: clip; }

/* ---------- Méthode ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.steps li { flex: 1 1 250px; padding: 0 24px 24px; border-left: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps .mono { color: var(--brick); }
.steps__title { font-family: var(--serif); font-size: 26px; line-height: 1.05; }
@media (max-width: 560px) { .steps li { border-left: 0; padding-left: 0; } }

/* ---------- Concepts ---------- */
.concepts { display: flex; flex-wrap: wrap; gap: 28px; }
.concept { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.concept__shot { height: 210px; border: 2px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.concept__name { font-family: var(--serif); font-size: 24px; }
.concept__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.concept__meta strong { font-size: 19px; }
.bar { height: 12px; }

/* ---------- Qui je suis ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.polaroid { flex: 0 1 280px; min-width: 220px; margin: 0; background: var(--white); border: 2px solid var(--ink); padding: 14px 14px 18px; transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--brick); }
.polaroid__img { aspect-ratio: 1 / 1; background: #ECE9E1; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: var(--text-3); object-fit: cover; width: 100%; }
img.polaroid__img { height: auto; display: block; object-fit: cover; }
.polaroid figcaption { margin-top: 12px; font-family: var(--mono); font-size: 14px; text-align: center; }
.about__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.checks { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--ink); padding: 18px 0; }
.faq details:first-of-type { border-top-width: 2px; }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; line-height: 1; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--text-2); }

/* ---------- Formulaires ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card-form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; background: var(--white); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--green); padding: 30px; }
.field { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 14px; }
.field input, .field textarea, .field select { font-family: var(--sans); font-size: 18px; padding: 8px 0; border: 0; border-bottom: 2px solid var(--ink); background: transparent; border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brick); }
.field .hint { font-family: var(--sans); font-size: 14px; color: var(--text-3); }
.hp { position: absolute; left: -9999px; }
.form-status { font-family: var(--mono); font-size: 14px; min-height: 1.4em; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: var(--brick); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green); color: var(--paper); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 14px; }
.site-footer a { color: var(--brick-light); }
.site-footer .brand__name { font-size: 22px; }

/* ---------- Pages simples (mentions, brief, 404) ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.page h1 { margin-bottom: 16px; }
.page h2 { font-size: 30px; margin: 44px 0 12px; }
.page p + p { margin-top: 12px; }
.page dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.page dt { font-family: var(--mono); font-size: 14px; }
.page dd { margin: 0; }
.brief fieldset { border: 2px solid var(--ink); background: var(--white); padding: 26px; margin: 0 0 28px; display: flex; flex-direction: column; gap: 20px; }
.brief legend { font-family: var(--serif); font-size: 26px; padding: 0 10px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--sans); font-size: 17px; }
.checkbox-row label { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--brick); }
