/* Octobre Rose — Paca Renovation Extension
   Tokens repris du handoff : couleurs, typographies, rayons, ombres. */

:root {
  --rose: #E53B82;
  --rose-hover: #C22168;
  --rose-texte: #B01D5C;
  --rose-clair: #FFE4EF;
  --rose-clair-hover: #FFF3F8;
  --rose-vif: #FF5C9E;
  --rose-pale: #FF9CC3;
  --bordure-rose: #F3DFE7;
  --bordure-champ: #E9D8E0;
  --separateur: #F5C6DC;
  --encre: #211D20;
  --bleu-logo: #3F5A70;
  --texte: #4A4247;
  --texte-2: #5C5257;
  --texte-3: #8C7F86;
  --sombre-texte: #FFFAF7;
  --sombre-texte-2: #D6CDD1;
  --sombre-texte-3: #B8AEB3;
  --sombre-texte-4: #6E6469;
  --papier: #FFFAF7;
  --ligne-sombre: #4A4247;
  --piste: #383236;
  --placeholder: #A79CA2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: Karla, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-texte); }

img { max-width: 100%; }

input, textarea, select, button { font-family: Karla, system-ui, sans-serif; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

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

/* ---------- Mise en page ---------- */

.enveloppe { max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; }
.enveloppe--etroite { max-width: 1060px; }
.enveloppe--large { max-width: 1240px; padding-bottom: 80px; }
.enveloppe--plein-ecran { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 48px; }

.entete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 22px 0;
}

.marque { display: flex; align-items: center; gap: 12px; color: inherit; }
.marque:hover { color: inherit; }
.marque__pastille {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-logo);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Archivo Black', sans-serif; font-size: 17px;
  flex: none; overflow: hidden;
}
.marque__pastille img { width: 100%; height: 100%; object-fit: cover; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__nom {
  font-family: 'Archivo Black', sans-serif; font-size: 15px;
  letter-spacing: -0.2px; color: var(--bleu-logo);
}
.marque__baseline { font-family: Caveat, cursive; font-size: 17px; color: var(--rose); }

.surtitre {
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--texte-3);
}
.surtitre--rose { color: var(--rose-texte); }

.lien-retour { font-size: 15px; font-weight: 700; color: var(--texte-2); }
.lien-retour:hover { color: var(--rose); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rose); color: #fff; border: none;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(229, 59, 130, .3);
}
.bouton:hover { background: var(--rose-hover); color: #fff; }
.bouton--petit { padding: 12px 20px; font-size: 15px; box-shadow: 0 6px 18px rgba(229, 59, 130, .32); }
.bouton--grand { padding: 17px 30px; font-size: 18px; }
.bouton--pleine-largeur { width: 100%; }

.bouton-contour {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--encre); background: none; color: var(--encre);
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; cursor: pointer;
}
.bouton-contour:hover { background: var(--encre); color: var(--papier); }
.bouton-contour--petit { padding: 10px 18px; font-size: 14px; }

.badge {
  display: inline-block; background: var(--rose-clair); color: var(--rose-texte);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- Titres ---------- */

h1, h2, h3 { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; }

.titre-hero {
  font-size: clamp(38px, 5.2vw, 66px); line-height: .98; letter-spacing: -1.5px;
  margin: 18px 0 0; text-wrap: balance;
}
.titre-page {
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -1.2px;
  margin: 18px 0 0; text-wrap: balance;
}
.titre-section {
  font-size: clamp(28px, 3.6vw, 44px); margin: 0; letter-spacing: -1px;
}
.titre-bloc {
  font-size: clamp(26px, 3.2vw, 40px); margin: 12px 0 0; letter-spacing: -0.8px;
}
.rose { color: var(--rose); }
.manuscrit { font-family: Caveat, cursive; }

.chapo {
  font-size: 19px; line-height: 1.55; color: var(--texte);
  max-width: 50ch; margin: 20px 0 0; text-wrap: pretty;
}
.texte { font-size: 18px; line-height: 1.6; color: var(--texte); text-wrap: pretty; }
.note { font-family: Caveat, cursive; font-size: 22px; color: var(--texte-3); margin: 22px 0 0; }

/* ---------- Grilles ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.duo--haut { align-items: start; }
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.section { margin-top: 96px; }
.section--serre { margin-top: 80px; }

/* ---------- Affiche ---------- */

.affiche { position: relative; }
.affiche::before {
  content: ""; position: absolute; inset: -18px 12px 24px -12px;
  background: var(--rose-clair); border-radius: 28px; transform: rotate(-1.5deg);
}
.affiche img {
  position: relative; display: block; width: 100%; height: auto;
  border-radius: 18px; animation: apparition .9s ease-out;
}
@keyframes apparition {
  from { transform: translateY(8px) rotate(-1deg); opacity: 0; }
  to   { transform: translateY(0) rotate(0); opacity: 1; }
}

/* ---------- Compte à rebours ---------- */

.rebours { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.rebours__case {
  background: var(--encre); color: var(--sombre-texte); border-radius: 18px;
  padding: 18px 22px; min-width: 96px; text-align: center;
}
.rebours__nombre {
  font-family: 'Archivo Black', sans-serif; font-size: 38px; line-height: 1; color: var(--rose-vif);
}
.rebours__label {
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--sombre-texte-3); margin-top: 6px;
}

/* ---------- Compteur ---------- */

.compteur {
  background: var(--encre); border-radius: 28px; padding: 44px 44px 40px; color: var(--sombre-texte);
}
.compteur__entete {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.compteur__titre {
  font-size: clamp(24px, 3vw, 34px); margin: 0; letter-spacing: -0.6px;
}
.compteur__objectif { font-family: Caveat, cursive; font-size: 24px; color: var(--rose-pale); }
.compteur__chiffres { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.compteur__nombre {
  font-family: 'Archivo Black', sans-serif; font-size: clamp(60px, 10vw, 120px);
  line-height: .85; color: var(--rose-vif);
}
.compteur__cible {
  font-family: 'Archivo Black', sans-serif; font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1; color: var(--sombre-texte-4);
}
.compteur__legende {
  font-size: 16px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--sombre-texte-3); padding-left: 8px;
}
.barre { height: 16px; border-radius: 999px; background: var(--piste); margin-top: 22px; overflow: hidden; }
.barre__remplissage {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-pale), var(--rose));
  width: 0; transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}
.stats-sombres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; margin-top: 34px;
}
.stats-sombres > div { border-top: 2px solid var(--ligne-sombre); padding-top: 16px; }
.stats-sombres .valeur { font-family: 'Archivo Black', sans-serif; font-size: 36px; color: var(--sombre-texte); }
.stats-sombres .libelle { font-size: 15px; color: var(--sombre-texte-3); margin-top: 4px; }

/* ---------- Cartes ---------- */

.carte {
  background: #fff; border: 2px solid var(--bordure-rose); border-radius: 22px; padding: 28px;
}
.carte__numero { font-family: Caveat, cursive; font-size: 44px; color: var(--rose); line-height: 1; }
.carte h3 { font-size: 20px; margin: 8px 0 10px; }
.carte p { font-size: 16px; line-height: 1.55; color: var(--texte); margin: 0; }

.bloc-rose { background: var(--rose-clair); border-radius: 28px; padding: 44px; }

.chiffres-cles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px; margin-top: 26px;
}
.chiffres-cles .valeur { font-family: 'Archivo Black', sans-serif; font-size: 26px; color: var(--encre); }
.chiffres-cles .libelle { font-size: 14px; color: var(--texte-2); }
.chiffres-cles--lignes > div { border-top: 2px solid var(--bordure-rose); padding-top: 14px; }
.chiffres-cles--lignes .valeur { font-size: 24px; }

/* ---------- Galerie ---------- */

.galerie {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 32px;
}
.galerie figure { margin: 0; }
.galerie img, .galerie .vide {
  display: block; width: 100%; height: 280px; object-fit: cover;
  border-radius: 18px; background: #F7EFF3;
}
.galerie figcaption { font-size: 15px; color: var(--texte); margin-top: 10px; }

.vide {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--texte-3); font-size: 15px; padding: 20px;
  border: 2px dashed var(--bordure-rose);
}

.appel-photo {
  margin-top: 28px; background: var(--rose-clair); border-radius: 24px;
  padding: 32px 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}

/* ---------- Carte Leaflet ---------- */

.cadre-carte {
  margin-top: 28px; border: 2px solid var(--bordure-rose);
  border-radius: 24px; overflow: hidden; background: #fff;
}

/* ---------- CTA final ---------- */

.cta-final {
  margin-top: 96px; text-align: center; padding: 56px 24px;
  border: 3px dashed var(--rose); border-radius: 28px;
}
.cta-final h2 {
  font-size: clamp(30px, 4.4vw, 54px); margin: 0; letter-spacing: -1.2px; text-wrap: balance;
}
.rangee-boutons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.rangee-boutons--centre { justify-content: center; }

/* ---------- Formulaires ---------- */

.formulaire { margin-top: 34px; display: grid; gap: 20px; }
.paire { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.champ { display: grid; gap: 8px; }
.champ__label {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--texte-2);
}
.champ input[type=text], .champ input[type=email], .champ input[type=tel],
.champ input[type=password], .champ input[type=number], .champ input[type=datetime-local],
.champ select {
  border: 2px solid var(--bordure-champ); border-radius: 14px;
  padding: 14px 16px; font-size: 17px; background: #fff; outline: none; width: 100%;
}
.champ input:focus, .champ select:focus { border-color: var(--rose); }
.champ__aide { font-size: 14px; color: var(--texte-3); }

.depot {
  border: 3px dashed var(--rose); border-radius: 20px; padding: 30px;
  background: #fff; text-align: center; cursor: pointer; display: block;
}
.depot:hover { background: var(--rose-clair-hover); }
.depot__titre { font-family: 'Archivo Black', sans-serif; font-size: 18px; text-transform: uppercase; }
.depot__fichier { font-size: 15px; color: var(--texte-2); margin-top: 6px; }
.depot input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.consentement {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5; color: #3A3236; max-width: 56ch;
}
.consentement input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose); flex: none; }

.mention { font-size: 14px; color: var(--texte-3); margin: 0; max-width: 52ch; }
.erreur {
  background: #FFF3F8; border: 2px solid var(--rose); border-radius: 14px;
  padding: 14px 16px; color: var(--rose-hover); font-size: 15px; font-weight: 700;
}
.erreur ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }

.confirmation {
  margin-top: 32px; background: var(--encre); color: var(--sombre-texte);
  border-radius: 24px; padding: 36px;
}
.confirmation__salut { font-family: Caveat, cursive; font-size: 30px; color: var(--rose-pale); }
.confirmation h2 { font-size: 26px; margin: 8px 0 10px; }
.confirmation p { font-size: 17px; line-height: 1.6; color: var(--sombre-texte-2); margin: 0; max-width: 46ch; }

.aside {
  background: var(--rose-clair); border-radius: 24px; padding: 32px;
  position: sticky; top: 24px;
}
.aside__titre {
  font-family: 'Archivo Black', sans-serif; font-size: 20px;
  text-transform: uppercase; letter-spacing: -0.4px;
}
.etapes { display: grid; gap: 20px; margin-top: 22px; }
.etape { display: flex; gap: 14px; }
.etape__numero { font-family: Caveat, cursive; font-size: 34px; color: var(--rose); line-height: .9; }
.etape p { font-size: 16px; line-height: 1.55; color: #3A3236; margin: 0; }
.aside__chiffre {
  margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--separateur);
}
.aside__chiffre .valeur { font-family: 'Archivo Black', sans-serif; font-size: 30px; color: var(--rose-texte); }
.aside__chiffre .libelle { font-size: 15px; color: var(--texte-2); }

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

.pied {
  margin-top: 64px; padding-top: 24px; border-top: 2px solid var(--bordure-rose);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--texte-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .aside { position: static; }
  .compteur { padding: 32px 24px 28px; }
  .bloc-rose { padding: 32px 24px; }
  .cta-final { padding: 40px 20px; }
  .appel-photo { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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

.page-legale { max-width: 68ch; padding-top: 26px; }
.page-legale h2 {
  font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.4px;
  margin: 44px 0 0; padding-top: 22px; border-top: 2px solid var(--bordure-rose);
}
.page-legale h3 {
  font-size: 17px; letter-spacing: -0.2px; margin: 26px 0 0; color: var(--rose-texte);
}
.page-legale p, .page-legale li {
  font-size: 17px; line-height: 1.65; color: var(--texte); text-wrap: pretty;
}
.page-legale ul { padding-left: 22px; }
.page-legale li { margin-top: 10px; }
.page-legale code {
  background: var(--rose-clair); border-radius: 6px; padding: 2px 6px;
  font-size: 15px; color: var(--rose-texte);
}
.page-legale .maj { font-size: 15px; color: var(--texte-3); margin: 10px 0 0; }
.retour-legal { margin-top: 48px; font-weight: 700; }

.a-completer {
  background: var(--rose-clair); color: var(--rose-texte);
  border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: .92em;
}
.avertissement-legal {
  background: #FFF3F8; border: 2px dashed var(--rose); border-radius: 16px;
  padding: 16px 20px; font-size: 15px !important; color: var(--rose-hover);
  margin: 26px 0 0;
}
