:root {
  --navy: #0B1F44; --blue: #1E4F9C; --gold: #D4A437; --gold-ink: #5C4310; --gold-bg: #FBF1DC;
  --green: #1F6B34; --ground: #F6F7FA; --surface: #FFFFFF; --ink: #0B1F44; --muted: #45506A; --line: #E3E6EE;
  --font: Poppins, "Segoe UI", Arial, sans-serif;
  --large: min(1180px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.large { width: var(--large); margin-inline: auto; }
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section.gris { background: var(--ground); }
.section.nuit { background: var(--navy); color: #fff; }
.surtitre { display: flex; align-items: center; gap: 12px; color: var(--gold-ink); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.surtitre::before { content: ""; width: 34px; height: 3px; background: var(--gold); }
.nuit .surtitre, .bandeau .surtitre, .hero .surtitre { color: #F0CF80; }
.tete { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 34px; }
.tete p { color: var(--muted); }
.nuit .tete p { color: #D5DCEA; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 22px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.or { background: var(--gold); color: var(--navy); }
.btn.vert { background: var(--green); color: #fff; }
.btn.clair { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn.blanc { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn svg { flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.entete .large { display: flex; align-items: center; gap: 22px; height: 76px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marque img { height: 54px; width: auto; }
.marque span { font-size: 14px; font-weight: 700; line-height: 1.1; }
.marque small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.menu a { position: relative; padding: 6px 0; font-size: 14px; font-weight: 500; text-decoration: none; }
.menu a:hover, .menu a[aria-current] { color: var(--blue); }
.menu a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); }
.entete .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* Grande image d'accueil */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(84vh, 720px); color: #fff; overflow: hidden; background: var(--navy); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,68,.92) 0%, rgba(11,31,68,.7) 42%, rgba(11,31,68,.08) 76%); }
.hero .large { position: relative; z-index: 1; padding: 64px 0; }
.hero .texte { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
.hero p { font-size: 18px; color: #E4E9F3; }

.bandeau { position: relative; min-height: 310px; display: flex; align-items: flex-end; color: #fff; background: var(--navy); overflow: hidden; }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,68,.92), rgba(11,31,68,.45)); }
.bandeau .large { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 44px 0; }
.bandeau h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.bandeau p { max-width: 640px; color: #E4E9F3; }
.bandeau.simple { min-height: 220px; }

/* Activités */
.activites { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.activite { position: relative; grid-column: span 2; display: flex; align-items: flex-end; min-height: 300px; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.activite:nth-child(-n+2) { grid-column: span 3; min-height: 340px; }
.activite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.activite:hover img { transform: scale(1.04); }
.activite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,31,68,.9) 8%, rgba(11,31,68,0) 62%); }
.activite div { position: relative; z-index: 1; padding: 20px; }
.activite h3 { font-size: 22px; }
.activite p { font-size: 14px; color: #E4E9F3; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: etape; }
.etape { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--gold); counter-increment: etape; }
.etape::before { content: counter(etape); font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; }
.etape p { font-size: 15px; color: var(--muted); }
.nuit .etape p { color: #D5DCEA; }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.carte { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.carte .prix { font-size: 22px; font-weight: 700; color: var(--blue); }
.carte p, .carte li { font-size: 15px; color: var(--muted); }
.carte ul { padding-left: 20px; }
.carte .btn { margin-top: auto; }
.numero { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--gold); font-weight: 700; }
.note { padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--gold-bg); color: var(--gold-ink); font-size: 15px; }

/* Prix des matériaux */
.tarifs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.tarif { display: grid; grid-template-columns: 62px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tarif:last-child { border-bottom: 0; }
.tarif .ref, .ref { font-size: 13px; font-weight: 600; color: var(--blue); }
.tarif b { font-weight: 600; }
.tarif small { display: block; color: var(--muted); font-size: 13px; }
.tarif .prix { font-size: 18px; font-weight: 700; white-space: nowrap; text-align: right; }
.tarif .btn { min-height: 42px; padding: 6px 14px; font-size: 14px; }
.groupe { margin: 30px 0 12px; font-size: 20px; }

/* Galeries */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filtre { min-height: 42px; padding: 6px 16px; border: 1.5px solid #CDD3DF; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.filtre.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.galerie.large-img { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.modele { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s; }
.modele:hover { box-shadow: 0 10px 26px rgba(11,31,68,.13); }
.modele .ph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--ground); }
.modele .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.large-img .modele .ph { aspect-ratio: auto; }
.large-img .modele .ph img { position: static; height: auto; }
.modele .tx { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: 14px; }

/* Formulaires et fenêtre de demande */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9C1D1; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.form textarea { resize: vertical; }
.form .mini { font-size: 13px; font-weight: 400; color: var(--muted); }
dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; color: var(--ink); }
dialog::backdrop { background: rgba(11,31,68,.6); }
.boite { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.boite header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fermer { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }
#dImg { max-height: 300px; width: 100%; object-fit: contain; border-radius: 10px; background: var(--ground); }

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.liste-etapes { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; }
.contacts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); }
.contacts a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.contacts a:last-child { border-bottom: 0; }
.contacts a:hover { background: var(--ground); }
.contacts span { color: var(--muted); font-size: 14px; }
.contacts b { font-weight: 600; overflow-wrap: anywhere; }

/* Pied de page */
.pied { background: var(--navy); color: #fff; padding: 52px 0 26px; }
.pied .large { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
.pied h3 { margin-bottom: 10px; color: #F0CF80; font-size: 15px; }
.pied a { display: block; padding: 3px 0; color: #E4E9F3; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied p { color: #D5DCEA; font-size: 14px; }
.pied .plaque { width: 112px; margin-bottom: 12px; padding: 8px; border-radius: 10px; background: #fff; }
.pied .bas { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }

/* Boutons toujours visibles */
.flottant { position: fixed; right: 20px; bottom: 20px; z-index: 25; box-shadow: 0 8px 22px rgba(11,31,68,.3); }
.barre-tel { display: none; }

@media (max-width: 1120px) {
  .burger { display: inline-flex; }
  .entete .btn { display: none; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(11,31,68,.1); }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu a[aria-current]::after { display: none; }
}
@media (max-width: 820px) {
  .activite, .activite:nth-child(-n+2) { grid-column: span 3; min-height: 240px; }
  .activite:last-child { grid-column: 1 / -1; }
  .etapes, .deux { grid-template-columns: 1fr; }
  .pied .large { grid-template-columns: 1fr 1fr; }
  .pied .apropos { grid-column: 1 / -1; }
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(0deg, rgba(11,31,68,.95) 12%, rgba(11,31,68,.55) 58%, rgba(11,31,68,.15) 100%); }
}
@media (max-width: 620px) {
  body { padding-bottom: 66px; }
  .activites { grid-template-columns: 1fr; }
  .activite, .activite:nth-child(-n+2), .activite:last-child { grid-column: 1; min-height: 210px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .galerie.large-img { grid-template-columns: 1fr; }
  .modele .tx { padding: 10px; font-size: 13px; }
  .tarif { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tarif .ref { grid-column: 1 / -1; }
  .tarif .btn { grid-column: 1 / -1; margin-top: 6px; }
  .btns .btn { flex: 1 1 100%; }
  .flottant { display: none; }
  .barre-tel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 -4px 16px rgba(11,31,68,.16); }
  .barre-tel a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--navy); }
  .barre-tel a + a { background: var(--green); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
