/* ==========================================================
   Laetitia Cabaret – Sellerie nautique
   Direction : papier bleu-gris, encre marine, fil de couture
   en pointillés (marge de couture) comme seul motif.
   Titres : Bricolage Grotesque. Textes : Source Serif 4.
   ========================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #edf1f4;
  --paper-deep: #dfe6eb;
  --paper-light: #f6f8fa;
  --ink: #142330;
  --slate: #3c5367;
  --haze: #8397a7;
  --line: #b6c4cf;
  --sea: #2b5c80;
  --navy: #0f2434;
  --navy-text: #c9d5de;

  --f-head: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Serif", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.68;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 100; font-family: var(--f-head);
}
.skip:focus { left: 0; }

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--paper); z-index: 60;
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 2px dashed var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.1; margin-right: auto; }
.brand b { display: block; font: 700 1.2rem/1.1 var(--f-head); letter-spacing: -.01em; }
.brand span { font: 500 .85rem/1.2 var(--f-head); color: var(--slate); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  font: 500 .95rem/1 var(--f-head); color: var(--ink); text-decoration: none; padding: .4rem 0;
  border-bottom: 2px dashed transparent;
}
.nav a:hover { border-bottom-color: var(--sea); color: var(--ink); }
.nav a.lang {
  border: 1.5px solid var(--ink); padding: .4rem .65rem; border-radius: 3px; font-weight: 600;
}
.nav a.lang:hover { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none; font: 600 .95rem var(--f-head); background: none; color: var(--ink);
  border: 1.5px solid var(--ink); padding: .45rem .8rem; border-radius: 3px; cursor: pointer;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font: 600 1rem/1 var(--f-head); padding: 1rem 1.5rem;
  background: var(--ink); color: var(--paper); text-decoration: none; border: 0; border-radius: 3px;
  cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--sea); color: #fff; }
.btn--light { background: var(--paper); color: var(--navy); }
.btn--light:hover { background: #fff; color: var(--navy); }
.link-quiet { font: 600 1rem var(--f-head); color: var(--ink); text-decoration-style: dashed; text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.7rem); line-height: 1.04; letter-spacing: -.028em;
}
.nw { white-space: nowrap; }
.hero .lede { font-size: 1.2rem; color: var(--slate); margin-top: 1.4rem; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.hero-figure { position: relative; margin: 0; isolation: isolate; }
.hero-figure img { width: 100%; background: var(--paper-deep); }
.hero-figure::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 2px dashed var(--haze);
  animation: sew 1.6s .3s cubic-bezier(.5, 0, .2, 1) both;
}
@keyframes sew { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 2px dashed var(--haze);
}
.facts h2 { font: 700 1.05rem/1.3 var(--f-head); margin-bottom: .25rem; }
.facts p { margin: 0; color: var(--slate); font-size: 1rem; line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section--alt { background: var(--paper-deep); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem clamp(2rem, 5vw, 4rem);
  border-top: 2px dashed var(--haze); padding-top: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
.sec-head h2 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -.02em; }
.sec-head p { margin: .35rem 0 0; color: var(--slate); max-width: 38em; }

/* ---------- Prestations ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.services img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); }
.services h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin: 1rem 0 .35rem; }
.services p { margin: 0; color: var(--slate); font-size: 1rem; line-height: 1.58; }

/* ---------- Méthode ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 1rem;
  padding-block: 1.35rem; border-top: 2px dashed var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step); font: 700 2.4rem/1 var(--f-head); color: var(--haze); letter-spacing: -.03em;
}
.steps h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--slate); }
.future {
  border: 2px dashed var(--haze); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--paper-light);
  position: sticky; top: 6rem;
}
.future h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.15; margin-bottom: .75rem; }
.future p:last-child { margin-bottom: 0; }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filters button {
  font: 600 .95rem/1 var(--f-head); padding: .65rem 1rem; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 3px; cursor: pointer;
}
.filters button:hover { background: var(--paper-deep); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gallery { columns: 3; column-gap: 1.25rem; }
.shot { break-inside: avoid; margin: 0 0 1.5rem; }
.shot[hidden] { display: none; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-deep); cursor: zoom-in; }
.shot-btn img { width: 100%; transition: opacity .2s; }
.shot-btn:hover img { opacity: .88; }
.shot figcaption { font-size: .95rem; line-height: 1.45; color: var(--slate); margin-top: .5rem; }

dialog.lightbox {
  border: 0; padding: 0; background: var(--navy); color: var(--navy-text);
  width: min(96vw, 1280px); max-height: 96vh; overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(10, 22, 32, .88); }
.lightbox-inner { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 96vh; }
.lightbox img { max-width: 100%; max-height: calc(96vh - 5.5rem); margin: 0 auto; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; }
.lightbox-bar p { margin: 0; flex: 1; font-size: .98rem; line-height: 1.4; }
.lightbox-bar button {
  font: 600 .95rem var(--f-head); background: transparent; color: var(--paper); border: 1.5px solid var(--navy-text);
  padding: .55rem .8rem; border-radius: 3px; cursor: pointer;
}
.lightbox-bar button:hover { background: var(--paper); color: var(--navy); }

/* ---------- Où je travaille ---------- */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.places li { border-top: 2px dashed var(--line); padding-top: 1rem; }
.places h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
.places p { margin: 0; color: var(--slate); }
.booking { margin-top: 2.5rem; max-width: 46em; font-size: 1.12rem; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-fig { position: relative; margin: 0; isolation: isolate; max-width: 420px; }
.about-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-fig::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 2px dashed var(--haze); z-index: -1; }
.about-text h2 { font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.about-text p { max-width: 36em; font-size: 1.12rem; }

/* ---------- Contact ---------- */
.section--dark { background: var(--navy); color: var(--navy-text); }
.section--dark .sec-head { border-top-color: #4b6479; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .sec-head p { color: var(--navy-text); }
.section--dark a { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-side p { max-width: 24em; }
.mail { font: 600 1.15rem var(--f-head); overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 .95rem var(--f-head); color: #fff; }
.field input, .field select, .field textarea {
  font: 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper-light);
  border: 1.5px solid var(--haze); border-radius: 3px; padding: .75rem .8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid #9fc3de; outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--sea); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-msg { margin: 0; font-family: var(--f-head); font-weight: 500; }
.form-msg[data-state="ok"] { color: #bfe3c9; }
.form-msg[data-state="err"] { color: #ffd2c4; }
.hp { position: absolute; left: -9999px; }

.sheet { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 2px dashed #4b6479; }
.sheet h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.sheet p { max-width: 24em; }
.section--dark a.btn--light { color: var(--navy); }
.section--dark a.btn--light:hover { color: var(--navy); background: #fff; }
.sheet-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.sheet-btns .btn { padding: .85rem 1.1rem; font-size: .95rem; }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid var(--navy-text); }
.btn--outline:hover { background: var(--paper); color: var(--navy); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--navy-text); border-top: 2px dashed #4b6479; padding-block: 2rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- Pages texte (mentions légales) ---------- */
.prose { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 46rem; }
.prose h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin: 2.2rem 0 .6rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.prose ul { padding-left: 1.2rem; }
.prose--wide { max-width: 60rem; }
.embed { margin-block: 1.5rem; min-height: 12rem; }

/* ---------- Adaptation ---------- */
@media (max-width: 960px) {
  .hero-grid, .method-grid, .about-grid, .contact-grid, .sec-head { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { columns: 2; }
  .future { position: static; }
  .facts, .places { grid-template-columns: minmax(0, 1fr); }
  .hero-figure::after, .about-fig::after { inset: 10px -8px -10px 8px; }
}
@media (max-width: 860px) {
  .nav-toggle { 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: 2px dashed var(--line);
    padding: .5rem max(var(--gutter), env(safe-area-inset-left, 0px)) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px dashed var(--line); }
  .nav a.lang { align-self: flex-start; margin-top: .75rem; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .gallery { columns: 1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .lightbox-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-figure::after { animation: none; }
  .btn, .shot-btn img { transition: none; }
}

/* FAQ, étapes, notes */
.qa { border-bottom: 1px dashed var(--line); }
.qa summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-family: var(--head, inherit); font-weight: 600; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .3rem; top: 1rem; color: var(--sea); font-size: 1.3rem; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa-a { padding: 0 0 1rem; }
.qa-a ol, .qa-a ul { padding-left: 1.3rem; }
.qa-a p + p { margin-top: .7rem; }
.prose .note { font-size: .9rem; color: var(--slate); margin-top: 2rem; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.3rem 0 .4rem; }
.steps-list { list-style: none; padding: 0; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3rem; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy); color: var(--paper); display: grid; place-items: center; font-weight: 700; }
.steps-list h2 { border: 0; padding: 0; margin: 0 0 .3rem; font-size: 1.2rem; }
.site-footer a + a, .site-footer p a { margin-right: .2rem; }
