/* =========================================================
   Page VAE - design inspiré de Je Change de Métier et France VAE
   ========================================================= */

/* ---- Les couleurs, rangées dans des variables ---- */
:root {
  --vert: #1f4d45;        /* vert sapin : titres, fonds foncés */
  --corail: #e2674a;      /* orange corail : boutons, mots en italique */
  --creme: #faf6f0;       /* fond clair de la page */
  --sable: #f3e7da;       /* fond des sections claires */
  --texte: #2b2b2b;
  --gris: #6b6b6b;
  --blanc: #ffffff;
  --arrondi: 18px;
}

/* ---- Réglages de base ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* défilement doux vers les ancres */
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--vert);
  line-height: 1.15;
}

/* Les mots en <em> dans les titres : italique corail */
h1 em,
h2 em {
  color: var(--corail);
}

a {
  color: inherit;
}

/* ---- Bouton réutilisable ---- */
.bouton {
  display: inline-block;
  background: var(--corail);
  color: var(--blanc);
  text-decoration: none;
  font-weight: 700;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.bouton:hover {
  background: #c9533a;
  transform: translateY(-2px);
}

.bouton-petit {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Petit texte au-dessus des titres */
.surtitre {
  color: var(--corail);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---- En-tête ---- */
.entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6%;
  position: sticky; /* reste en haut quand on défile */
  top: 0;
  background: var(--creme);
  z-index: 10;
  border-bottom: 1px solid #ece3d8;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--vert);
  text-decoration: none;
}

.logo span {
  color: var(--corail);
  font-style: italic;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none; /* enlève les puces du ul */
}

.menu a {
  text-decoration: none;
  font-weight: 500;
}

.menu a:not(.bouton):hover {
  color: var(--corail);
}

/* ---- Accroche ---- */
.hero {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 80px 6%;
}

.hero-texte {
  flex: 1.3;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-intro {
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--gris);
}

.hero-image {
  flex: 1;
  aspect-ratio: 4 / 3; /* rectangle : 4 de large pour 3 de haut */
  max-width: 480px;
  background: linear-gradient(135deg, #f6a77f, var(--corail));
  border-radius: var(--arrondi); /* coins légèrement arrondis (0 = coins droits) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  height: 92%; /* l'illustration remplit la hauteur du rectangle */
  width: auto;
}

/* ---- Sections ---- */
.section {
  padding: 80px 6%;
  text-align: center;
}

.section h2 {
  font-size: 2.6rem;
  margin-bottom: 48px;
}

.section-foncee {
  background: var(--vert);
}

.section-foncee h2,
.section-foncee h3 {
  color: var(--blanc);
}

.section-claire {
  background: var(--sable);
}

/* ---- Cartes "Pour qui ?" ---- */
.cartes {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cartes côte à côte */
  gap: 24px;
}

.carte {
  background: var(--blanc);
  border-radius: var(--arrondi);
  padding: 32px 24px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(31, 77, 69, 0.08);
  transition: transform 0.2s;
}

.carte:hover {
  transform: translateY(-6px);
}

.carte-icone {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--sable);
  border-radius: 50%;
  margin-bottom: 16px;
}

.carte h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.carte p {
  color: var(--gris);
}

/* ---- Étapes numérotées ---- */
.etapes {
  list-style: none;
  counter-reset: etape; /* compteur CSS pour les numéros */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centre la dernière ligne */
  gap: 24px;
}

.etapes li {
  width: calc((100% - 4 * 24px) / 5); /* 5 étapes côte à côte */
  counter-increment: etape;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--arrondi);
  padding: 28px 20px;
  color: #d6e4e0;
}

.etapes li::before {
  content: counter(etape); /* affiche 1, 2, 3... */
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--corail);
  color: var(--blanc);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
}

.etapes h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ---- Chiffres clés ---- */
.chiffres {
  display: flex;
  justify-content: center;
  gap: 8%;
  flex-wrap: wrap;
  padding: 60px 6%;
}

.chiffres strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: var(--corail);
}

.chiffres span {
  color: var(--gris);
}

/* ---- FAQ ---- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq details {
  background: var(--blanc);
  border-radius: var(--arrondi);
  padding: 20px 26px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(31, 77, 69, 0.06);
}

.faq summary {
  font-weight: 700;
  color: var(--vert);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.faq summary::after {
  content: "+";
  color: var(--corail);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 12px;
  color: var(--gris);
}

/* ---- Formulaire ---- */
.formulaire {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  background: var(--blanc);
  padding: 40px;
  border-radius: var(--arrondi);
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.champ-large {
  grid-column: 1 / -1; /* prend toute la largeur */
}

.champ label {
  font-weight: 500;
  font-size: 0.95rem;
}

.champ input,
.champ select,
.champ textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid #e0d6ca;
  border-radius: 10px;
  background: var(--creme);
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--corail);
}

.case {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.formulaire .bouton {
  grid-column: 1 / -1;
  justify-self: start;
}

/* ---- Pied de page ---- */
.pied {
  background: var(--vert);
  color: #d6e4e0;
  text-align: center;
  padding: 40px 6%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.pied .logo {
  color: var(--blanc);
}

/* ---- Tablette ---- */
@media (max-width: 1000px) {
  .cartes {
    grid-template-columns: repeat(2, 1fr);
  }
  .etapes li {
    width: calc((100% - 2 * 24px) / 3); /* 3 + 2 étapes */
  }
}

/* ---- Téléphone : tout passe en une colonne ---- */
@media (max-width: 560px) {
  .cartes {
    grid-template-columns: 1fr;
  }
  .etapes li {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .entete {
    flex-direction: column;
    gap: 14px;
  }
  .menu {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 6%;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image {
    width: 70%;
  }
  .section h2 {
    font-size: 2rem;
  }
  .formulaire {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
