/* =========================================================
   ANNIA — Feuille de style de marque
   Palette et typographie conformes au dossier 04_ANNIA_creation.md
   ========================================================= */

:root {
  --ivoire: #FBF7F0;
  --grege: #EDE4D8;
  --sauge: #3E5C50;
  --sauge-clair: #557567;
  --terre: #C4704F;
  --terre-fonce: #A85C3E;
  --cuivre: #A9713F;
  --encre: #2A2724;
  --taupe: #6B635A;
  --succes: #4A7C59;
  --trustpilot: #00B67A;

  --ff-titre: 'Fraunces', 'Playfair Display', Georgia, serif;
  --ff-corps: 'Inter', 'Source Sans 3', -apple-system, sans-serif;
  --ff-signature: 'Caveat', cursive;

  --radius: 14px;
  --ombre: 0 2px 18px rgba(42, 39, 36, .07);
  --ombre-forte: 0 10px 40px rgba(42, 39, 36, .12);
}

/* ---------- Base ---------- */
body {
  font-family: var(--ff-corps);
  background: var(--ivoire);
  color: var(--encre);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h-serif {
  font-family: var(--ff-titre);
  color: var(--sauge);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

a { color: var(--cuivre); text-decoration: none; }
a:hover { color: var(--terre); text-decoration: underline; }

.lead { font-size: 1.15rem; color: var(--taupe); }
.text-taupe { color: var(--taupe) !important; }
.text-sauge { color: var(--sauge) !important; }
.text-terre { color: var(--terre) !important; }
.bg-grege { background: var(--grege); }
.bg-ivoire { background: var(--ivoire); }
.bg-sauge { background: var(--sauge); color: #fff; }
.bg-sauge h2, .bg-sauge h3 { color: #fff; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

/* Signature manuscrite — réservée à « — Annia x » */
.signature {
  font-family: var(--ff-signature);
  font-size: 2rem;
  color: var(--cuivre);
  line-height: 1;
}

/* Filet cuivre décoratif */
.filet {
  width: 54px; height: 2px;
  background: var(--cuivre);
  border: 0; opacity: 1; margin: 20px 0;
}
.filet-center { margin-left: auto; margin-right: auto; }

.surtitre {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cuivre);
  font-weight: 600;
}

/* ---------- Navigation ---------- */
.navbar-annia {
  background: rgba(251, 247, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(169, 113, 63, .18);
  padding: .55rem 0;
}
.navbar-annia .navbar-brand {
  font-family: var(--ff-titre);
  font-size: 1.65rem;
  color: var(--sauge);
  font-weight: 600;
  letter-spacing: .04em;
}
.navbar-annia .nav-link {
  color: var(--encre);
  font-size: .97rem;
  font-weight: 500;
  padding: .5rem 1rem !important;
}
.navbar-annia .nav-link:hover,
.navbar-annia .nav-link.active { color: var(--terre); }
.navbar-annia .navbar-toggler { border-color: rgba(62, 92, 80, .25); }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: 100px; padding: .8rem 1.9rem; border: 0; }
.btn-annia {
  background: var(--terre);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 112, 79, .28);
  transition: all .18s ease;
}
.btn-annia:hover { background: var(--terre-fonce); color: #fff; transform: translateY(-1px); }
.btn-sauge { background: var(--sauge); color: #fff; }
.btn-sauge:hover { background: #334C42; color: #fff; }
.btn-outline-annia {
  background: transparent;
  color: var(--sauge);
  border: 1.5px solid var(--sauge);
}
.btn-outline-annia:hover { background: var(--sauge); color: #fff; }
.btn-lg-annia { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #FBF7F0 0%, #F3EAE0 100%);
  padding: 64px 0 72px;
}
.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--ombre-forte);
  width: 100%;
  object-fit: cover;
}

/* ---------- Cartes ---------- */
.card-annia {
  background: #fff;
  border: 1px solid rgba(169, 113, 63, .14);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  height: 100%;
}
.card-annia .card-body { padding: 1.9rem; }

/* ---------- Badge Trustpilot ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border: 1px solid rgba(0, 182, 122, .3);
  border-radius: 100px;
  padding: .45rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre);
}
.stars { color: var(--trustpilot); letter-spacing: 1px; }
.star-terre { color: var(--terre); }

/* ---------- Tarifs ---------- */
.plan {
  background: #fff;
  border: 1px solid rgba(169, 113, 63, .16);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  height: 100%;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.plan.plan-vedette {
  border: 2px solid var(--terre);
  box-shadow: var(--ombre-forte);
}
.plan-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--terre); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem 1rem; border-radius: 100px; white-space: nowrap;
}
.plan-prix {
  font-family: var(--ff-titre);
  font-size: 2.9rem; font-weight: 700; color: var(--terre); line-height: 1;
}
.plan-barre { color: var(--taupe); text-decoration: line-through; font-size: 1.1rem; }
.plan-remise {
  background: rgba(74, 124, 89, .12); color: var(--succes);
  font-size: .78rem; font-weight: 700; padding: .18rem .6rem; border-radius: 100px;
}
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0; }
.plan ul li { padding: .42rem 0 .42rem 1.7rem; position: relative; font-size: .98rem; }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--succes); font-weight: 700;
}
.plan ul li.off { color: #b3aca3; }
.plan ul li.off::before { content: "—"; color: #cfc8bf; }

/* ---------- Témoignages ---------- */
.avis {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(169, 113, 63, .14);
  padding: 1.7rem;
  height: 100%;
}
.avis-txt { font-size: 1rem; }
.avis-auteur { font-size: .88rem; color: var(--taupe); font-weight: 600; }

/* ---------- Étapes ---------- */
.etape-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sauge); color: #fff;
  font-family: var(--ff-titre); font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 46px;
}

/* ---------- Garantie ---------- */
.garantie {
  background: var(--grege);
  border-left: 4px solid var(--succes);
  border-radius: 8px;
  padding: 1.5rem 1.7rem;
}

/* ---------- Récit (page Mon histoire) ---------- */
.recit { max-width: 720px; margin: 0 auto; }
.recit p { margin-bottom: 1.5rem; font-size: 1.12rem; }
.recit p.chapeau {
  font-family: var(--ff-titre);
  font-size: 1.42rem;
  color: var(--sauge);
  line-height: 1.45;
}
.recit-citation {
  border-left: 3px solid var(--cuivre);
  padding-left: 1.5rem;
  font-family: var(--ff-titre);
  font-size: 1.3rem;
  color: var(--sauge);
  font-style: italic;
  margin: 2.4rem 0;
}

/* ---------- Accordéon FAQ ---------- */
.accordion-annia .accordion-item {
  background: #fff;
  border: 1px solid rgba(169, 113, 63, .16);
  border-radius: var(--radius) !important;
  margin-bottom: .85rem;
  overflow: hidden;
}
.accordion-annia .accordion-button {
  font-family: var(--ff-titre);
  font-size: 1.08rem;
  color: var(--sauge);
  background: #fff;
  font-weight: 600;
  padding: 1.15rem 1.4rem;
}
.accordion-annia .accordion-button:not(.collapsed) {
  background: var(--grege); color: var(--sauge); box-shadow: none;
}
.accordion-annia .accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-annia .accordion-body { color: var(--taupe); padding: 0 1.4rem 1.3rem; }

/* ---------- Formulaires ---------- */
.form-label { font-weight: 600; font-size: .95rem; color: var(--sauge); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid rgba(169, 113, 63, .25);
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: var(--encre);
}
.form-control:focus, .form-select:focus {
  border-color: var(--sauge);
  box-shadow: 0 0 0 3px rgba(62, 92, 80, .12);
}
.form-text { color: var(--taupe); font-size: .87rem; }
.form-check-input:checked { background-color: var(--sauge); border-color: var(--sauge); }

/* Order bump */
.bump {
  background: #fff;
  border: 2px dashed var(--terre);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.bump-don {
  background: #fff;
  border: 1px solid rgba(169, 113, 63, .22);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

/* ---------- Bandeau abonnement ---------- */
.cercle {
  background: var(--sauge);
  color: #fff;
  border-radius: 18px;
  padding: 2.6rem;
}
.cercle ul { list-style: none; padding: 0; }
.cercle ul li { padding: .4rem 0 .4rem 1.8rem; position: relative; }
.cercle ul li::before {
  content: "✦"; position: absolute; left: 0; color: #E8C9A0;
}

/* ---------- Pied de page ---------- */
.footer {
  background: #EFE7DB;
  border-top: 1px solid rgba(169, 113, 63, .2);
  padding: 56px 0 28px;
  font-size: .94rem;
}
.footer a { color: var(--taupe); }
.footer a:hover { color: var(--terre); }
.footer h5 {
  font-family: var(--ff-titre); font-size: 1.05rem; color: var(--sauge); margin-bottom: 1rem;
}
.disclaimer {
  font-size: .84rem; color: var(--taupe);
  border-top: 1px solid rgba(169, 113, 63, .2);
  padding-top: 1.4rem; margin-top: 1.8rem;
}

/* ---------- Utilitaires ---------- */
.img-ronde { border-radius: 50%; object-fit: cover; }
.img-douce { border-radius: var(--radius); box-shadow: var(--ombre); object-fit: cover; width: 100%; }
.max-680 { max-width: 680px; }
.max-780 { max-width: 780px; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.vu { opacity: 1; transform: none; }

@media (max-width: 767.98px) {
  body { font-size: 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  .cercle { padding: 1.8rem; }
}

/* =========================================================
   CONTACT — bloc de contact redessiné
   ========================================================= */

/* En-tête de contact : bande sauge pleine largeur */
.contact-hero {
  background: var(--sauge);
  color: #fff;
  padding: 76px 0 92px;
  position: relative;
  overflow: hidden;
}
.contact-hero h1, .contact-hero h2 { color: #fff; }
.contact-hero .surtitre { color: #E8C9A0; }
.contact-hero .lead { color: rgba(255, 255, 255, .82); }
.contact-hero .filet { background: #E8C9A0; }

/* Portrait rond incrusté dans la bande */
.contact-portrait {
  width: 168px; height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, .22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

/* Chiffres de réassurance sur fond sauge */
.contact-chiffres {
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  margin-top: 2rem;
}
.contact-chiffre-val {
  font-family: var(--ff-titre);
  font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.1;
}
.contact-chiffre-lib {
  font-size: .9rem; color: rgba(255, 255, 255, .72); margin: 0;
}

/* Carte de formulaire qui chevauche la bande sauge */
.contact-carte {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(42, 39, 36, .14);
  padding: 2.6rem;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

/* Choix du motif sous forme de tuiles cliquables */
.motif-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.motif-tuile {
  border: 1.5px solid rgba(169, 113, 63, .25);
  border-radius: 12px;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  font-size: .95rem;
  font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
  background: #fff;
  margin: 0;
}
.motif-tuile:hover { border-color: var(--sauge); }
.motif-tuile input { display: none; }
.motif-tuile.actif {
  border-color: var(--terre);
  background: rgba(196, 112, 79, .07);
  color: var(--terre-fonce);
  font-weight: 600;
}
.motif-tuile .puce {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(169, 113, 63, .3); flex: 0 0 9px;
}
.motif-tuile.actif .puce { background: var(--terre); }

/* Bloc latéral d'aide rapide */
.aide-item {
  display: flex; gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(169, 113, 63, .16);
}
.aide-item:last-child { border-bottom: 0; }
.aide-icone {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  background: var(--grege);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.aide-item h4 {
  font-family: var(--ff-titre); font-size: 1.02rem;
  color: var(--sauge); margin: 0 0 .2rem;
}
.aide-item p { margin: 0; font-size: .93rem; color: var(--taupe); line-height: 1.5; }

/* Note manuscrite d'Annia */
.note-annia {
  background: var(--grege);
  border-radius: 18px;
  padding: 2.2rem;
  position: relative;
}
.note-annia::before {
  content: "\201C";
  font-family: var(--ff-titre);
  font-size: 5rem; color: var(--cuivre); opacity: .28;
  position: absolute; top: -6px; left: 18px; line-height: 1;
}

@media (max-width: 767.98px) {
  .contact-hero { padding: 52px 0 76px; }
  .contact-carte { padding: 1.6rem; margin-top: -48px; }
  .motif-grille { grid-template-columns: 1fr; }
  .contact-chiffres { gap: 1.6rem; }
}

/* =========================================================
   PAGES JURIDIQUES (/legal/)
   Meme feuille pour la page du site et pour la version
   affichee en iframe dans les tunnels (.legal-embed).
   ========================================================= */
.legal-page { padding: 64px 0 88px; }

/* Onglets entre les quatre documents */
.legal-onglets {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.4rem;
}
.legal-onglets a {
  font-size: .86rem; letter-spacing: .02em;
  color: var(--taupe); text-decoration: none;
  padding: .38rem .85rem;
  border: 1px solid var(--grege); border-radius: 999px;
  background: #fff;
  transition: color .15s, border-color .15s, background .15s;
}
.legal-onglets a:hover { color: var(--sauge); border-color: var(--sauge-clair); }
.legal-onglets a.actif {
  color: #fff; background: var(--sauge); border-color: var(--sauge);
}

/* Le document lui-meme */
.legal-doc {
  background: #fff;
  border: 1px solid var(--grege);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 3rem 2.6rem 2.4rem;
  font-size: 1rem; line-height: 1.7;
  color: var(--encre);
}
.legal-doc h1 {
  font-family: var(--ff-titre); color: var(--sauge);
  font-size: 2.1rem; line-height: 1.2; margin: 0 0 .35rem;
}
.legal-doc .legal-eff {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cuivre); margin: 0 0 2rem;
}
.legal-doc h2 {
  font-family: var(--ff-titre); color: var(--sauge);
  font-size: 1.28rem; line-height: 1.3;
  margin: 2.3rem 0 .6rem; padding-top: 1.3rem;
  border-top: 1px solid var(--grege);
}
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.legal-doc li { margin-bottom: .45rem; }
.legal-doc strong { color: var(--encre); font-weight: 600; }
.legal-doc a { color: var(--terre-fonce); text-decoration: underline; }
.legal-doc a:hover { color: var(--cuivre); }
.legal-sign {
  margin: 2.6rem 0 0; padding-top: 1.2rem;
  border-top: 1px solid var(--grege);
  font-size: .86rem; color: var(--taupe); text-align: center;
}

/* Version iframe : pas de chrome, pas de marge perdue */
.legal-embed { background: #fff; font-size: 16px; }
.legal-embed .legal-page { padding: 26px 0 40px; }
.legal-embed .legal-doc {
  border: 0; box-shadow: none; border-radius: 0;
  padding: 0; font-size: .95rem;
}
.legal-embed .legal-doc h1 { font-size: 1.62rem; }
.legal-embed .legal-doc h2 { font-size: 1.12rem; }
.legal-onglets--embed { margin: 2rem 0 0; justify-content: center; }

@media (max-width: 767.98px) {
  .legal-page { padding: 34px 0 56px; }
  .legal-doc { padding: 1.9rem 1.4rem 1.6rem; }
  .legal-doc h1 { font-size: 1.72rem; }
}
