/* Page conseillers : styles propres, uniquement à partir des tokens de la charte 2026. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

.conteneur { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .conteneur { padding: 0 var(--space-4); } }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: var(--tracking-display); margin: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--text-heading); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--text-subheading); font-weight: var(--fw-semibold); }
p { margin: 0; }

.bande { height: var(--band-h); background: var(--degrade); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--button-h); padding: 0 var(--space-7); border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 17px; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--principal { background: var(--navy); color: var(--ivoire); }
.btn--principal:hover { background: var(--prune); color: var(--ivoire); }
.btn--clair { background: var(--ivoire); color: var(--navy); }
.btn--clair:hover { background: var(--lavande); color: var(--navy); }
.btn--clair-contour { border: 1.5px solid rgba(253, 252, 255, 0.4); color: var(--ivoire); }
.btn--clair-contour:hover { border-color: var(--ivoire); color: var(--ivoire); background: rgba(253, 252, 255, 0.06); }
.btn--petit { min-height: var(--target-min); padding: 0 var(--space-5); font-size: 15px; }

/* En-tête */
.entete { background: var(--navy); position: relative; z-index: 2; }
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.entete__logo { display: inline-flex; min-height: var(--target-min); align-items: center; }
.entete__logo img { width: 175px; }
@media (max-width: 640px) { .entete__logo img { width: 140px; } }

/* Couverture */
.couverture { position: relative; overflow: hidden; background: var(--navy); color: var(--text-on-dark); padding: var(--space-10) 0 var(--space-11); }
.halo { position: absolute; pointer-events: none; border-radius: 50%; }
.halo--magenta { width: 760px; height: 760px; top: -320px; right: -260px; background: var(--halo-magenta); }
.halo--ambre { width: 620px; height: 620px; bottom: -300px; left: -240px; background: var(--halo-ambre); }
.couverture__in { position: relative; text-align: center; }
.couverture h1 { color: var(--ivoire); max-width: 860px; margin: 0 auto; }
.chapo { color: var(--lavande); max-width: var(--measure); margin: var(--space-5) auto 0; font-size: 19px; }
@media (max-width: 640px) { .couverture { padding: var(--space-8) 0 var(--space-10); } .chapo { font-size: var(--fs-body); } }

.kicker { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-kicker); color: var(--ambre-ink); margin-bottom: var(--space-4); }
.kicker--clair { color: var(--lavande); border: 1px solid var(--border-on-dark); background: rgba(253, 252, 255, 0.06); padding: var(--space-2) var(--space-4); border-radius: var(--r-pill); margin-bottom: var(--space-6); }
.lisere { width: 4px; height: 22px; background: var(--ambre); border-radius: 2px; }

/* Lecteur vidéo */
.lecteur { margin: var(--space-9) auto 0; max-width: 960px; }
.lecteur__cadre { position: relative; border-radius: var(--r-3xl); overflow: hidden; box-shadow: var(--shadow-deck); background: var(--encre); aspect-ratio: 16 / 9; }
.lecteur__cadre video { display: block; width: 100%; height: 100%; object-fit: cover; }
.lecteur__boucle { position: absolute; inset: 0; pointer-events: none; }
.lecteur.en-lecture .lecteur__boucle { display: none; }
.lecteur__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4);
  border: 0; cursor: pointer; color: var(--ivoire); font: inherit;
  background: radial-gradient(circle at center, rgba(42, 39, 83, 0.72), rgba(42, 39, 83, 0.38) 70%);
  transition: background-color var(--dur) var(--ease);
}
.lecteur__play:focus-visible { outline-offset: -6px; }
.lecteur__rond { width: 88px; height: 88px; border-radius: 50%; background: var(--ivoire); color: var(--navy); display: grid; place-items: center; padding-left: 4px; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.lecteur__play:hover .lecteur__rond { background: var(--prune); color: var(--ivoire); }
.lecteur__libelle { font-weight: var(--fw-semibold); font-size: 17px; }
.lecteur.en-lecture .lecteur__play { display: none; }
@media (max-width: 640px) { .lecteur { margin-top: var(--space-7); } .lecteur__rond { width: 64px; height: 64px; } .lecteur__libelle { font-size: 15px; } .lecteur__cadre { border-radius: var(--r-xl); } }
video::cue { font-family: var(--font-body); font-size: 0.95em; background: rgba(42, 39, 83, 0.82); color: var(--ivoire); line-height: 1.4; }

.lecteur__legende { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); color: var(--lavande-2); font-size: var(--fs-caption); text-align: left; }
.lien-bouton { background: none; border: 0; color: var(--lavande); font: inherit; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: var(--target-min); padding: 0 var(--space-2); }
.lien-bouton:hover { color: var(--ivoire); }

/* Sections */
.section { padding: var(--space-11) 0; }
.section--alt { background: var(--surface-alt); }
@media (max-width: 640px) { .section { padding: var(--space-10) 0; } }
.entete-section { max-width: var(--measure); margin-bottom: var(--space-8); }
.entete-section h2::after { content: ""; display: block; width: 80px; height: 2px; background: var(--degrade); margin-top: var(--space-4); }
.intro { margin-top: var(--space-5); }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.chiffre { border: 1px solid var(--border); border-radius: var(--r-3xl); padding: var(--space-7) var(--space-6); background: var(--surface-card); }
.chiffre__val { display: block; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 34px; line-height: 1.1; color: var(--navy); margin-bottom: var(--space-3); }
.chiffre__txt { color: var(--text-muted); font-size: 16px; line-height: 1.55; display: block; }

/* Encadrés */
.encadre { border-radius: var(--r-xl); padding: var(--space-6) var(--space-7); margin-top: var(--space-8); max-width: 820px; }
.encadre__titre { font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.encadre--info { background: var(--rub-findevie-bg); box-shadow: inset 3px 0 0 var(--prune); }
.encadre--info .encadre__titre { color: var(--prune); }
.encadre--noter { background: var(--noter-bg); }
.encadre--noter .encadre__titre { color: var(--ambre-ink); }
@media (max-width: 640px) { .encadre { padding: var(--space-5); } }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1080px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .etapes { grid-template-columns: 1fr; } }
.etape { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-3xl); padding: var(--space-7) var(--space-6); transition: box-shadow var(--dur) var(--ease); }
.etape:hover { box-shadow: var(--shadow-card); }
.etape__num { display: block; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 40px; line-height: 1; color: var(--ambre); margin-bottom: var(--space-5); }
.etape h3 { margin-bottom: var(--space-3); }
.etape p { font-size: 16px; line-height: 1.6; }

/* Avant / après */
.avant-apres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.carte { border-radius: var(--r-3xl); padding: var(--space-7); border: 1px solid var(--border); background: var(--surface-card); }
.carte--apres { background: var(--navy); border-color: var(--navy); color: var(--ivoire); box-shadow: var(--shadow-card); }
.carte--apres h3 { color: var(--ivoire); }
.carte h3 { margin-bottom: var(--space-5); }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.liste li { position: relative; padding-left: 36px; }
.liste li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.liste--croix li { color: var(--text-muted); }
.liste--croix li::before { background: var(--secondaire); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.liste--coche li { color: var(--lavande); }
.liste--coche li::before { background: var(--ambre); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Mot du fondateur */
.mot { display: flex; gap: var(--space-6); align-items: flex-start; max-width: 820px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-3xl); padding: var(--space-7); }
.mot__photo { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.mot__texte { font-size: 19px; color: var(--navy); font-weight: var(--fw-medium); }
.mot__signe { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-caption); }
@media (max-width: 640px) { .mot { flex-direction: column; padding: var(--space-6); } .mot__photo { width: 72px; height: 72px; } .mot__texte { font-size: var(--fs-body); } }

/* Bloc conseiller */
.conseiller { padding-top: var(--space-10); }
.conseiller__carte { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); border: 1.5px solid var(--navy); border-radius: var(--r-3xl); padding: var(--space-8); background: var(--surface-card); }
.conseiller__carte p:not(.kicker) { margin-top: var(--space-3); max-width: 560px; }
.conseiller__carte .btn { flex: none; }
@media (max-width: 760px) { .conseiller__carte { flex-direction: column; align-items: stretch; padding: var(--space-6); gap: var(--space-6); } }

/* Pied */
.pied { position: relative; overflow: hidden; background: var(--navy); color: var(--lavande); }
.halo--pied { width: 600px; height: 600px; bottom: -380px; right: -200px; }
.pied__in { position: relative; padding: var(--space-9) var(--space-6); display: grid; gap: var(--space-4); }
.pied__in img { width: 150px; }
.pied__mentions { font-size: var(--fs-small); color: var(--lavande-2); }
.pied a { color: var(--lavande); }
.pied a:hover { color: var(--ivoire); }

/* Bouton sous la vidéo (sur navy : ivoire plein) */
.couverture__action { margin-top: var(--space-7); }
@media (max-width: 640px) { .couverture__action .btn { width: 100%; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Kit site internet (volet replié en bas de page) */
.btn--contour { border: 2px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; }
.btn--contour:hover { background: var(--fantome); color: var(--navy); }
.kit { padding: 0 0 var(--space-11); }
.kit__volet { border: 1px solid var(--border); border-radius: var(--r-3xl); background: var(--surface-card); }
.kit__volet summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--target-min); padding: var(--space-5) var(--space-7); cursor: pointer; list-style: none; font-weight: var(--fw-semibold); color: var(--navy); border-radius: var(--r-3xl); }
.kit__volet summary::-webkit-details-marker { display: none; }
.kit__volet summary:hover { background: var(--fantome); }
.kit__volet summary svg { flex: none; transition: transform var(--dur) var(--ease); }
.kit__volet[open] summary svg { transform: rotate(180deg); }
.kit__surtitre { display: block; font-family: var(--font-display); font-size: var(--fs-kicker); color: var(--ambre-ink); margin-bottom: var(--space-1); }
.kit__corps { padding: 0 var(--space-7) var(--space-7); }
.kit__etape { font-weight: var(--fw-semibold); color: var(--navy); margin: var(--space-6) 0 var(--space-4); }
.kit__texte { background: var(--surface-alt); border-radius: var(--r-xl); padding: var(--space-6); }
.kit__texte h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin: 0 0 var(--space-3); }
.kit__texte p { margin: 0 0 var(--space-3); max-width: var(--measure); }
.kit__texte p:last-child { margin-bottom: 0; }
.kit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.kit__ok { font-size: var(--fs-small); color: var(--sarcelle-ink); font-weight: var(--fw-semibold); }
.kit__aide { margin: var(--space-3) 0 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-muted); max-width: var(--measure); }
.kit__galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
.kit__res { display: block; border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; text-decoration: none; color: var(--encre); background: var(--surface-card); transition: box-shadow var(--dur) var(--ease); }
.kit__res:hover { box-shadow: var(--shadow-card); color: var(--encre); }
.kit__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: var(--space-4); background: var(--ivoire); }
.kit__img--fonce { background: var(--navy); }
.kit__img--plein { padding: 0; }
.kit__img img { display: block; max-width: 100%; height: auto; }
.kit__img--plein img { width: 100%; height: 100%; object-fit: cover; }
.kit__nom { display: block; padding: var(--space-3) var(--space-4); font-size: var(--fs-small); font-weight: var(--fw-medium); border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .kit__volet summary { padding: var(--space-4) var(--space-5); }
  .kit__corps { padding: 0 var(--space-5) var(--space-5); }
  .kit__texte { padding: var(--space-5); }
  .kit__galerie { grid-template-columns: 1fr 1fr; }
  .kit__actions .btn { flex: 1 1 100%; }
}

/* Menu de l'en-tête */
.entete__nav { display: flex; align-items: center; gap: var(--space-5); }
.entete__lien { display: inline-block; line-height: var(--target-min); white-space: nowrap; color: var(--ivoire); font-size: 15px; font-weight: var(--fw-medium); text-decoration: none; }
.entete__lien:hover { color: var(--lavande); text-decoration: underline; text-underline-offset: 3px; }
.entete__lien[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--ambre); text-decoration-thickness: 2px; }
@media (max-width: 760px) { .entete__long { display: none; } .entete__nav { gap: var(--space-3); } .entete__lien { font-size: 14px; } }
@media (max-width: 420px) { .entete__nav .btn--petit { padding: 0 var(--space-4); font-size: 14px; } }

/* Page « Intégrer tranquillite.fr à votre site » */
.kit-tete { position: relative; background: var(--navy); color: var(--lavande); overflow: hidden; padding: var(--space-10) 0 var(--space-9); }
.kit-tete .conteneur { position: relative; z-index: 1; }
.kit-tete h1 { color: var(--ivoire); font-size: var(--fs-h1); line-height: var(--lh-h1); max-width: 760px; }
.kit-tete p.chapo { max-width: var(--measure); margin: var(--space-4) 0 0; }
.kit-section { padding: var(--space-10) 0 0; }
.kit-section:last-of-type { padding-bottom: var(--space-11); }
.kit-section .intro { max-width: var(--measure); margin: var(--space-3) 0 var(--space-6); }
.kit-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.kit-champ { border: 1px solid var(--border); border-radius: var(--r-2xl); padding: var(--space-5); background: var(--surface-card); }
.kit-champ .kit-champ__nom { font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 var(--space-1); }
.kit-champ .kit-champ__valeur { font-weight: var(--fw-semibold); color: var(--navy); margin: 0 0 var(--space-3); word-break: break-all; }
.kit-guide { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); max-width: var(--measure); }
.kit-guide li { font-size: 16px; line-height: 1.6; }
.kit-guide strong { color: var(--navy); }
.kit-apercu { border: 1px dashed var(--ligne); border-radius: var(--r-2xl); padding: var(--space-6); background: var(--ivoire); margin-top: var(--space-4); }
.entete__nav .btn { white-space: nowrap; }
.entete__logo { flex: none; }
@media (max-width: 520px) {
  .entete__in { flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); row-gap: var(--space-1); }
  .entete__nav { width: 100%; justify-content: space-between; }
}
/* Menu : lien d'intégration discret, bouton d'accès plein ivoire tout à droite */
.entete__nav .entete__lien { font-size: 14px; color: var(--lavande); }
.entete__nav .entete__lien:hover { color: var(--ivoire); }

/* FAQ conseillers */
.faq { padding-top: 0; }
.faq__liste { display: grid; gap: var(--space-3); max-width: 820px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-3xl); background: var(--surface-card); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--target-min); padding: var(--space-5) var(--space-6); cursor: pointer; list-style: none; font-weight: var(--fw-semibold); color: var(--navy); border-radius: var(--r-3xl); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--fantome); }
.faq__item summary svg { flex: none; transition: transform var(--dur) var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 var(--space-6) var(--space-6); max-width: var(--measure); }
@media (max-width: 640px) { .faq__item summary { padding: var(--space-4) var(--space-5); } .faq__item p { padding: 0 var(--space-5) var(--space-5); } }
.faq__contact { margin: var(--space-6) 0 0; max-width: var(--measure); }

/* Précision sous un chiffre, montant mis en avant dans la carte navy */
.chiffre__note { display: block; margin-top: var(--space-3); font-style: italic; font-size: var(--fs-small); line-height: 1.55; color: var(--text-muted); }
.carte__chiffre { margin: calc(-1 * var(--space-2)) 0 var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-on-dark); color: var(--lavande); }
.carte__montant { display: block; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 40px; line-height: 1.1; color: var(--ivoire); }

/* Bandeau de réassurance, entre la vidéo et la première section */
.reassurance { background: var(--surface-alt); border-bottom: 1px solid var(--border); padding: var(--space-8) 0; }
.reassurance__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.reassurance__liste li { display: flex; flex-direction: column; gap: var(--space-1); color: var(--text-muted); font-size: 15px; line-height: 1.45; padding-left: var(--space-5); border-left: 2px solid var(--ambre); }
.reassurance__val { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 30px; line-height: 1.1; color: var(--navy); }
.reassurance__etoile { color: var(--ambre); font-size: 0.8em; }
@media (max-width: 640px) { .reassurance__liste { grid-template-columns: 1fr; row-gap: var(--space-5); } }
@media (max-width: 640px) { .reassurance { padding: var(--space-7) 0; } .reassurance__val { font-size: 24px; } .reassurance__liste li { font-size: 14px; padding-left: var(--space-4); } }

/* Chiffres : 3 colonnes en grand écran ; sur tablette, cartes en ligne (chiffre à gauche) pour éviter une carte orpheline */
.chiffres { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .chiffres { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .chiffre { display: grid; grid-template-columns: 250px 1fr; column-gap: var(--space-6); align-items: start; }
  .chiffre__val { grid-row: span 2; margin-bottom: 0; }
  .chiffre__note { grid-column: 2; }
}
