/* ---------- Variables ---------- */
:root {
  --noir: #020e01;
  --blanc: #fff;
  --creme: #fafbf3;
  --vert: #0f6466;
  --bleu: #005a87;
  --gris: #999;
  --titre: "Raleway", sans-serif;
  --texte: "Cormorant Garamond", serif;
  --marge: clamp(1.25rem, 5vw, 4rem);
  --max: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font: 1.2rem/1.5 var(--texte);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); }
a:hover { color: var(--noir); text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, .bouton { font-family: var(--titre); }
h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 3rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
h2 img { width: 45px; }
h3 { margin: .8rem 0 .3rem; font-size: 1.15rem; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  padding: 17px 34px;
  background: var(--noir);
  color: var(--blanc);
  font-size: .87rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
.bouton:hover { background: var(--vert); color: var(--blanc); }

/* ---------- Sections ---------- */
section, header, footer { padding: 3rem var(--marge); }
section > *, header > *, footer > * { max-width: var(--max); margin-inline: auto; }
section.fond { background: var(--creme); }
section { padding-block: clamp(3rem, 8vw, 6rem); }

/* ---------- En-tête ---------- */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-block: 1.5rem;
}
header .logo img { width: 293px; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.reseaux { display: flex; gap: .8rem; }
.reseaux a { color: inherit; }
.reseaux svg { width: 28px; height: 28px; fill: currentColor; display: block; }

/* ---------- Accroche ---------- */
.accroche h1 {
  margin: 0;
  font-size: clamp(3.3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: .85;
  text-transform: uppercase;
}
.accroche h1 span:nth-child(1) { color: #9b51e0; }
.accroche h1 span:nth-child(2) { color: #0693e3; }
.accroche h1 span:nth-child(3) { color: #8ed1fc; }

.citation { color: var(--bleu); font-size: 1.5rem; }
.citation blockquote { margin: 0 0 1rem; font-weight: 700; font-size: 1.8rem; }
.citation .auteur { font-size: 1rem; }

/* ---------- Grilles de cartes ---------- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
}
.carte { text-align: center; }
.carte img { margin-inline: auto; max-width: 284px; width: 100%; }
.carte p { margin: 0; }
.carte .tag { color: var(--gris); font-size: 1rem; }
.etapes .carte { text-align: left; }
.ateliers .carte { text-align: left; }
.ateliers .carte img { max-width: 220px; margin-inline: 0; }
.ateliers .carte a { display: block; margin-top: .5rem; font-size: 1rem; }
.intro { max-width: 800px; margin-bottom: 3rem; }

/* ---------- Références ---------- */
.references ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.references img {
  width: 20vh; height: 20vh; min-width: 120px; min-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 5px 10px 15px rgba(196, 194, 194, .37);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { justify-content: center; }

/* ---------- Pied de page ---------- */
footer { background: var(--noir); color: var(--blanc); font-family: var(--titre); font-size: .87rem; }
footer .contenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
footer h1 { margin: 0 0 .5rem; font-size: 2rem; font-weight: 900; }
footer a { color: var(--blanc); }
footer p { margin: .3rem 0; }

/* ---------- Retour en haut ---------- */
.haut {
  position: fixed; right: 20px; bottom: 40px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
  color: var(--noir); font-weight: 700; text-decoration: none;
}
.haut:hover { background: var(--blanc); color: var(--noir); }
