/* Mise en page : trois temps, un par image. En-tête blanc pour le logo principal (jamais sur une photo),
   puis le voyant en pleine largeur, les trois galets annotés, et le contact sur la dune en bichromie
   bleu nuit. Thème clair unique, voulu : la page alterne ses propres fonds clairs et sombres. */
:root {
  color-scheme: light;
  --bleu-nuit: #061C3E;
  --bleu-ardoise: #3A5578;
  --bleu-pale: #E4E9F2;
  --orange: #F67614;
  --fond: #F4F6F9;
  --surface: #FFFFFF;
  --texte-secondaire: #51607A;
  --filet: #D9DFE8;
  --sur-sombre: #FFFFFF;
  --sur-sombre-doux: #C9D3E3;

  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gouttiere: clamp(20px, 7vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--bleu-nuit);
  font-family: var(--titre);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, p, ol { margin: 0; }

.etiquette {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 16px;
}

/* En-tête */
.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  padding-inline: var(--gouttiere);
  background: var(--surface);
}
.logo { width: clamp(200px, 19vw, 264px); height: auto; }
.etat {
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--bleu-pale);
  color: var(--bleu-ardoise);
}

/* Le voyant */
.voyant {
  position: relative;
  display: grid;
  min-height: clamp(460px, 70vh, 720px);
  background: var(--bleu-nuit);
  color: var(--sur-sombre);
  overflow: hidden;
}
.voyant-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: pose 1600ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes pose { from { transform: scale(1.05); } to { transform: scale(1); } }
.voyant::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 28, 62, .78) 0%, rgba(6, 28, 62, .5) 38%, rgba(6, 28, 62, 0) 62%);
  pointer-events: none;
}
.voyant-texte {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 24px;
  padding-block: 56px;
  padding-inline: var(--gouttiere);
  max-width: calc(660px + 2 * var(--gouttiere));
}
h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.chapos { display: grid; gap: 12px; }
.chapo {
  max-width: 33em;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--sur-sombre-doux);
  text-wrap: pretty;
}

/* Le parcours */
.parcours {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 9vw, 112px);
  padding-inline: var(--gouttiere);
  background: var(--fond);
}
.parcours-texte { display: grid; gap: 28px; }
.parcours .etiquette { color: var(--texte-secondaire); }
h2 {
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.temps { list-style: none; padding: 0; display: grid; }
.temps li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding-block: 16px;
  border-top: 1px solid var(--filet);
}
.temps li:last-child { border-bottom: 1px solid var(--filet); }
.temps .pastille { width: 12px; height: 12px; margin-top: 6px; border-radius: 2px; }
.temps strong { font-weight: 600; font-size: 17px; }
.temps span.detail { grid-column: 2; color: var(--texte-secondaire); max-width: 34em; }
.p-nuit { background: var(--bleu-nuit); }
.p-ardoise { background: var(--bleu-ardoise); }
.p-orange { background: var(--orange); }

.galets { position: relative; margin: 0; }
.galets img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--filet); }
.galets .repere {
  position: absolute;
  padding: 3px 7px;
  border: 1px solid var(--filet);
  border-radius: 2px;
  background: var(--surface);
  color: var(--bleu-nuit);
  font-size: clamp(9px, 1.1vw, 11px);
  white-space: nowrap;
}
.repere.r1 { left: 14%; top: 19%; }
.repere.r2 { left: 43%; top: 11%; }
.repere.r3 { left: 68%; top: 24%; }

/* Le contact */
.contact {
  position: relative;
  display: grid;
  min-height: clamp(360px, 52vh, 520px);
  background: var(--bleu-nuit);
  color: var(--sur-sombre);
  overflow: hidden;
}
.contact-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.contact-texte {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-block: 64px;
  padding-inline: var(--gouttiere);
  max-width: calc(560px + 2 * var(--gouttiere));
}
.contact .etiquette { color: var(--sur-sombre-doux); }
.contact p.invite { color: var(--sur-sombre-doux); font-size: 17px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.bouton {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 15px/22px var(--titre);
  text-decoration: none;
  cursor: pointer;
}
.bouton.principal { background: var(--orange); color: var(--bleu-nuit); }
.bouton.principal:hover { filter: brightness(1.06); }
.bouton.second { background: transparent; border-color: var(--sur-sombre-doux); color: var(--sur-sombre); font-weight: 500; }
.bouton.second:hover { background: rgba(255, 255, 255, .1); }
.bouton:focus-visible, .adresse:focus-visible { outline: 2px solid var(--sur-sombre); outline-offset: 3px; }
.adresse {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--sur-sombre);
  text-decoration: underline;
  text-decoration-color: var(--bleu-ardoise);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* Pied */
.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  padding-inline: var(--gouttiere);
  background: var(--surface);
  color: var(--texte-secondaire);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) { .voyant-image { animation: none; } }

@media (max-width: 760px) {
  .voyant { display: block; min-height: 0; }
  .voyant::after { content: none; }
  .voyant-image { position: static; height: auto; aspect-ratio: 3 / 2; object-position: 66% 50%; animation: none; }
  .voyant-texte { padding-block: 32px 40px; }
  .parcours { grid-template-columns: minmax(0, 1fr); }
  .galets { order: -1; }
}
