/* ============================================================
   Debug Boulangerie — Landing Craft V2 demo
   Palette: primaire #1f3a5f, accent #b08d43, crème #fbfaf8
   Fonts: Playfair Display (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
  --primary: #1f3a5f;
  --primary-d: #15283f;
  --accent: #b08d43;
  --accent-d: #8a7030;
  --accent-soft: rgba(176, 141, 67, 0.10);
  --ink: #22201c;
  --ink-soft: #4a4742;
  --muted: #8e8a82;
  --bg: #fbfaf8;
  --bg-soft: #f1eee8;
  --line: #e4e0d8;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px rgba(20, 18, 15, 0.16);
  --shadow-sm: 0 8px 26px rgba(20, 18, 15, 0.09);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: inherit;
  color: var(--accent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

/* Eyebrow with accent tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
}
.eyebrow.light { color: var(--white); }
.eyebrow.light::before { background: var(--accent); }
.eyebrow-dark { color: var(--primary); }
.eyebrow-dark::before { background: var(--primary); }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sec-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.08rem; }

.section { padding: 100px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-primary { background: var(--primary); color: #e8e6e3; }
.section-primary h2 { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(176,141,67,.28); }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-d); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }
.btn-sm { padding: 11px 22px; font-size: .88rem; }

/* Topbar */
.topbar { background: var(--primary-d); color: #d6d2cc; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: center; flex-wrap: wrap; padding: 9px 0; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.12); }
.topbar-inner span:last-child { border-right: none; }
.topbar-inner svg { width: 15px; height: 15px; color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.nav-logo { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.nav-logo em { font-style: italic; color: var(--accent); font-weight: inherit; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 700; font-size: .9rem; letter-spacing: .03em; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta-mobile { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Hero — plein cadre, texte à gauche, rideau reveal */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,40,63,.65) 0%, rgba(21,40,63,.35) 45%, rgba(21,40,63,.88) 100%); }

.hero-curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero-curtain__panel { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--primary); }
.hero-curtain__panel:first-child { left: -50%; animation: curtainLeft 1.2s cubic-bezier(.65,.05,.36,1) forwards; }
.hero-curtain__panel:last-child { right: -50%; animation: curtainRight 1.2s cubic-bezier(.65,.05,.36,1) forwards; }
@keyframes curtainLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes curtainRight { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-curtain__panel { animation: none; opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; padding: 0 0 92px; width: min(var(--maxw), 92%); margin-inline: auto; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 16ch; line-height: 1.05; }
.hero h1 em { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-underline-offset: 0.18em; text-decoration-thickness: 3px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #e6e0db; margin: 24px 0 36px; max-width: 52ch; font-weight: 300; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 38px; margin-top: 52px; flex-wrap: wrap; }
.hero-proof .p { border-left: 2px solid var(--accent); padding-left: 16px; }
.hero-proof .p b { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.hero-proof .p span { font-size: .72rem; color: #cfc9c4; letter-spacing: .14em; text-transform: uppercase; }

/* Trust badges */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; padding: 34px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.trust-item svg { width: 24px; height: 24px; color: var(--accent); }

/* Problem section */
.problem-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.problem-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; }
.problem-text .eyebrow-dark,
.problem-text h2 em { color: var(--primary); }
.problem-text p { color: var(--ink-soft); margin-top: 20px; max-width: 50ch; }
.problem-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.problem-visual img { width: 100%; height: 100%; object-fit: cover; }
.problem-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21,40,63,.55) 100%); }

/* Services — bento asymétrique */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bento-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.bento-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.bento-tile.photo { padding: 0; overflow: hidden; position: relative; min-height: 240px; }
.bento-tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,40,63,.35), rgba(21,40,63,.75)); }
.bento-tile.photo .bento-content { position: relative; z-index: 2; color: #fff; margin-top: auto; }
.bento-tile.photo h3 { color: #fff; }
.bento-tile.photo p { color: rgba(255,255,255,.85); }
.bento-tile .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.bento-tile .ico svg { width: 26px; height: 26px; color: var(--accent); }
.bento-tile h3 { font-size: 1.22rem; margin-bottom: 10px; }
.bento-tile p { color: var(--ink-soft); font-size: .95rem; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; grid-column: span 2; }

/* About — split text / collage */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-collage { position: relative; min-height: 520px; }
.about-collage img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.about-collage img:first-child { width: 68%; height: 75%; top: 0; left: 0; z-index: 1; }
.about-collage img:last-child { width: 55%; height: 55%; bottom: 0; right: 0; z-index: 2; border: 6px solid var(--bg); }
.about-card { position: absolute; left: 8%; bottom: 18%; z-index: 3; background: var(--primary); color: #fff; padding: 22px 28px; border-radius: var(--radius-sm); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.about-card b { font-family: var(--font-display); font-size: 2.4rem; display: block; line-height: 1; }
.about-card span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #d6d2cc; }
.about-text h2 em { color: var(--primary); }
.about-text ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 14px; }
.about-text li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.about-text li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Quote / parallax */
.parallax { position: relative; padding: 140px 0; background-color: var(--primary); background-size: cover; background-position: center; color: #fff; text-align: center; }
.parallax::after { content: ""; position: absolute; inset: 0; background: rgba(21,40,63,.72); }
.parallax .wrap { position: relative; z-index: 2; }
.parallax blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 24ch; margin: 0 auto; line-height: 1.3; }
.parallax blockquote em { color: var(--accent); }
.parallax cite { display: block; margin-top: 22px; font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--accent); }

/* Method steps */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 20px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; }
#method .eyebrow,
#method .eyebrow::before,
#method .sec-head h2 em { color: #7A5C28; }
#method .eyebrow::before { background: #7A5C28; }
.step .n { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: #7A5C28; opacity: 1; line-height: 1; margin-bottom: 10px; }
.step h4 { font-size: 1rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; color: var(--primary); }
.step p { font-size: .85rem; color: #595959; }

/* Preuve — citation + compteurs */
.proof-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.proof-quote { position: relative; padding-left: 28px; border-left: 4px solid var(--accent); }
.proof-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--primary); }
.proof-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.proof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof-stat { border-left: 2px solid var(--accent); padding-left: 16px; }
.proof-stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--primary); line-height: 1; }
.proof-stat span { display: block; margin-top: 8px; font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* Testimonials */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.testi-card .stars { color: var(--accent); display: flex; gap: 4px; }
.testi-card .stars svg { width: 18px; height: 18px; }
.testi-card p { font-style: italic; color: var(--ink-soft); }
.testi-card .author { font-weight: 700; color: var(--primary); font-size: .95rem; }
.testi-card .role { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); transition: transform .25s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--ink-soft); font-size: .97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.contact-info h2 em { color: #7A5C28; }
.contact-info p { color: var(--ink-soft); margin-bottom: 28px; max-width: 48ch; }
.contact-block { display: grid; gap: 18px; margin-bottom: 28px; }
.contact-block a { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.contact-block a svg { width: 20px; height: 20px; color: var(--accent); }
.contact-hours { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.contact-hours h4 { font-size: 1rem; margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; }
.contact-hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.contact-hours li:last-child { border-bottom: none; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 20px; font-size: 1.3rem; }
.form input, .form textarea, .form select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .96rem; background: var(--bg); transition: border-color .15s; color: var(--ink); }
.form input::placeholder,
.form textarea::placeholder { color: #4a4a4a; opacity: 1; }
.form select:invalid { color: #4a4a4a; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .field { margin-bottom: 18px; }
.form .note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-success { display: none; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 16px; color: var(--primary); font-weight: 600; }
.form-success.visible { display: block; }

/* Footer */
.footer { background: var(--primary-d); color: #b5afa9; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: #fff; margin-bottom: 14px; display: inline-block; }
.footer-logo em { font-style: italic; color: var(--accent); font-weight: inherit; }
.footer p { font-size: .95rem; line-height: 1.7; max-width: 34ch; }
.footer h5 { color: #fff; font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; padding: 5px 0; font-size: .92rem; color: #b5afa9; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; color: #8a857f; }

/* Reveal au scroll — JS gated */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js-ready .reveal { opacity: 0; transform: translateY(30px); }
html.js-ready .reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-collage { min-height: 420px; }
  .proof-split { grid-template-columns: 1fr; gap: 50px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide, .bento-tall { grid-column: span 2; grid-row: span 1; }
  .testi { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 0 6%; max-height: 0; overflow: hidden; transition: max-height .35s; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line); }
  .nav-links.open { max-height: 420px; padding: 12px 6%; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn:not(.burger) { display: none; }
  .nav-cta-mobile { display: block; color: var(--accent); font-weight: 700; margin-top: 8px; }
  .burger { display: flex; }
  .hero-inner { padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.2rem); }
  .hero-proof { gap: 22px; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall { grid-column: span 1; }
  .about-collage { min-height: 360px; }
  .about-collage img:first-child { width: 80%; height: 62%; }
  .about-collage img:last-child { width: 62%; height: 48%; border-width: 4px; }
  .about-card { left: 4%; bottom: 12%; padding: 16px 20px; }
  .about-card b { font-size: 1.8rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .problem-visual { aspect-ratio: 3/4; }
  .problem-visual img { object-position: center 62%; }
  .proof-stats { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .parallax { background-attachment: scroll; }
}
