/* ==========================================================================
   v6-accueil : corrections du client sur l'accueil (surtout le mobile)
   Chargée en dernier. Rythme vertical, scène 3D, icônes, images, avis,
   guide offert, pied de page en accordéon, tailles de texte.
   ========================================================================== */

/* ---------- 3. Icônes : un seul jeu au trait, sans pastille ---------- */
.ico { flex: none; display: inline-block; vertical-align: middle; }
body section.engagements .eg-icone,
body section.engagements .eg-item:hover .eg-icone {
	width: auto !important; height: auto !important; border-radius: 0 !important;
	background: none !important; box-shadow: none !important; transform: none !important;
	color: var(--or-fonce, #8a6a3a) !important; display: block !important;
}
body section.engagements .eg-icone svg { width: 24px !important; height: 24px !important; }
.vedette .vedette-faits li svg {
	width: 22px !important; height: 22px !important; padding: 0 !important; margin-top: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: none !important;
	color: var(--or-fonce, #8a6a3a) !important;
}
.gd-liste svg { width: 20px !important; height: 20px !important; color: var(--or-fonce, #8a6a3a) !important; stroke: currentColor !important; margin-top: 1px !important; }

/* ---------- 5. Handpans posés sur la page : aucun fond derrière ---------- */
.home .carte .carte-visuel,
.home .carte .carte-visuel.a-photo,
.home .carte .carte-visuel.a-detoure,
.home .lux-selection .carte-visuel,
.home .fam-visuel {
	background: transparent !important; box-shadow: none !important; border: 0 !important;
}
.home .carte .carte-visuel::after { opacity: .8; }
.home .vedette-escale::before { display: none !important; }

/* ---------- Avis : défilé continu ---------- */
.avis-videos.v6-defile {
	scroll-snap-type: none !important; scroll-behavior: auto !important;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	cursor: grab; overscroll-behavior-x: contain;
}
.avis-videos.v6-defile.v6-tire { cursor: grabbing; }
.avis-videos.v6-defile > * { scroll-snap-align: none !important; }
.avis-videos.v6-defile + .rail-commandes { display: none !important; }

/* ==========================================================================
   Tablette et téléphone
   ========================================================================== */
@media (max-width: 900px) {
	/* ---------- 1. Scène « Écoutez, puis choisissez » : handpan au-dessus, texte dessous ---------- */
	.chapitres { height: auto !important; overflow-x: clip; }
	.chapitres .chap-scene {
		position: relative !important; height: auto !important; overflow: visible !important;
		display: flex !important; flex-direction: column; align-items: center;
		padding: 48px 20px 40px; gap: 0;
	}
	.chapitres .chap-tete { position: static !important; top: auto !important; padding: 0 !important; margin: 0 0 28px; }
	.chapitres .chap-titre { font-size: clamp(1.75rem, 7.4vw, 2.4rem) !important; line-height: 1.08 !important; }
	.chapitres .chap-instrument {
		position: relative !important; left: auto !important; top: auto !important;
		width: min(62vw, 300px) !important; margin: 0 auto !important; flex: none;
	}
	.chapitres .chap-anneau-3 { display: none; }
	.chapitres .chap-liste { position: static !important; inset: auto !important; width: 100%; max-width: 520px; margin: 32px auto 0; pointer-events: auto; }
	.chapitres .chap {
		position: static !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
		width: auto !important; max-height: none !important; opacity: 1 !important; transform: none !important;
		pointer-events: auto !important; text-align: center;
	}
	.chapitres .chap-nom { font-size: clamp(1.4rem, 6vw, 1.75rem) !important; line-height: 1.12 !important; margin: 0 0 10px !important; }
	.chapitres .chap-texte { font-size: 1rem !important; line-height: 1.5 !important; margin: 0 auto 20px !important; max-width: 34ch; }
	.chapitres .chap-aveugle .pastille { width: 72px !important; height: 72px !important; }
	.chapitres .chap-progres { display: none !important; }

	/* ---------- 2. Rythme vertical resserré ---------- */
	.home .section { padding-block: 56px !important; }
	.home .meilleures.section { padding-bottom: 8px !important; }
	.home .vedette { margin-bottom: 0 !important; gap: 20px !important; }
	.home .avis.section { padding-top: 48px !important; padding-bottom: 24px !important; }
	.home .engagements { padding-block: 8px 0 !important; }
}

@media (max-width: 700px) {
	/* ---------- 9. Tailles de texte ---------- */
	.home :is(.titre-xl, .titre-l, .lux-titre-m, .gd-titre) { font-size: clamp(1.85rem, 8.2vw, 2.2rem) !important; line-height: 1.08 !important; }
	.home .vedette-texte .titre-xl { font-size: clamp(2rem, 9vw, 2.4rem) !important; margin-bottom: 14px !important; }
	.home .lux-plein .lux-titre { font-size: clamp(2.1rem, 9.5vw, 2.6rem) !important; }
	.home :is(.vedette-phrase, .lux-chapeau, .gd-chapeau, .faq-reponse p) { font-size: 1rem !important; line-height: 1.55 !important; }
	.home :is(.pilule, .gd-bouton, .lux-lien, .lien-fleche, .faq-item summary) { min-height: 44px; }
	.home .surtitre, .home .lux-inscription { margin-bottom: 10px !important; }

	/* ---------- 3. Engagements : une liste nette, pas un carrousel de cartes ---------- */
	body section.engagements .eg-liste {
		display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; overflow: visible !important;
		margin: 0 16px !important; padding: 4px 18px !important; width: auto !important;
		background: rgba(255, 255, 255, .72); border: 1px solid rgba(29, 43, 69, .07); border-radius: 20px;
	}
	body section.engagements .eg-item {
		flex: none !important; display: grid !important; grid-template-columns: 24px 1fr; align-items: start; gap: 14px !important;
		padding: 14px 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
		-webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important;
		border-bottom: 1px solid rgba(29, 43, 69, .07) !important; transform: none !important;
	}
	body section.engagements .eg-item:last-child { border-bottom: 0 !important; }
	body section.engagements .eg-icone { padding-top: 1px; }
	body section.engagements .eg-texte strong { font-size: 1rem; line-height: 1.3; }
	body section.engagements .eg-texte span { font-size: .9rem; line-height: 1.45; min-height: 0 !important; }
	body section.engagements .eg-texte strong { white-space: normal !important; }

	/* ---------- Vedette Ambre ---------- */
	.home .vedette-escale { width: min(72vw, 300px) !important; margin-inline: auto; }
	.home .vedette .vedette-faits { gap: 10px !important; margin: 0 0 22px !important; }
	.home .vedette .vedette-faits li { align-items: flex-start; gap: 12px !important; font-size: .95rem !important; }
	.home .vedette-achat { gap: 12px; }
	.home .vedette-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
	.home .vedette-actions .pilule { justify-content: center; padding-inline: 14px !important; min-height: 48px; white-space: nowrap; font-size: .95rem; }

	/* ---------- 4. Images : cadrage mobile ---------- */
	/* Photos plein cadre : un format 4/5 (et non un écran entier) pour garder la scène entière, sans zoom au défilement */
	.home .lux-plein { min-height: 0 !important; aspect-ratio: 4 / 5; margin: 24px 0 !important; }
	.home .lux-plein .lux-media img { object-fit: cover !important; animation: none !important; transform: none !important; }
	.home .lux-manifeste .lux-media img { object-position: 46% 30% !important; }
	.home .lux-gestes .lux-media img { object-position: 50% 45% !important; }
	.home .lux-plein-texte { padding: 0 20px 28px !important; }
	.home .lux-arche-cadre { max-width: 300px; margin-inline: auto !important; }
	.home .lux-arche-cadre img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
	.home img { max-width: 100%; }

	/* ---------- Avis ---------- */
	.home .avis .avis-tete { gap: 14px !important; margin-bottom: 20px !important; }
	.home .avis-videos.v6-defile { gap: 12px !important; padding-bottom: 8px !important; }
	.home .avis-videos.v6-defile .avis-video { width: 74vw !important; max-width: 300px; }

	/* ---------- 7. Guide offert : une bande fine ---------- */
	.home .gd.section { padding-block: 32px !important; }
	.home .gd-carte {
		display: grid !important; grid-template-columns: 76px 1fr !important; align-items: center; text-align: left !important;
		gap: 4px 16px !important; padding: 18px 18px !important; border-radius: 20px !important;
	}
	.home .gd-visuel { grid-row: 1 / span 2; padding: 0 !important; }
	.home .gd-halo { display: none !important; }
	.home .gd-visuel .livre3d { width: 72px !important; }
	.home .gd-texte { display: contents; }
	.home .gd-texte .lux-inscription { grid-column: 2; margin: 0 !important; justify-content: flex-start !important; font-size: .7rem !important; }
	.home .gd-titre { grid-column: 2; font-size: 1.2rem !important; line-height: 1.2 !important; margin: 0 !important; }
	.home .gd-chapeau, .home .gd-liste, .home .gd-mention { display: none !important; }
	.home .gd-action { grid-column: 1 / -1; margin-top: 14px; display: grid !important; gap: 8px !important; justify-content: stretch !important; }
	.home .gd-bouton { width: 100%; justify-content: center; min-height: 48px; }
	.home .gd-bonus { text-align: center; font-size: .82rem !important; }

	/* ---------- FAQ ---------- */
	.home .faq-grille { gap: 20px !important; }
	.home .faq-item summary { font-size: 1rem !important; padding-block: 14px !important; }
}

/* ---------- 7. Fenêtre « guide offert » sur téléphone : fine et compacte ---------- */
.ol.ol-mobile .ol-boite { max-height: 62vh !important; border-radius: 20px 20px 0 0 !important; grid-template-columns: 1fr !important; }
.ol.ol-mobile .ol-visuel { display: none !important; }
.ol.ol-mobile .ol-corps { padding: 24px 18px 12px !important; }
.ol.ol-mobile .ol-sur { font-size: .68rem !important; margin: 0 0 2px !important; letter-spacing: .1em !important; }
.ol.ol-mobile .ol-titre { font-size: 1.25rem !important; line-height: 1.15 !important; margin: 0 !important; padding-right: 36px; }
.ol.ol-mobile .ol-remise { font-size: .95rem !important; margin: 2px 0 12px !important; }
.ol.ol-mobile .ol-etape-1 .ol-texte { display: none !important; }
.ol.ol-mobile .ol-form input, .ol.ol-mobile .ol-bouton { min-height: 46px !important; height: 46px !important; font-size: 16px !important; }
.ol.ol-mobile .ol-form .ol-bouton { margin-top: 8px !important; font-size: 15px !important; }
.ol.ol-mobile .ol-legal { margin: 8px 0 0 !important; font-size: .72rem !important; line-height: 1.4 !important; }
.ol.ol-mobile .ol-non { margin: 2px 0 0 !important; min-height: 40px; width: 100%; }
.ol.ol-mobile .ol-x { top: 12px !important; right: 10px !important; width: 40px !important; height: 40px !important; }

/* ---------- 7. Guide en bas des pages (pied) : plus fin ---------- */
@media (max-width: 700px) {
	.v5-lettre { padding: 24px 0 8px !important; }
	.v5-lettre-carte { grid-template-columns: 52px minmax(0, 1fr) !important; gap: 12px 14px !important; padding: 16px !important; border-radius: 20px !important; }
	.v5-lettre-livre { grid-row: 1 / 3 !important; }
	body .v5-lettre-titre { font-size: 1.12rem !important; line-height: 1.2 !important; }
	.v5-surtitre { font-size: 10.5px !important; }
	.v5-lettre-chapeau { display: none !important; }
	.v5-lettre-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.v5-champ { height: 50px !important; }
	body .v5-champ button { padding: 0 14px !important; font-size: 14px !important; }
	.v5-lettre-mention { font-size: 11.5px !important; margin-top: 6px !important; }
}

/* ---------- 8. Pied de page mobile : accordéon ---------- */
.pied-plie-bouton { display: none; }
@media (max-width: 700px) {
	.pied .pied-plan { display: block !important; padding: 20px 18px 8px !important; margin: 0 16px !important; width: auto !important; max-width: none !important; box-sizing: border-box; }
	.pied .pied-marque { padding-bottom: 14px; }
	.pied .pied-marque > p:not(.pied-contact) { display: none; }
	.pied .pied-contact { flex-direction: row !important; flex-wrap: wrap; gap: 4px 14px !important; margin-top: 10px !important; font-size: .9rem; }
	.pied .pied-col { border-top: 1px solid rgba(184, 149, 92, .25); }
	.pied .pied-col .pied-titre { display: none; }
	.pied .pied-plie-bouton {
		display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between;
		padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
		font: 600 .95rem/1.2 var(--sans, system-ui); letter-spacing: -.01em; color: var(--encre, #1d2b45) !important; text-align: left;
	}
	.pied .pied-plie-bouton .ico { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
	.pied .pied-plie-bouton[aria-expanded="true"] .ico { transform: rotate(180deg); }
	.pied .pied-col ul { gap: 0 !important; padding-bottom: 10px !important; }
	.pied .pied-col li a { display: flex; align-items: center; min-height: 44px; font-size: .95rem; }
	.pied .pied-col.v6-plie ul { display: none !important; }
	.pied .pied-bas { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important; gap: 4px !important; font-size: .78rem; }
	.pied .pied-bas p + p { display: none; }
	.pied .pied-geant { font-size: 22vw !important; margin-top: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.pied .pied-plie-bouton .ico { transition: none; }
}

/* ---------- 2. Rythme : ornements entre sections plus serrés sur téléphone ---------- */
@media (max-width: 700px) {
	.home .section + .section > .enveloppe:first-child::before,
	.home .section + .section > .tete-ligne:first-child::before { height: 12px !important; margin: 0 auto 22px !important; max-width: 160px !important; }
	.home .lux-tete { margin-bottom: 24px !important; }
	.home .lux-tete::after { margin-top: 16px !important; }
	.home .section.avis, .home .section.lux-selection, .home .section.atelier, .home .section.lux-familles, .home .section.faq-accueil { padding-top: 40px !important; }
	.home .lux-centre { margin-top: 20px !important; }
}
@media (max-width: 700px) {
	.home .gd .gd-carte { margin-inline: 16px !important; width: auto !important; box-sizing: border-box; }
	.home .gd.section { padding-bottom: 8px !important; }
	.home .fam-une .fam-visuel img { width: auto !important; height: 84% !important; }
	.home .fam-visuel img { max-height: 84%; }
}
@media (max-width: 700px) {
	.home .section.faq-accueil { padding-top: 24px !important; }
	.home .faq-accueil .titre-l { text-align: left !important; }
	.home .faq-grille .lien-fleche { margin-top: 12px !important; }
}
