:root {
  --noir: #161616;
  --anthracite: #2b2b2b;
  --gris: #6b6b6b;
  --gris-clair: #f3f2f0;
  --blanc: #ffffff;
  --rouge: #c8102e;
  --rouge-fonce: #a00d25;
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --texte: 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--texte); font-size: 17px; line-height: 1.6; color: var(--anthracite); background: var(--blanc); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.45rem; margin: 1.2rem 0 .5rem; }
p { margin: 0; }

.surtitre { font-family: var(--titre); font-weight: 600; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rouge); margin-bottom: .8rem; }
.surtitre::before { content: ''; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: .7rem; }

.bouton { display: inline-block; font-family: var(--titre); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--blanc); background: var(--rouge); padding: .9rem 1.6rem; border: 2px solid var(--rouge); transition: background .2s, border-color .2s; }
.bouton:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.bouton-contour { background: transparent; border-color: rgba(255,255,255,.7); }
.bouton-contour:hover { background: rgba(255,255,255,.12); border-color: var(--blanc); }
.bouton-petit { padding: .55rem 1.1rem; font-size: .95rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; }

/* En-tête */
.entete { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(16px, 4vw, 48px); transition: background .3s, padding .3s, box-shadow .3s; }
.entete.pleine { background: rgba(22,22,22,.94); padding-block: .6rem; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.entete-logo img { width: 128px; height: auto; transition: width .3s; }
.entete.pleine .entete-logo img { width: 104px; }
.entete-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.entete-nav a:not(.bouton):not(.langue) { color: var(--blanc); text-decoration: none; font-family: var(--titre); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.entete-nav a:not(.bouton):not(.langue):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--rouge); }

.langue { color: var(--blanc); text-decoration: none; font-family: var(--titre); font-weight: 600; font-size: .95rem; letter-spacing: .1em; border: 1px solid rgba(255,255,255,.5); padding: .3rem .6rem; }
.langue:hover { border-color: var(--blanc); background: rgba(255,255,255,.12); }

/* Accueil : diaporama plein écran */
.accueil { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--noir); color: var(--blanc); }
.diapos, .diapo, .accueil-voile { position: absolute; inset: 0; }
.diapo { background-size: cover; background-position: center 60%; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s linear; }
.diapo.active { opacity: 1; transform: scale(1); }
.accueil-voile { background: linear-gradient(100deg, rgba(10,10,10,.86) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.15) 100%), linear-gradient(0deg, rgba(10,10,10,.6) 0%, transparent 35%); }
.accueil-contenu { position: relative; padding: 7rem clamp(16px, 6vw, 96px) 5rem; max-width: 780px; }
.accueil .surtitre { color: var(--blanc); }
.accueil .surtitre::before { background: var(--rouge); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: 1.4rem; }
.accueil-texte { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: rgba(255,255,255,.88); margin-bottom: 2.2rem; }
.accueil-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.points { position: absolute; bottom: 2rem; left: clamp(16px, 6vw, 96px); display: flex; gap: .6rem; }
.point { width: 38px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s; }
.point.active { background: var(--rouge); }

/* Bandeau défilant */
.bandeau { background: var(--rouge); color: var(--blanc); overflow: hidden; padding: 1rem 0; }
.bandeau-piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.bandeau-piste span { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.bandeau-piste span::after { content: '◆'; font-size: .6em; opacity: .6; vertical-align: middle; margin: 0 2.4rem; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-sombre { background: var(--noir); color: var(--blanc); }
.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.carte { background: var(--gris-clair); padding: 2.2rem 2rem; border-top: 4px solid var(--rouge); }
.carte svg { width: 44px; height: 44px; fill: none; stroke: var(--anthracite); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.carte p { color: var(--gris); }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 12px; }
.galerie figure { margin: 0; overflow: hidden; background: var(--anthracite); }
.galerie figure.large { grid-column: span 2; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galerie figure:hover img { transform: scale(1.05); }

.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { margin-bottom: 1.2rem; }
.contact p { color: var(--gris); max-width: 32em; }
.contact-infos { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; background: var(--gris-clair); padding: 2.2rem; border-left: 4px solid var(--rouge); }
.contact-ligne { display: flex; flex-direction: column; text-decoration: none; color: var(--anthracite); font-size: 1.3rem; font-weight: 600; }
a.contact-ligne:hover { color: var(--rouge); }
.contact-etiquette { font-family: var(--titre); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); font-weight: 600; }

.pied { background: var(--noir); color: rgba(255,255,255,.6); text-align: center; padding: 3rem 16px; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.08); }
.pied-contact { margin-bottom: .6rem; }
.pied-contact a { color: rgba(255,255,255,.85); text-decoration: none; }
.pied-contact a:hover { color: var(--blanc); text-decoration: underline; }
.pied img { width: 110px; height: auto; margin: 0 auto 1rem; opacity: .85; }

/* Téléphone */
@media (max-width: 760px) {
  .entete-nav a:not(.bouton):not(.langue) { display: none; }
  .entete-logo img { width: 104px; }
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .galerie figure.large, .galerie figure:last-child { grid-column: span 2; }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .contact-ligne { font-size: 1.1rem; }
  .accueil-voile { background: linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.35) 100%); }
  .accueil { align-items: flex-end; }
  .diapo { background-position: 78% 60%; } /* les camions sont à droite des photos */
  .accueil-contenu { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diapo { transition: opacity .01s; transform: none !important; }
  .bandeau-piste { animation: none; }
  .galerie img { transition: none; }
}
