/* BOMOY EL ARTS — design élégant (palette logo : bleu marine + orange) */
:root {
  --bg: #ffffff;      /* fond blanc — palette chic d'origine */
  --bg-soft: #f6f7fc;
  --card: #ffffff;
  --gold: #f26f21;
  --gold-soft: #d85a10;
  --navy: #16224a;
  --navy-2: #1e2d5c;
  --text: #232f56;
  --muted: #5f6a8a;
  --line: #e6e9f4;
  --radius: 18px;
  --shadow: 0 6px 30px rgba(22,34,74,.08);
  --shadow-hover: 0 18px 44px rgba(22,34,74,.14);
  --serif: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; max-width: 1100px; margin: 0 auto;
}
.brand img { height: 60px; width: auto; }
nav ul { display: flex; gap: 22px; list-style: none; }
nav ul li { position: relative; }
.sub {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  flex-direction: column; gap: 0; min-width: 150px; padding: 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-hover);
}
li.has-sub:hover .sub, li.has-sub:focus-within .sub { display: flex; }
li.has-sub > a::after { content: " ▾"; font-size: .7em; }
.sub li { padding: 7px 20px; }
.sub a { border-bottom: none; letter-spacing: 1px; }
nav ul a {
  color: var(--navy); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--gold-soft); border-color: var(--gold); }
#nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; z-index: 60; }
.hamburger span {
  width: 26px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
/* Hamburger → croix (X) quand le menu est ouvert */
#nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 0 0 84px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(242,111,33,.09), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(30,45,92,.07), transparent 55%);
  text-align: center;
  overflow: hidden;
}
.hero-media {
  width: 100vw; margin: 0 0 12px calc(50% - 50vw); /* pleine largeur de la page */
  background: #ffffff; /* fond uniforme sur toute la largeur derrière le logo animé */
}
.hero-media video, .hero-media img { width: 100%; height: auto; display: block; max-height: 22vh; object-fit: contain; }
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.16;
  margin-bottom: 20px; font-weight: 800; letter-spacing: -.5px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 620px; margin: 0 auto 36px; color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  color: var(--gold-soft); text-transform: uppercase; letter-spacing: 4px;
  font-size: 1.05rem; font-weight: 800; display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .6; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 40px;
  font-weight: 700; font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-gold {
  background: linear-gradient(135deg, #ff8b45, var(--gold)); color: #fff;
  box-shadow: 0 8px 24px rgba(242,111,33,.28);
}
.btn-line { border: 1.5px solid var(--navy); color: var(--navy); margin-left: 14px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(242,111,33,.32); }
.btn-line:hover { background: var(--navy); color: #fff; box-shadow: 0 14px 30px rgba(22,34,74,.25); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-soft); }
h2.section-title { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: 12px; font-weight: 800; letter-spacing: -.3px; }
h2.section-title em { color: var(--gold); font-style: normal; }
.section-sub { color: var(--muted); margin-bottom: 44px; max-width: 640px; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), #ffb27d);
  border-radius: var(--radius) var(--radius) 0 0; transition: width .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card:hover::before { width: 100%; }
.card .icon { font-size: 2rem; margin-bottom: 16px; }
.card .icon img { height: 42px; width: auto; max-width: 100%; border-radius: 8px; object-fit: cover; }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Catalogue location ---------- */
.item-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.item-photo {
  height: 150px; position: relative;
  background: linear-gradient(135deg, #eef1fa 0%, #fdf0e6 100%);
  display: grid; place-items: center; font-size: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.item-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.item-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.item-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.item-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.price {
  margin-top: 16px; font-weight: 800; color: var(--gold-soft); font-size: 1rem;
  border-top: 1px solid var(--line); padding-top: 13px; font-family: var(--sans);
}

/* ---------- Catalogue complet ---------- */
.cat-tools { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-tools input, .cat-tools select { max-width: 330px; }
.cat-count { color: var(--muted); font-size: .85rem; margin-bottom: 14px; letter-spacing: .3px; }
.cat-wrap {
  overflow-x: auto; max-height: 560px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff;
}
table.cat { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cat th {
  text-align: left; background: var(--navy); color: #fff; padding: 13px 16px;
  font-size: .74rem; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700;
  position: sticky; top: 0; z-index: 1;
}
.cat td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cat tr:last-child td { border-bottom: none; }
.cat tbody tr { transition: background .15s; }
.cat tbody tr:hover { background: #fdf4ec; }
.cat td.p { white-space: nowrap; font-weight: 800; color: var(--gold-soft); }
.cat td.q { text-align: center; color: var(--muted); }
.badge {
  font-size: .72rem; background: var(--bg-soft); border: 1px solid var(--line);
  padding: 3px 12px; border-radius: 12px; color: var(--muted); white-space: nowrap;
  font-weight: 600;
}

/* ---------- Formulaire ---------- */
form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { font-size: .88rem; font-weight: 700; display: block; margin-bottom: 7px; color: var(--navy); }
label .req { color: var(--gold); }
input, select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid #d5dbeb; background: #fff; color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,111,33,.13);
}
/* champs date : sur iOS/Safari mobile ils ont une largeur intrinsèque
   et débordent — on les force à suivre la largeur des autres champs */
.form-row > div { min-width: 0; }
input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%;
  min-height: 49px; box-sizing: border-box; background: #fff;
}
fieldset { border: 1.5px solid #d5dbeb; border-radius: 12px; padding: 18px 20px; background: #fff; min-inline-size: 0; max-width: 100%; }
legend { padding: 0 10px; font-weight: 700; font-size: .88rem; color: var(--navy); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; margin: 0; cursor: pointer; color: var(--text); }
.checks input { width: auto; accent-color: var(--gold); transform: scale(1.15); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--gold); }
.notice {
  background: var(--bg-soft); border-left: 3px solid var(--gold);
  padding: 16px 22px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: .9rem;
}

/* ---------- Bandeau CTA ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(120deg, var(--navy) 0%, #263769 60%, #33427a 100%);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(242,111,33,.35), transparent 70%); border-radius: 50%;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; color: #fff; }
.cta-band p { color: #c3cce6; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .container { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer { background: var(--navy); padding: 54px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 34px; margin-bottom: 34px; }
footer h4 {
  color: var(--gold); font-size: .78rem; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 2px; font-family: var(--sans);
}
footer p, footer li, footer a { color: #aeb8d6; font-size: .9rem; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: #ffb27d; }
.foot-bottom { border-top: 1px solid #2b3a6e; padding-top: 22px; font-size: .8rem; color: #7f8ab0; text-align: center; letter-spacing: .4px; }
.foot-bottom a { color: #7f8ab0; text-decoration: underline; }

/* ---------- Page interne ---------- */
.page-head {
  padding: 66px 0 100px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(242,111,33,.09), transparent 60%);
}
.page-head h1 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; letter-spacing: -.4px; }
.page-head h1 em { color: var(--gold); font-style: normal; }
.page-head p { color: var(--muted); max-width: 720px; margin: 16px auto 0; }

.legal-note { font-size: .82rem; color: #7f89a8; margin-top: 36px; border-top: 1px dashed var(--line); padding-top: 18px; }

/* ---------- Fonds animés des rubriques ---------- */
.page-head, .hero { position: relative; overflow: hidden; }
.page-head > .container, .hero > .container { position: relative; z-index: 2; }
.page-head::before, .hero::before {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  width: 55vw; height: 55vw; max-width: 640px; max-height: 640px;
  top: -35%; left: -12%;
  background: radial-gradient(circle, rgba(242,111,33,.18), transparent 62%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.page-head::after, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  width: 48vw; height: 48vw; max-width: 560px; max-height: 560px;
  bottom: -40%; right: -10%;
  background: radial-gradient(circle, rgba(30,45,92,.16), transparent 62%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(10vw, 6vh) scale(1.2); } }
@keyframes drift-b { to { transform: translate(-9vw, -7vh) scale(1.15); } }
.eq-bg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 76px;
  display: flex; align-items: flex-end; gap: 5px; padding: 0 3vw;
  z-index: 1; opacity: .30; pointer-events: none;
}
.eq-bg span {
  flex: 1; height: 18%; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--navy) 130%);
  animation: eq-bar 1.6s ease-in-out infinite alternate;
}
@keyframes eq-bar { from { height: 10%; } to { height: 96%; } }
@media (prefers-reduced-motion: reduce) {
  .page-head::before, .page-head::after, .hero::before, .hero::after, .eq-bg span { animation: none; }
}
@media (max-width: 640px) { .eq-bg { height: 48px; gap: 3px; } }

/* ---------- Vidéo en fond de page (page location) ---------- */
.ph-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; pointer-events: none;
}
.ph-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,22,49,.78) 0%, rgba(15,22,49,.55) 100%);
}
body.has-video-bg { background: transparent; }
body.has-video-bg section:not(.cta-band):not(.hero) { background: rgba(255,255,255,.3); }
body.has-video-bg .section-alt { background: rgba(246,247,252,.3); }
/* cartes translucides (effet verre dépoli) pour laisser voir la vidéo,
   tout en gardant les textes lisibles */
body.has-video-bg .card {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
/* note légale : encart lisible sur fond vidéo */
body.has-video-bg .legal-note {
  color: var(--navy);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.6); border-top: 1px dashed var(--line);
  border-radius: 12px; padding: 14px 18px;
}
/* page d'accueil : le montage vidéo porte le hero, textes en clair */
body.has-video-bg .hero { background: transparent; }
body.has-video-bg .hero::before, body.has-video-bg .hero::after { display: none; }
body.has-video-bg .hero h1 { color: #fff; }
body.has-video-bg .hero p { color: rgba(255,255,255,.9); }
body.has-video-bg .hero .btn-line { border-color: #fff; color: #fff; }
body.has-video-bg .hero .btn-line:hover { background: #fff; color: var(--navy); }
body.has-video-bg .eq-bg { display: none; }
/* le titre du fieldset (« Matériel souhaité… ») rentre dans l'encadré blanc
   au lieu de chevaucher la bordure */
body.has-video-bg legend {
  float: left; width: 100%; padding: 0; margin: 0 0 8px;
}
body.has-video-bg legend + * { clear: both; }
/* lisibilité sur fond vidéo : textes gris -> encre foncée */
body.has-video-bg .section-sub,
body.has-video-bg .consent { color: var(--navy); }
/* orange adouci pour le titre (« Demande de location ») */
body.has-video-bg .section-title em { color: #e0762e; }
.page-head-video { background: transparent; }
.page-head-video::before, .page-head-video::after { display: none; }
.page-head-video .eq-bg { display: none; } /* pas de barres d'égaliseur sur la vidéo */
.page-head-video h1 { color: #fff; }
.page-head-video p { color: rgba(255,255,255,.88); }
@media (prefers-reduced-motion: reduce) {
  .ph-video { display: none; }
  .ph-veil { background: rgba(15,22,49,.92); }
}

/* ---------- Sélecteur d'articles (formulaire) ---------- */
.pick-list {
  max-height: 340px; overflow-y: auto; margin-top: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.pick-row:last-child { border-bottom: none; }
.pick-row.sel { background: #fdf4ec; }
.pick-name { flex: 1; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.pick-price { flex-shrink: 0; font-weight: 700; color: var(--gold-soft); font-size: .86rem; white-space: nowrap; }
.pick-img {
  width: 46px; height: 36px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0; border: 1px solid var(--line); cursor: zoom-in;
  transition: transform .15s;
}
/* Aperçu vidéo d'un article (ex. kit batterie) : plus large, cliquable pour le son */
.pick-vid-wrap { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.pick-video { width: 64px; cursor: pointer; }
.pick-row:hover .pick-video { transform: scale(3.4); }
.pick-vid-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%; background: rgba(22,34,74,.72);
  color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center;
  padding-left: 2px; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
/* Fenêtre de lecture vidéo (avec son) */
.vid-modal {
  position: fixed; inset: 0; z-index: 999; background: rgba(10,14,30,.86);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vid-modal-inner { position: relative; width: min(92vw, 900px); }
.vid-modal video { width: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vid-modal-close {
  position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: #fff; color: #16224a; font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
/* zoom de la photo au survol de la ligne d'article */
.pick-row:hover .pick-img {
  transform: scale(2.8); transform-origin: left center;
  position: relative; z-index: 6;
  box-shadow: 0 10px 26px rgba(22,34,74,.35);
  border-color: #fff;
}

/* ---------- Visionneuse photo (clic pour agrandir) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,15,35,.86); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 4vw; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: min(92vw, 940px); max-height: 86vh;
  border-radius: 14px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: lb-in .22s ease;
}
@keyframes lb-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lb-close {
  position: absolute; top: 18px; right: 28px;
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  font-family: var(--sans);
}
.pick-cat { flex-shrink: 0; }
.pick-row input[type="number"] {
  width: 74px; padding: 7px 10px; text-align: center; flex-shrink: 0;
}
.pick-sum {
  margin-top: 14px; font-size: .88rem; color: var(--navy);
  background: #fdf4ec; border: 1px solid #f6d9c2; border-radius: 12px; padding: 12px 16px;
}
.pick-sum strong { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .form-row, .checks, .foot-grid { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .brand img { height: 48px; }
  nav ul {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 22px 22px;
    padding: 16px 0 20px;
    box-shadow: 0 26px 44px rgba(22,34,74,.18);
    opacity: 0; visibility: hidden;
    transform: translateY(-16px) scaleY(.92);
    transform-origin: top center;
    transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1), visibility .5s ease;
    pointer-events: none;
  }
  nav ul li {
    padding: 14px 30px;
    opacity: 0; transform: translateX(-28px);
    filter: blur(5px);
    transition: opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1), filter .45s ease;
  }
  #nav-toggle:checked ~ ul {
    opacity: 1; visibility: visible;
    transform: translateY(0) scaleY(1); pointer-events: auto;
  }
  #nav-toggle:checked ~ ul li { opacity: 1; transform: translateX(0); filter: blur(0); }
  #nav-toggle:checked ~ ul li:nth-child(1) { transition-delay: .09s; }
  #nav-toggle:checked ~ ul li:nth-child(2) { transition-delay: .15s; }
  #nav-toggle:checked ~ ul li:nth-child(3) { transition-delay: .21s; }
  #nav-toggle:checked ~ ul li:nth-child(4) { transition-delay: .27s; }
  #nav-toggle:checked ~ ul li:nth-child(5) { transition-delay: .33s; }
  #nav-toggle:checked ~ ul li:nth-child(6) { transition-delay: .39s; }
  .btn-line { margin-left: 0; margin-top: 12px; }
  .hero { padding: 0 0 56px; }
  .eyebrow { font-size: .82rem; letter-spacing: 2.5px; }
  
}


/* ---------- Galerie « Ils nous ont fait confiance » ---------- */
.media-tabs { display: flex; gap: 14px; margin-bottom: 36px; }
.media-tab {
  padding: 11px 30px; border-radius: 30px; border: 1.5px solid var(--navy);
  color: var(--navy); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 1.2px; transition: all .2s;
}
.media-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.media-tab.active { background: var(--navy); color: #fff; }
.media-card { padding: 12px; position: relative; overflow: hidden; }
/* Voile au survol d'une vidéo */
.media-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(13,19,48,.34); opacity: 0;
  transition: opacity .3s ease; pointer-events: none; z-index: 3;
}
/* Voile uniquement sur appareils avec survol réel (bureau) — évite le double-tap sur mobile */
@media (hover: hover) and (pointer: fine) {
  .media-card:hover::after { opacity: 1; }
}
/* Appareils tactiles : pas de voile du tout, le tap atteint directement le lecteur */
@media (hover: none) {
  .media-card::after { display: none; }
}
.media-card video, .media-card iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px;
  background: #0d1330; display: block; margin-bottom: 16px;
}
/* Vignette cliquable YouTube — lecture au 1er tap */
.yt-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  margin: 0 0 16px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: #0d1330 center / cover no-repeat; overflow: hidden;
}
.galerie .media-card .yt-facade { margin-bottom: 0; }
.yt-facade::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.10); transition: background .2s ease;
}
.yt-facade:hover::before { background: rgba(0,0,0,.24); }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 66px; height: 46px; border-radius: 12px;
  background: #ff0000; box-shadow: 0 3px 10px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.yt-facade:hover .yt-play { transform: translate(-50%,-50%) scale(1.07); }
.yt-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
/* Fenêtre superposée de lecture vidéo (lightbox) */
.video-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,10,26,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: vm-in .2s ease;
}
@keyframes vm-in { from { opacity: 0; } to { opacity: 1; } }
.video-modal-inner { position: relative; width: min(960px, 96vw); }
.video-modal-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -48px; right: 0;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: #fff; color: #16224a; font-size: 26px; line-height: 40px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
@media (max-width: 640px) { .video-modal-close { top: -46px; width: 38px; height: 38px; line-height: 36px; font-size: 23px; } }
.local-video { cursor: pointer; }
.media-card audio { width: 100%; display: block; margin-bottom: 16px; }
.media-photo {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px; cursor: zoom-in; display: block;
}
.media-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.media-card p { font-size: .9rem; }

/* ---------- « Nos œuvres » : grille 4 vidéos + défilement horizontal ---------- */
.galerie {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: min(46%, 380px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.galerie > .media-card { margin: 0; scroll-snap-align: start; }
.galerie .media-card video, .galerie .media-card iframe { margin-bottom: 0; }
.galerie::-webkit-scrollbar { display: none; height: 0; }

/* Boutons de défilement de la galerie */
.galerie-wrap { position: relative; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(22,34,74,.34); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(13,19,48,.18);
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.gal-nav:hover { background: rgba(22,34,74,.72); transform: translateY(-50%) scale(1.08); }
.gal-nav:disabled { opacity: 0; pointer-events: none; }
.gal-nav svg { width: 18px; height: 18px; }
.gal-prev { left: 6px; }
.gal-next { right: 6px; }
/* Grille + défilement + boutons identiques sur mobile */
@media (max-width: 640px) {
  .galerie { grid-auto-columns: calc(50% - 18px); gap: 14px; }
  .media-card { padding: 7px; }
  .gal-nav { width: 32px; height: 32px; }
  .gal-nav svg { width: 16px; height: 16px; }
  .gal-prev { left: 2px; }
  .gal-next { right: 2px; }
}


/* ---------- Photo de galerie ---------- */
.media-card .media-photo {
  width: 100%; max-height: 300px; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px; cursor: zoom-in; display: block;
}

/* ---------- Suivez-nous + newsletter (pied de page) ---------- */
.social { display: flex; gap: 12px; margin-bottom: 18px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #26356b; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--gold); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.news-label { font-size: .85rem; margin-bottom: 10px; }
.news-form { display: flex; gap: 8px; }
.news-form input[type="email"] {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px;
  border: 1px solid #3a4a86; background: #101a3a; color: #fff; font-size: .88rem;
}
.news-form input[type="email"]::placeholder { color: #7f8ab0; }
.news-form input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: none; }
.news-btn {
  padding: 10px 18px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #ff8b45, var(--gold)); color: #fff;
  font-weight: 700; font-size: .8rem; letter-spacing: .5px; font-family: var(--sans);
  transition: transform .15s;
}
.news-btn:hover { transform: translateY(-2px); }

/* ---------- « En savoir plus » : bouton + fenêtre flottante ---------- */
.plus-btn {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 10px;
  background: none; border: none; padding: 10px 0; cursor: pointer; font-family: inherit;
  color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: 1.2px; text-transform: uppercase;
  transition: color .18s;
}
.plus-btn:hover { color: var(--gold-soft); }
.plus-btn::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s;
}
.plus-btn:hover::after { transform: rotate(-45deg) translateX(3px); }
.plus-contenu { display: none; }

.md-modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10,14,30,.86);
  display: none; align-items: center; justify-content: center; padding: 22px;
  animation: mdFade .2s ease;
}
.md-modal.open { display: flex; }
.md-inner {
  position: relative; width: min(94vw, 720px); max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 44px 42px 38px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45); animation: mdUp .28s ease;
}
.md-inner h3 {
  font-size: 1.3rem; color: var(--navy); margin-bottom: 18px; padding-right: 30px;
  border-bottom: 2px solid var(--gold); padding-bottom: 14px;
}
.md-inner p { color: var(--text); line-height: 1.75; margin-bottom: 15px; }
.md-inner p:last-child { margin-bottom: 0; }
.md-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--bg-soft); color: var(--navy); font-size: 20px; line-height: 1;
  cursor: pointer; transition: background .18s;
}
.md-close:hover { background: var(--line); }
@keyframes mdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mdUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .md-inner { padding: 40px 24px 28px; } }
