/* Camelyon — feuille de style commune aux trois pages */

:root {
  --petrole: #024a5e;      /* fond : le bleu pétrole du logo */
  --petrole-2: #0a5a70;    /* surfaces */
  --trait: #2c6b7d;        /* filets */
  --creme: #f3eee4;        /* texte principal */
  --gris: #a9c6cc;         /* texte secondaire */
  --orange: #fb9e25;       /* l'orange du caméléon */
  --wide: 125;
  --narrow: 75;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--petrole);
  color: var(--creme);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête commun ---------- */
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.logo { display: block; text-decoration: none; }
.logo img { height: 46px; width: auto; margin-left: -6px; }
nav.menu { display: flex; gap: 28px; }
nav.menu a { text-decoration: none; color: var(--gris); font-size: 0.95rem; }
nav.menu a:hover { color: var(--creme); }
nav.menu a[aria-current="page"] {
  color: var(--creme);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Accueil : grande photo en tête, texte sur la partie sombre ---------- */
.hero-photo {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--orange);
}
.hero-photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 45%;
}
.hero-photo::after {
  /* assombrit la droite de la photo, déjà floue, pour y poser le texte */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2,74,94,0) 25%, rgba(2,40,52,.55) 55%, rgba(2,40,52,.92) 100%);
}
.hero-photo .wrap { position: relative; z-index: 1; width: 100%; display: flex; justify-content: flex-end; }
.hero-texte { max-width: 470px; }
.hero-texte h1 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.015em;
}
.hero-texte p { margin-top: 20px; font-size: 1.15rem; line-height: 1.5; color: var(--creme); }
.hero-texte .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Services : deux colonnes ---------- */
.services { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.service h3 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 700; font-size: 1.5rem;
  padding-bottom: 14px; border-bottom: 2px solid var(--orange);
}
.service p { margin-top: 16px; color: var(--gris); max-width: 46ch; }
.service a.suite {
  display: inline-block; margin-top: 18px; font-weight: 600;
  text-underline-offset: 5px; text-decoration-color: var(--orange);
}

/* ---------- Titre de page (pages intérieures) ---------- */
.tete { padding: 9vh 0 0; }
.tete h1 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.tete p { margin-top: 20px; max-width: 58ch; color: var(--gris); font-size: 1.1rem; }

/* ---------- Sections ---------- */
section.bloc { padding: 120px 0 0; }
section.bloc h2 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
section.bloc p.intro { margin-top: 20px; max-width: 60ch; color: var(--gris); }

/* Fiches matériel : style fiche technique */
.fiches {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px;
}
.fiche h3 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 600; font-size: 1.25rem;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--creme);
}
.fiche p.usage { margin-top: 14px; color: var(--gris); font-size: 0.98rem; }
.fiche dl { margin-top: 20px; }
.fiche dl div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--trait);
}
.fiche dt { color: var(--gris); font-variation-settings: "wdth" var(--narrow); font-weight: 500; }
.fiche dd { font-weight: 500; }
.note { margin-top: 40px; max-width: 64ch; color: var(--gris); font-size: 0.98rem; }
.note strong { color: var(--creme); font-weight: 600; }

/* Bandeau de renvoi vers une autre page */
.renvoi {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
}
.renvoi p { max-width: 52ch; color: var(--gris); }

/* Chiffres clés */
.chiffre {
  background: var(--petrole-2);
  border-left: 2px solid var(--orange);
  padding: 32px 32px 28px;
}
.chiffre .valeur {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
}
.chiffre .legende { margin-top: 12px; color: var(--gris); font-size: 0.98rem; }
.chiffre + .chiffre { margin-top: 16px; }

.grille-2 {
  margin-top: 56px;
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start;
}

/* Déroulé numéroté : une vraie suite d'étapes */
ol.deroule { list-style: none; counter-reset: etape; margin-top: 32px; }
ol.deroule li {
  counter-increment: etape;
  display: grid; grid-template-columns: 3rem 1fr; gap: 8px;
  padding: 0 0 28px;
}
ol.deroule li::before {
  content: counter(etape);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 700; font-size: 1.1rem; color: var(--orange); line-height: 1.6;
}
ol.deroule h3 { font-size: 1.08rem; font-weight: 600; }
ol.deroule p { color: var(--gris); margin-top: 4px; max-width: 52ch; }

/* Deux formules côte à côte */
.formules { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.formule h3 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 600; font-size: 1.25rem;
  padding-bottom: 14px; border-bottom: 2px solid var(--creme);
}
.formule p { margin-top: 16px; color: var(--gris); max-width: 46ch; }
.formule .bouton { margin-top: 24px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--creme);
  border-radius: 2px;
  text-decoration: none; font-weight: 600; font-size: 1.05rem;
  transition: background-color .2s, color .2s;
}
.bouton.principal { background: var(--orange); border-color: var(--orange); color: var(--petrole); }
.bouton:hover { background: var(--creme); color: var(--petrole); }
.bouton.principal:hover { background: var(--creme); border-color: var(--creme); }

/* ---------- Contact ---------- */
section.contact { padding: 140px 0 0; }
.contact h2 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.98; letter-spacing: -0.02em;
  max-width: 14ch;
}
.contact p.intro { margin-top: 20px; color: var(--gris); max-width: 52ch; }
.moyens { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.liens { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px; }
.liens a { color: var(--gris); text-underline-offset: 4px; }
.liens a:hover { color: var(--creme); }

/* ---------- Dépôt : le bloc d'envoi cadré comme un moniteur ---------- */
.cadre {
  margin-top: 48px;
  background: var(--petrole-2);
  border: 1px solid var(--trait);
  border-top: 2px solid var(--orange);
  border-radius: 2px;
}
.cadre iframe {
  display: block; width: 100%; height: 680px; border: 0;
  background: var(--petrole-2);
}
.secours { margin-top: 14px; font-size: 0.95rem; color: var(--gris); }
.secours a { color: var(--creme); text-underline-offset: 4px; }

/* ---------- Pied de page ---------- */
footer {
  margin-top: 140px; padding: 28px 0 40px;
  border-top: 1px solid var(--trait);
  color: var(--gris); font-size: 0.9rem;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  nav.menu { gap: 18px; }
  .fiches, .grille-2, .formules { grid-template-columns: 1fr; gap: 56px; }
  .fiche dl div { grid-template-columns: 7.5rem 1fr; }
  section.bloc { padding-top: 96px; }
  .hero-photo { align-items: flex-end; min-height: 600px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(2,40,52,0) 20%, rgba(2,40,52,.6) 55%, rgba(2,40,52,.95) 100%); }
  .hero-photo .wrap { justify-content: flex-start; padding-bottom: 40px; }
  .services { grid-template-columns: 1fr; gap: 48px; }
  .cadre iframe { height: 600px; }
}
@media (max-width: 520px) {
  .bouton { width: 100%; justify-content: center; }
  .logo img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
