/* Vitiprev — feuille de style unique
   Charte : bordeaux #5A0F2E, or #C9922E (filets uniquement), crème #F7F2EA
   Police : Montserrat (auto-hébergée, licence SIL OFL) */

@font-face {
  font-family: "Montserrat";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("fonts/montserrat-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/montserrat-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/montserrat-Medium.woff2") format("woff2");
}

:root {
  --bordeaux: #5a0f2e;
  --bordeaux-fonce: #43091f;
  --or: #c9922e;
  --creme: #f7f2ea;
  --creme-clair: #fcfaf6;
  --texte: #2d1c24;
  --texte-doux: #5b4850;
  --trait: rgba(90, 15, 46, 0.14);
  --largeur: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--bordeaux);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--bordeaux-fonce);
}

:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--bordeaux);
  color: var(--creme);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 4px;
}

.lien-evitement:focus {
  top: 12px;
  color: var(--creme);
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .conteneur {
    padding: 0 32px;
  }
}

/* ---------- Marque ---------- */

.marque {
  display: inline-block;
  text-decoration: none;
  color: var(--bordeaux);
  line-height: 1;
}

.marque .viti {
  font-weight: 500;
}

.marque .prev {
  font-weight: 300;
}

/* ---------- En-tête ---------- */

.entete {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--trait);
  background: var(--creme);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.entete .marque {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--bordeaux);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--or);
}

/* ---------- Titres et sections ---------- */

h1,
h2,
h3 {
  font-weight: 500;
  color: var(--bordeaux);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

.filet {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--or);
  border: 0;
  margin: 20px 0 24px;
}

section {
  padding: 72px 0;
}

@media (max-width: 719px) {
  section {
    padding: 52px 0;
  }
}

.surtitre {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 14px;
}

.intro {
  max-width: 62ch;
  color: var(--texte-doux);
  margin: 0;
}

/* ---------- Accueil ---------- */

.heros {
  padding: 80px 0 72px;
}

@media (max-width: 719px) {
  .heros {
    padding: 52px 0 48px;
  }
}

.heros h1 {
  max-width: 18ch;
}

.heros .chapo {
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--texte);
  margin: 0 0 32px;
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.bouton {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid var(--bordeaux);
  transition: background 0.15s ease, color 0.15s ease;
}

.bouton.plein {
  background: var(--bordeaux);
  color: var(--creme);
}

.bouton.plein:hover {
  background: var(--bordeaux-fonce);
  border-color: var(--bordeaux-fonce);
  color: var(--creme);
}

.bouton.contour {
  background: transparent;
  color: var(--bordeaux);
}

.bouton.contour:hover {
  background: var(--bordeaux);
  color: var(--creme);
}

.bande {
  background: var(--creme-clair);
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
}

/* ---------- Cartes de missions ---------- */

.grille {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grille.deux {
    grid-template-columns: repeat(2, 1fr);
  }
}

.carte {
  background: var(--creme-clair);
  border: 1px solid var(--trait);
  border-radius: 6px;
  padding: 28px 26px 26px;
  border-top: 3px solid var(--or);
}

.carte h3 {
  margin-bottom: 10px;
}

.carte p {
  margin: 0;
  color: var(--texte);
  font-size: 1rem;
}

.carte p + p {
  margin-top: 12px;
}

.note-carte {
  font-size: 0.88rem !important;
  color: var(--texte-doux) !important;
}

/* ---------- Méthode ---------- */

.etapes {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: etape;
}

@media (min-width: 720px) {
  .etapes {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.etapes li {
  counter-increment: etape;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--bordeaux);
}

.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-weight: 300;
  font-size: 1.9rem;
  color: var(--bordeaux);
  line-height: 1;
  margin-bottom: 12px;
}

.etapes h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.etapes p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--texte-doux);
}

/* ---------- Filière ---------- */

.puces {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.puces li {
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  background: transparent;
}

/* ---------- À propos / transparence ---------- */

.deux-colonnes {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .deux-colonnes {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.deux-colonnes p {
  margin: 0 0 16px;
}

.bloc-statut {
  border-left: 3px solid var(--or);
  padding: 4px 0 4px 20px;
  margin: 0 0 24px;
}

.bloc-statut h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.bloc-statut p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--texte);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bordeaux);
  color: var(--creme);
}

.contact h2 {
  color: var(--creme);
}

.contact .filet {
  background: var(--or);
}

.contact p {
  max-width: 56ch;
  margin: 0 0 28px;
}

.contact a {
  color: var(--creme);
}

.contact .bouton.plein {
  background: var(--creme);
  color: var(--bordeaux);
  border-color: var(--creme);
}

.contact .bouton.plein:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--bordeaux-fonce);
}

.coordonnees {
  margin-top: 28px;
  font-size: 0.97rem;
}

.coordonnees span {
  display: block;
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--creme);
  padding: 36px 0 44px;
  font-size: 0.85rem;
  color: var(--texte-doux);
  border-top: 1px solid var(--trait);
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

.pied p {
  margin: 0;
}

/* ---------- Pages légales ---------- */

.page-texte {
  padding: 56px 0 72px;
}

.page-texte h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  margin-bottom: 8px;
}

.page-texte h2 {
  font-size: 1.25rem;
  margin: 40px 0 10px;
}

.page-texte p,
.page-texte li {
  max-width: 70ch;
  font-size: 1rem;
}

.page-texte ul {
  padding-left: 20px;
}

.retour {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

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

@media print {
  .entete .nav,
  .contact .boutons {
    display: none;
  }
  body {
    background: #fff;
  }
}

/* ---------- Illustrations et photos ---------- */

.heros-grille {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .heros-grille {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
  }
}

.heros-visuel {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--creme-clair);
}

.heros-visuel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .heros-visuel {
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }
}

.icone {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 0 16px;
  fill: none;
  stroke: var(--bordeaux);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icone .or {
  stroke: var(--or);
}

/* Transition en coteaux avant le contact */
.coteaux {
  background: var(--creme);
  line-height: 0;
  margin-top: -1px;
}

.coteaux svg {
  display: block;
  width: 100%;
  height: 90px;
}

@media (min-width: 720px) {
  .coteaux svg {
    height: 130px;
  }
}

/* Photo éditoriale (portrait ou terrain) */
.photo {
  margin: 0 0 24px;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--texte-doux);
}
