/* Concept : la bande photo 5×15 qui sort de la borne. Hero en deux colonnes avec une bande de 4 clichés,
   sections calmes sur papier photo légèrement rosé, un seul accent « flash » framboise, jaune pour les prix. */
:root {
  --paper: #FCF8F6;      /* fond papier photo */
  --paper-2: #F5ECE8;    /* bandes alternées */
  --card: #FFFFFF;
  --ink: #221A2E;        /* texte */
  --ink-soft: #5E5468;   /* texte secondaire */
  --line: #E7DCD8;
  --flash: #D92B57;      /* accent principal (CTA, liens) */
  --flash-ink: #FFFFFF;
  --sun: #FFC94D;        /* prix, surlignage */
  --sun-ink: #2A1E00;
  --night: #FBE4EB;      /* bandes contrastées claires (rose poudré) */
  --night-ink: #221A2E;
  --shadow: 0 10px 30px rgba(34, 26, 46, .10);
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flash); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
[hidden] { display: none !important; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; font-family: var(--f-body); letter-spacing: 0; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--flash); }
.stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--sun) 70%, transparent) 58%); padding: 0 .1em; }

/* Bandeau brouillon */
.draft { background: var(--sun); color: var(--sun-ink); font-size: .9rem; padding-block: .5rem; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--flash); }
.nav .btn { color: var(--flash-ink); }
.menu-btn { display: none; font: 600 .95rem var(--f-body); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; border: 0; justify-content: center; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem var(--f-body); text-decoration: none; border-radius: 999px; padding: .8rem 1.4rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--flash); color: var(--flash-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--flash) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-lg { font-size: 1.08rem; padding: 1rem 1.7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--night); color: var(--night-ink); }
.section.dark .muted, .section.dark .lead { color: color-mix(in srgb, var(--night-ink) 75%, transparent); }
.section.dark .eyebrow { color: var(--flash); }
.section-head { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2.2rem; max-width: 760px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); padding-block: 1rem 0; }
.crumbs a { color: var(--ink-soft); }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 1.3rem; min-width: 0; }
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.stars { color: #E9A300; letter-spacing: .1em; }
.price-tag { display: inline-flex; align-items: baseline; gap: .4rem; background: var(--sun); color: var(--sun-ink); font-weight: 700; padding: .35rem .9rem; border-radius: 8px; transform: rotate(-1.5deg); width: fit-content; }
.price-tag b { font-family: var(--f-display); font-size: 1.35rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.2rem; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--flash); font-weight: 800; }
@media (max-width: 560px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* La bande photo */
.strip { justify-self: center; width: min(100%, 290px); background: var(--card); padding: 12px 12px 16px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(3deg); display: flex; flex-direction: column; gap: 10px; animation: drop .9s cubic-bezier(.2, .8, .2, 1) both; }
.strip figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.strip figure img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption, .strip .strip-foot { font: 600 .78rem var(--f-display); text-align: center; color: var(--ink); letter-spacing: .04em; }
@keyframes drop { from { transform: translateY(-14px) rotate(3deg); } to { transform: translateY(0) rotate(3deg); } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .strip { flex-direction: row; width: 100%; transform: rotate(0); animation: none; padding: 8px; gap: 8px; }
  .strip figure { flex: 1; }
  .strip .strip-foot { display: none; }
}

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 0; border-top: 3px solid var(--flash); }
.stat b { font: 800 clamp(1.5rem, 3vw, 2.1rem) var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .95rem; }
.section.dark .stat span { color: color-mix(in srgb, var(--night-ink) 72%, transparent); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Grilles et cartes */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; color: var(--ink); }
a.card { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { font-size: 1.6rem; line-height: 1; }
.plain { padding: 0; border: 0; background: transparent; }

/* Bornes (offres) */
.booth { padding: 0; overflow: hidden; }
.booth > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.booth-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.booth-body .btn { margin-top: auto; align-self: flex-start; }
.from { font-weight: 600; color: var(--ink-soft); }
.from b { font: 800 1.6rem var(--f-display); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .85rem; background: var(--paper-2); border-radius: 999px; padding: .2rem .7rem; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.steps li::before { content: counter(s); font: 800 1.1rem var(--f-display); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--flash); color: var(--flash-ink); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Split image / texte */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split > img, .split figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split figure { margin: 0; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: .88rem; color: var(--ink-soft); margin-top: .6rem; }

/* Avis */
.review { gap: .6rem; }
.review .stars { font-size: 1rem; }
.review p { font-size: 1rem; }
.review footer { font-weight: 700; font-size: .92rem; margin-top: auto; }
.review footer span { font-weight: 400; color: var(--ink-soft); }

/* Zones desservies */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li, .chips a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .93rem; color: var(--ink); text-decoration: none; }

/* Doutes / objections */
.doubts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.doubts details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
@media (max-width: 720px) { .doubts { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq details, .doubts details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 1.3rem/1 var(--f-display); color: var(--flash); flex: none; }
details[open] > summary::after { content: "–"; }
details > p, details > ul, details > div { margin-top: .7rem; color: var(--ink-soft); }

/* Guide long */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.guide-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); font-size: .92rem; border-left: 3px solid var(--flash); padding-left: 1rem; }
.guide-toc p { font-weight: 700; margin-bottom: .4rem; }
.guide-toc ol { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.guide-toc a { color: var(--ink-soft); text-decoration: none; }
.guide-toc a:hover { color: var(--flash); }
.guide-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; max-width: 72ch; }
.guide-body h2 { margin-top: 1.6rem; scroll-margin-top: 90px; }
.guide-body h3 { margin-top: .6rem; }
.guide-body ul, .guide-body ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide-toc { position: static; } }

/* Encarts */
.fact { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 10px; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper-2); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-block: .6rem; }
.inline-cta p { flex: 1 1 280px; min-width: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band .stack { flex: 1 1 380px; }

/* Blog */
.post-card h3 { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.3; }
.post-meta { font-size: .85rem; color: var(--ink-soft); margin-top: auto; }
.article-head { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-ok { background: var(--paper-2); border-radius: 10px; padding: 1rem; font-weight: 600; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Repliables */
.more-list li.extra { display: none; }
.more-list.open li.extra { display: list-item; }
.more-btn { font: 700 .95rem var(--f-body); background: none; border: 0; color: var(--flash); cursor: pointer; padding: .3rem 0; }

/* Modale */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(20, 14, 26, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal-box { position: relative; background: var(--card); color: var(--ink); border-radius: 18px; padding: 2rem 1.6rem 1.6rem; max-width: 430px; display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow); }
.modal-title { font: 700 1.3rem var(--f-display); }
.modal-close { position: absolute; top: .6rem; right: .7rem; background: none; border: 0; font-size: 1.2rem; color: var(--ink); cursor: pointer; }

/* CTA collant mobile */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--flash); color: var(--flash-ink); text-align: center; font-weight: 700; text-decoration: none; padding: .9rem max(16px, env(safe-area-inset-right, 0px)) calc(.9rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  body { padding-bottom: 56px; }
}

/* Pied de page */
.site-footer { background: var(--night); color: var(--night-ink); padding-block: 3.5rem 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--night-ink); }
.site-footer .brand { color: var(--night-ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-grid p { color: color-mix(in srgb, var(--night-ink) 75%, transparent); }
.footer-title { font-weight: 700; color: var(--night-ink) !important; margin-bottom: .7rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid color-mix(in srgb, var(--night-ink) 20%, transparent); color: color-mix(in srgb, var(--night-ink) 70%, transparent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.visually-h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.article-figure { margin: .5rem 0 0; } .article-figure img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); }

/* Galerie de réalisations */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: .8rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--paper-2); aspect-ratio: 1 / 1; }
.gallery figure.g-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: .6rem; bottom: .6rem; right: .6rem; font-size: .82rem; font-weight: 600; color: #FFFFFF; background: rgba(20, 14, 26, .72); padding: .3rem .6rem; border-radius: 6px; width: fit-content; max-width: calc(100% - 1.2rem); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.booth > img { aspect-ratio: 4 / 3; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: .3rem; }

/* Nom de marque long : retour à la ligne sur mobile */
.site-header .brand { min-width: 0; }
@media (max-width: 1020px) { .site-header .brand { white-space: normal; line-height: 1.15; } }
@media (max-width: 520px) { .site-header .brand { font-size: .88rem; } .site-header .brand svg { width: 30px; height: 30px; } }
.site-footer .brand { white-space: normal; min-width: 0; }
