/* Colorimétria — feuille de style commune
   Mise en page : colonne unique centrée, largeur de lecture ~62ch.
   Le motif structurant est la série de cinq : cinq arcs du logo,
   cinq couleurs, cinq photos. */

:root {
  /* Couleurs de marque, version claire */
  --creme:      #FBFAF7;
  --creme-haut: #F4F1EA;
  --encre:      #191816;
  --texte:      #3A3733;
  --second:     #6B655D;
  --filet:      #E2DED6;
  --accent:     #2F6F77;
  --accent-fort:#245A61;
  --sur-accent: #FFFFFF;

  --c1: #C96A4E;  /* terre cuite */
  --c2: #D9A441;  /* ocre */
  --c3: #5F8C72;  /* sauge */
  --c4: #2F6F77;  /* canard */
  --c5: #7B5A82;  /* prune */

  --ok:     #2F6F77;
  --alerte: #A4452A;

  /* Typographies */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --corps:   "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  /* Échelle */
  --pas: 8px;
  --rayon: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --creme:      #141312;
    --creme-haut: #1D1B19;
    --encre:      #F2EFE9;
    --texte:      #DAD5CC;
    --second:     #9A948B;
    --filet:      #322E2A;
    --accent:     #7FC0C6;
    --accent-fort:#A3D6DA;
    --sur-accent: #102326;

    --c1: #E08B6E;
    --c2: #E6B960;
    --c3: #7FAE92;
    --c4: #6FAEB4;
    --c5: #A784AE;

    --ok:     #7FC0C6;
    --alerte: #E2A08A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --creme:      #141312;
  --creme-haut: #1D1B19;
  --encre:      #F2EFE9;
  --texte:      #DAD5CC;
  --second:     #9A948B;
  --filet:      #322E2A;
  --accent:     #7FC0C6;
  --accent-fort:#A3D6DA;
  --sur-accent: #102326;

  --c1: #E08B6E;
  --c2: #E6B960;
  --c3: #7FAE92;
  --c4: #6FAEB4;
  --c5: #A784AE;

  --ok:     #7FC0C6;
  --alerte: #E2A08A;
  color-scheme: dark;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--encre);
  text-wrap: balance;
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.95rem); }
h3 { font-size: 1.12rem; font-family: var(--corps); font-weight: 500; }

p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-fort); }

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

.lede { font-size: 1.08rem; color: var(--texte); }
.secondaire { color: var(--second); font-size: 0.93rem; }

.surtitre {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--second);
  font-weight: 500;
}

/* ---------- gabarit ---------- */

.enveloppe {
  max-width: 940px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(40px, 7vw, 76px); }
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 18px; }

.bande-couleurs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
}
.bande-couleurs span:nth-child(1) { background: var(--c1); }
.bande-couleurs span:nth-child(2) { background: var(--c2); }
.bande-couleurs span:nth-child(3) { background: var(--c3); }
.bande-couleurs span:nth-child(4) { background: var(--c4); }
.bande-couleurs span:nth-child(5) { background: var(--c5); }

/* ---------- en-tête ---------- */

.entete {
  border-bottom: 1px solid var(--filet);
  background: var(--creme);
}
.entete .enveloppe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.marque-lien {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.marque-lien .nom {
  font-size: 1.12rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--encre);
}
.marque-lien .nom b { font-weight: 500; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { font-size: 0.93rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* ---------- boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: var(--accent);
  color: var(--sur-accent);
  font-family: var(--corps);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}
.bouton:hover { background: var(--accent-fort); color: var(--sur-accent); }
.bouton:active { transform: translateY(1px); }
.bouton[disabled] { opacity: 0.45; cursor: not-allowed; }
.bouton--discret {
  background: transparent;
  color: var(--accent);
  border-color: var(--filet);
}
.bouton--discret:hover { background: var(--creme-haut); color: var(--accent-fort); }

/* ---------- logo animé ---------- */

.anneau { display: block; }
.anneau .arc {
  fill: none;
  stroke-width: 13;
  stroke-linecap: butt;
}
.anneau .pupille { fill: var(--encre); }

/* ---------- cartes ---------- */

.grille {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.carte {
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  background: var(--creme);
}
.carte h3 { color: var(--encre); }

/* ---------- formulaire ---------- */

.champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.champ > label { font-size: 0.9rem; font-weight: 500; color: var(--encre); }
.champ .aide { font-size: 0.85rem; color: var(--second); }

input[type="text"],
input[type="email"] {
  font-family: var(--corps);
  font-size: 1rem;
  font-weight: 300;
  color: var(--texte);
  background: var(--creme);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus { border-color: var(--accent); }
input::placeholder { color: var(--second); opacity: 0.75; }

.depots { display: flex; flex-direction: column; gap: 14px; }

.depot {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 16px;
  min-width: 0;
}
.depot[data-rempli="oui"] { border-color: var(--teinte); }

.depot .pastille {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sur-pastille, #fff);
  background: var(--teinte);
}
.depot:nth-child(1) { --teinte: var(--c1); }
.depot:nth-child(2) { --teinte: var(--c2); --sur-pastille: #2A2112; }
.depot:nth-child(3) { --teinte: var(--c3); }
.depot:nth-child(4) { --teinte: var(--c4); }
.depot:nth-child(5) { --teinte: var(--c5); }

.depot .corps { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.depot .titre { font-weight: 500; color: var(--encre); }
.depot .consigne { font-size: 0.88rem; color: var(--second); }

.zone {
  border: 1px dashed var(--filet);
  border-radius: var(--rayon);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  cursor: pointer;
  background: var(--creme-haut);
  transition: border-color 140ms ease, background-color 140ms ease;
}
.zone:hover, .zone.survol { border-color: var(--teinte); }
.zone input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.zone .invite { font-size: 0.9rem; color: var(--second); }
.zone .apercu {
  width: 62px; height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--filet);
  flex: none;
}
.zone .nomfichier {
  font-size: 0.86rem;
  color: var(--texte);
  overflow-wrap: anywhere;
  min-width: 0;
}
.zone .retirer {
  margin-left: auto;
  background: none;
  border: 1px solid var(--filet);
  border-radius: 8px;
  color: var(--second);
  font-family: var(--corps);
  font-size: 0.84rem;
  min-height: 36px;
  padding: 4px 12px;
  cursor: pointer;
}
.zone .retirer:hover { color: var(--encre); border-color: var(--second); }

.erreur { color: var(--alerte); font-size: 0.86rem; }

.consentement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--texte);
}
.consentement input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.recap {
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--creme-haut);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recap .ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}
.recap .total { font-size: 1.5rem; color: var(--encre); font-weight: 400; }

/* ---------- étapes ---------- */

.etapes { display: flex; flex-direction: column; gap: 22px; counter-reset: etape; }
.etape {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.etape .num {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--filet);
  display: grid; place-items: center;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- pied ---------- */

.pied {
  border-top: 1px solid var(--filet);
  margin-top: 40px;
}
.pied .enveloppe {
  padding-block: 26px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--second);
}
.pied a { color: var(--second); }
.pied a:hover { color: var(--accent); }

@media (max-width: 460px) {
  .depot { grid-template-columns: 1fr; }
  .depot .pastille { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* Lien vers la page Facebook, dans le pied de chaque page. */
.lien-fb {
  font-size: 0.86rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
  padding-bottom: 2px;
}
.lien-fb:hover { color: var(--accent-fort); border-bottom-color: currentColor; }
