/* ===== v3-retouches : corrections du client sur l'accueil (bannière, chapitres, atelier, familles, guide, pied) ===== */

/* ---------- 1. Bannière : tout l'écran sous le menu, le handpan de la photo jamais coupé ---------- */
/* Le cadrage (object-position) est calculé dans ambiance.js pour garder tout le handpan avec une marge. */
.hero-photo { height: calc(100svh - var(--haut-entete, 100px)) !important; min-height: 560px; }
@media (min-width: 901px) {
	/* le texte passe à droite, sur les roches : il ne touche plus le handpan (à gauche de la photo) */
	.hero-photo .verre-gauche { left: auto !important; right: clamp(20px, 3vw, 48px); top: 50% !important; bottom: auto !important; translate: 0 -50%; width: min(352px, 26vw) !important; }
	/* l'avis client monte dans le ciel, en haut à gauche, au-dessus du handpan */
	.hero-photo .verre-droite { right: auto !important; left: clamp(20px, 3vw, 48px); top: clamp(20px, 4vh, 40px); bottom: auto !important; width: min(300px, 21vw) !important; }
}
@media (max-width: 1180px) and (min-width: 901px) { .hero-photo .verre-gauche { width: 300px !important; } }
@media (max-width: 900px) {
	/* téléphone : la photo prend la place restante, le texte dessous, sans jamais recouvrir le handpan */
	.hero-photo { display: flex !important; flex-direction: column; height: calc(100svh - var(--haut-entete, 90px)) !important; min-height: 600px; padding: 0 0 14px !important; }
	.hero-photo .hp-photo { position: relative !important; inset: auto !important; flex: 1 1 auto !important; height: auto !important; min-height: 0; }
	.hero-photo .hp-photo::after { background: linear-gradient(0deg, rgba(247,245,240,1) 0, rgba(247,245,240,0) 9%) !important; }
	.hero-photo .verre-gauche { margin: 0 14px !important; padding: 18px 18px 16px !important; flex: none; }
	.hero-photo .verre-titre { font-size: 1.7rem !important; margin: 0 0 6px !important; }
	.hero-photo .verre-texte { font-size: .92rem !important; line-height: 1.45 !important; margin: 0 0 10px !important; }
	.hero-photo .verre-prix { margin: 0 0 12px !important; }
	.hero-photo .verre-note { margin: 10px 0 0 !important; }
	.hero-photo .eau-defiler { display: none !important; }
}

/* ---------- 2. « Un acier qui chante » : fond chaux et lumière, aura dorée, le handpan doré ---------- */
.chapitres .chap-scene { background:
	radial-gradient(ellipse 46% 52% at 50% 56%, rgba(255,247,228,1) 0, rgba(250,240,218,.75) 38%, rgba(247,245,240,0) 72%),
	radial-gradient(ellipse 80% 70% at 50% 60%, rgba(201,164,106,.16), transparent 70%),
	linear-gradient(180deg, #fbfaf7 0, #f7f5f0 100%) !important; }
@media (min-width: 901px) { .chapitres .chap-tete { top: 158px !important; } }
.chapitres .chap-anneau { border-color: rgba(184,149,92,.38) !important; box-shadow: none !important; }
.chapitres .chap-ombre { background: radial-gradient(closest-side, rgba(138,106,58,.28), transparent) !important; }
.chapitres .chap-img { filter: drop-shadow(0 28px 34px rgba(138,106,58,.28)); }
.chapitres .chap-tete .surtitre { color: var(--or-fonce, #8a6a3a) !important; }
.chapitres .chap-titre, .chapitres .chap-nom { color: var(--encre, #1d2b45) !important; }
.chapitres .chap-titre em { color: var(--or-fonce, #8a6a3a) !important; }
.chapitres .chap-texte, .chapitres .chap-num { color: #4a5568 !important; }
.chapitres .chap-num span { color: var(--or-fonce, #8a6a3a) !important; }
.chapitres .chap-progres { background: rgba(184,149,92,.22) !important; }
.chapitres .chap-progres span { background: var(--or, #b8955c) !important; }

/* ---------- 3. Atelier : la vraie photo du modèle choisi, les notes posées dans ses creux ---------- */
.schema.schema-sur-photo { position: relative; }
.schema-sur-photo .schema-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; pointer-events: none;
	filter: drop-shadow(0 26px 30px rgba(29,43,69,.22)); transition: opacity .3s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.schema-sur-photo .schema-photo.change { opacity: .25; }
.schema-sur-photo svg { position: relative; z-index: 1; }
.schema-sur-photo .s-coque { fill: transparent !important; stroke: none !important; }
.schema-sur-photo .s-forme { fill: rgba(255,255,255,.04) !important; stroke: rgba(255,255,255,.55) !important; stroke-width: 1.3 !important; }
.schema-sur-photo .s-champ:hover .s-forme { stroke: #fff !important; fill: rgba(255,255,255,.14) !important; }
.schema-sur-photo .s-champ.joue .s-forme { fill: rgba(255,236,196,.55) !important; stroke: #fff !important; }
.schema-sur-photo .s-texte { fill: #fff !important; font-weight: 600; paint-order: stroke; stroke: rgba(29,43,69,.55); stroke-width: 2.4px; }
.schema-sur-photo .s-ajout .s-forme, .schema-sur-photo .s-bas .s-forme { fill: rgba(29,43,69,.35) !important; }

/* ---------- 4. Familles : des cartes avec la photo de chaque famille ---------- */
.fam-grille { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; max-width: 1200px; }
.fam { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--encre, #1d2b45);
	background: #fff; border: 1px solid rgba(184,149,92,.22); box-shadow: 0 30px 60px -46px rgba(29,43,69,.4);
	transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.fam:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(201,164,106,.45), 0 36px 70px -40px rgba(29,43,69,.45); }
.fam-une { grid-row: span 2; }
.fam-visuel { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
	background: radial-gradient(circle at 50% 58%, rgba(201,164,106,.20), transparent 62%), linear-gradient(180deg, #eaf3fd 0, #fbfaf7 100%); }
.fam-une .fam-visuel { aspect-ratio: auto; flex: 1 1 auto; min-height: 340px; }
.fam:not(.fam-une) .fam-visuel { aspect-ratio: 16 / 10; }
.fam-visuel img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: auto; height: 76%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(29,43,69,.22)); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.fam-une .fam-visuel img { height: auto; width: 64%; }
.fam:hover .fam-visuel img { transform: scale(1.04) rotate(4deg); }
.fam-texte { display: grid; gap: 6px; padding: 20px 22px 20px; }
.fam-une .fam-texte { padding: 26px 28px 26px; }
.fam-badge { justify-self: start; font: 600 .7rem/1 "Inter Tight", var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--or-fonce, #8a6a3a); background: rgba(201,164,106,.14); padding: 7px 10px; border-radius: 999px; margin-bottom: 4px; }
.fam-nom { font: 700 1.45rem/1.1 "Inter Tight", var(--sans); letter-spacing: -.025em; }
.fam-une .fam-nom { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.fam-phrase { font-size: .95rem; line-height: 1.5; color: #4a5568; text-wrap: pretty; }
.fam-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.fam-info { font-size: .84rem; color: var(--or-fonce, #8a6a3a); }
.fam-fleche { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(47,111,208,.3); transition: background .3s, transform .3s; }
.fam-fleche svg { stroke: var(--egee, #2f6fd0) !important; }
.fam:hover .fam-fleche { background: var(--egee, #2f6fd0); transform: translateX(3px); }
.fam:hover .fam-fleche svg { stroke: #fff !important; }
@media (max-width: 1100px) and (min-width: 701px) { .fam-grille { grid-template-columns: 1fr 1fr; } .fam-une { grid-row: auto; grid-column: span 2; flex-direction: row; } .fam-une .fam-visuel { min-height: 260px; flex: 1 1 50%; } .fam-une .fam-texte { flex: 1 1 50%; align-content: center; } }
@media (max-width: 700px) {
	.fam-grille { grid-template-columns: 1fr 1fr; gap: 12px; }
	.fam-une { grid-row: auto; grid-column: span 2; }
	.fam-une .fam-visuel { min-height: 0; aspect-ratio: 16 / 10; }
	.fam-texte { padding: 14px 14px 14px; }
	.fam-nom { font-size: 1.12rem; }
	.fam:not(.fam-une) .fam-phrase { display: none; }
	.fam-info { font-size: .78rem; }
	.fam:not(.fam-une) .fam-fleche { display: none; }
}

/* ---------- 5. Pied de page : clair, et le O d'ONDÉA est le handpan bleu ---------- */
.pied { background: linear-gradient(180deg, #fbfaf7 0, #f3f7fc 100%) !important; border-top: 1px solid rgba(184,149,92,.3); color: var(--encre, #1d2b45) !important; }
.pied, .pied * { color: var(--encre, #1d2b45) !important; }
.pied a:hover { color: var(--egee, #2f6fd0) !important; opacity: 1 !important; }
.pied .pied-titre { color: var(--or-fonce, #8a6a3a) !important; letter-spacing: .2em; text-transform: uppercase; font-size: .74rem !important; }
.pied .pied-plan, .pied .pied-lettre-in { background: transparent !important; border-color: rgba(184,149,92,.25) !important; box-shadow: none !important; }
.pied .pied-bas, .pied .pied-bas * { color: #5b6476 !important; }
.pied .pied-lettre .bouton-clair { background: var(--egee, #2f6fd0) !important; color: #fff !important; }
.pied .pied-geant { color: var(--encre, #1d2b45) !important; align-items: baseline !important; padding-top: .16em !important; }
.pied .mg-o-photo { position: relative; display: inline-block; width: .74em !important; height: .74em !important; transform: none !important; margin-right: .03em !important; }
.pied .mg-o-photo img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 .03em .04em rgba(29,43,69,.25)); transform: scale(1.04); }
.pied svg { stroke: currentColor; }

/* ---------- 6. Guide offert : une carte claire, le livre posé sur un halo ---------- */
.gd-carte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 5vw, 80px); max-width: 1120px;
	padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: #fff; border: 1px solid rgba(184,149,92,.28); box-shadow: 0 40px 90px -60px rgba(29,43,69,.45); overflow: hidden; position: relative; }
.gd-visuel { position: relative; display: grid; place-items: center; padding: clamp(16px, 3vw, 32px) 0; }
.gd-halo { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(201,164,106,.30) 0, rgba(142,192,242,.22) 46%, transparent 70%); }
.gd-livre { position: relative; width: min(300px, 78%); height: auto; border-radius: 4px 10px 10px 4px; transform: rotate(-4deg);
	box-shadow: -6px 0 0 -2px rgba(184,149,92,.55), 0 30px 50px -18px rgba(29,43,69,.45), 0 2px 6px rgba(29,43,69,.12); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gd-carte:hover .gd-livre { transform: rotate(-1deg) translateY(-6px); }
.gd-texte .lux-inscription { margin-bottom: 18px; }
.gd-titre { font: 700 clamp(2rem, 3.6vw, 3.2rem)/1.04 "Inter Tight", var(--sans) !important; letter-spacing: -.03em; color: var(--encre, #1d2b45); margin: 0 0 16px; text-wrap: balance; }
.gd-chapeau { font-size: 1.04rem; line-height: 1.6; color: #4a5568; margin: 0 0 22px; max-width: 46ch; text-wrap: pretty; }
.gd-liste { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.gd-liste li { display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; line-height: 1.45; color: #3d4658; }
.gd-liste svg { flex: none; margin-top: 2px; stroke: var(--egee, #2f6fd0) !important; color: var(--egee, #2f6fd0) !important; }
.gd-liste strong { color: var(--encre, #1d2b45); }
.gd-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.gd-bonus { margin: 0; font-size: .92rem; color: #4a5568; }
.gd-bonus strong { color: var(--or-fonce, #8a6a3a); }
.gd-mention { margin: 16px 0 0; font-size: .8rem; color: #6b7385; }
@media (max-width: 899px) {
	.gd-carte { grid-template-columns: 1fr; text-align: center; border-radius: 26px; padding: 26px 20px 28px; gap: 8px; }
	.gd-livre { width: min(190px, 56%); }
	.gd-chapeau { margin-inline: auto; }
	.gd-texte .lux-inscription { justify-content: center; }
	.gd-liste { justify-items: start; text-align: left; max-width: 320px; margin-inline: auto; }
	.gd-action { justify-content: center; }
}

/* Bannière : si l'image est réduite pour garder tête + handpan, les côtés se fondent dans le ciel */
.hero-photo .hp-photo { overflow: hidden; background: linear-gradient(180deg, #2f6fd0 0, #5f95df 55%, #9cc0ec 100%); }
.hero-photo.photo-reduite .hp-img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
/* Logos du menu et du pied : ONDÉA en noir */
.entete .logo-marque, .entete .logo-marque *, .home .entete .logo-marque, .home .entete .logo-marque *, .pied-geant, .pied .pied-geant, .pied-geant * { color: #111111 !important; }

/* ===== Fond unique des instruments (celui des cartes familles) : best-sellers, Ambre, fiches produit ===== */
:root { --fond-produit: radial-gradient(circle at 50% 58%, rgba(201,164,106,.20), transparent 62%), linear-gradient(180deg, #eaf3fd 0, #fbfaf7 100%); }
.carte .carte-visuel, .carte .carte-visuel.a-photo, .carte .carte-visuel.a-detoure, .lux-selection .carte-visuel,
.galerie-photo, .fiche-galerie .galerie-photo, .galerie-vignettes button, .modele-choisir img { background: var(--fond-produit) !important; }
.carte .carte-visuel::after { background: radial-gradient(closest-side, rgba(29,43,69,.18), transparent) !important; }
.carte .carte-visuel.a-photo .carte-img:not(.carte-img-2) { mix-blend-mode: normal !important; }
/* Ambre : plus de fond blanc derrière le handpan */
.vedette-escale, .vedette-escale::before { background: transparent !important; }
.vedette-escale img { background: transparent !important; mix-blend-mode: normal !important; }
/* Avis : cartes blanches avec liseré doré, plus de bleu ciel */
.avis .rail .avis-carte, .avis-carte { background: #fff !important; border: 1px solid rgba(184,149,92,.22) !important; }
/* Scène des chapitres : pas de rectangle, même fond que les autres sections */
.chapitres, .chapitres .chap-scene { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; border: 0 !important; }
/* Atelier : deux questions côte à côte, liste de modèles qui défile si elle est longue */
.atelier-questions { grid-template-columns: 1fr 1.4fr !important; }
@media (max-width: 900px) { .atelier-questions { grid-template-columns: 1fr !important; } }
.atelier-modeles { max-height: 420px; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }

/* ===== Tous les titres dans la police du logo (Inter Tight Ondea, gras serré), partout ===== */
h1, h2, h3, h4, .titre-xl, .titre-l, .titre-m, .titre-s, .chap-titre, .chap-nom, .fam-nom, .famille-nom, .go-titre, .gd h2, .gd-titre, .lux-titre, .lux-plein-texte .titre-xl, .vedette-texte .titre-xl, .atelier-humeur, .fiche-titre, .fiche-titre .nom-modele, .carte .nom-modele, .carte-nom, .faq-item summary, [class*="titre"]:not(.visuellement-cache):not(.surtitre) {
	font-family: "Inter Tight Ondea", "Inter Tight", "Helvetica Neue", Arial, sans-serif !important; font-weight: 700 !important; font-style: normal !important; letter-spacing: -.04em !important; }
h1 em, h2 em, h3 em, h4 em, [class*="titre"] em, .chap-titre em, .fam-nom em { font-family: inherit !important; font-weight: 700 !important; font-style: normal !important; letter-spacing: inherit !important; }
.faq-item summary, .carte .nom-modele, .carte-nom { letter-spacing: -.02em !important; }
h1 em *, h2 em *, h3 em *, [class*="titre"] em *, h1 .mot-entre, h2 .mot-entre, h3 .mot-entre { font-style: normal !important; font-family: inherit !important; font-weight: 700 !important; }
