@font-face {
  font-family: "Source Sans 3";
  src: url("polices/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #ffffff;
  --menthe: #e6f1eb;
  --encre: #15211d;
  --texte: #2f3b37;
  --gris: #56645f;
  --vert: #0a6a4c;
  --vert-fonce: #07503a;
  --vert-clair: #8fd0b1;
  --nuit: #0c3327;
  --nuit-bas: #092a20;
  --sur-nuit: #d3e4dc;
  /* une seule marge, la même à gauche et à droite, sans largeur maximale */
  --marge: clamp(24px, 4vw, 112px);
  --ecart: clamp(32px, 4vw, 112px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.0625rem, 0.95rem + 0.22vw, 1.3rem);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; background: #d9e8e0; }
a { color: var(--vert); text-underline-offset: .2em; }
a:hover { color: var(--vert-fonce); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }

h1, h2, h3, h4 { color: var(--encre); margin: 0; }
h1, h2 { text-wrap: balance; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 1rem + 2.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1rem + 2vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 1rem + 0.5vw, 1.75rem); font-weight: 600; line-height: 1.25; }
h4 { font-size: clamp(1.2rem, 1rem + 0.4vw, 1.6rem); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.conteneur { padding-inline: var(--marge); }

/* Boutons : seuls éléments arrondis du site (4 px) */
.bouton {
  display: inline-block;
  padding: .95em 1.7em;
  border-radius: 4px;
  background: var(--vert);
  color: #fff;
  font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.2vw, 1.2rem);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s;
}
.bouton:hover { background: var(--vert-fonce); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton-clair { background: #fff; color: var(--nuit); }
.bouton-clair:hover { background: #dcebe3; color: var(--nuit); }
.lien-fort {
  font-weight: 600;
  color: var(--encre);
  text-decoration-color: var(--vert);
  text-decoration-thickness: 2px;
}
.lien-fort:hover { color: var(--vert); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(28px, 2.5vw, 48px); }

/* En-tête */
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(76px, 5vw, 112px); }
.marque { display: inline-flex; align-items: center; gap: 12px; color: var(--encre); font-weight: 700; font-size: clamp(1.25rem, 1rem + 0.4vw, 1.6rem); text-decoration: none; }
.marque:hover { color: var(--encre); }
.marque svg { width: 1.6em; height: .96em; flex: none; color: var(--vert); }
.navigation { display: flex; align-items: center; gap: clamp(24px, 2.4vw, 56px); }
.navigation a { color: var(--texte); font-weight: 600; text-decoration: none; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--vert); }
.navigation a.bouton { color: #fff; padding: .75em 1.3em; }

/* Ouverture : texte et photo entre les deux mêmes marges */
.heros {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--ecart);
  align-items: center;
  padding: clamp(16px, 2vw, 40px) var(--marge) clamp(64px, 6vw, 128px);
}
.heros-large { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.heros .intro { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.6rem); max-width: 34em; margin-top: clamp(20px, 2vw, 36px); }
.heros-photo img { width: 100%; aspect-ratio: 1 / 1; max-height: calc(100vh - 150px); min-height: 360px; object-fit: cover; }
/* cadrage par la droite : le pneu (mot lisible sur le flanc) reste hors du cadre */
.heros-photo img.cadre-droite { object-position: 100% 50%; width: min(100%, calc(100vh - 150px)); max-height: none; margin-left: auto; }

/* Sections : chacune a une photo ou un fond de couleur */
.section { padding-block: clamp(72px, 7vw, 160px); }
.section-menthe { background: var(--menthe); }
.section-nuit { background: var(--nuit); color: var(--sur-nuit); }
.section-nuit h2, .section-nuit h3 { color: #fff; }
.tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px var(--ecart);
  align-items: end;
  margin-bottom: clamp(40px, 4vw, 88px);
}
.tete p { font-size: clamp(1.15rem, 1rem + 0.35vw, 1.5rem); color: var(--gris); max-width: 30em; }

/* Métiers : une photo par métier */
.metiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(56px, 4.5vw, 112px) clamp(28px, 2.4vw, 64px); }
.metier img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: clamp(20px, 1.6vw, 32px); }
.metier h3 { margin-bottom: 10px; }
.metier p { margin-bottom: 10px; }
.metier .exemple { color: var(--gris); font-size: .92em; }
.metier a { font-weight: 600; }

/* Fonctionnement : le titre reste visible, les étapes défilent à droite */
.deroule {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--ecart);
  padding: clamp(72px, 7vw, 160px) var(--marge);
  background: var(--nuit);
  color: var(--sur-nuit);
}
.deroule-tete { position: sticky; top: clamp(32px, 4vw, 80px); align-self: start; }
.deroule h2 { color: #fff; }
.deroule-tete p { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.5rem); max-width: 22em; margin-top: 20px; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 4.5vw, 104px); }
.etapes li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 3vw, 72px); align-items: center; }
.etapes img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.etapes h3 { color: #fff; font-size: clamp(1.4rem, 1rem + 1vw, 2.3rem); margin-bottom: 12px; }
.etapes p { font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.4rem); max-width: 26em; }

/* Bande des prestataires : panneau vert et photo, à l'intérieur des marges */
.panneau { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--vert); color: #e4f1ea; }
.panneau-texte { align-self: center; padding: clamp(40px, 5vw, 128px); }
.panneau h2 { color: #fff; }
.panneau p { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.5rem); max-width: 30em; margin-top: 20px; }
.panneau img { width: 100%; height: 100%; min-height: clamp(360px, 30vw, 820px); object-fit: cover; }

/* Qui suis-je, écrit comme une lettre */
.chapeau { font-size: clamp(1.45rem, 1rem + 1.25vw, 2.5rem); line-height: 1.4; color: var(--encre); max-width: 34em; margin-top: clamp(24px, 2.2vw, 40px); }
.corps { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.45rem); max-width: 44em; margin-top: 28px; }
.engagements-titre { font-size: clamp(1.5rem, 1rem + 1vw, 2.4rem); margin-top: clamp(56px, 5.5vw, 120px); }
.colonnes-4, .engagements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px clamp(32px, 3.5vw, 96px); }
.engagements { margin-top: clamp(28px, 2.5vw, 48px); }
.engagements h4, .colonnes-4 h3 { margin-bottom: 10px; }
.signature { margin-top: clamp(48px, 5vw, 96px); color: var(--encre); font-weight: 700; font-size: clamp(1.25rem, 1rem + 0.5vw, 1.7rem); }
.signature span { display: block; font-weight: 400; font-size: .7em; color: var(--gris); }

/* Questions : photo à gauche, réponses lisibles sans clic */
.bloc-questions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--ecart); align-items: start; }
.questions-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: clamp(32px, 4vw, 80px); }
.bloc-questions h2 { margin-bottom: clamp(36px, 3.5vw, 72px); }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 3.5vw, 80px) clamp(32px, 4vw, 96px); }
.questions h3 { margin-bottom: 12px; }

/* Prestataires : conditions à côté d'une photo */
.partage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ecart); align-items: center; }
.partage > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.liste-large { list-style: none; padding: 0; margin: clamp(28px, 2.5vw, 48px) 0 0; display: grid; gap: 22px; }
.liste-large li { font-size: clamp(1.15rem, 1rem + 0.3vw, 1.45rem); color: var(--encre); max-width: 30em; }
.apres-liste { max-width: 40em; margin-top: clamp(32px, 3vw, 56px); }
.colonnes-texte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(32px, 4vw, 112px); }
.colonnes-texte strong { color: var(--encre); }

/* Pied de page : l'appel à écrire, puis l'identité */
.pied { background: var(--nuit); color: #cfe0d8; }
.pied-appel { padding-block: clamp(72px, 7vw, 160px) clamp(56px, 5vw, 112px); }
.pied-appel h2 { color: #fff; font-size: clamp(2.1rem, 1rem + 2.6vw, 4.6rem); max-width: 18em; }
.pied-appel p { font-size: clamp(1.2rem, 1rem + 0.45vw, 1.6rem); max-width: 36em; margin-top: 20px; }
.pied-appel .actions { margin-top: 40px; }
.adresse { color: #fff; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.8rem); font-weight: 600; text-decoration-color: var(--vert-clair); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.adresse:hover { color: #dcebe3; }
.pied-bas { background: var(--nuit-bas); }
.pied-bas .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: 36px 40px; }
.pied .marque { color: #fff; }
.pied .marque svg { color: var(--vert-clair); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.pied-liens a { color: #e3ede8; text-decoration: none; }
.pied-liens a:hover { color: #fff; text-decoration: underline; }
.mentions { flex-basis: 100%; margin: 0; font-size: .9em; color: #9fbcb0; }

/* Pages de texte (mentions, confidentialité, conditions, 404) */
.page-texte { padding-block: clamp(56px, 6vw, 112px) clamp(72px, 8vw, 144px); }
.page-texte .conteneur > * { max-width: 46rem; }
.page-texte h2 { font-size: clamp(1.5rem, 1rem + 0.8vw, 2rem); margin: 48px 0 14px; }
.page-texte h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.page-texte .date { color: var(--gris); margin-top: 12px; }
.page-texte .intro { font-size: 1.25rem; margin-top: 20px; }
.page-texte dl { margin: 0; }
.page-texte dt { font-weight: 600; color: var(--encre); }
.page-texte dd { margin: 0 0 14px; overflow-wrap: anywhere; }
.page-texte ul { padding-left: 1.2em; }
.page-texte li { margin-bottom: 8px; }

/* Écran moyen */
@media (max-width: 1200px) {
  .metiers, .colonnes-4, .engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colonnes-texte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Tablette */
@media (max-width: 900px) {
  .heros, .heros-large, .deroule, .panneau, .bloc-questions, .partage, .tete { grid-template-columns: 1fr; }
  .heros { padding-top: 8px; }
  .heros-photo img { aspect-ratio: 3 / 2; max-height: none; min-height: 0; }
  .heros-photo img.cadre-droite { aspect-ratio: 1 / 1; width: 100%; }
  .deroule-tete, .questions-photo { position: static; }
  .panneau img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .questions-photo { aspect-ratio: 3 / 2; }
}

/* Téléphone */
@media (max-width: 760px) {
  .entete .conteneur { flex-wrap: wrap; justify-content: flex-start; gap: 6px 24px; padding-block: 16px; min-height: 0; }
  .navigation { flex-basis: 100%; flex-wrap: wrap; gap: 6px 22px; }
  .navigation a.bouton { display: none; }
  .metiers, .questions, .colonnes-texte, .colonnes-4, .engagements { grid-template-columns: 1fr; gap: 44px; }
  .etapes li { grid-template-columns: 1fr; gap: 20px; }
  .bouton { white-space: normal; }
  .pied-bas .conteneur { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
