/* ==========================================================================
   Dynamo Racing — feuille de style du site public
   Couleurs reprises du logo : marine #06265B, jaune #EFC703, vert #01A025
   ========================================================================== */

:root {
  --navy-900: #071A3D;   /* fonds sombres */
  --navy-800: #0C2552;   /* cartes sur fond sombre */
  --navy: #06265B;       /* texte principal sur fond clair */
  --line-dark: #1F3B70;
  --line-dark-2: #2C4A82;
  --yellow: #EFC703;
  --green: #01A025;
  --green-text: #01791C; /* vert assez foncé pour du petit texte sur blanc */
  --light: #F4F6FA;
  --muted-light: #A9B6CF;
  --soft-light: #D7DEEB;
  --muted: #3E5079;
  --bg-soft: #F1F4F9;
  --line: #D5DCE8;
  --cream: #FBF9F6;
  --mess-magenta: #E1027B;
  --mess-btn: #C8016B;
  --mess-dark-magenta: #B0005F;
  --mess-cyan: #01A1CE;
  --mess-ink: #1A1A1A;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(6, 38, 91, .06), 0 12px 32px -12px rgba(6, 38, 91, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; } /* jamais de mot coupé avec un tiret (« COM-MANDER ») */
a { color: inherit; text-decoration: none; }
a, button { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
a:hover { opacity: .88; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Typo ---------- */
.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: .9; margin: 0; }
.display-xl { font-size: clamp(56px, 10vw, 144px); line-height: .88; }
.display-l { font-size: clamp(40px, 6vw, 80px); line-height: .95; }
.display-m { font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow.no-bar::before { display: none; }
.eyebrow-yellow { color: var(--yellow); }
.eyebrow-green { color: var(--green-text); font-weight: 700; }
.eyebrow-green::before { background: var(--green); }
.lead { font-size: 20px; text-wrap: pretty; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Boutons (pilules) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: var(--light); color: var(--light); background: transparent; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-mess { background: var(--mess-btn); color: #fff; }
.btn-ink-outline { border: 2px solid var(--mess-ink); color: var(--mess-ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 26, 61, .9); color: var(--light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 20px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { color: var(--yellow); }
.nav .nav-mess { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; background: var(--cream); border-radius: 999px; }
.nav .nav-mess img { height: 30px; width: auto; }
.nav .nav-mess[aria-current="page"] { box-shadow: 0 0 0 2px var(--yellow); }
.nav .nav-contact { padding: 10px 20px; border: 1px solid var(--light); border-radius: 999px; }
.nav-toggle { display: none; }
/* Trois barres qui se transforment en croix quand le menu est ouvert (aria-expanded="true") */
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }
.admin-bar { background: var(--yellow); color: var(--navy); font-weight: 600; font-size: 14px; }
.admin-bar .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.admin-bar a { text-decoration: underline; }

@media (max-width: 1340px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1px solid var(--line-dark-2); border-radius: 999px; background: transparent; color: var(--light); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy-900); padding: 12px 16px 24px; border-bottom: 1px solid var(--line-dark); gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line-dark); }
  .nav .nav-mess, .nav .nav-contact { align-self: flex-start; margin-top: 12px; border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-dark { background: var(--navy-900); color: var(--light); }
.section-soft { background: var(--bg-soft); }
.section-yellow { background: var(--yellow); color: var(--navy); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 320px), 100%), 1fr)); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 720px; display: flex; align-items: flex-end; background: var(--navy-900); color: var(--light); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-pattern { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #0A1F47 0 22px, #081B40 22px 44px); }
.hero-mark { position: absolute; right: -60px; top: 40px; width: 560px; opacity: .1; pointer-events: none; }
.hero .container { position: relative; width: 100%; padding-top: 120px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.hero-logo { width: min(860px, 100%); }
.hero p { max-width: 620px; color: var(--soft-light); font-size: 20px; margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.page-hero { position: relative; overflow: hidden; padding: 88px 0 64px; background: var(--navy-900); color: var(--light); }
.page-hero .hero-mark { width: 440px; top: -40px; right: -40px; }
.page-hero .container { position: relative; display: flex; flex-direction: column; gap: 24px; }
.page-hero p { margin: 0; max-width: 640px; color: var(--soft-light); font-size: 20px; }

/* ---------- Compte à rebours ---------- */
.countdown-band { background: var(--navy-900); color: var(--light); padding: 0 0 64px; }
.countdown-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px; align-items: center;
  padding: 28px 32px; background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); color: var(--light);
}
.countdown-main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.countdown-days { font-family: var(--font-display); font-weight: 900; font-size: clamp(72px, 9vw, 120px); line-height: .85; color: var(--yellow); }
.countdown-logo { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: 72px; padding: 10px 14px; background: #fff; border-radius: var(--radius-sm); }
.countdown-logo img { max-height: 52px; max-width: 140px; width: auto; object-fit: contain; }
.countdown-logo-lg { display: flex; width: fit-content; height: 88px; margin-bottom: 16px; }
.countdown-logo-lg img { max-height: 68px; max-width: 180px; }
.countdown-info { display: flex; flex-direction: column; gap: 6px; }
.countdown-info strong { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; }
.countdown-info span { color: var(--soft-light); }
.live-dot { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.countdown-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.clock { display: flex; gap: 8px; }
.clock div { min-width: 76px; padding: 12px 8px; background: var(--navy-900); border-radius: 16px; display: flex; flex-direction: column; align-items: center; }
.clock b { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; }
.clock small { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-light); }
.clock-lg div { min-width: 96px; padding: 16px 12px; border-radius: 18px; }
.clock-lg b { font-size: 56px; }
.clock-lg div:first-child b { color: var(--yellow); }

/* ---------- Bandeau chiffres ---------- */
.stats { display: flex; flex-wrap: wrap; }
.stats > div { flex: 1 1 170px; padding: 32px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--navy); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { font-family: var(--font-display); font-weight: 900; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) { .stats > div { border-left: 0; padding-left: 0; } }

/* ---------- Cartes ---------- */
.card { background: var(--bg-soft); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.card-top-green { border-top: 4px solid var(--green); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 36px; text-transform: uppercase; line-height: 1; }
.card p { margin: 0; color: var(--muted); }
.card-index { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.placeholder-img {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background: repeating-linear-gradient(135deg, #E3E8F1 0 14px, #DCE2EE 14px 28px);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-radius: 16px;
}
.dark .placeholder-img, .placeholder-img.dark { background: repeating-linear-gradient(135deg, #10295A 0 14px, #0C2552 14px 28px); color: var(--muted-light); }
.cover { width: 100%; object-fit: cover; border-radius: 16px; }

/* Actus */
.news-card { display: flex; flex-direction: column; gap: 16px; }
.news-card .cover, .news-card .placeholder-img { aspect-ratio: 4 / 3; }
.news-card h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.news-card p { margin: 0; color: var(--muted); font-size: 16px; }
.dark .news-card p { color: var(--muted-light); }
.news-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.news-meta time { color: var(--muted); }
.dark .news-meta time { color: var(--muted-light); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tag-yellow { background: var(--yellow); color: var(--navy); }
.featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  background: var(--bg-soft); border-bottom: 4px solid var(--yellow); border-radius: 24px; overflow: hidden;
}
.featured .cover, .featured .placeholder-img { height: 100%; min-height: 420px; border-radius: 0; }
.featured-body { padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; }
.featured-body h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.5vw, 64px); line-height: .95; text-transform: uppercase; }
.read-more { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--green-text); }
@media (max-width: 640px) { .featured-body { padding: 28px; } .featured .cover, .featured .placeholder-img { min-height: 240px; } }

/* Filtres (pilules) */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-dark-2); background: transparent; color: var(--light);
  font-family: var(--font-body); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
}
.filter.active, .filter[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.filters-light .filter { border-color: #BDB6AA; color: var(--mess-ink); background: #fff; }
.filters-light .filter.active, .filters-light .filter[aria-pressed="true"] { background: var(--mess-ink); border-color: var(--mess-ink); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; font-family: var(--font-mono); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 16px; border: 1px solid #C5CEDE; border-radius: 999px; }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }

/* Liste pilotes accueil */
.grid-list { display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.grid-list a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.grid-list .num { justify-self: start; background: var(--yellow); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-family: var(--font-mono); font-weight: 700; font-size: 20px; }
.grid-list .name { font-family: var(--font-display); font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1; }
.grid-list .cat { font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-transform: uppercase; text-align: right; }
@media (max-width: 640px) { .grid-list a { grid-template-columns: auto 1fr; } .grid-list .cat { grid-column: 2; text-align: left; } .grid-list .name { font-size: 26px; } }

/* Cartes pilotes */
.pilot-card { position: relative; overflow: hidden; background: var(--navy-800); color: var(--light); border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s ease; }
.pilot-card:hover { transform: translateY(-3px); }
.pilot-photo { position: relative; aspect-ratio: 4 / 4.2; background: repeating-linear-gradient(135deg, #12305F 0 16px, #0E2752 16px 32px); display: flex; align-items: flex-end; padding: 20px; }
.pilot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pilot-photo .big-num { position: absolute; top: 4px; right: 16px; font-family: var(--font-display); font-weight: 900; font-size: 140px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--yellow); opacity: .85; z-index: 1; }
.pilot-photo .ph { position: relative; font-family: var(--font-mono); font-size: 12px; color: var(--muted-light); }
.pilot-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; border-top: 3px solid var(--yellow); }
.pilot-name { margin: 0; min-width: 0; display: flex; flex-direction: column; font-family: var(--font-display); text-transform: uppercase; line-height: .95; }
.pilot-name small { font-weight: 600; font-size: 24px; color: #C8D1E2; }
.pilot-name span { font-weight: 900; font-size: clamp(34px, 9vw, 44px); overflow-wrap: anywhere; }
.pilot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.num-pill { flex-shrink: 0; background: var(--yellow); color: var(--navy-900); padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-light); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-outline { padding: 4px 12px; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 999px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.champ-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.champ-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.champ-list li::before { content: ""; width: 14px; height: 3px; background: var(--green); flex-shrink: 0; }
.dl-2 { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; font-size: 15px; }
.dl-2 dd { margin: 2px 0 0; font-weight: 600; }
.pilot-palmares { padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 15px; color: #C8D1E2; white-space: pre-line; }
.pilot-card[hidden] { display: none; }
.staff-desc { margin: 0; font-size: 16px; color: #C8D1E2; white-space: pre-line; } /* description du staff (retours à la ligne gardés) */
.pilot-social { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-weight: 600; font-size: 15px; }
.pilot-social .social-btn { width: 44px; height: 44px; }
/* Drapeau de nationalité (assets/img/flags/<code>.svg) */
.flag { display: inline-block; height: .75em; width: auto; vertical-align: .05em; margin-left: .25em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.flag-code { height: auto; padding: 1px 5px; font-family: var(--font-mono); font-size: .5em; letter-spacing: .06em; background: var(--yellow); color: var(--navy); vertical-align: middle; }
.grid-list .flag { box-shadow: 0 0 0 1px var(--line); }

/* ---------- Bandeau partenaires défilant ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 0 8px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }
.logo-tile {
  flex: 0 0 auto; width: 220px; height: 104px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; color: var(--muted);
}
.logo-tile img { max-height: 72px; width: auto; }

/* Cartes partenaires */
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.partner-logo { height: 180px; display: flex; align-items: center; justify-content: center; padding: 28px; border-bottom: 4px solid var(--yellow); background: #fff; }
.partner-logo img { max-height: 120px; width: auto; }
.partner-logo .name { font-family: var(--font-display); font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: 1; text-align: center; }
.partner-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.partner-body h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1; }
.partner-body p { margin: 0; color: var(--muted); font-size: 16px; flex-grow: 1; }
.partner-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid #E3E8F1; }
.pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #C5CEDE; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* ---------- Championnats ---------- */
.next-card { color: var(--light); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; align-items: center; padding: 32px; background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.next-card-link, .next-card-link:visited, .next-card-link:hover { display: block; color: var(--light); text-decoration: none; opacity: 1; }
.next-card-link:hover .next-card { border-color: var(--yellow); }
.next-card strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 5vw, 64px); line-height: .95; text-transform: uppercase; margin: 12px 0; }
.next-card .clock { justify-content: flex-end; flex-wrap: wrap; }
.round-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.round-row.is-next { background: #FFFBE6; border: 2px solid var(--yellow); }
.round-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; background: var(--bg-soft); border-radius: 20px; flex-shrink: 0; }
.round-row.is-next .round-date { background: var(--navy); color: #fff; }
.round-date b { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; }
.round-date small { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.round-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.round-info h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.round-pilots { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 6px; }
.round-pilots span { padding: 4px 10px; background: var(--bg-soft); border-radius: 999px; font-size: 14px; font-weight: 600; }
.j-badge { flex-shrink: 0; font-family: var(--font-display); font-weight: 900; font-size: 32px; padding: 6px 16px; background: var(--bg-soft); border-radius: 999px; }
.round-row.is-next .j-badge { background: var(--yellow); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.past-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.past-card h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; }
.champ-card { background: var(--navy-800); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--yellow); }
.champ-card h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: 1; }
.champ-stats { display: flex; gap: 24px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.champ-stats b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--yellow); }
.champ-stats small { font-size: 13px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; }
.round-row[hidden], .past-card[hidden] { display: none; }
.round-logo { flex-shrink: 0; height: 56px; width: auto; max-width: 120px; object-fit: contain; align-self: center; }
.past-card .round-logo { align-self: flex-start; height: 44px; }
.champ-logo { height: 112px; padding: 16px; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.champ-logo img { max-height: 80px; width: auto; object-fit: contain; }

/* ---------- Structure ---------- */
.pillar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px; align-items: center; }
.pillar + .pillar { margin-top: 96px; }
.pillar-text { display: flex; flex-direction: column; gap: 20px; }
.pillar-num { font-family: var(--font-display); font-weight: 900; font-size: 96px; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--green); }
.pillar-text p { margin: 0; font-size: 19px; color: var(--muted); }
.pillar .placeholder-img, .pillar img { aspect-ratio: 4 / 3; border-radius: 24px; object-fit: cover; width: 100%; }
.keys { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.keys li { padding: 8px 14px; background: var(--bg-soft); border-radius: 999px; font-weight: 600; font-size: 15px; }
.team-tile { background: var(--navy-800); padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; }
.team-tile b { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--yellow); }
.team-tile span { font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.team-tile b.team-name { font-size: clamp(32px, 3.4vw, 44px); text-transform: uppercase; line-height: 1; }

/* ---------- Blocs de pages (Admin › Pages) ---------- */
.block-stack { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.block-pillar + .block-pillar { padding-top: 0; }
.hero-text { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.hero-text h2 { margin: 8px 0 0; font-family: var(--font-display); text-transform: uppercase; color: var(--yellow); }
.hero-text a { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.rich { max-width: 760px; font-size: 18px; display: flex; flex-direction: column; gap: 16px; }
.rich p, .rich ul { margin: 0; }
.rich h2 { margin: 16px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.rich blockquote { margin: 16px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.rich a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pillar-text .rich { font-size: 19px; color: var(--muted); }
.dark .pillar-text .rich { color: var(--soft-light); }
.team-tile-light { background: var(--bg-soft); }
.team-tile-light b { color: var(--navy); }
.insta-grid { width: 100%; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); align-items: start; }
.insta-embed { min-width: 0; }
.insta-embed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 540px !important; }
.insta-embed blockquote:not([class*="instagram-media-rendered"]) { padding: 32px; background: var(--bg-soft); border-radius: 16px; text-align: center; font-weight: 700; }
.prose .insta-embed { display: flex; justify-content: center; }

/* ---------- Frise chronologique ---------- */
.timeline { width: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 16px 48px; padding: 40px 0; border-top: 2px solid var(--navy); }
.timeline li:last-child { border-bottom: 2px solid var(--navy); }
.timeline-year { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: .9; color: var(--green-text); text-transform: uppercase; }
.timeline-body { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.timeline-body p { margin: 0; font-size: 18px; color: var(--muted); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; padding: 28px 0; } }
@media (max-width: 960px) { .pillar.reverse .pillar-media { order: 2; } }

/* ---------- Article ---------- */
.article-head { max-width: 880px; margin: 0 auto; padding: 72px 32px 48px; display: flex; flex-direction: column; gap: 28px; }
.article-head h1 { font-size: clamp(44px, 7vw, 96px); text-wrap: balance; }
.article-cover { max-width: 1280px; margin: 0 auto; padding: 0 32px 72px; }
.article-cover img, .article-cover .placeholder-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 16px; }
.prose { max-width: 720px; margin: 0 auto; padding: 64px 32px 96px; font-size: 19px; line-height: 1.7; color: #2A3B5E; }
.prose > * + * { margin-top: 24px; }
.prose p, .prose ul { margin: 0; }
.prose h2 { margin: 40px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; color: var(--navy); }
.prose blockquote { margin: 40px 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; text-transform: uppercase; color: var(--navy); }
.prose a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; transition: transform .2s, opacity .2s; }
.gallery a { display: block; border-radius: 16px; cursor: zoom-in; }
.gallery a:hover img { transform: scale(1.02); opacity: .9; }

/* Bouton « Partager » (app/views/public/_share.php + site.js) */
.share { position: relative; align-self: flex-start; }
.share-toggle .icon { width: 18px; height: 18px; }
.share-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 220px; padding: 8px; display: flex; flex-direction: column; background: #fff; color: var(--navy); border-radius: var(--radius-sm); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; text-align: left; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg-soft); opacity: 1; }
.share-menu .icon { width: 20px; height: 20px; flex: none; }
.share-menu [data-copy].copied { color: var(--green-text); }
.share-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Popup carrousel des galeries (créée par site.js) */
html.lb-lock { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px 16px 16px; border: 0; background: rgba(7, 26, 61, .96); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox::backdrop { background: rgba(7, 26, 61, .8); }
.lb-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; }
.lb-img { max-width: min(1200px, calc(100vw - 160px)); max-height: 100%; object-fit: contain; border-radius: 16px; user-select: none; }
.lb-nav, .lb-close { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 34px; line-height: 1; cursor: pointer; transition: transform .15s; }
.lb-nav:hover, .lb-close:hover { transform: scale(1.08); }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; font-size: 30px; background: #fff; }
.lb-counter { margin: 0; font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.lb-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; }
.lb-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: .5; transition: opacity .15s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button[aria-current="true"] { border-color: var(--yellow); opacity: 1; }
.lb-thumbs img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.lb-single .lb-nav, .lb-single .lb-thumbs, .lb-single .lb-counter { display: none; }
@media (max-width: 640px) {
  .lb-img { max-width: 100%; }
  .lb-stage { position: relative; }
  .lb-nav { position: absolute; bottom: 12px; width: 44px; height: 44px; font-size: 28px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-thumbs img { width: 52px; height: 52px; }
}
.cited { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .article-head, .article-cover, .prose { padding-left: 16px; padding-right: 16px; } }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .legend { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 0 16px; border: 1px solid var(--muted-light); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy); font: inherit;
}
.field textarea { padding: 14px 16px; resize: vertical; min-height: 160px; }
.field small { color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.subject-pills { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.subject-pills legend { padding: 0 0 12px; font-weight: 700; font-size: 15px; }
.subject-pills label { cursor: pointer; }
.subject-pills input { position: absolute; opacity: 0; pointer-events: none; }
.subject-pills span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--muted-light); font-weight: 600; background: #fff; }
.subject-pills input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.subject-pills input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* champ piège anti-robots */
[data-show-if][hidden] { display: none !important; }

.notice { padding: 16px 20px; border-radius: 14px; font-weight: 600; margin: 0 0 16px; }
.notice-success { background: #E3F4E7; color: var(--green-text); }
.notice-error { background: #FDE8E8; color: #B42318; }

/* Page Contact : coordonnées dans le bandeau marine (carte « verre »), formulaire dessous */
.page-hero .contact-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.contact-hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contact-card { display: flex; flex-direction: column; padding: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); }
.contact-row + .contact-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.contact-row:has(a.contact-main:hover) { background: rgba(255, 255, 255, .06); }
.contact-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--yellow); color: var(--navy); }
.contact-ico .icon { width: 20px; height: 20px; }
.contact-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.contact-main:hover { opacity: 1; }
.contact-main small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.contact-main strong { font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* jamais coupé en deux */
.contact-copy { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark-2); border-radius: 999px; background: transparent; color: var(--light); cursor: pointer; }
.contact-copy:hover, .contact-copy.copied { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.contact-copy .icon { width: 18px; height: 18px; }
.contact-form { max-width: 880px; }
@media (max-width: 900px) { .page-hero .contact-hero { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .contact-copy { display: none; } .contact-row { padding: 12px; gap: 12px; } } /* sur téléphone, toucher l'adresse ouvre l'appli mail */
.info-card { background: var(--bg-soft); padding: 28px; border-radius: var(--radius); border-top: 4px solid var(--green); display: flex; flex-direction: column; gap: 8px; }
.info-card.dark { background: var(--navy-900); color: var(--light); border-top: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-900); color: var(--light); padding: 96px 0 40px; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px; margin-bottom: 72px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-light); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom .credit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.footer-bottom .credit a { display: inline-flex; opacity: .85; }
.footer-bottom .credit a:hover { opacity: 1; }
.footer-bottom .credit img { height: 18px; width: auto; }
/* Petite image dans un texte mis en forme (logo) */
.md-img { display: inline-block; height: 1.4em; width: auto; vertical-align: middle; }
a:has(> .md-img) { text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 12px; }
/* Boutons ronds des réseaux sociaux (icône seule, nom lu par les lecteurs d'écran) */
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-dark-2); border-radius: 999px; color: inherit; }
.social-btn:hover { opacity: 1; background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.social-btn-light { width: 44px; height: 44px; border-color: #C5CEDE; color: var(--navy); }
.social-btn-light:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.social-btn .icon { display: block; }

/* ---------- Powered by Mess ---------- */
.mess { background: var(--cream); color: var(--mess-ink); }
.mess .slab { font-family: 'Alfa Slab One', Rockwell, serif; font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0; }
.mess-hero { border-bottom: 6px solid var(--mess-cyan); }
.mess-hero .container { padding-top: 96px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px; align-items: center; }
.mess-eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mess-dark-magenta); }
.mess-section { padding: 112px 0; border-bottom: 1px solid #E4DED4; }
.mess-section-dark { background: var(--mess-ink); color: var(--cream); border: 0; }
.mess-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; align-items: end; margin-bottom: 48px; }
.mess-head p { margin: 0; max-width: 520px; color: #4A4640; white-space: pre-line; }
.mess-section-dark .mess-head p { color: #D9D3C8; }
.mess-family { background: #fff; border: 1px solid #E4DED4; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.mess-family h3 { font-size: 28px; }
.parts-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #E4DED4; }
.parts-table th, .parts-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #EFEAE2; }
.parts-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5E5850; background: #F7F4EF; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.stock { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.stock-stock { background: #E3F4E7; color: var(--green-text); }
.stock-commande { background: #FFF4D1; color: #7A5B00; }
.stock-epuise { background: #EEE; color: #5A5D63; }
/* Cartes prestations « C1 » : photo (ou motif rayé) en haut, prix en pastille posée dessus, − 1 + et Ajouter en bas */
.svc-card { display: flex; flex-direction: column; overflow: hidden; background: #242424; border-radius: var(--radius); color: #fff; transition: transform .2s ease; }
.svc-card:hover { transform: translateY(-3px); }
.svc-media { position: relative; aspect-ratio: 16 / 9; margin-bottom: 22px; background: repeating-linear-gradient(135deg, #2E2E2E 0 14px, #292929 14px 28px); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .svc-ph-logo { position: absolute; inset: 0; margin: auto; width: 58%; height: auto; max-height: 70%; object-fit: contain; filter: grayscale(1) brightness(1.4); opacity: .22; } /* sans photo */
.svc-price { position: absolute; left: 20px; bottom: -20px; padding: 8px 18px; border-radius: 999px; background: var(--mess-magenta); color: #fff; font-family: 'Alfa Slab One', Rockwell, serif; font-size: 22px; line-height: 1.1; box-shadow: 0 0 0 4px #242424; }
.svc-price-quote { background: var(--mess-cyan); font-size: 18px; }
.svc-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 22px 18px; }
.svc-name { margin: 0; font-family: 'Alfa Slab One', Rockwell, serif; font-weight: 400; font-size: 21px; line-height: 1.2; }
.svc-desc { margin: 0; color: #BDB6AA; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.svc-meta { margin: auto 0 0; padding-top: 4px; font-family: var(--font-mono); font-size: 12px; color: #8A847A; }
.svc-delay { color: var(--mess-cyan); }
.svc-foot { display: flex; gap: 10px; align-items: center; padding: 14px 22px; border-top: 1px solid #3A3A3A; }
.svc-add { flex: 1; min-height: 44px; padding: 0 16px; }
.svc-add.added { background: var(--green); }
/* Sélecteur − 1 + (cartes et récapitulatif) */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #4A4A4A; border-radius: 999px; }
.qty-stepper button { width: 36px; height: 40px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 999px; }
.qty-stepper button:hover { color: var(--mess-magenta); }
.on-quote .qty-stepper button:hover { color: var(--mess-cyan); } /* prestation sur devis : cyan, comme son prix */
.qty-stepper input { width: 30px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.engine-pill { padding: 8px 14px; border: 1px solid #4A4A4A; border-radius: 999px; font-weight: 600; }
.mess-form { background: #fff; border: 1px solid #E4DED4; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.mess-form .field input, .mess-form .field select, .mess-form .field textarea { border-color: #BDB6AA; color: var(--mess-ink); }
/* Titres des sections Mess (Tarifs, Devis) : taille raisonnable, mots jamais coupés (« PRESTA-TIONS ») */
.mess-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; hyphens: manual; overflow-wrap: normal; }
/* Commande de prestations Mess (blocs mess_pricing + mess_quote, site.js [data-order]) */
.qty-input { width: 64px; min-height: 44px; padding: 0 6px; border: 1px solid #BDB6AA; border-radius: 12px; font: inherit; font-weight: 700; text-align: center; background: #fff; color: var(--mess-ink); }
.order-note { margin: 0; padding: 14px 18px; border-left: 4px solid var(--mess-cyan); background: #fff; border-radius: 0 12px 12px 0; font-size: 15px; color: #4A4640; }
.order-lines { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order-lines legend { padding: 0 0 12px; font-weight: 700; font-size: 15px; }
.order-empty { margin: 0; padding: 18px; border: 1px dashed #BDB6AA; border-radius: 12px; color: #5E5850; text-align: center; }
.order-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 14px; padding: 12px 14px; background: #F7F4EF; border-radius: 12px; }
.order-line[hidden] { display: none; }
.order-line-name { display: flex; flex-direction: column; min-width: 0; }
.order-line-name span { font-size: 14px; color: #5E5850; }
.order-line-total { min-width: 84px; text-align: right; white-space: nowrap; color: var(--mess-magenta); } /* comme la pastille prix des cartes */
.order-line-total.is-quote { color: var(--mess-cyan); }
/* Commande : case « société » et champs société (raison sociale, SIRET, TVA) */
.order-company-toggle { font-weight: 600; }
.order-company { display: flex; flex-direction: column; gap: 18px; padding: 18px; border-left: 4px solid var(--mess-cyan); background: #F7F4EF; border-radius: 0 12px 12px 0; }
/* Récapitulatif : même sélecteur − 1 + que les cartes, en blanc */
.qty-stepper-light { background: #fff; border-color: #D9D3C8; color: var(--mess-ink); }
.qty-stepper-light input { width: 34px; }
.order-totals { margin: 0; padding: 16px 0 4px; border-top: 2px solid var(--mess-ink); display: flex; flex-direction: column; gap: 6px; }
.order-totals[hidden] { display: none; }
.order-totals div { display: flex; justify-content: space-between; gap: 16px; }
.order-totals dt { color: #5E5850; }
.order-totals dd { margin: 0; font-weight: 600; }
.order-totals .order-total-main dt, .order-totals .order-total-main dd { color: var(--mess-ink); font-weight: 800; font-size: 20px; }
.order-totals .order-total-main dd { color: var(--mess-magenta); }
.order-quote-note { margin: 0; font-size: 14px; color: var(--mess-cyan); }
.order-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 45; display: inline-flex; align-items: center; gap: 6px; padding: 14px 24px; border-radius: 999px; background: var(--mess-btn); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); white-space: nowrap; }
.order-bar[hidden] { display: none; }
@media (max-width: 640px) {
  .order-line { grid-template-columns: 1fr auto; }
  .order-line-total { grid-column: 1 / -1; text-align: left; }
}
/* Commande envoyée : remerciement + PDF à la place du formulaire */
.mess-form[hidden] { display: none; }
.mess-done { display: flex; flex-direction: column; gap: 22px; border-top: 6px solid var(--green); }
.mess-done[hidden] { display: none; }
.mess-done-head { display: flex; align-items: center; gap: 16px; }
.mess-done-head .mess-eyebrow { color: var(--green-text); }
.mess-done-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 0 0 6px #E3F4E7; }
.mess-done-title { margin: 4px 0 0; font-family: 'Alfa Slab One', Rockwell, serif; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; text-transform: uppercase; color: var(--mess-ink); }
.mess-done-ref { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 2px dashed var(--mess-magenta); border-radius: 16px; background: #FDF0F7; }
.mess-done-ref small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mess-dark-magenta); }
.mess-done-ref strong { font-family: var(--font-mono); font-size: clamp(17px, 2vw, 22px); font-weight: 700; letter-spacing: .04em; color: var(--mess-magenta); overflow-wrap: anywhere; }
.mess-done-text { margin: 0; color: #4A4640; line-height: 1.6; }
.mess-done-text strong { color: var(--mess-ink); }
.mess-done-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.mess-done-actions .btn { flex: 1 1 auto; }

/* Atelier en pause : message à la place du formulaire de commande */
.mess-pause { display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--mess-cyan); }
.mess-pause-sm { display: inline-flex; flex-direction: row; margin-bottom: 28px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--mess-cyan); color: #fff; font-weight: 700; }
.mess-pricing-light .engine-pill { border-color: #BDB6AA; } /* bloc Tarifs sur fond crème */
@media (max-width: 640px) { .mess-form { padding: 24px; } }

/* ---------- Maintenance ---------- */
.maintenance { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--navy-900); color: var(--light); padding: 32px 16px; position: relative; overflow: hidden; }
.maintenance .inner { position: relative; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.maintenance p { font-size: 20px; color: var(--soft-light); margin: 0; }
.mess .subject-pills input:checked + span { background: var(--mess-ink); border-color: var(--mess-ink); }
