/* ============================================
   Transforme Ta Vie Maintenant — feuille de style
   Couleurs : modifier ici pour changer tout le site
   ============================================ */
:root {
  --rouge: #D0341E;
  --orange: #F2842F;
  --jaune: #F5B400;
  --vert: #5FAE2E;
  --turquoise: #1FA7C9;
  --bleu: #3F55D0;
  --violet: #8A3FD1;
  --gris: #8C8C8C;
  --texte: #333338;
  --texte-doux: #5E5E66;
  --fond: #FFFFFF;
  --fond-doux: #F6F6F7;
  --bordure: #E4E4E8;
  --accent: #6E6E76;        /* remplacé selon la page */
  --accent-clair: #F1F1F3;  /* remplacé selon la page */
}

/* Une couleur principale par page */
body.page-ttvm    { --accent: #1A8FAD; --accent-clair: #E6F6FA; }
body.page-parents { --accent: #7A33C2; --accent-clair: #F3EAFB; }
body.page-apropos { --accent: #4E9425; --accent-clair: #EDF7E6; }
body.page-contact { --accent: #D9691A; --accent-clair: #FDF0E6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--texte);
  font-weight: normal;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .8em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }

.conteneur { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 760px; }

/* ---------- En-tête ---------- */
.entete { border-bottom: 1px solid var(--bordure); background: #fff; }
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px;
}
.logo-lien img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a {
  color: var(--texte); text-decoration: none; font-size: .95rem;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--bordure); }
.nav a.actif { border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.fond-doux { background: var(--fond-doux); }
.fond-accent { background: var(--accent-clair); }

.hero { text-align: center; padding: 72px 0 64px; }
.hero .logo-grand { width: min(440px, 90%); margin: 0 auto 28px; }
.hero p.chapo { font-size: 1.2rem; color: var(--texte-doux); max-width: 640px; margin: 0 auto 28px; }
.hero-accent { background: var(--accent-clair); border-bottom: 6px solid var(--accent); }

/* Bande arc-en-ciel (accueil) */
.arc-en-ciel {
  height: 6px;
  background: linear-gradient(90deg, var(--rouge), var(--orange), var(--jaune), var(--vert), var(--turquoise), var(--bleu), var(--violet));
}

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bouton {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 2px solid var(--accent);
  cursor: pointer; font-family: inherit;
}
.bouton:hover { filter: brightness(1.08); }
.bouton.secondaire { background: #fff; color: var(--accent); }
.bouton.turquoise { background: #1A8FAD; border-color: #1A8FAD; }
.bouton.violet { background: #7A33C2; border-color: #7A33C2; }
.bouton.turquoise.secondaire { background:#fff; color:#1A8FAD; }
.bouton.violet.secondaire { background:#fff; color:#7A33C2; }

/* ---------- Cartes ---------- */
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.carte {
  background: #fff; border: 1px solid var(--bordure); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
}
.carte .bouton { margin-top: auto; align-self: flex-start; }
.carte.bord-turquoise { border-top: 6px solid #1FA7C9; }
.carte.bord-violet { border-top: 6px solid #8A3FD1; }
.etiquette { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }

/* ---------- Listes ---------- */
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { padding: 8px 0 8px 34px; position: relative; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  opacity: .85;
}

.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 18px; }
.etapes li { counter-increment: etape; padding-left: 58px; position: relative; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Piliers */
.piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pilier { background: #fff; border-radius: 12px; padding: 18px 20px; border-left: 6px solid var(--c); }
.pilier strong { display: block; font-family: Georgia, serif; font-size: 1.15rem; font-weight: normal; }
.pilier span { color: var(--texte-doux); font-size: .95rem; }

/* Tarifs */
.tarifs { display: grid; gap: 16px; }
.tarif {
  background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline;
}
.tarif h3 { margin: 0; }
.tarif .prix { font-family: Georgia, serif; font-size: 1.5rem; color: var(--accent); white-space: nowrap; }
.tarif .duree { color: var(--texte-doux); font-size: .95rem; }
.tarif p { grid-column: 1 / -1; margin: 6px 0 0; }
.tarif.vedette { border: 2px solid var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.encadre { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--bordure); }
.note { font-size: .9rem; color: var(--texte-doux); font-style: italic; }
.centre { text-align: center; }

/* ---------- Quiz ---------- */
.quiz-question { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.quiz-question p { margin: 0 0 12px; }
.quiz-axe { font-family: Georgia, serif; font-size: 1.2rem; margin: 28px 0 12px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choix label {
  flex: 1 1 130px; text-align: center; padding: 10px 8px; border: 2px solid var(--bordure);
  border-radius: 10px; cursor: pointer; font-size: .95rem; background: #fff;
}
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix input:checked + span { font-weight: 700; }
.choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }
.choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.quiz-erreur { color: #B3261E; font-weight: 600; min-height: 1.5em; }
.resultat { display: none; background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 28px; margin-top: 20px; }
.resultat.visible { display: block; }
.resultat .score { font-size: 1rem; color: var(--texte-doux); }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 18px; }
.formulaire label { font-weight: 600; display: block; margin-bottom: 6px; }
.formulaire input[type=text], .formulaire input[type=email], .formulaire textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--bordure); border-radius: 10px;
  font: inherit; background: #fff;
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--accent); }
.formulaire .radios label { font-weight: normal; display: flex; gap: 10px; align-items: center; margin: 4px 0; }
.cache { position: absolute; left: -9999px; }

/* ---------- Photo ---------- */
.photo-emplacement {
  width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 24px;
  background: #fff; border: 3px dashed var(--accent); display: flex; align-items: center;
  justify-content: center; color: var(--texte-doux); font-size: .9rem; text-align: center; padding: 20px;
  overflow: hidden;
}
.photo-emplacement img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pied de page ---------- */
.pied { background: #3A3A40; color: #E8E8EC; padding: 40px 0 28px; font-size: .95rem; }
.pied a { color: #fff; }
.pied .conteneur { display: grid; gap: 16px; text-align: center; }
.pied .reseaux { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.pied .petit { font-size: .85rem; color: #BDBDC4; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 44px 0; }
  .hero { padding: 48px 0 44px; }
  .entete .conteneur { justify-content: center; }
  .nav { justify-content: center; }
  .tarif { grid-template-columns: 1fr; }
}
