/* ==========================================================================
   AdminZen — Conseils et assistance administrative
   Charte graphique (fournie par la cliente) :
     fond 1 #fff2e2 · fond 2 #e8dccf · titres pros #25396c
     titres particuliers #ab1465 · texte #605953 · police TT Chocolates
   TT Chocolates est une police commerciale : si le fichier est acheté, le
   déposer dans assets/fonts/ et décommenter le bloc @font-face ci-dessous.
   En attendant, Poppins (géométrique arrondie) en tient lieu.
   ========================================================================== */

/*
@font-face {
  font-family: 'TT Chocolates';
  src: url('../fonts/TTChocolates-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'TT Chocolates';
  src: url('../fonts/TTChocolates-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
*/

:root {
  --fond:        #fff2e2;
  --fond2:       #e8dccf;
  --pro:         #25396c;
  --particulier: #ab1465;
  --texte:       #605953;
  --blanc:       #fffaf3;
  --papier:      #ffffff;
  --bordure:     #d8cec3;
  --erreur:      #9d2434;
  --succes:      #26704b;

  --pro-clair:         #eaeef7;
  --particulier-clair: #f9e7f0;
  --ombre:       0 4px 18px rgba(96, 89, 83, .12);
  --ombre-forte: 0 10px 32px rgba(96, 89, 83, .18);
  --rayon:       18px;
  --largeur:     1100px;

  --police: 'TT Chocolates', 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  color: var(--texte);
  background: var(--fond);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pro); }

.contenu { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* ---------- En-tête et menu --------------------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 242, 226, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--fond2);
}

.entete .contenu {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
  position: relative;
}

.logo img { height: 58px; width: auto; }

.menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }

.menu a {
  display: block; padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--pro); text-decoration: none;
  font-weight: 600; font-size: .95rem;
  transition: background .18s, color .18s;
}

.menu a:hover, .menu a:focus-visible { background: var(--fond2); }

.menu a[aria-current="page"] { background: var(--pro); color: var(--fond); }

.menu .compte a { background: var(--particulier); color: #fff; }
.menu .compte a:hover { background: #8e0f53; }
.menu .compte a[aria-current="page"] { background: #8e0f53; }

/* Bouton hamburger : visible seulement en petit écran */
.burger {
  display: none;
  background: none; border: 2px solid var(--pro); border-radius: 10px;
  color: var(--pro); font-size: 1.4rem; line-height: 1;
  padding: .3rem .6rem; cursor: pointer;
}

/* ---------- Blocs de page ------------------------------------------------ */

section { padding: 3.5rem 0; }
section.alt { background: var(--fond2); }

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--pro); margin-top: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }

.rose { color: var(--particulier); }
.bleu { color: var(--pro); }

.chapo { font-size: 1.15rem; max-width: 62ch; }

.centre { text-align: center; }
.centre .chapo { margin-inline: auto; }

/* ---------- Héros --------------------------------------------------------- */

.heros { padding: 3rem 0 3.5rem; }

.heros .contenu {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem; align-items: center;
}

.heros h1 { margin-bottom: .8rem; }
.heros .accroche { font-size: 1.15rem; margin-bottom: 1.6rem; }

.heros-illustration img {
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
}

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

.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }
.centre .boutons { justify-content: center; }

.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre); }

.btn-pro         { background: var(--pro); color: var(--fond); }
.btn-pro:hover   { background: #1b2b53; }
.btn-particulier { background: var(--particulier); color: #fff; }
.btn-particulier:hover { background: #8e0f53; }
.btn-clair       { background: transparent; color: var(--pro); border-color: var(--pro); }
.btn-clair:hover { background: var(--pro); color: var(--fond); }

/* ---------- Grilles de cartes ---------------------------------------------- */

.grille   { display: grid; gap: 1.5rem; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.8rem;
  box-shadow: var(--ombre);
  border-top: 5px solid var(--fond2);
}

.carte.pro         { border-top-color: var(--pro); }
.carte.particulier { border-top-color: var(--particulier); }
.carte.pro h2, .carte.pro h3 { color: var(--pro); }
.carte.particulier h2, .carte.particulier h3 { color: var(--particulier); }

.carte .icone { font-size: 2rem; line-height: 1; margin-bottom: .6rem; }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.liste li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--pro);
}
.carte.particulier .liste li::before { color: var(--particulier); }

/* ---------- Encart mis en avant --------------------------------------------- */

.encart {
  background: var(--particulier-clair);
  border-left: 6px solid var(--particulier);
  border-radius: var(--rayon);
  padding: 1.6rem 1.8rem;
}
.encart.encart-bleu {
  background: var(--pro-clair);
  border-left-color: var(--pro);
}
.encart h2, .encart h3 { margin-bottom: .5rem; }
.encart p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  background: var(--particulier); color: #fff;
  font-weight: 700; font-size: .85rem;
  padding: .25rem .8rem; border-radius: 999px;
  margin-bottom: .7rem;
}
.badge.badge-bleu { background: var(--pro); }

/* ---------- Avis clients ------------------------------------------------------ */

.avis {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.5rem;
  box-shadow: var(--ombre);
  display: flex; flex-direction: column;
  margin: 0;
}
.avis .etoiles { color: #f5a623; letter-spacing: .1em; margin-bottom: .6rem; }
.avis blockquote { margin: 0 0 .9rem; font-style: italic; }
.avis figcaption { font-size: .9rem; font-weight: 600; color: var(--pro); margin-top: auto; }

/* ---------- Mémo de conservation des documents ---------------------------------- */

.memo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.memo .bloc {
  background: var(--blanc); border-radius: var(--rayon);
  padding: 1.3rem 1.4rem; box-shadow: var(--ombre);
}
.memo h3 { color: var(--particulier); font-size: 1.05rem; }
.memo ul { margin: 0; padding-left: 1.1rem; }
.memo li { margin-bottom: .2rem; }

/* ---------- Tarifs ------------------------------------------------------------- */

.tarif {
  background: var(--blanc); border-radius: var(--rayon);
  padding: 1.8rem; box-shadow: var(--ombre);
  display: flex; flex-direction: column;
  border-top: 5px solid var(--fond2);
}
.tarif.pro { border-top-color: var(--pro); }
.tarif.particulier { border-top-color: var(--particulier); }
.tarif .prix {
  font-size: 2rem; font-weight: 700; color: var(--pro);
  line-height: 1.1; margin: .4rem 0 .2rem;
}
.tarif.particulier .prix { color: var(--particulier); }
.tarif .prix small { font-size: .95rem; font-weight: 600; color: var(--texte); }
/* « à partir de … » : un libellé plus long, donc un corps plus petit pour que
   les trois cartes d'une ligne gardent le même équilibre visuel. */
.tarif .prix.prix-long { font-size: 1.45rem; }
.tarif .btn { margin-top: auto; align-self: flex-start; }
.tarif ul.liste { margin-bottom: 1.2rem; }

/* ---------- Tableau -------------------------------------------------------------- */

.tableau-cadre { overflow-x: auto; }
table {
  border-collapse: collapse; width: 100%;
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
}
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--fond2); }
th { background: var(--pro); color: var(--fond); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- Formulaires de diagnostic ------------------------------------ */

.diagnostic-cadre {
  --accent: var(--pro);
  --accent-clair: var(--pro-clair);
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--blanc);
  border-top: 6px solid var(--accent);
  border-radius: calc(var(--rayon) + 6px);
  box-shadow: var(--ombre-forte);
}

.diagnostic-particulier {
  --accent: var(--particulier);
  --accent-clair: var(--particulier-clair);
}

.formulaire-entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
  align-items: center;
  gap: 2rem;
  padding: 1.35rem 2rem;
  background: var(--accent-clair);
}

.formulaire-sur-titre {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.formulaire-etape { margin: .15rem 0 0; font-size: .88rem; }

.progression {
  height: 9px;
  overflow: hidden;
  background: var(--fond2);
  border-radius: 999px;
}

.progression span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width .28s ease;
}

.formulaire-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem 1rem;
  background: var(--fond);
  border-bottom: 1px solid var(--fond2);
  font-size: .82rem;
  text-align: center;
}

.formulaire-demo strong {
  padding: .12rem .55rem;
  color: var(--fond);
  background: var(--accent);
  border-radius: 999px;
}

.formulaire-diagnostic { padding: 2rem; }
.form-etape[hidden] { display: none; }
/* L'attribut hidden doit toujours l'emporter, même sur un élément stylé en flex ou grid
   (c'est ce qui laissait le bandeau « démonstration » visible malgré le script). */
[hidden] { display: none !important; }

.form-etape {
  animation: apparition-formulaire .22s ease-out;
}

@keyframes apparition-formulaire {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.titre-etape {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.titre-etape > span {
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--fond);
  background: var(--accent);
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
}

.titre-etape h2 { margin: 0; color: var(--accent); }
.titre-etape h2[tabindex="-1"]:focus { outline: none; }
.titre-etape p { margin: .2rem 0 0; }

.champs-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.champ { display: block; }
.champ-large { grid-column: 1 / -1; }

.champ > span,
.question legend {
  display: block;
  margin-bottom: .5rem;
  color: var(--texte);
  font-weight: 600;
}

.champ b,
.consentement b { color: var(--accent); }
.champ small,
.question legend small,
.choix small { font-weight: 400; }

.champ input,
.champ textarea {
  width: 100%;
  min-height: 49px;
  padding: .72rem .9rem;
  border: 1px solid var(--bordure);
  border-radius: 11px;
  outline: none;
  color: var(--texte);
  background: var(--papier);
  font: inherit;
  transition: border-color .18s, box-shadow .18s;
}

.champ textarea { min-height: 145px; resize: vertical; }

.champ input:focus,
.champ textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.question {
  min-width: 0;
  margin: 1.8rem 0 0;
  padding: 0;
  border: 0;
}

.question legend { width: 100%; font-size: 1.02rem; }
.question legend small { display: block; color: var(--texte); font-size: .82rem; }

.choix-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.choix-grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choix-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choix-grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.choix {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 52px;
  padding: .72rem .8rem;
  cursor: pointer;
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-radius: 11px;
  line-height: 1.35;
  transition: border-color .18s, background .18s, transform .15s;
}

.choix:hover { border-color: var(--accent); transform: translateY(-1px); }
.choix:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }

.choix input,
.consentement input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: .12rem 0 0;
  accent-color: var(--accent);
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1.6rem;
  padding: 1rem;
  cursor: pointer;
  background: var(--accent-clair);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  font-size: .92rem;
}

.note-confidentialite {
  margin: 1.2rem 0 0;
  font-size: .85rem;
  text-align: center;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--fond2);
}

.form-actions-fin { justify-content: flex-end; }
.form-actions .btn { cursor: pointer; font: inherit; }
.form-actions .btn:disabled { cursor: wait; opacity: .65; transform: none; }

.formulaire-message {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 11px;
  text-align: center;
}

.formulaire-message-demo { color: var(--pro); background: var(--fond); border: 1px solid var(--bordure); }
.formulaire-message-succes { color: var(--succes); background: var(--papier); border: 1px solid var(--succes); }
.formulaire-message-erreur { color: var(--erreur); background: var(--papier); border: 1px solid var(--erreur); }
.formulaire-sans-js { margin: 0; padding: 1rem 2rem 2rem; text-align: center; }

.champ-piege {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Contact ---------------------------------------------------------------- */

.contact-liste { list-style: none; padding: 0; margin: 0; }
.contact-liste li { margin-bottom: .6rem; }
.contact-liste a { font-weight: 600; }

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

.pied {
  background: var(--pro); color: #e6e9f2;
  padding: 2.5rem 0 1.5rem;
}
.pied a { color: #fff; }
.pied h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.pied .colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .4rem; }
.pied .bas {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .5rem;
}

/* ---------- Petits écrans -------------------------------------------------------------- */

@media (max-width: 900px) {
  .heros .contenu { grid-template-columns: 1fr; }
  .heros-illustration { order: -1; max-width: 380px; margin-inline: auto; }
  .grille-3, .memo, .pied .colonnes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--fond); border-bottom: 1px solid var(--fond2);
    padding: .6rem 1.25rem 1rem; gap: .2rem;
    box-shadow: var(--ombre);
  }
  .menu.ouvert { display: flex; }
  .logo img { height: 46px; }

  .formulaire-entete { grid-template-columns: 1fr; gap: .75rem; padding: 1.1rem 1.25rem; }
  .formulaire-diagnostic { padding: 1.4rem 1.25rem; }
  .formulaire-demo { align-items: center; flex-direction: column; gap: .25rem; }
  .choix-grille-3, .choix-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grille-2, .grille-3, .memo, .pied .colonnes { grid-template-columns: 1fr; }
  section { padding: 2.5rem 0; }

  .champs-grille, .choix-grille, .choix-grille-2,
  .choix-grille-3, .choix-grille-4 { grid-template-columns: 1fr; }
  .titre-etape { gap: .75rem; }
  .titre-etape > span { flex-basis: 39px; width: 39px; height: 39px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; text-align: center; }
  .form-actions-fin { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .form-etape { animation: none; }
}
