/* Montoi · montoi.eu
   Mise en page : une colonne large (72rem) ; des sections qui alternent la crème et l'anthracite ;
   le toit à deux pans comme seul ornement ; les couleurs de l'icône de l'app. */

:root {
  --creme: #FAF6EF;
  --papier: #FFFFFF;
  --encre: #2C2C2A;
  --encre-2: #5A5347;
  --encre-3: #756F63;
  --trait: rgba(44, 44, 42, 0.12);
  --ambre: #EF9F27;
  --ambre-encre: #8F5A0A;
  --ambre-voile: #FCECD0;
  --bande: #2C2C2A;
  --sur-bande: #FAF6EF;
  --sur-bande-2: #CFC8BA;
  --toit-gauche: #2C2C2A;
  --ombre: 0 1px 2px rgba(44, 44, 42, 0.06), 0 12px 32px rgba(70, 52, 28, 0.10);
  --titre: "Gabarito", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --large: 72rem;
  --mesure: 66ch;
  --rayon: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --creme: #191816;
    --papier: #24221F;
    --encre: #F5F0E6;
    --encre-2: #CBC3B4;
    --encre-3: #A39B8D;
    --trait: rgba(245, 240, 230, 0.12);
    --ambre: #F0A73A;
    --ambre-encre: #F3B95E;
    --ambre-voile: #3A2D17;
    --bande: #0F0E0D;
    --sur-bande: #F5F0E6;
    --sur-bande-2: #B9B1A3;
    --toit-gauche: #F5F0E6;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --creme: #191816;
  --papier: #24221F;
  --encre: #F5F0E6;
  --encre-2: #CBC3B4;
  --encre-3: #A39B8D;
  --trait: rgba(245, 240, 230, 0.12);
  --ambre: #F0A73A;
  --ambre-encre: #F3B95E;
  --ambre-voile: #3A2D17;
  --bande: #0F0E0D;
  --sur-bande: #F5F0E6;
  --sur-bande-2: #B9B1A3;
  --toit-gauche: #F5F0E6;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-color: var(--ambre); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ambre-encre); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ambre);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }

.cadre { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.surtitre {
  font-family: var(--texte);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ambre-encre);
}

.lien-evitement { position: absolute; left: -999px; top: 0; }
.lien-evitement:focus { left: 16px; top: 16px; background: var(--papier); padding: 8px 12px; z-index: 10; }

/* ─── Le toit et le mot ─────────────────────────────────────────── */
.toit { display: block; width: 44px; height: auto; }
.toit .pan-gauche { stroke: var(--toit-gauche); }
.toit .pan-droit { stroke: var(--ambre); }
.mot { font-family: var(--titre); font-weight: 800; letter-spacing: -0.01em; }
.mot .toi { color: var(--ambre); }

/* ─── En-tête ──────────────────────────────────────────────────── */
.entete { padding-block: 20px; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque .mot { font-size: 1.55rem; }
.entete nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: 0.98rem; }
.entete nav a { text-decoration: none; color: var(--encre-2); }
.entete nav a:hover, .entete nav a[aria-current="page"] { color: var(--encre); text-decoration: underline; text-decoration-color: var(--ambre); }

/* ─── Boutons ──────────────────────────────────────────────────── */
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--encre); color: var(--creme);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0;
}
.bouton:hover { color: var(--creme); background: var(--encre-2); }
.bouton.bientot { background: transparent; color: var(--encre); border: 2px solid var(--encre); cursor: default; }
.bouton.bientot .point { width: 9px; height: 9px; border-radius: 50%; background: var(--ambre); }
.petit { font-size: 0.9rem; color: var(--encre-3); }

/* ─── Ouverture ────────────────────────────────────────────────── */
.ouverture { padding-block: clamp(24px, 6vw, 72px) clamp(40px, 8vw, 96px); }
.ouverture .cadre { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 920px) { .ouverture .cadre { grid-template-columns: 1.05fr 0.95fr; } }
.ouverture h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-block: 14px 22px; }
.ouverture h1 .ambre { color: var(--ambre); }
.ouverture .chapeau { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--encre-2); max-width: 38ch; margin: 0 0 28px; }
.ouverture .petit { margin-top: 18px; max-width: 46ch; }

/* La scène : trois cartes de l'app, posées comme sur une table */
.scene { position: relative; display: grid; gap: 14px; max-width: 30rem; margin-inline: auto; width: 100%; }
@media (min-width: 560px) {
  .scene { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .scene .soir { grid-column: 1 / 3; }
}
@media (min-width: 920px) {
  .scene { display: block; height: 36rem; max-width: none; }
  .scene .carte { position: absolute; }
  .scene .soir { width: 68%; left: 0; top: 0; transform: rotate(-2deg); }
  .scene .courses { width: 50%; right: 0; top: 9.5rem; transform: rotate(2.5deg); z-index: 1; }
  .scene .cuisine { width: 52%; left: 14%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
}
.carte { background: var(--papier); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; border: 1px solid var(--trait); }
.carte .corps { padding: 16px 18px 18px; display: grid; gap: 6px; }
.carte h3 { font-size: 1.5rem; }
.carte .photo { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }
.votes { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--encre-2); font-size: 0.95rem; font-weight: 600; }
.initiales { display: flex; }
.initiales span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 800; font-size: 0.85rem;
  background: var(--ambre-voile); color: var(--ambre-encre); border: 2px solid var(--papier); margin-left: -6px;
}
.initiales span:first-child { margin-left: 0; }
.liste { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.98rem; }
.liste li { display: flex; align-items: center; gap: 10px; }
.liste .case { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--encre-3); flex: none; }
.liste .fait .case { background: var(--ambre); border-color: var(--ambre); position: relative; }
.liste .fait .case::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--encre); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.liste .fait .nom { text-decoration: line-through; color: var(--encre-3); }
.liste .qui { margin-left: auto; font-size: 0.85rem; color: var(--encre-3); }
.carte.cuisine { background: var(--bande); color: var(--sur-bande); border-color: transparent; }
.carte.cuisine .surtitre { color: var(--ambre); }
.carte.cuisine .rang { display: flex; align-items: center; gap: 14px; }
.carte.cuisine .tuile { width: 56px; height: 56px; border-radius: 16px; background: rgba(239, 159, 39, 0.16); color: var(--ambre); display: grid; place-items: center; flex: none; }
.carte.cuisine .tuile svg { width: 34px; height: 34px; }
.carte.cuisine .ensuite { color: var(--sur-bande-2); font-size: 0.92rem; }

/* ─── Sections ─────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; margin-block: 12px 18px; }
.section .intro { color: var(--encre-2); max-width: 52ch; margin: 0; font-size: 1.1rem; }
.section.sombre { background: var(--bande); color: var(--sur-bande); }
.section.sombre .intro { color: var(--sur-bande-2); }
.section.sombre .surtitre { color: var(--ambre); }
.section.sombre .petit { color: var(--sur-bande-2); }
.section.sombre .petit a { color: var(--sur-bande); }
.section.papier { background: var(--papier); }

/* Le déroulé, de la proposition à l'assiette */
.deroule { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: etape; }
@media (min-width: 760px) { .deroule { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.deroule li { counter-increment: etape; border-top: 2px solid var(--encre); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.deroule li::before { content: counter(etape); font-family: var(--titre); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--ambre); }
.deroule h3 { font-size: 1.35rem; }
.deroule p { margin: 0; color: var(--encre-2); }

/* La ligne des Gestes */
.gestes { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 640px) { .gestes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gestes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gestes li { display: grid; gap: 10px; align-content: start; }
.gestes .tuile {
  position: relative; aspect-ratio: 1; border-radius: 26px;
  background: rgba(239, 159, 39, 0.14); color: var(--sur-bande);
  display: grid; place-items: center;
}
.gestes .tuile svg { width: 46%; height: auto; }
.gestes .numero {
  position: absolute; top: -8px; left: -8px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ambre); color: #2A1608; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 800; font-size: 0.95rem; border: 3px solid var(--bande);
}
.gestes .geste { font-family: var(--titre); font-weight: 800; font-size: 1.2rem; }
.gestes .etape { color: var(--sur-bande-2); font-size: 0.95rem; line-height: 1.35; }
.legende { margin-top: 28px; color: var(--sur-bande-2); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legende strong { color: var(--sur-bande); }

/* Les six modes */
.modes { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.modes li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
  border-radius: 999px; background: var(--papier); border: 1px solid var(--trait); font-weight: 600;
}
.modes .pastille { width: 20px; height: 20px; border-radius: 50%; }
.colonnes { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 760px) { .colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1100px) { .colonnes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.colonnes article { display: grid; gap: 8px; align-content: start; min-width: 0; }
.colonnes h3 { font-size: 1.35rem; }
.colonnes p { margin: 0; color: var(--encre-2); }

/* La bande finale */
.final { text-align: left; }
.final .cadre { display: grid; gap: 24px; }
@media (min-width: 860px) { .final .cadre { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.final h2 { max-width: 16ch; }
.final .bouton { background: var(--ambre); color: #2A1608; }
.final .bouton:hover { background: var(--sur-bande); color: #2A1608; }
.final .bouton.bientot { background: transparent; color: var(--sur-bande); border-color: var(--sur-bande); }
.final .contact { color: var(--sur-bande-2); }
.final .contact a { color: var(--sur-bande); }

/* ─── Pied de page ─────────────────────────────────────────────── */
.pied { padding-block: 40px 56px; border-top: 1px solid var(--trait); font-size: 0.95rem; color: var(--encre-3); }
.pied .cadre { display: grid; gap: 18px; }
@media (min-width: 760px) { .pied .cadre { grid-template-columns: auto 1fr; align-items: start; gap: 40px; } }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.pied nav a { color: var(--encre-2); text-decoration: none; }
.pied nav a:hover { color: var(--encre); text-decoration: underline; text-decoration-color: var(--ambre); }
.pied p { margin: 6px 0 0; }

/* ─── Pages de texte (confidentialité, CGU, mentions, assistance) ── */
.page-texte { padding-block: clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.page-texte .tete { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 2px solid var(--encre); display: grid; gap: 12px; }
.page-texte .tete h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
.page-texte .tete p { margin: 0; color: var(--encre-2); max-width: 60ch; }
.juridique { display: grid; gap: 32px; }
@media (min-width: 1000px) { .juridique { grid-template-columns: 17rem minmax(0, 1fr); gap: 56px; align-items: start; } }
.sommaire { font-size: 0.95rem; }
@media (min-width: 1000px) { .sommaire { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); } }
.sommaire details { border: 1px solid var(--trait); border-radius: 16px; background: var(--papier); padding: 4px 16px; }
@media (min-width: 1000px) { .sommaire details { border: 0; background: transparent; padding: 0; } }
.sommaire summary { cursor: pointer; font-weight: 700; padding-block: 10px; list-style-position: inside; }
@media (min-width: 1000px) {
  .sommaire summary { pointer-events: none; list-style: none; padding-top: 0; }
  .sommaire summary::-webkit-details-marker { display: none; }
}
.sommaire ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.sommaire a { text-decoration: none; color: var(--encre-2); }
.sommaire a:hover { color: var(--encre); text-decoration: underline; text-decoration-color: var(--ambre); }

.texte { max-width: var(--mesure); min-width: 0; }
.texte h2 { font-size: 1.6rem; margin-block: 2.4em 0.7em; padding-top: 0.2em; scroll-margin-top: 24px; }
.texte h2:first-child { margin-top: 0; }
.texte h3 { font-size: 1.2rem; margin-block: 1.8em 0.5em; scroll-margin-top: 24px; }
.texte p, .texte li { color: var(--encre); }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte li { margin-block: 0.35em; }
.texte li::marker { color: var(--ambre-encre); }
.texte strong { font-weight: 700; }
.texte hr { border: 0; border-top: 1px solid var(--trait); margin: 2.4em 0; }
.texte code { font-size: 0.92em; background: var(--ambre-voile); padding: 0.1em 0.35em; border-radius: 6px; }
.texte .tableau { overflow-x: auto; margin-block: 1.2em; border: 1px solid var(--trait); border-radius: 16px; }
.texte table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.texte th, .texte td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.texte tr:last-child td { border-bottom: 0; }
.texte th { background: var(--ambre-voile); font-weight: 700; }
.a-completer {
  background: var(--ambre-voile); color: var(--ambre-encre); font-weight: 700;
  padding: 0.05em 0.4em; border-radius: 6px; outline: 2px dashed var(--ambre); outline-offset: 1px;
}
.mise-a-jour { color: var(--encre-3); font-size: 0.95rem; }

/* Assistance */
.contact-cartes { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 760px) { .contact-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-cartes article { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.contact-cartes .valeur { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-cartes button {
  justify-self: start; margin-top: 6px; font: inherit; font-size: 0.9rem; font-weight: 700;
  background: transparent; color: var(--encre); border: 2px solid var(--trait); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.questions { display: grid; gap: 12px; max-width: var(--mesure); }
.questions details { border: 1px solid var(--trait); border-radius: 18px; background: var(--papier); padding: 4px 22px; }
.questions summary { cursor: pointer; font-family: var(--titre); font-weight: 800; font-size: 1.15rem; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--ambre-encre); font-size: 1.4rem; line-height: 1; }
.questions details[open] summary::after { content: "–"; }
.questions .reponse { padding-bottom: 14px; color: var(--encre-2); }
.questions .reponse p { margin: 0 0 0.8em; }
.questions .reponse strong { color: var(--encre); }

/* Introuvable */
.introuvable { padding-block: clamp(48px, 10vw, 120px); }
.introuvable .cadre { display: grid; gap: 18px; justify-items: start; }
.introuvable .toit { width: 120px; }
.introuvable h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

@media (prefers-reduced-motion: no-preference) {
  .scene .carte { transition: transform 0.35s ease; }
  .scene .carte:hover { transform: rotate(0deg) translateY(-4px); }
}

@media print {
  .entete nav, .sommaire, .pied nav { display: none; }
  body { background: #fff; color: #000; }
}
