/* Jordan Mihy IA — accompagnement Claude */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  --noir: #0E0E12;
  --blanc: #FFFFFF;
  --violet: #8B5CF6;
  --violet-clair: #A78BFA;
  --violet-fond: #F3EEFF;
  --gris: #8A8A94;
  --gris-clair: #F4F4F6;

  --fond: var(--blanc);
  --fond-doux: var(--gris-clair);
  --texte: var(--noir);
  --texte-doux: #55555E;
  --trait: #E4E4EA;
  --accent: #7C4DEF;
  --accent-texte: #6D3FE0;
  --panneau: var(--noir);
  --panneau-texte: #ECECF1;
  --champ: var(--blanc);

  --rayon: 14px;
  --largeur: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0E0E12;
    --fond-doux: #17171D;
    --texte: #F2F2F5;
    --texte-doux: #A8A8B3;
    --trait: #2A2A33;
    --accent: #8B5CF6;
    --accent-texte: #B9A0FB;
    --violet-fond: #1E1830;
    --panneau: #17171D;
    --panneau-texte: #ECECF1;
    --champ: #17171D;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-texte); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.conteneur { width: min(100% - 40px, var(--largeur)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.texte-doux { color: var(--texte-doux); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 1.2rem; color: var(--texte); text-decoration: none; letter-spacing: -0.01em; }
.logo .point { color: var(--violet); font-weight: 700; margin: 0 1px; }
.logo .pastille {
  display: inline-grid; place-items: center;
  width: 1.55em; height: 1.55em; margin-left: 6px;
  border-radius: 50%; background: var(--violet); color: #fff;
  font-size: .62em; font-weight: 700; letter-spacing: 0;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .85em 1.5em; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton-principal { background: var(--accent); color: #fff; }
.bouton-principal:hover { background: #6A3BDB; }
.bouton-secondaire { background: transparent; color: var(--texte); border-color: var(--trait); }
.bouton-secondaire:hover { border-color: var(--texte); }
.bouton-petit { padding: .6em 1.15em; font-size: .95rem; }

/* ---------- Héro ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .conteneur { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .chapo { font-size: 1.2rem; color: var(--texte-doux); max-width: 34ch; margin-bottom: 1.6em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .precision { font-size: .92rem; color: var(--texte-doux); margin-top: 18px; }

/* Le comparatif conversation : l'élément signature */
.comparatif { background: var(--panneau); color: var(--panneau-texte); border-radius: 22px; padding: 26px; display: grid; gap: 18px; }
.comparatif .bloc { border-radius: 14px; padding: 18px; }
.comparatif .avant { background: #1B1B22; }
.comparatif .apres { background: #241B3D; border: 1px solid #4B3591; }
.comparatif .titre-bloc { font-size: .9rem; font-weight: 600; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 10px; }
.comparatif .avant .titre-bloc { color: #A8A8B3; }
.comparatif .apres .titre-bloc { color: #C9B6FF; }
.bulle { font-size: .9rem; line-height: 1.45; padding: 9px 13px; border-radius: 12px 12px 12px 4px; margin-bottom: 8px; max-width: 92%; background: #2A2A33; color: #D9D9E0; }
.bulle:last-child { margin-bottom: 0; }
.apres .bulle { background: #3A2A66; color: #fff; }
.compteur { font-variant-numeric: tabular-nums; font-weight: 500; }
.avant .bulle-repetee { color: #9C9CA8; }

@media (prefers-reduced-motion: no-preference) {
  .avant .bulle { animation: apparition .4s ease both; }
  .avant .bulle:nth-child(2) { animation-delay: .25s; }
  .avant .bulle:nth-child(3) { animation-delay: .5s; }
  .avant .bulle:nth-child(4) { animation-delay: .75s; }
  .apres { animation: apparition .5s ease 1.2s both; }
  @keyframes apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-douce { background: var(--fond-doux); }
.intro-section { max-width: 62ch; margin-bottom: 40px; }
.intro-section p { color: var(--texte-doux); font-size: 1.1rem; }

/* Constat */
.constat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.constat > div { border-top: 3px solid var(--texte); padding-top: 18px; }
.constat p { color: var(--texte-doux); margin: 0; }

/* Étapes : c'est une vraie séquence, donc numérotée */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--trait); }
.etapes li { padding: 24px 22px 8px 0; position: relative; }
.etapes li + li { padding-left: 22px; border-left: 1px solid var(--trait); }
.etapes .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.etapes p { color: var(--texte-doux); font-size: .98rem; }

/* Tarifs */
.tarifs-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.tarifs { border: 1px solid var(--trait); border-radius: 18px; overflow: hidden; background: var(--fond); }
.tarif { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 22px 26px; align-items: baseline; }
.tarif + .tarif { border-top: 1px solid var(--trait); }
.tarif .duree { font-size: 1.35rem; font-weight: 700; }
.tarif .prix { font-size: 1.35rem; font-weight: 700; color: var(--accent-texte); }
.tarif .usage { grid-column: 1 / -1; color: var(--texte-doux); font-size: .95rem; margin: 0; }
.tarifs-note { font-size: .9rem; color: var(--texte-doux); padding: 16px 26px; background: var(--fond-doux); border-top: 1px solid var(--trait); margin: 0; }
.encadre { background: var(--violet-fond); border-radius: 18px; padding: 26px; }
.encadre h3 { margin-bottom: .5em; }
.encadre p:last-child { margin-bottom: 0; }

/* Liste à puces simple */
.liste { list-style: none; padding: 0; margin: 0 0 1em; }
.liste li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

/* Repartir avec */
.livrables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.livrables h3 { margin-bottom: .35em; }
.livrables p { color: var(--texte-doux); margin: 0; }

/* Prérequis */
.prerequis { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--panneau); color: var(--panneau-texte); border-radius: 22px; padding: clamp(26px, 4vw, 44px); }
.prerequis h2 { color: #fff; margin-bottom: .3em; }
.prerequis p { margin: 0; color: #C3C3CC; max-width: 60ch; }
.prerequis .gros { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; color: var(--violet-clair); line-height: 1; letter-spacing: -0.03em; }

/* Qui suis-je */
.moi { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.moi img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.moi p { max-width: 60ch; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-texte); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--texte-doux); }

/* ---------- Formulaire ---------- */
.formulaire-zone { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.formulaire-zone .intro-section { margin-bottom: 0; position: sticky; top: 96px; }
.carte-form { background: var(--fond); border: 1px solid var(--trait); border-radius: 22px; padding: clamp(22px, 4vw, 40px); }

.progression { display: flex; gap: 6px; margin-bottom: 8px; }
.progression span { flex: 1; height: 5px; border-radius: 3px; background: var(--trait); transition: background-color .25s ease; }
.progression span.fait { background: var(--violet); }
.progression-texte { font-size: .9rem; color: var(--texte-doux); margin-bottom: 26px; }

.etape-form { border: 0; padding: 0; margin: 0; min-width: 0; }
.etape-form[hidden] { display: none; }
.etape-form legend { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; padding: 0; margin-bottom: 6px; }
.etape-form .aide-etape { color: var(--texte-doux); margin-bottom: 24px; }

.champ { margin-bottom: 20px; }
.champ label, .champ .label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.champ .aide { display: block; font-weight: 400; font-size: .88rem; color: var(--texte-doux); margin-top: 2px; }
.requis { color: var(--accent-texte); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texte);
  background: var(--champ); border: 1.5px solid var(--trait); border-radius: 10px;
  padding: 11px 14px; transition: border-color .15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 25%, transparent); }
input[type="file"] { font: inherit; font-size: .95rem; }

.choix { display: grid; gap: 8px; }
.choix label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 10px 14px; border: 1.5px solid var(--trait); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.choix label:has(input:checked) { border-color: var(--violet); background: var(--violet-fond); }
.choix input { margin-top: .35em; accent-color: var(--violet); flex: none; }
.choix-ligne { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 14px; }
.consentement input { margin-top: .35em; accent-color: var(--violet); flex: none; width: 18px; height: 18px; }

.alerte { border-radius: 12px; padding: 14px 16px; font-size: .95rem; margin: -6px 0 20px; background: var(--violet-fond); border-left: 4px solid var(--violet); }
.alerte[hidden] { display: none; }

.nav-form { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--trait); }
.nav-form .bouton[hidden] { display: none; }
.cache { position: absolute; left: -9999px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--trait); padding: 40px 0; font-size: .92rem; color: var(--texte-doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied a { color: var(--texte-doux); }
.pied .mention-marque { flex-basis: 100%; font-size: .85rem; margin: 0; }

/* ---------- Pages juridiques ---------- */
.page-texte { padding: clamp(40px, 6vw, 72px) 0 80px; }
.page-texte .conteneur { max-width: 760px; }
.page-texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-texte h2 { font-size: 1.35rem; margin-top: 2em; }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte strong { color: var(--texte); }
.a-completer { background: #FFF3C4; color: #5A4500; padding: 0 4px; border-radius: 4px; }
.maj { font-size: .9rem; color: var(--gris); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .conteneur, .tarifs-grille, .formulaire-zone { grid-template-columns: 1fr; }
  .formulaire-zone .intro-section { position: static; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .etapes li:nth-child(3) { padding-left: 0; border-left: 0; }
  .etapes li:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .constat, .livrables { grid-template-columns: 1fr; gap: 24px; }
  .moi { grid-template-columns: 1fr; }
  .moi img { max-width: 240px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .etapes { grid-template-columns: 1fr; }
  .etapes li, .etapes li + li { padding-left: 0; border-left: 0; }
  .etapes li + li { border-top: 1px solid var(--trait); }
  .deux-col { grid-template-columns: 1fr; }
  .prerequis { grid-template-columns: 1fr; }
  .entete .bouton { display: none; }
  .comparatif { padding: 18px; }
}
