/* Site de présentation — mêmes couleurs et polices que l'app
   (direction artistique « Cuisine de famille », app/src/style.css). */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Lettres d'autres langues européennes (ł, ő, ş…) : téléchargé seulement si besoin. */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url('/fonts/nunito-sans-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Lettres d'autres langues européennes (ł, ő, ş…) : téléchargé seulement si besoin. */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url('/fonts/nunito-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
    --bg: #f6efe5;
    --surface: #fcf8f2;
    --surface-sunken: #efe6da;
    --border: #e6d9c7;
    --border-strong: #d5c4ad;
    --text: #2b2118;
    --text-muted: #6f6151;
    --accent: #c4520f;
    --accent-hover: #a8460d;
    --accent-bright: #e0661c;
    --accent-text: #a8460d;
    --accent-soft: #fbe2cf;
    --success: #2f7a4d;
    --danger: #b3261e;
    --danger-soft: #fbe4e1;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(74, 48, 22, 0.06), 0 4px 14px rgba(74, 48, 22, 0.06);
    --shadow-raised: 0 2px 4px rgba(74, 48, 22, 0.08), 0 18px 40px rgba(74, 48, 22, 0.14);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-text); }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 650;
    line-height: 1.15;
    text-wrap: balance;
    margin: 0;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0; }

.largeur { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 20px; }

.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ── Boutons ─────────────────────────────────────────────────────────── */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(196, 82, 15, 0.25);
    transition: background 0.15s;
}
.bouton:hover { background: var(--accent-hover); }
.bouton-petit { min-height: 40px; padding: 0 18px; font-size: 0.95rem; box-shadow: none; }
.bouton-doux { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.bouton-doux:hover { background: #f8d4b9; }

/* ── En-tête et pied ─────────────────────────────────────────────────── */

.entete {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.entete-int { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.marque {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 1.45rem/1 var(--font-display);
    color: var(--accent);
    text-decoration: none;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 52rem) {
    .nav { display: none; }
    .entete .bouton { margin-left: auto; }
}

.pied { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface-sunken); }
.pied-int { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; padding-block: 40px 48px; }
.pied p { color: var(--text-muted); margin-top: 10px; max-width: 30ch; }
.pied .langues { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.pied .langues a { color: var(--text); font-weight: 600; }
.pied nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; align-content: start; }
.pied nav a { color: var(--text); text-decoration: none; }
.pied nav a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 30rem) { .pied nav { grid-template-columns: 1fr; } }

/* ── Accueil ─────────────────────────────────────────────────────────── */

.hero { padding-block: 56px 40px; }
.hero-int { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .chapeau { margin-top: 20px; font-size: 1.2rem; color: var(--text-muted); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero .rassurance { margin-top: 16px; font-size: 0.95rem; color: var(--text-muted); }
@media (max-width: 52rem) {
    .hero { padding-top: 32px; }
    .hero-int { grid-template-columns: 1fr; gap: 36px; }
}

/* Captures d'écran dans un cadre de téléphone (CSS seulement). */
.telephone {
    position: relative;
    width: min(300px, 78vw);
    margin-inline: auto;
    padding: 10px;
    border-radius: 42px;
    background: #2b2118;
    box-shadow: var(--shadow-raised);
}
.telephone img { display: block; width: 100%; border-radius: 32px; background: var(--bg); }
.duo { position: relative; display: flex; justify-content: center; }
.duo .telephone + .telephone { position: absolute; width: min(220px, 52vw); right: -4%; bottom: -8%; transform: rotate(4deg); }
@media (max-width: 52rem) { .duo .telephone + .telephone { right: 0; } }

.section { padding-block: 64px; }
.section-suite { padding-top: 0; }
.section-suite .prose { padding-top: 0; }
.section-titre { max-width: 40rem; margin-bottom: 36px; }
.section-titre p { margin-top: 12px; color: var(--text-muted); font-size: 1.125rem; }
.surtitre {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.atout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 36px; }
.atout + .atout { border-top: 1px dashed var(--border-strong); }
.atout:nth-child(even) .atout-texte { order: 2; }
.atout-texte { display: flex; flex-direction: column; gap: 14px; max-width: 32rem; }
.atout-texte p { color: var(--text-muted); }
.atout .telephone { width: min(260px, 70vw); }
.atout ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.atout li { margin: 4px 0; }
@media (max-width: 52rem) {
    .atout { grid-template-columns: 1fr; gap: 28px; }
    .atout:nth-child(even) .atout-texte { order: 0; }
}

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 16px; }
.carte {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.carte h3 { margin-bottom: 8px; font-size: 1.15rem; }
.carte p { color: var(--text-muted); font-size: 1rem; }
.pastille {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.appel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    align-items: center;
    justify-content: space-between;
    padding: 36px;
    border-radius: 28px;
    background: var(--text);
    color: var(--bg);
}
.appel h2 { color: var(--bg); }
.appel p { margin-top: 8px; color: #d9cbb8; }

/* ── Tarifs ──────────────────────────────────────────────────────────── */

.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 18px; align-items: stretch; }
.offre {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}
.offre.mise-en-avant { border: 2px solid var(--accent); box-shadow: var(--shadow-raised); }
.offre .prix { font: 650 2.6rem/1 var(--font-display); }
.offre .condition { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }
.offre .prix small { font: 600 1rem var(--font-body); color: var(--text-muted); }
.offre ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.offre li { display: flex; gap: 10px; }
.offre li::before { content: '✓'; color: var(--success); font-weight: 800; }
.offre li.non::before { content: '–'; color: var(--text-muted); }
.offre .bouton { margin-top: auto; }
.note { margin-top: 18px; color: var(--text-muted); font-size: 0.95rem; }

.tableau { overflow-x: auto; }
/* Tableau défilant atteint au clavier (flèches pour le faire défiler). */
.tableau:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 700; }
td { font-variant-numeric: tabular-nums; }

/* Comparaison (Tarifs) : plus large que la colonne de texte (jusqu'à
   68rem), défile sur le côté sur téléphone, la première colonne reste
   visible ; la colonne Fourneau est mise en avant. Repères : ✓ oui,
   ~ en partie, ✕ non (le texte dit le reste, pour les lecteurs d'écran). */
.prose .tableau.comparaison {
    width: min(68rem, calc(100vw - 40px));
    margin-left: calc(50% - min(34rem, 50vw - 20px));
}
.comparaison table { min-width: 640px; }
.comparaison th[scope="row"] { position: sticky; left: 0; background: var(--bg); width: 12rem; }
.comparaison th[scope="row"] .emoji { margin-right: 4px; }
.comparaison tr > :nth-child(2) { background: var(--surface); font-weight: 600; }
.comparaison thead th:nth-child(2) { font-weight: 800; color: var(--accent-text); }
@media (max-width: 40rem) {
    .comparaison table { min-width: 600px; font-size: 0.92rem; }
    .comparaison th[scope="row"] { width: 7.5rem; }
}
.comparaison td.oui::before, .comparaison td.partiel::before, .comparaison td.non::before {
    display: inline-block; width: 1.3em; font-weight: 800;
}
.comparaison td.oui::before { content: '✓'; color: var(--success); }
.comparaison td.partiel::before { content: '~'; color: var(--accent-text); }
.comparaison td.non::before { content: '✕'; color: var(--danger); }

/* ── Questions ───────────────────────────────────────────────────────── */

.questions { display: flex; flex-direction: column; gap: 10px; }
details {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details > div { padding: 0 20px 18px; color: var(--text-muted); }
details > div p + p { margin-top: 10px; }

/* ── Pages de texte (guides, pages légales) ─────────────────────────── */

.prose { max-width: 46rem; margin-inline: auto; padding: 40px 20px 0; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol, .prose dl, .prose .tableau { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .maj { color: var(--text-muted); margin-bottom: 24px; }
.prose .encart { padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.prose .encart ul { margin: 6px 0 0; }
.prose figure { margin: 24px 0; }
.prose figure .telephone { width: min(260px, 70vw); }
.prose figcaption { margin-top: 12px; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.prose .etapes { counter-reset: etape; list-style: none; padding: 0; }
.prose .etapes > li { counter-increment: etape; position: relative; padding-left: 48px; margin: 18px 0; }
.prose .etapes > li::before {
    content: counter(etape);
    position: absolute;
    left: 0;
    top: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { dl { grid-template-columns: 1fr; } dd { margin-bottom: 8px; } }
.todo { background: var(--danger-soft); color: var(--danger); font-weight: 700; padding: 0 4px; border-radius: 4px; }

.engagements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.engagements li { display: flex; gap: 12px; align-items: flex-start; }
.engagements svg { flex: none; margin-top: 3px; color: var(--accent); }
.engagements div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.engagements span { color: var(--text-muted); }
.liste-guides { display: grid; gap: 14px; padding: 0; list-style: none; }
.liste-guides a { display: block; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.liste-guides a:hover { border-color: var(--border-strong); }
.liste-guides strong { display: block; font: 650 1.2rem/1.3 var(--font-display); color: var(--text); }
.liste-guides span { color: var(--text-muted); }

.introuvable { text-align: center; padding-block: 80px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
