/* Custom Broderie — shared site styles.
   Working colours from the handover (not a final brand guide). */
:root {
  --navy: #142d44;
  --navy-soft: #1f4262;
  --gold: #ad8547;
  --gold-dark: #8a6833;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: #dddcd5;
  --muted: #5b6570;
  --text: #1c2630;
  --whatsapp: #1e7a4a;
  --radius: 10px;
  --max: 1080px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; font-weight: normal; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 1rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); text-decoration: none; }
.brand span { color: var(--gold); }
.header-cta { font-size: .95rem; }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }

/* Sections */
.hero { padding: 2rem 0 3rem; }
.hero .lead { font-size: 1.15rem; max-width: 46rem; }
section { padding: 3rem 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.narrow { max-width: 46rem; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
}
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #16623a; color: var(--white); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Notes and callouts */
.note {
  border-left: 4px solid var(--gold); background: var(--white);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
section.alt .note { background: var(--paper); }
.small { font-size: .92rem; color: var(--muted); }

/* Photo placeholder: draft only, remove before going live */
.photo-placeholder {
  border: 2px dashed var(--gold); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; color: var(--muted); margin: 1.5rem 0;
}

/* Price table */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 30rem; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-family: var(--sans); background: var(--navy); color: var(--white); font-weight: 600; }
td.price, th.price { text-align: right; white-space: nowrap; }
td small { display: block; color: var(--muted); }
/* Phones: each size becomes a small card, so both price columns stay visible */
@media (max-width: 559px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0; }
  td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem 1rem; }
  td:first-child { display: block; font-weight: 600; color: var(--navy); }
  td:first-child small { font-weight: 400; }
  td.price::before { content: attr(data-label); color: var(--muted); white-space: normal; text-align: left; }
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li { position: relative; padding: 0 0 1.25rem 3.2rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--gold); color: var(--white); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Lists */
.check { padding-left: 1.2rem; }
.check li { margin-bottom: .3rem; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy); }
.faq details > div { padding: 0 1.2rem 1rem; }

/* Contact block */
.contact-list { list-style: none; padding: 0; margin: 1rem 0; }
.contact-list li { margin-bottom: .4rem; }

/* Main navigation */
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
.site-nav a { text-decoration: none; color: var(--navy); font-size: .95rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: .6rem; }
  .site-nav { order: 3; width: 100%; }
}

/* Photo grids */
.media-grid { display: grid; gap: 1.25rem; margin: 1.5rem 0 0; }
@media (min-width: 720px) {
  .media-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
.media-grid figure { margin: 0; min-width: 0; }
.media-grid img, .media-grid video {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
}
.media-grid figcaption { font-size: .92rem; color: var(--muted); margin-top: .5rem; }
/* Process video: tall version on phones, wide version from 720px */
.process-video { margin: 2rem auto 0; max-width: 60rem; }
.process-video video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.process-video .video-phone { max-width: 24rem; margin: 0 auto; }
.process-video .video-wide { display: none; }
@media (min-width: 720px) {
  .process-video .video-phone { display: none; }
  .process-video .video-wide { display: block; }
}
.process-video figcaption { font-size: .92rem; color: var(--muted); margin-top: .5rem; text-align: center; }
/* Veil page hero: video on top on phones (seen without scrolling), text left + video right from 900px */
.hero-met-video .hero-video { order: -1; margin: 0; max-width: none; }
.hero-met-video .hero-video .video-phone { width: auto; max-width: 100%; height: min(68svh, 640px); aspect-ratio: 9 / 16; object-fit: cover; }
.hero-met-video .hero-video figcaption { font-size: .85rem; }
@media (min-width: 900px) {
  .hero-grid.hero-met-video { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .hero-met-video .hero-video { order: 0; }
}
.media-grid .photo-placeholder { margin: 0; min-height: 12rem; display: flex; align-items: center; justify-content: center; }

/* Bridal veil configurator */
/* Phone: preview, form, then price. Wide screens: preview and price on the left, form on the right. */
.configurator { display: grid; gap: 1.5rem; margin-top: 1.5rem; grid-template-areas: "preview" "form" "summary"; }
.configurator .preview { grid-area: preview; min-width: 0; }
.configurator form { grid-area: form; }
.configurator .summary { grid-area: summary; min-width: 0; }
@media (min-width: 900px) {
  .configurator { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "preview form" "summary form"; align-items: start; }
}
.veil {
  --veil-ground: #a98f86;
  width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line);
}
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.summary .buttons { margin-top: 1rem; }
.price-box ul { list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .95rem; }
.price-box li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.price-box li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.price-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); color: var(--navy); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.note h3 { margin-top: 0; }
.configurator form { min-width: 0; }
.configurator fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1rem 1.2rem; margin: 0 0 1rem; min-width: 0; }
.configurator legend { font-family: var(--serif); color: var(--navy); font-size: 1.1rem; padding: 0 .3rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; align-items: end; }
.field-grid .wide { grid-column: 1 / -1; }
.field-grid label { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.configurator input, .configurator select {
  width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid #b9bcc0; border-radius: 6px; padding: .55rem .65rem; min-height: 44px;
}
.configurator input:focus-visible, .configurator select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.link-button { background: none; border: 0; padding: .6rem 0 0; color: var(--navy-soft); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; }
.add-line { margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: #d8dee5; padding: 2.5rem 0; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .brand { color: var(--white); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}
.size-advice { background: #fbf6ec; border: 1px solid #e6d6b8; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1rem; font-size: .95rem; }
.size-advice h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.size-advice ul { margin: 0; padding-left: 1.1rem; }
.size-advice li + li { margin-top: .25rem; }
.size-advice p { margin: .5rem 0 0; }

/* Hero with a picture on the right (desktop) or under the text (phone) */
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.hero-visual { margin: 0; text-align: center; }
.hero-visual svg { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.hero-visual figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.tee { fill: var(--white); stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 6px 10px rgba(20, 45, 68, .12)); }
.tee-line { fill: none; stroke: var(--navy); stroke-width: 2; opacity: .45; }
.logo-zone { fill: #fbf6ec; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 7 5; }
.logo-text { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--navy); }
@media (min-width: 900px) { .hero-visual svg { max-width: 380px; } }

/* Thread colour chart (one row per column of the Durak Poly-Soft book) */
.couleurs { border-top: 1px solid var(--line); }
.couleur-recherche { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.25rem 0 1rem; }
.couleur-recherche label { font-weight: 600; color: var(--navy); }
.couleur-recherche input { font: inherit; width: 9rem; min-height: 44px; padding: .5rem .7rem; border: 1px solid #b9bcc0; border-radius: 6px; background: var(--white); }
.couleur-recherche p { margin: 0; width: 100%; }
.nuancier { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin-bottom: 1rem; }
@media (min-width: 760px) { .nuancier { grid-template-columns: repeat(20, minmax(0, 1fr)); } }
.fil { aspect-ratio: 1; border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px;
  font-size: .62rem; font-weight: 600; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35);
  background-image: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 45%, rgba(0,0,0,.12));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: opacity .2s, transform .2s; }
.fil.clair { color: #1c2630; text-shadow: none; }
.fil.estompe { opacity: .15; }
.fil.trouve { transform: scale(1.15); box-shadow: 0 0 0 3px var(--gold); position: relative; z-index: 1; }

/* Equipment section: text left, photo right (phone: photo under the text) */
.materiel-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .materiel-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.materiel-photo { margin: 0; text-align: center; }
.materiel-photo img { width: 100%; max-width: 320px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.materiel-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* Colour chart pop-up */
.nuancier-fenetre { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 1rem 1.2rem; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--text); box-shadow: 0 20px 60px rgba(20, 45, 68, .35); }
.nuancier-fenetre::backdrop { background: rgba(20, 45, 68, .55); }
.nuancier-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: -1rem; background: var(--paper); padding: .5rem 0; z-index: 2; }
.nuancier-entete h3 { margin: 0; }
.nuancier-fermer { font: inherit; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; }
.nuancier-fermer:hover { background: var(--navy); color: var(--white); }
.materiel-photos { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.materiel-photos .materiel-photo img { max-width: 100%; }

/* Partner stores on the veil page */
.partner-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.partner h3 { margin: 0; }
.partner .small { margin: .2rem 0 .6rem; color: var(--muted); }
.partner ul { list-style: none; padding: 0; margin: 0; }
.partner li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.partner-photo { display: block; margin: -1rem -1.2rem .9rem; }
.partner-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; }
.partner { overflow: hidden; }

/* Header: WhatsApp + Instagram buttons, same width. Phones: icons only, so they fit next to the logo. */
.header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.header-actions .btn { gap: .45rem; padding-inline: 1rem; }
.btn-icon { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: var(--white); }
.btn-instagram:hover { color: var(--white); filter: brightness(.92); }
@media (max-width: 559px) {
  .header-actions .btn { width: 48px; padding: 0; }
  .header-actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-actions .btn-icon { width: 1.5rem; height: 1.5rem; }
}
