@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --site-bg: #090a0a;
  --site-text: #f4f1ea;
  --site-gold: #d7b978;
  --site-red: #ba001c;
  --site-line: rgb(215 185 120 / 30%);
  font-family: Inter, Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
}

body {
  max-width: none;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
  background: var(--site-bg);
  color: var(--site-text);
}

body > header {
  max-width: none;
  padding: 0;
  background: rgb(10 11 11 / 96%);
  border-bottom: 1px solid var(--site-line);
}

body > header nav { min-height: 5.5rem; }
body > header nav ul { margin: 0; }
body > header nav a {
  color: var(--site-text);
  font-size: .96rem;
  text-decoration: none;
}
body > header nav a:hover,
body > header nav a:focus-visible { color: var(--site-gold); }

button,
body > header nav button.secondary {
  width: auto;
  margin: 0;
  padding: .8rem 2rem;
  border: 1px solid var(--site-red);
  border-radius: 0;
  background: var(--site-red);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
button:hover,
body > header nav button.secondary:hover {
  border-color: #df0023;
  background: #df0023;
}

.boutons-en-ligne {
  display: flex;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  max-width: 36rem;
  flex-wrap: wrap;
}

.boutons-en-ligne button {
  flex: 1 1 13rem;
  min-height: 3.4rem;
  padding: .8rem 1.25rem;
  border-radius: .25rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.grille-presentation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(30rem, 60vh) auto;
  width: 100%;
  column-gap: 0;
  row-gap: 1px;
  background: var(--site-line);
}

.presentation-centree { grid-area: 1 / 1 / 2 / 3; }
.video-fond { grid-area: 1 / 3 / 2 / 7; }
.carte-service { grid-column: span 3; }

/* Le logo se retire progressivement quand on remonte vers la navigation.
   Les autres éléments du hero se recentrent dans l'espace ainsi libéré. */
.presentation-centree > img {
  display: block;
  width: auto;
  height: auto !important;
  max-width: 100%;
  max-height: 10rem;
  object-fit: contain;
  opacity: 1;
  margin-bottom: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-bottom 0.5s ease;
}

body:not(.logo-scroll-ready) .presentation-centree > img { transition: none; }

body.navigation-visible .presentation-centree > img {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.presentation-centree > h1,
.presentation-centree > h2,
.presentation-centree > button {
  transition: transform 1.2s ease;
}

body.navigation-visible .presentation-centree > h1,
body.navigation-visible .presentation-centree > h2,
body.navigation-visible .presentation-centree > button {
  transform: translateY(-1rem);
}

body > main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.grille-presentation > div {
  min-width: 0;
  overflow: hidden;
  background: var(--site-bg);
}

.presentation-centree {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 4vw, 4rem);
}

.localisation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--site-gold);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.4;
  font-weight: 600;
}
.localisation svg { flex: none; width: 1.4rem; height: 1.4rem; fill: currentColor; }

.presentation-centree h1 {
  color: var(--site-text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  max-width: 13ch;
  margin: 0 0 1.3rem;
  font-size: clamp(2.0rem, 2.3vw, 4.6rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}
.texte-dore { color: var(--site-gold); }
.presentation-centree h2 {
  color: var(--site-gold);
  max-width: 22ch;
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
}

.video-fond { position: relative; }
.video-fond::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.video-fond::after {
  background: linear-gradient(90deg, var(--site-bg), transparent 70%),
              linear-gradient(90deg, var(--site-bg), transparent 70%);
}
.video-fond video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-fond video { filter: saturate(.76) contrast(1.08); }
.carte-service img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(.85) contrast(1.05);
}

.carte-service {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: center;
}

.lien-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.lien-service:hover h1,
.lien-service:focus-visible h1 { text-decoration: underline; text-underline-offset: .2em; }
.lien-service:focus-visible { outline: 2px solid var(--site-gold); outline-offset: -2px; }

.lien-service h1,
.lien-service h2 {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.lien-service h1 {
  margin-top: 0;
  margin-bottom: .15rem;
  color: var(--site-gold);
  font-family: "Arial Narrow", Impact, "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: .98;
  overflow-wrap: anywhere;
  word-break: normal;
}

.lien-service h2 {
  margin: 0;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--site-gold);
  color: var(--site-text);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  body > header nav {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    padding-block: .5rem;
  }
  body > header nav ul {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  body > header nav li { padding: .3rem .4rem; }
  body > header nav a { font-size: .8rem; }
  body > header nav button.secondary { padding: .55rem 1rem; font-size: .8rem; }

  .grille-presentation {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .presentation-centree,
  .video-fond { grid-area: 1 / 1 / 2 / 2; }
  .video-fond { z-index: 0; min-height: 0; }
  .video-fond video { position: absolute; inset: 0; opacity: .2; object-position: 35% 50%; }
  .video-fond::after { background: linear-gradient(0deg, rgb(9 10 10 / 40%), transparent 60%); }
  .grille-presentation > .presentation-centree {
    position: relative;
    z-index: 1;
    min-height: 65svh;
    padding: 2rem 1rem;
    background: transparent;
  }
  .presentation-centree > img { max-width: 70%; max-height: 5rem; margin-bottom: 1rem; }
  .localisation { display: block; margin-bottom: 1.5rem; text-align: center; }
  .localisation svg { display: inline-block; margin-right: .35rem; vertical-align: -.3rem; }
  .presentation-centree h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); text-shadow: 0 2px 12px #000; }
  .presentation-centree h2 { margin-bottom: 1.2rem; }

  .carte-service { grid-column: 1 / -1; }
  .carte-service {
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .carte-service img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .lien-service {
    width: 100%;
    padding: 1.25rem 1rem;
  }
  .lien-service h1 {
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(1.35rem, 6.5vw, 2.2rem);
  }
  .lien-service h2 {
    margin: 0;
    padding-bottom: .4rem;
    font-size: clamp(1rem, 2.5vw, .8rem);
    letter-spacing: .06em;
    overflow-wrap: anywhere;
  }
}

/* Mise en page de lecture, reutilisable sur les pages de contenu. */
.lecture-confortable {
  font-size: 1rem;
  line-height: 1.5;
}

.lecture-confortable > header,
.lecture-confortable > main {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.lecture-confortable > main { padding-inline: clamp(.75rem, 2.5vw, 2rem); }
.lecture-confortable section {
  margin: 0;
  padding-block: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--site-line);
}

.deux-colonnes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.deux-colonnes > * { min-width: 0; }
.lecture-confortable h1,
.lecture-confortable h2,
.lecture-confortable h3 {
  margin: 0 0 1rem;
  color: var(--site-text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  overflow-wrap: break-word;
}

.lecture-confortable h1 {
  font-size: clamp(2rem, 1rem + 2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.lecture-confortable h2 {
  font-size: clamp(1.6rem, 1rem + 1.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.lecture-confortable h3 { font-size: 1.1rem; line-height: 1.4; }
.lecture-confortable p { max-width: 60ch; margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.lecture-confortable p:last-child { margin-bottom: 0; }
.lecture-confortable .texte-dore { margin-bottom: 1.25rem; font-weight: 600; }
.lecture-confortable .introduction { margin-bottom: 1.5rem; }

.bouton-dore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: .8rem 1.25rem;
  border: 1px solid var(--site-gold);
  border-radius: .25rem;
  background: var(--site-gold);
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.bouton-dore:hover { background: #e8c978; border-color: #e8c978; color: #111; }
.lecture-confortable a:focus-visible,
.lecture-confortable button:focus-visible { outline: 3px solid var(--site-gold); outline-offset: 4px; }

.lecture-confortable figure { min-width: 0; margin: 0; }
.lecture-confortable figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.lecture-confortable figure figcaption {
  padding: .65rem 0 0;
  color: var(--site-gold);
  font-size: 1rem;
  line-height: 1.5;
}

.encadre {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--site-line);
  border-left: 3px solid var(--site-gold);
  background: #111412;
}
.encadre h3 { color: var(--site-gold); }
.detail { margin-top: 1.25rem; }
.detail h3 { margin-bottom: .35rem; color: var(--site-gold); }

.lecture-confortable section.contact-centre { border-bottom: 0; text-align: center; }
.contact-centre p { margin: 0 auto 1.5rem; }
.lien-contact {
  display: table;
  min-height: 44px;
  margin: 1rem auto 0;
  padding-block: .5rem;
  color: var(--site-gold);
  font-size: 1rem;
  line-height: 1.5;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

.lien-evitement {
  position: absolute;
  z-index: 5;
  top: .75rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--site-bg);
  color: var(--site-gold);
  font-size: 1rem;
  transform: translateY(-200%);
}
.lien-evitement:focus { transform: translateY(0); }

@media (max-width: 800px) {
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
}

.bouton-rouge { border-color: #ed001f; background: #ed001f; color: #fff; }
.bouton-rouge:hover { border-color: #ff1736; background: #ff1736; }

/* Un chiffre ou une date mis en avant, avec sa legende. */
.lecture-confortable .repere-chiffre { margin-block: 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--site-gold); }
.repere-chiffre strong { display: block; color: var(--site-gold); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.repere-chiffre span { display: block; margin-top: .35rem; }
