/* Corrections issues de la critique finale (chargées sur toutes les pages, en dernier). */
:root { --bord-champ: #7d8a81; }

/* Ancres : ne pas atterrir sous l'en-tête collant */
html { scroll-padding-top: 5.5rem; }
@media (max-width: 860px) { html { scroll-padding-top: 7.5rem; } }

/* Focus clavier visible partout, y compris sur fond vert */
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }
.pied :focus-visible, .suite :focus-visible, section.eau .ebook :focus-visible, .annonce :focus-visible { outline-color: #fff; }
body.ujv-flatsome input:focus-visible, body.ujv-flatsome select:focus-visible, body.ujv-flatsome textarea:focus-visible, body.ujv-flatsome .button:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }

/* Contours de champs lisibles (3:1 minimum) */
.champ input, .champ select, .champ textarea, .recherche input, .inscription input[type="email"], .carte-form .inscription input,
.contenu input[type="text"], .contenu input[type="email"], .contenu input[type="tel"], .contenu input[type="url"], .contenu textarea, .contenu select,
.achat-woo select, .achat-woo input[type="number"] { border-color: var(--bord-champ); }
body.ujv-flatsome input[type="text"], body.ujv-flatsome input[type="email"], body.ujv-flatsome input[type="tel"], body.ujv-flatsome input[type="password"],
body.ujv-flatsome select, body.ujv-flatsome textarea, body.ujv-flatsome .select2-selection { border-color: var(--bord-champ) !important; }
::placeholder { color: var(--gris); opacity: 1; }

/* Navigation : page courante lisible autrement que par la couleur */
.entete nav a[aria-current] { color: var(--encre); font-weight: 600; box-shadow: inset 0 -2px 0 var(--vert); }
@media (max-width: 860px) {
  .entete nav a { font-size: .95rem; }
  .entete ul { gap: 1.1rem; }
  .entete nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
}

/* Pastille du panier */
.panier-nb { background: var(--vert); }

/* Boutons longs : retour à la ligne plutôt que débordement */
.acheter.large { white-space: normal; text-align: center; }

/* Offres complémentaires : lien visible vers la fiche, boutons alignés en bas */
.seuls li { grid-template-rows: 1fr auto; }
.seuls .lien-fiche { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 1000px) and (min-width: 521px) { .seuls .lien-fiche { grid-column: 2 / -1; justify-self: start; } }

/* ——— Version 1.1 ——— */

/* Icône « Mon compte » à côté du panier */
.compte { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--filet); color: var(--encre); flex: none; }
.compte:hover { border-color: var(--vert); color: var(--vert); }
.compte svg { width: 1.25rem; height: 1.25rem; }
.entete .cadre > .compte { margin-right: -.75rem; }
@media (max-width: 860px) { .entete .cadre > .compte { margin-left: auto; margin-right: 0; } .entete .cadre > .panier { margin-left: 0; } }

@media (max-width: 480px) {
  .entete .cadre { column-gap: .5rem; }
  .marque { font-size: 1rem; gap: .45rem; }
  .marque img { height: 1.875rem; width: auto; }
  .entete .cadre > .compte { width: 2.5rem; height: 2.5rem; }
  .panier { padding: .42rem .75rem; }
}

/* Tuiles avec icônes : « Ce que vous saurez faire » et « Laquelle choisir ? » */
.tete-section { max-width: 44rem; }
.tuiles { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.tuiles li { background: var(--fond); border-radius: var(--rayon); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.tuile-icone { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--vert-pale); color: var(--vert); margin-bottom: .5rem; }
.tuile-icone svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tuiles h3 { font-size: 1.12rem; }
.tuiles p { margin: 0; color: var(--gris); font-size: .98rem; line-height: 1.55; }
.tuiles li > a { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--vert); font-size: .98rem; }
.tuile--action { background: var(--vert) !important; color: #fff; }
.tuile--action .tuile-icone { background: rgb(255 255 255 / .16); color: #fff; }
.tuile--action p a { color: #fff; font-weight: 600; }
.tuile--action :focus-visible { outline-color: #fff; }
@media (max-width: 1000px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .tuiles li { padding: 1.1rem 1rem 1.2rem; } .tuiles h3 { font-size: 1.02rem; } .tuiles p { font-size: .92rem; } }

/* Trois chiffres clés */
.reperes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.julie + .cadre .reperes { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--filet); }
.reperes strong { display: block; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--vert); }
.reperes span { display: block; margin-top: .5rem; font-size: 1.05rem; color: var(--gris); }
section.sans-bas { padding-bottom: 0; }
@media (max-width: 640px) { .reperes { grid-template-columns: 1fr; gap: 2rem; } }

/* Témoignages de l'accueil : étoiles et photo de profil */
.avis-grille blockquote .etoiles { width: 5.4rem; height: 1rem; color: var(--or); }
.avis-grille blockquote footer { display: flex; align-items: center; gap: .75rem; line-height: 1.35; }
.avis-grille .avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--vert-pale); color: var(--vert); font-weight: 700; font-size: 1.1rem; flex: none; }
.avis-grille footer strong { color: var(--encre); }

/* Packs avec la BD : cartes discrètes */
.avec-bd { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--filet); }
.avec-bd-titre { font-size: 1.05rem; color: var(--gris); font-weight: 600; }
/* Mêmes cartes que les offres complémentaires (.seuls), en plus bas : image, marges et textes réduits */
.avec-bd .seuls--discret { margin-top: 1.1rem; }
.seuls--discret li { padding: .75rem; gap: .5rem .9rem; grid-template-columns: 4.25rem 1fr; }
@media (max-width: 1000px) and (min-width: 521px) { .seuls--discret li { grid-template-columns: 4.25rem 1fr auto; } }
.seuls--discret li > a:first-child img { width: 4.25rem; }
.seuls--discret h4 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.seuls--discret h4 a { text-decoration: none; }
.seuls--discret h4 a:hover { text-decoration: underline; }
.seuls--discret p { margin: .2rem 0 0; font-size: .88rem; line-height: 1.4; }
.seuls--discret .prix { font-size: 1.02rem; margin-top: .3rem; }
.seuls--discret .bouton { min-height: 2.35rem; padding: .3em 1em; font-size: .9rem; }
.avec-bd > .petit { margin: 1.1rem 0 0; }

/* Offre complémentaire mise en avant (Pack Intégral) : teinte blé très légère, filet doré, pastille */
.seuls li.seul--avant { background: #fdf8ec; border-color: #e8cf94; box-shadow: 0 0 0 3px #f8edd2; }
.pastille { display: inline-flex; margin-bottom: .4rem; padding: .15rem .6rem; border-radius: 999px; background: #f6e4b8; color: #6b4600; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }

/* Note par étoiles dans le formulaire d'avis */
.note-etoiles { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.note-etoiles legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .3rem; }
.note-etoiles > div { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.note-etoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.note-etoiles label { cursor: pointer; padding: .2rem; display: block; margin: 0; }
.note-etoiles svg { width: 2.1rem; height: 2.1rem; display: block; fill: var(--filet); stroke: var(--bord-champ); stroke-width: .6; transition: fill .15s; }
.note-etoiles input:checked ~ label svg, .note-etoiles label:hover svg, .note-etoiles label:hover ~ label svg { fill: var(--or); stroke: var(--or); }
.note-etoiles input:focus-visible + label { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 6px; }
.deposer-avis .champ { display: grid; gap: .3rem; }
.deposer-avis label { font-weight: 600; font-size: .95rem; }
.deposer-avis input[type="text"], .deposer-avis input[type="email"] { min-height: 3rem; padding: .5em .9em; font: inherit; border: 1.5px solid var(--bord-champ); border-radius: 10px; width: 100%; background: #fff; }
.deposer-avis .form-submit { margin: 0; }
section#avis.sans-haut .deposer-avis { margin-top: 0; background: var(--doux); }

/* Page ebook : mention du livre dès le premier écran */
.aimant .mention-livre { margin-top: 1.25rem; font-size: .98rem; color: var(--gris); }
@media (max-width: 860px) { .aimant .mention-livre { order: 7; } }
