/* ==========================================================
   PROTOCOLIA — Catalogue en ligne
   Couleurs reprises du livre des modèles : bordeaux, or, crème
   ========================================================== */
:root {
  --bordeaux: #6B1A26;
  --bordeaux-dark: #4E111B;
  --gold: #B08A3E;
  --gold-light: #D9B56A;
  --cream: #FBF7F0;
  --cream-2: #F5EEE2;
  --paper: #FFFDF8;
  --ink: #2A1E1A;
  --muted: #6E625A;
  --line: #E3D3B4;
  --ok: #3E7A52;
  --no: #A8323E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 10px 30px -12px rgba(78, 17, 27, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: var(--bordeaux); }
h1, h2, h3 { margin: 0; font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
}
.script { font-family: var(--script); font-weight: 400; color: var(--bordeaux); line-height: 1.1; }
h2.script { font-size: clamp(48px, 8vw, 76px); }
.script--sm { font-size: 42px; margin: 32px 0 14px; }
.note { font-style: italic; color: var(--muted); text-align: center; margin: 24px auto 0; max-width: 680px; }
.note--left { text-align: left; margin: 10px 0 0; font-size: 17px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #fff; background: var(--bordeaux);
  border: 1px solid var(--bordeaux); border-radius: var(--radius);
  padding: 15px 26px; cursor: pointer; transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--bordeaux-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--bordeaux); }
.btn--ghost:hover { background: var(--bordeaux); color: #fff; }
.btn--small { padding: 9px 16px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--bordeaux-dark); }
.btn--gold:hover { background: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link--light { color: #F3E4C6; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 240, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--sans); font-weight: 500; letter-spacing: .38em; font-size: 15px; color: var(--bordeaux); text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--bordeaux); }
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ---------- Accueil ---------- */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 64px 20px 72px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero__brand { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 70px); letter-spacing: .14em; color: var(--bordeaux); line-height: 1; }
.hero__script { font-family: var(--script); font-size: clamp(46px, 6.2vw, 84px); line-height: 1.05; margin: 4px 0 18px; color: var(--ink); }
.hero__lead { font-style: italic; font-size: clamp(21px, 2.4vw, 27px); color: var(--bordeaux); margin: 0 0 18px; max-width: 30ch; }
.hero__points { list-style: none; padding: 0; margin: 0 0 30px; font-family: var(--sans); font-size: 15px; }
.hero__points li { position: relative; padding-left: 22px; margin: 6px 0; }
.hero__points li::before { content: "◆"; position: absolute; left: 0; color: var(--bordeaux); font-size: 11px; top: 4px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__fan { position: relative; height: 460px; }
.hero__text { min-width: 0; }
.fan { position: absolute; top: 50%; left: 50%; border: 6px solid #fff; box-shadow: var(--shadow); border-radius: 2px; }
.fan--c { width: 68%; transform: translate(-50%, -50%); z-index: 2; }
.fan--l { width: 52%; transform: translate(-98%, -48%) rotate(-8deg); }
.fan--r { width: 52%; transform: translate(-2%, -48%) rotate(8deg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__points { display: inline-block; text-align: left; }
  .hero__cta { justify-content: center; }
  .hero__fan { height: 330px; order: -1; }
}

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 20px; }
.section--tint { max-width: none; background: linear-gradient(var(--cream-2), var(--cream)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tint > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 36px; }
.section__sub { font-style: italic; font-size: 22px; color: var(--muted); margin: 8px auto 0; max-width: 640px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin-top: 16px; font-size: 14px; }
.divider::before, .divider::after { content: ""; width: 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }

/* ---------- Filtres ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.filters__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips--small { justify-content: flex-start; }
.chip {
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  transition: all .15s;
}
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.chip[aria-pressed="true"] small { color: var(--gold-light); }
.chips--small .chip { padding: 6px 13px; font-size: 12px; }
.search input {
  font: inherit; font-size: 17px; width: min(340px, 100%);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.search { flex: 0 1 340px; display: block; min-width: 0; }
.search input:focus { outline: none; border-color: var(--gold); }
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; scrollbar-width: none; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .search, .search input { width: 100%; flex: 1 1 100%; }
}
.count { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin: 6px 0 16px; }
.empty { text-align: center; font-style: italic; color: var(--muted); padding: 40px 0; }

/* ---------- Grille des modèles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.card__img {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2));
}
.card__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.card__body { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card__code { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--bordeaux); line-height: 1; }
.card__name { font-family: var(--script); font-size: 26px; line-height: 1.15; margin-top: 2px; }
.card__meta { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.card__fav {
  position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,253,248,.92); color: var(--bordeaux);
  font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.card__fav[aria-pressed="true"] { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
@media (max-width: 560px) {
  .card__img { padding: 8px; }
  .card__code { font-size: 21px; }
  .card__name { font-size: 21px; }
  .card__meta { font-size: 10px; }
}

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; max-width: 980px; }
.steps li { display: flex; gap: 18px; }
.steps__n {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bordeaux); color: #F3E4C6; font-family: var(--sans); font-weight: 500; border: 2px solid var(--gold);
}
.steps h3 { font-size: 27px; color: var(--bordeaux); line-height: 1.2; }
.steps p { margin: 4px 0 0; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Formules ---------- */
.plans { display: grid; gap: 22px; }
.plan { display: grid; grid-template-columns: 300px 1fr; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan__price {
  background: var(--bordeaux); color: #fff; text-align: center; padding: 30px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 3px solid var(--gold);
}
.plan__name { font-family: var(--sans); letter-spacing: .32em; color: var(--gold-light); font-size: 20px; font-weight: 500; margin: 0; }
.plan__amount { font-size: 58px; line-height: 1.1; margin: 8px 0 4px; font-weight: 500; }
.plan__unit { font-style: italic; margin: 0; color: #F3E4C6; font-size: 18px; line-height: 1.3; }
.badge {
  margin-top: 14px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  background: #F3E1B8; color: var(--bordeaux); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold);
}
.plan__body { padding: 28px 34px; }
.plan__body h3 { font-size: 27px; color: var(--bordeaux); font-weight: 600; margin-bottom: 10px; }
.plan--featured { outline: 2px solid var(--gold); outline-offset: 3px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin: 7px 0; }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-family: var(--sans); font-weight: 600; }
.checks li.no { color: var(--muted); }
.checks li.no::before { content: "✕"; color: var(--no); }
@media (max-width: 760px) {
  .plan { grid-template-columns: 1fr; }
  .plan__price { border-right: 0; border-bottom: 3px solid var(--gold); padding: 24px 16px; }
  .plan__body { padding: 22px 20px; }
}

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.pricing .script--sm:first-child { margin-top: 0; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; background: var(--paper); margin-bottom: 18px; }
.table th {
  background: var(--bordeaux); color: #fff; font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; text-align: left; padding: 14px 18px;
}
.table th:last-child, .table td:last-child { text-align: right; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 21px; }
.table td:last-child { color: var(--bordeaux); font-weight: 600; white-space: nowrap; }
.table tr.is-active td { background: #F6E9CF; }
@media (max-width: 560px) {
  .table th { font-size: 10px; letter-spacing: .12em; padding: 12px; }
  .table td { font-size: 18px; padding: 12px; }
  .table td:last-child { white-space: normal; }
}
.diamonds { list-style: none; padding: 0; margin: 0; }
.diamonds li { position: relative; padding-left: 28px; margin: 10px 0; }
.diamonds li::before { content: "◆"; position: absolute; left: 0; top: 2px; color: var(--gold); font-size: 15px; }

/* Calculateur */
.calc {
  position: sticky; top: 90px; background: var(--paper); border: 1px solid var(--gold);
  padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.calc__title { font-family: var(--script); font-size: 44px; color: var(--bordeaux); margin: 0; line-height: 1; }
.calc fieldset { border: 0; padding: 0; margin: 0; }
.calc legend, .calc__field > span { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.calc__field em { text-transform: none; letter-spacing: 0; color: var(--muted); }
.calc__plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc__plans label { position: relative; }
.calc__plans input { position: absolute; opacity: 0; }
.calc__plans span {
  display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.calc__plans input:checked + span { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.calc__plans input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.calc input[type=number], .calc select {
  width: 100%; font: inherit; font-size: 20px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--radius);
}
.calc__result { background: var(--cream-2); border-left: 3px solid var(--gold); padding: 14px 16px; font-size: 18px; }
.calc__result .line { display: flex; justify-content: space-between; gap: 12px; }
.calc__result .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 24px; font-weight: 600; color: var(--bordeaux); }
.calc__result .hint { font-size: 15px; font-style: italic; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .calc { position: static; } }

/* ---------- Conditions ---------- */
.cond { max-width: 980px; margin: 0 auto; }
.callout { border: 1px solid var(--gold); background: var(--paper); padding: 18px 22px; margin-bottom: 22px; }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--bordeaux); font-weight: 600; }

/* ---------- Pied de page ---------- */
.footer { background: var(--bordeaux); color: #F3E4C6; text-align: center; padding: 56px 20px 110px; }
.footer p { margin: 4px 0; }
.footer__brand { font-family: var(--sans); letter-spacing: .4em; color: var(--gold-light); font-size: 18px; }
.footer__wa { display: inline-block; margin-top: 16px; color: #fff; font-size: 26px; text-decoration: none; border-bottom: 1px solid var(--gold-light); }
.footer__small { font-size: 14px; opacity: .7; margin-top: 22px !important; }

/* ---------- Bouton flottant + barre sélection ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.tray {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 41;
  background: var(--bordeaux-dark); color: #fff; border: 1px solid var(--gold); border-radius: 999px;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow);
  max-width: calc(100% - 100px); font-family: var(--sans); font-size: 14px;
}
.tray[hidden] { display: none; }
.tray__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .tray { left: 12px; right: 84px; transform: none; max-width: none; gap: 8px; padding-left: 14px; font-size: 12px; }
  .tray .btn { padding: 8px 10px; font-size: 10px; letter-spacing: .08em; }
}

/* ---------- Visionneuse ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.viewer[hidden] { display: none; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(30, 10, 14, .82); }
.viewer__panel {
  position: relative; background: var(--cream); width: min(1180px, 100%); height: calc(100vh - 40px); height: calc(100dvh - 40px);
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--gold);
}
.viewer__img { background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2)); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 0; height: 100%; }
.viewer__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: var(--shadow); }
.viewer__info { padding: 34px 32px 28px; overflow-y: auto; min-height: 0; }
.tag { display: inline-block; border: 1px solid var(--gold); padding: 6px 12px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bordeaux); margin: 0 0 12px; }
.viewer__code { font-size: 84px; font-weight: 600; color: var(--bordeaux); line-height: .95; margin: 0; }
.viewer__name { font-size: 46px; color: var(--ink); margin: 0; }
.viewer__style { font-style: italic; font-size: 24px; color: var(--muted); margin: 2px 0 14px; }
.specs { display: grid; grid-template-columns: 120px 1fr; margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: 14px; }
.specs dd em { color: var(--muted); }
.viewer__actions { display: grid; gap: 10px; margin-top: 20px; justify-items: center; }
.viewer__close {
  position: absolute; top: 10px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); font-size: 28px; line-height: 1; color: var(--bordeaux); cursor: pointer;
}
.viewer__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,253,248,.92); font-size: 32px; line-height: 1; color: var(--bordeaux); cursor: pointer;
}
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { left: calc(57.4% - 58px); }
@media (max-width: 860px) {
  .viewer { padding: 0; }
  .viewer__panel { display: block; max-height: 100vh; height: 100%; overflow-y: auto; border: 0; }
  .viewer__img { padding: 56px 12px 12px; min-height: calc(36vh + 40px); height: auto; }
  .viewer__img img { max-height: 72vh; }
  .viewer__info { overflow: visible; padding: 22px 20px 40px; }
  .viewer__nav { top: calc(56px + 36vh); }
  .viewer__nav--next { left: auto; right: 12px; }
  .viewer__code { font-size: 64px; }
  .viewer__name { font-size: 38px; }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-family: var(--sans); font-size: 14px; }

/* ---------- Formulaire « Envoyez vos informations » ---------- */
.info-form { max-width: 860px; margin: 0 auto; display: grid; gap: 22px; }
.box { border: 1px solid var(--line); background: var(--paper); padding: 22px 24px 24px; margin: 0; min-width: 0; box-shadow: 0 6px 20px -14px rgba(78,17,27,.3); }
.box legend, .box__title {
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--bordeaux);
  display: flex; align-items: center; gap: 12px; padding: 0 8px; margin: 0 0 4px -8px;
}
.box__title { margin: 0 0 8px; padding: 0; }
.box__n {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--bordeaux); color: #F3E4C6; font-family: var(--sans); font-size: 15px; font-weight: 500; border: 2px solid var(--gold);
}
.box__help { margin: 0 0 14px; color: var(--muted); font-style: italic; }
.box--photo { background: #FBF3E3; border-color: var(--gold); }
.box--photo p:last-child { margin: 0; }
.box--photo strong { color: var(--bordeaux); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span, .field__label { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.field b { color: var(--no); }
.field em { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--serif); font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,62,.18); }
.invalid, .field .invalid { border-color: var(--no) !important; box-shadow: 0 0 0 3px rgba(168,50,62,.15) !important; }
#f-events.invalid { border: 1px solid var(--no); border-radius: var(--radius); padding: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: block; text-align: center; padding: 12px 4px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius);
}
.seg input:checked + span { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#f-preview { display: flex; align-items: center; gap: 14px; background: var(--cream-2); padding: 10px; border-left: 3px solid var(--gold); }
#f-preview[hidden] { display: none; }
#f-preview img { width: 64px; height: 80px; object-fit: contain; background: #fff; }
#f-preview strong { color: var(--bordeaux); }
#f-preview em { color: var(--muted); }
.event { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.event.is-on { border-color: var(--gold); background: #FFFCF5; }
.event__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 21px; font-weight: 500; }
.event.is-on .event__head { color: var(--bordeaux); border-bottom: 1px dashed var(--line); }
.event__head input { width: 22px; height: 22px; accent-color: var(--bordeaux); flex: none; }
.event__body { padding: 14px 16px 16px; }
.event__body[hidden] { display: none; }
.form-error { background: #FBEAEA; border-left: 3px solid var(--no); color: #7A1E27; padding: 12px 16px; margin: 0; }
.form-error[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-actions .btn { font-size: 15px; padding: 17px 28px; }
.sent { text-align: center; border: 1px solid var(--gold); background: var(--paper); padding: 24px; }
.sent[hidden] { display: none; }
.sent .script--sm { margin: 0 0 6px; }
.sent p { margin: 0 0 16px; }
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .box { padding: 18px 16px 20px; }
  .box legend, .box__title { font-size: 23px; }
  .event__head { font-size: 19px; padding: 12px 14px; }
  .event__body { padding: 12px 14px 14px; }
  .form-actions .btn { width: 100%; }
  .form-actions { justify-content: center; }
}
[hidden] { display: none !important; }

/* ==========================================================
   Ajouts : images WebP, couleurs, badges, questionnaire,
   comparaison, barre mobile, date PREMIUM
   ========================================================== */
picture { display: contents; }

/* Pastilles de couleur */
.sw { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none; vertical-align: middle; }
.sw--all { background: conic-gradient(#7A1A2A, #C8632F, #E8B04A, #1F6B45, #1E4FA0, #6A3A8C, #E596AC, #7A1A2A); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.swb {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--sans); font-size: 12px; color: var(--ink);
}
.swb:hover { border-color: var(--gold); }
.swb[aria-pressed="true"] { border-color: var(--bordeaux); box-shadow: 0 0 0 1px var(--bordeaux); color: var(--bordeaux); font-weight: 600; }
.swb[aria-pressed="true"] .sw { box-shadow: 0 0 0 2px var(--bordeaux); }
@media (max-width: 760px) {
  .swatches { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
  .swatches::-webkit-scrollbar { display: none; }
  .swb { white-space: nowrap; }
}
.card__code { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card__sws { display: inline-flex; }
.card__sws .sw { width: 16px; height: 16px; margin-left: -4px; border-width: 1.5px; }
.card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; pointer-events: none;
  background: var(--bordeaux); color: #F3E4C6; font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--gold);
}
.count .link { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.v-sws { display: inline-flex; gap: 4px; margin-right: 6px; vertical-align: -4px; }
.v-sws .sw { width: 18px; height: 18px; }

/* Bouton « Vous hésitez ? » */
.quiz-cta {
  margin: 24px auto 0; display: flex; align-items: center; gap: 14px; text-align: left; max-width: 560px; width: 100%;
  background: var(--paper); border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; cursor: pointer;
  font: inherit; font-size: 18px; color: var(--ink); box-shadow: 0 6px 18px -12px rgba(78,17,27,.35); transition: transform .15s, box-shadow .15s;
}
.quiz-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quiz-cta strong { color: var(--bordeaux); }
.quiz-cta__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bordeaux); color: var(--gold-light); font-size: 18px; }
.quiz-cta__go { margin-left: auto; font-size: 30px; color: var(--gold); line-height: 1; }

/* Fenêtres */
.modal { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30, 10, 14, .82); }
.modal__panel {
  position: relative; background: var(--cream); border: 1px solid var(--gold); width: min(620px, 100%);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px 28px 30px;
}
.modal__panel--wide { width: min(1180px, 100%); }
.modal__title { font-size: 46px; margin: 0 40px 10px 0; }
.modal__close {
  position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); font-size: 28px; line-height: 1; color: var(--bordeaux); cursor: pointer;
}
@media (max-width: 640px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { width: 100%; max-height: 92vh; max-height: 92dvh; padding: 22px 18px 28px; border-width: 1px 0 0; border-radius: 14px 14px 0 0; }
  .modal__title { font-size: 38px; }
}

/* Questionnaire */
.quiz__step { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.quiz__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.quiz__bar i { display: block; height: 100%; background: var(--bordeaux); transition: width .3s; }
.quiz__q { font-size: 28px; color: var(--bordeaux); margin: 0 0 16px; font-weight: 600; }
.quiz__opts { display: grid; gap: 10px; margin-bottom: 16px; }
.quiz__opts--colors { grid-template-columns: 1fr 1fr; }
.qopt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 15px 18px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 20px; color: var(--ink);
}
.qopt:hover, .qopt:focus-visible { border-color: var(--bordeaux); background: #fff; }
.qopt--color { font-size: 17px; padding: 11px 12px; }
.qopt--color .sw { width: 28px; height: 28px; }
.quiz__note { background: #FBF3E3; border-left: 3px solid var(--gold); padding: 10px 14px; margin: 0 0 16px; }
.quiz__note strong { color: var(--bordeaux); }
.quiz__res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.qres {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; cursor: zoom-in;
  background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2)); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: inherit;
}
.qres:hover { border-color: var(--gold); }
.qres img { height: 170px; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); margin-bottom: 6px; }
.qres__code { font-weight: 600; font-size: 22px; color: var(--bordeaux); line-height: 1; }
.qres__name { font-family: var(--script); font-size: 20px; line-height: 1.1; text-align: center; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 480px) {
  .quiz__q { font-size: 25px; }
  .qopt { font-size: 18px; }
  .qopt--color { font-size: 15px; }
  .quiz__res { gap: 8px; }
  .qres { padding: 6px; }
  .qres img { height: 130px; }
  .qres__name { font-size: 17px; }
}

/* Comparaison */
.compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.cmp { scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.cmp__img { border: 0; padding: 8px; background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2)); cursor: zoom-in; height: 300px; display: flex; align-items: center; justify-content: center; }
.cmp__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.cmp__code { font-size: 30px; font-weight: 600; color: var(--bordeaux); margin: 6px 0 0; line-height: 1; }
.cmp__name { font-family: var(--script); font-size: 26px; margin: 0; line-height: 1.1; }
.cmp__specs { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; text-align: left; margin: 6px 0 10px; font-size: 16px; flex: 1; align-content: start; }
.cmp__specs dt { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 7px 0; border-top: 1px solid var(--line); }
.cmp__specs dd { margin: 0; padding: 5px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .compare { grid-auto-columns: 78%; margin: 0 -18px; padding: 0 18px 8px; }
  .cmp__img { height: 240px; }
}

/* Visionneuse : barre « Commander » fixe sur téléphone */
.viewer__bar { display: none; }
@media (max-width: 860px) {
  .viewer__bar {
    display: block; position: sticky; bottom: 0; z-index: 4; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 247, 240, .96); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
  }
  .viewer__actions #v-order { display: none; }
}
.tray .btn { white-space: nowrap; }

/* Vérification de date PREMIUM */
.datecheck { margin-top: 18px; padding: 14px 16px; background: #FBF3E3; border: 1px dashed var(--gold); }
.datecheck__t { margin: 0 0 10px; }
.datecheck__t strong { color: var(--bordeaux); }
.datecheck__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.datecheck input { font: inherit; font-size: 18px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 44px; }
.datecheck .btn { min-height: 44px; }
.form-hint { background: #FBF3E3; border-left: 3px solid var(--gold); padding: 10px 14px; margin: 0; font-style: italic; }

/* ==========================================================
   Nos réalisations + FAQ
   ========================================================== */
.section--dark {
  max-width: none; color: #F7EBD3;
  background: radial-gradient(ellipse at 50% 0%, #7A2232, var(--bordeaux-dark) 70%);
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
}
.section--dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section--dark h2.script { color: #F3D9A0; }
.section--dark .section__sub { color: #E7D3B0; }
.reals { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px; }
.real {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0; border: 0; background: none;
  cursor: zoom-in; color: inherit; font: inherit; max-width: 100%;
}
.real__img { display: block; padding: 8px; background: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: transform .2s; }
.real:hover .real__img { transform: translateY(-4px) rotate(-.5deg); }
.real__img img { height: 420px; width: auto; max-width: 100%; object-fit: contain; }
.real__cap { text-align: center; display: grid; gap: 2px; }
.real__cap strong { font-family: var(--script); font-weight: 400; font-size: 34px; color: #F3D9A0; line-height: 1.1; }
.real__cap span { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #E7D3B0; }
.guest { margin-top: 48px; text-align: center; }
.guest__title { font-family: var(--sans); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 20px; }
.guest__steps { list-style: none; padding: 0; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; text-align: left; }
.guest__steps li { display: flex; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(217,181,106,.4); padding: 16px 18px; }
.guest__steps li > span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-light); color: var(--bordeaux-dark); font-family: var(--sans); font-weight: 600;
}
.guest__steps strong { color: #fff; }
.guest__note { font-style: italic; font-size: 16px; color: #D9C29A; margin: 0 0 22px; }
@media (max-width: 860px) {
  .guest__steps { grid-template-columns: 1fr; }
  .reals { gap: 20px; }
  .real__img img { height: auto; max-height: 460px; width: 100%; }
  .real { width: 100%; }
  .real__img { width: 100%; display: flex; justify-content: center; }
}
.modal__panel--photo { width: auto; max-width: min(900px, 100%); padding: 16px; text-align: center; }
.photo__img { display: flex; justify-content: center; }
.photo__img img { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; max-width: 100%; object-fit: contain; }
.photo__cap { margin: 10px 0 0; }
.photo__cap strong { font-family: var(--script); font-weight: 400; font-size: 32px; color: var(--bordeaux); }
@media (max-width: 640px) {
  .modal__panel--photo { padding: 54px 10px 16px; }
}

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.faq__search, .faq__search input { width: 100%; max-width: none; flex: none; }
.faq__cat { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 22px 0 8px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); margin-bottom: 8px; }
.faq__item[open] { border-color: var(--gold); box-shadow: 0 6px 18px -14px rgba(78,17,27,.4); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--bordeaux); font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1;
}
.faq__item[open] summary::after { content: "–"; background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.faq__item[open] summary { color: var(--bordeaux); }
.faq__a { padding: 0 18px 18px; }
.faq__a strong { color: var(--bordeaux); }
.faq__more { text-align: center; margin-top: 26px; }
.faq__more p { font-style: italic; color: var(--muted); margin: 0 0 12px; font-size: 21px; }
@media (max-width: 640px) {
  .faq__item summary { font-size: 19px; padding: 14px 48px 14px 14px; }
  .faq__a { padding: 0 14px 16px; }
}

/* ==========================================================
   Slogan
   ========================================================== */
.hero__title { margin: 0; font-weight: inherit; }
.hero__title .hero__brand, .hero__title .hero__script { display: block; }
.hero__title .hero__script { margin-bottom: 14px; }
.hero__slogan {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(21px, 2.3vw, 27px);
  color: var(--bordeaux); line-height: 1.25;
}
.hero__slogan::before, .hero__slogan::after { content: "◆"; font-style: normal; font-size: 10px; color: var(--gold); flex: none; }
.footer__slogan { font-family: var(--script); font-size: 34px; color: #fff; margin: 6px 0 4px !important; line-height: 1.2; }
@media (max-width: 860px) {
  .hero__slogan { justify-content: center; }
}

/* ==========================================================
   Animation de l'accueil
   ========================================================== */
@keyframes pc-fade-up   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pc-tracking  { from { opacity: 0; letter-spacing: .6em; filter: blur(6px); } to { opacity: 1; letter-spacing: .14em; filter: none; } }
@keyframes pc-write     { from { clip-path: inset(-20% 100% -40% 0); } to { clip-path: inset(-20% -5% -40% 0); } }
@keyframes pc-shine     { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
@keyframes pc-diamond   { from { opacity: 0; transform: rotate(-180deg) scale(.2); } to { opacity: 1; transform: none; } }
@keyframes pc-fan-l     { from { opacity: 0; transform: translate(-50%, -50%) rotate(0); } }
@keyframes pc-fan-r     { from { opacity: 0; transform: translate(-50%, -50%) rotate(0); } }
@keyframes pc-fan-c     { from { opacity: 0; transform: translate(-50%, -44%) scale(.9); } }
@keyframes pc-float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@keyframes pc-logo-in   { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .38em; } }

@media (prefers-reduced-motion: no-preference) {
  /* Logo PROTOCOLIA (barre du haut) : les lettres se resserrent, puis un reflet doré passe régulièrement */
  .brand {
    background: linear-gradient(100deg, var(--bordeaux) 0 40%, #E8C77A 47%, #B08A3E 53%, var(--bordeaux) 60% 100%) 100% 0 / 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: pc-logo-in 1.1s cubic-bezier(.2,.7,.2,1) both, pc-shine 7s ease-in-out 1.5s infinite;
    transition: letter-spacing .3s;
  }
  .brand:hover { letter-spacing: .44em; }

  .hero .eyebrow     { animation: pc-fade-up .7s ease-out both; }
  .hero__brand       { animation: pc-tracking 1.2s cubic-bezier(.2,.7,.2,1) .15s both; }

  /* « Invitations numériques de mariage » s'écrit de gauche à droite, puis un reflet doré passe */
  .hero__script {
    background: linear-gradient(100deg, var(--ink) 0 42%, #E8C77A 48%, #B08A3E 52%, var(--ink) 58% 100%) 100% 0 / 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: pc-write 1.9s cubic-bezier(.55,.1,.35,1) .7s both, pc-shine 6s ease-in-out 2.8s infinite;
  }

  .hero__slogan         { animation: pc-fade-up .8s ease-out 2.6s both; }
  .hero__slogan::before,
  .hero__slogan::after  { animation: pc-diamond .7s ease-out 2.9s both; }
  .hero__lead           { animation: pc-fade-up .8s ease-out 2.3s both; }
  .hero__points         { animation: pc-fade-up .8s ease-out 2.8s both; }
  .hero__cta            { animation: pc-fade-up .8s ease-out 3s both; }

  /* Les invitations s'ouvrent en éventail, puis flottent doucement */
  .hero__fan            { animation: pc-float 6s ease-in-out 2.4s infinite; }
  .fan--c               { animation: pc-fan-c .9s cubic-bezier(.2,.8,.2,1) .2s both; }
  .fan--l               { animation: pc-fan-l 1s cubic-bezier(.2,.8,.2,1) .7s both; }
  .fan--r               { animation: pc-fan-r 1s cubic-bezier(.2,.8,.2,1) .8s both; }
}

/* ==========================================================
   Titre « Invitations numériques de mariage »
   Ordinateur : une seule ligne, de la même largeur que PROTOCOLIA.
   Téléphone : centré, sur deux lignes équilibrées.
   ========================================================== */
.hero__text { container-type: inline-size; }
.hero__title .hero__script {
  display: block; white-space: nowrap; font-size: clamp(40px, 8.9cqi, 84px);
  /* marge intérieure : les boucles de la calligraphie dépassent des lettres */
  padding: .05em .18em .14em; margin: 0 -.18em 10px;
}
@media (max-width: 860px) {
  .hero__title .hero__script { white-space: normal; text-wrap: balance; font-size: clamp(40px, 11cqi, 64px); }
}

/* Le titre ne se coupe qu'entre « Invitations numériques » et « de mariage » */
.hero__title .nw { white-space: nowrap; }

/* Phrase courte sous le titre : sur une ligne, ou deux lignes équilibrées */
.hero__lead { max-width: none; text-wrap: balance; }

/* ==========================================================
   Bandeau du slogan (entre l'accueil et les modèles)
   ========================================================== */
.slogan-band {
  position: relative; text-align: center; padding: 42px 20px 40px;
  background: radial-gradient(ellipse at 50% 0%, #7A2232, var(--bordeaux-dark) 75%);
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(217,181,106,.25);
}
.slogan-band::before, .slogan-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(217,181,106,.45);
}
.slogan-band::before { top: 7px; }
.slogan-band::after  { bottom: 7px; }
.slogan-band__text {
  margin: 6px auto; max-width: 900px; text-wrap: balance;
  font-family: var(--script); font-size: clamp(40px, 5.4vw, 66px); line-height: 1.2;
  color: #F3D9A0;
}
@supports (-webkit-background-clip: text) {
  .slogan-band__text {
    background: linear-gradient(180deg, #F8E7B8 10%, #D9B56A 55%, #B8893A 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding: 0 .2em .1em; /* place pour les boucles de la calligraphie */
  }
}
.slogan-band__orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-light); font-size: 13px; }
.slogan-band__orn::before, .slogan-band__orn::after { content: ""; width: min(140px, 28vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.slogan-band__orn::after { transform: scaleX(-1); }
@media (max-width: 640px) {
  .slogan-band { padding: 32px 16px 30px; }
}
.slogan-band .nw { white-space: nowrap; }
@media (max-width: 640px) { .slogan-band__text { font-size: clamp(28px, 9.6vw, 46px); } }

/* ==========================================================
   Animation des slogans (déclenchée à l'arrivée à l'écran)
   ========================================================== */
/* Chaque moitié du slogan porte son propre dégradé doré + un reflet, pour pouvoir l'écrire morceau par morceau */
.slogan-band__text .nw, .footer__slogan .nw { display: inline-block; }
@supports (-webkit-background-clip: text) {
  .slogan-band__text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #F3D9A0; padding: 0; }
  .slogan-band__text .nw {
    padding: 0 .2em .12em; margin: 0 -.12em;
    background:
      linear-gradient(100deg, transparent 42%, rgba(255, 250, 235, .9) 50%, transparent 58%) 130% 0 / 300% 100% no-repeat,
      linear-gradient(180deg, #F8E7B8 10%, #D9B56A 55%, #B8893A 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.slogan-band__orn span { display: inline-block; }
.slogan-band__orn::after { transform: none; background: linear-gradient(270deg, transparent, var(--gold-light)); }
.slogan-band__orn::before { transform-origin: right center; }
.slogan-band__orn::after  { transform-origin: left center; }

@keyframes pc-grow   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pc-write2 { from { clip-path: inset(-30% 100% -40% 0); } to { clip-path: inset(-30% -10% -40% -10%); } }
@keyframes pc-shine2 { 0%, 55% { background-position: 130% 0, 0 0; } 85%, 100% { background-position: -30% 0, 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* État de départ (avant d'arriver à l'écran) */
  .js-anim .slogan-band:not(.in-view) .nw,
  .js-anim .footer__slogan:not(.in-view) .nw     { clip-path: inset(-30% 100% -40% 0); }
  .js-anim .slogan-band:not(.in-view) .slogan-band__orn::before,
  .js-anim .slogan-band:not(.in-view) .slogan-band__orn::after { transform: scaleX(0); }
  .js-anim .slogan-band:not(.in-view) .slogan-band__orn span   { opacity: 0; }

  /* 1. Les filets dorés s'étirent depuis le centre, les losanges tournent */
  .slogan-band.in-view .slogan-band__orn::before,
  .slogan-band.in-view .slogan-band__orn::after { animation: pc-grow .9s cubic-bezier(.2,.7,.2,1) both; }
  .slogan-band.in-view .slogan-band__orn span   { animation: pc-diamond .8s ease-out .2s both; }

  /* 2. « Vous célébrez, » s'écrit, puis « nous nous occupons du reste. » — 3. un reflet passe régulièrement */
  .slogan-band.in-view .nw:nth-child(1) { animation: pc-write2 1.1s cubic-bezier(.55,.1,.35,1) .4s both, pc-shine2 6s ease-in-out 3.2s infinite; }
  .slogan-band.in-view .nw:nth-child(2) { animation: pc-write2 1.5s cubic-bezier(.55,.1,.35,1) 1.3s both, pc-shine2 6s ease-in-out 3.5s infinite; }

  /* Slogan du bas de page */
  .footer__slogan.in-view .nw:nth-child(1) { animation: pc-write2 .9s cubic-bezier(.55,.1,.35,1) .1s both; }
  .footer__slogan.in-view .nw:nth-child(2) { animation: pc-write2 1.3s cubic-bezier(.55,.1,.35,1) .8s both; }
}

/* ==========================================================
   Accueil : texte centré aussi sur ordinateur (lignes alignées
   sur le même axe, quelle que soit la police)
   ========================================================== */
.hero__text { text-align: center; }
.hero__lead { margin-left: auto; margin-right: auto; }
.hero__points { display: inline-block; text-align: left; }
.hero__cta { justify-content: center; }
/* l'espacement des lettres ajoute un vide après la dernière lettre : on le compense pour un centrage exact */
.hero__title .hero__brand { margin-right: -.14em; }
.hero .eyebrow { margin-right: -.32em; }

/* Menu du haut (6 liens) : plus compact sur écran moyen, masqué sur tablette comme sur téléphone */
@media (max-width: 1180px) {
  .topbar__inner { gap: 18px; }
  .nav { gap: 18px; }
  .nav a { font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ==========================================================
   Menu sur téléphone et tablette (bouton ☰ « Menu »)
   ========================================================== */
.menu-btn { display: none; }
@keyframes pc-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 9px; margin-left: auto; min-height: 40px; padding: 8px 13px;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
    font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bordeaux);
  }
  .menu-btn:hover { border-color: var(--gold); }
  /* icône ☰ qui devient ✕ quand le menu est ouvert */
  .menu-btn__ico { position: relative; width: 18px; height: 12px; display: inline-block; }
  .menu-btn__ico::before, .menu-btn__ico::after, .menu-btn__ico i {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s;
  }
  .menu-btn__ico::before { top: 0; }
  .menu-btn__ico i       { top: 5px; }
  .menu-btn__ico::after  { top: 10px; }
  .topbar.is-open .menu-btn { border-color: var(--bordeaux); background: var(--paper); }
  .topbar.is-open .menu-btn__ico::before { top: 5px; transform: rotate(45deg); }
  .topbar.is-open .menu-btn__ico i       { opacity: 0; }
  .topbar.is-open .menu-btn__ico::after  { top: 5px; transform: rotate(-45deg); }

  .topbar .btn { margin-left: 0; }

  /* la liste des rubriques s'ouvre sous la barre du haut */
  .topbar.is-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    padding: 6px 20px 14px; background: var(--cream); border-bottom: 1px solid var(--gold);
    box-shadow: 0 18px 30px -18px rgba(78, 17, 27, .35); animation: pc-menu .22s ease-out;
  }
  .topbar.is-open .nav a {
    display: block; padding: 15px 4px; border-bottom: 1px solid var(--line);
    font-size: 14px; letter-spacing: .18em; color: var(--ink);
  }
  .topbar.is-open .nav a:last-child { border-bottom: 0; color: var(--bordeaux); font-weight: 600; }
  .topbar.is-open .nav a:hover, .topbar.is-open .nav a:focus-visible { color: var(--bordeaux); }
}
/* petits téléphones : le bouton WhatsApp du haut laisse sa place au menu
   (le bouton WhatsApp vert flottant reste toujours visible en bas à droite) */
@media (max-width: 480px) {
  .topbar .btn.js-wa { display: none; }
}
@media (max-width: 340px) {
  .menu-btn__txt { display: none; }
}
