/* Culinor — page de présentation.
   Palette de l'application (or #b68235, Cormorant Garamond + Lora) tirée vers des tons de livre de cuisine :
   crème, terracotta, sauge. Pas de dépendance, pas de ressource distante. */

:root {
  --cream: #f7efe1;
  --ivory: #fdf9f1;
  --ink: #2b2118;
  --ink-soft: #5a4b3d;
  --terra: #a4402a;          /* 6,0:1 sur l'ivoire */
  --terra-dark: #83301d;
  --sage-bg: #e4e9da;
  --sage: #435638;           /* 6,5:1 sur la sauge claire */
  --gold: #b68235;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --radius: 10px;
  --shadow: 0 10px 30px -14px color-mix(in srgb, var(--ink) 38%, transparent);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 2 * var(--gutter)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-soft); font-size: .92em; }
.fineprint { font-size: .92rem; color: var(--ink-soft); margin-top: 1.6rem; }

.eyebrow { font: 600 .82rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: .9rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; max-width: 34em; }
.section-lead { max-width: 46em; color: var(--ink-soft); font-size: 1.1rem; }
.section-lead--small { font-size: 1rem; margin-bottom: 1.4rem; }

/* Boutons : 48 px de haut au minimum */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.35rem; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--terra-dark); }
.btn--light:hover { background: #fff; color: var(--terra-dark); }
.btn--lg { min-height: 54px; padding-inline: 1.7rem; font-size: 1.05rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.9rem/1 var(--font-head); color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand--footer { margin-bottom: .8rem; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--terra); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Héros */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); background:
  radial-gradient(900px 420px at 88% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.8rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 1.1rem 0 0; margin: 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.hero-facts b { font: 600 1.7rem/1 var(--font-head); color: var(--ink); margin-right: .2em; }
.hero-visual { position: relative; padding-bottom: 36px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 160px 160px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-photo figcaption, figure figcaption { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); margin-top: 8px; }
.hero-photo figcaption a, figcaption a { color: inherit; }
.hero-photo figcaption { padding-right: clamp(110px, 26%, 180px); }
.hero-phone { position: absolute; right: -6px; bottom: 0; width: clamp(104px, 22%, 168px); margin: 0; }
.hero-phone img { border: 5px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); background: var(--ivory); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--warm { background: var(--ivory); border-block: 1px solid var(--line); }
.section--sage { background: var(--sage-bg); color: var(--ink); }
.section--sage .eyebrow { color: var(--sage); }
.section--intro { padding-bottom: clamp(40px, 6vw, 72px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.note-brand { font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 12px; }

/* Recette vs produit */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.compare-col--recipe { border-top: 5px solid var(--terra); }
.compare-col--product { border-top: 5px solid var(--sage); }
.compare-col h3 { font-size: 1.5rem; margin-bottom: .1em; }
.compare-col p { font-size: .98rem; }
.compare-count { font-weight: 600; color: var(--ink-soft); margin-bottom: .6em; }
.compare-col ul { margin: 0; padding-left: 1.1em; font-size: .96rem; }

/* Fonctionnalités : blocs de tailles variées */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.bento-item { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bento-item h3 { font-size: 1.45rem; }
.bento-item p:last-child { margin-bottom: 0; }
.bento-item--wide { grid-column: span 2; }
.bento-item--full { grid-column: 1 / -1; }
.bento-item--full p { max-width: 52em; }
.bento-item--shot { display: grid; grid-template-columns: 1fr minmax(0, 52%); gap: 22px; align-items: center; overflow: hidden; }
.bento-item--shot img { border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bento-item--accent { background: var(--terra); color: #fff; border-color: transparent; }
.bento-item--accent h3 { color: #fff; }

/* Cartes */
.sub { margin-top: 2.6rem; }
.cards { display: grid; gap: 18px; }
.cards--recipes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cards--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.recipe-card, .product-card, .region-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent); }
.recipe-card figure, .product-card figure, .region-card figure { margin: 0; padding: 0; }
.recipe-card figure img, .product-card figure img, .region-card figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.recipe-card figcaption, .product-card figcaption, .region-card figcaption { padding: 6px 14px 0; margin: 0; }
.recipe-body, .product-body, .region-body { padding: 12px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.recipe-body h3, .product-body h3, .region-body h3 { margin-bottom: .1em; }
.recipe-body p, .product-body p, .region-body p { font-size: .98rem; }
.tag { align-self: flex-start; font: 600 .74rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin-bottom: .8rem; }
.tag--recipe { background: color-mix(in srgb, var(--terra) 12%, #fff); color: var(--terra-dark); }
.tag--product { background: var(--sage-bg); color: var(--sage); }
.recipe-origin { color: var(--ink-soft); font-style: italic; margin-bottom: .5em; }
.meta { margin: .4rem 0 1rem; padding: 6px 0; border-block: 1px solid var(--line); }
.meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.meta dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.meta dd { margin: 0; font-weight: 600; font-size: .95rem; text-align: right; }
.list-title { font-size: .72rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3em; }
.ings { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: .92rem; }
.ings li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.ings b { font-weight: 600; text-align: right; white-space: nowrap; }
.recipe-steps { color: var(--ink-soft); }
.product-accord span { font-weight: 600; }
.card-links { margin: auto 0 0; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: .95rem; }
.card-links a { display: inline-block; padding: 8px 0; }

/* Régions */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 2rem; }
.region-card--lead { grid-column: span 2; grid-row: span 2; }
.region-card--lead figure { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.region-card--lead figure img { aspect-ratio: auto; flex: 1; min-height: 240px; height: 0; }
.region-card--lead figcaption { flex: none; }
.region-card--lead h3 { font-size: 2.2rem; }
.region-kicker { font: 600 .74rem/1.3 var(--font-body) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin-bottom: .5em; }
.region-products { color: var(--ink-soft); font-size: .9rem !important; }
.region-products span { font-weight: 600; color: var(--ink); }

/* Trois étapes */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: color-mix(in srgb, #fff 55%, transparent); border-radius: var(--radius); padding: 26px 24px; }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: #fff; font: 600 1.6rem/1 var(--font-head); margin-bottom: 14px; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; }

/* Démonstration */
.demo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin-top: 2rem; align-items: start; }
.demo-phone { justify-self: center; max-width: 280px; }
.demo-phone img { border: 5px solid var(--ink); border-radius: 22px; }
.demo figure { margin: 0; }
.demo img { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); width: 100%; height: auto; }
.demo figcaption { font-size: .92rem; margin-top: 10px; }

/* Pourquoi */
.why { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.why li { border-top: 3px solid var(--gold); padding-top: 14px; }
.why h3 { font-size: 1.4rem; }
.why p { font-size: .98rem; }
.limits { background: var(--cream); border: 1px dashed var(--ink-soft); border-radius: var(--radius); padding: 22px 26px; }
.limits h3 { font-size: 1.4rem; }
.limits ul { margin: 0; }
.limits li { margin-bottom: .5em; }

/* Installation et FAQ (details) */
.install details, .faq details { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.section--warm .faq details { background: var(--cream); }
.install summary, .faq summary { cursor: pointer; padding: 14px 18px; min-height: 48px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.install summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.install summary::after, .faq summary::after { content: "+"; font: 600 1.6rem/1 var(--font-head); color: var(--terra); flex: none; }
details[open] > summary::after { content: "–"; }
.install details > :not(summary), .faq details > :not(summary) { padding-inline: 18px; }
.install ol { margin: 0 0 14px; padding-left: 2.3em; }
.install details > p, .faq details > p { margin: 0 0 16px; }
.install-detected { font-weight: 600; color: var(--sage); margin-bottom: 10px; }

/* Appel final */
.cta { background: var(--terra); color: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 36em; margin-inline: auto; }

/* Pied de page */
.site-footer { background: var(--ink); color: #e8dfd2; padding: 48px 0 56px; font-size: .95rem; }
.site-footer a { color: #f3d9a4; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr; gap: 36px; }
.footer-title { font: 600 .8rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #c9bba6; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer .muted { color: #c9bba6; }
.credits-list { margin: .6rem 0 1rem; }
.credits-list summary { cursor: pointer; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.credits-list ul { font-size: .86rem; max-height: 260px; overflow: auto; padding-right: 8px; }

/* Écrans moyens et étroits */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .demo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bento-item--shot { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow); }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .js .nav .btn { margin-top: 14px; }
  .no-js-fallback, html:not(.js) .nav { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .bar { flex-wrap: wrap; padding-block: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .bento, .region-grid, .compare, .footer-grid { grid-template-columns: 1fr; }
  .bento-item--wide, .region-card--lead { grid-column: auto; grid-row: auto; }
  .hero-phone { right: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .recipe-card, .product-card, .region-card { transition: transform .2s, box-shadow .2s; }
  .recipe-card:hover, .product-card:hover, .region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
@media print { .site-header, .nav-toggle { display: none; } }
