/* ==========================================================================
   Ondéa v3 : pages de marque (Qui sommes-nous, Avis et vidéos, Contact)
   Charte : crème #faf4ec, sable rosé #ead7c2, taupe #4a4540, cartes ivoire #fffaf4
   ========================================================================== */
:root {
	--m-creme: #faf4ec;
	--m-sable: #ead7c2;
	--m-taupe: #4a4540;
	--m-ivoire: #fffaf4;
	--m-taupe-2: #7a716a;
}
.page-template-default .marque, .marque { color: var(--m-taupe); }
.marque h1, .marque h2, .avis-page-tete h1, .avis-mur h2, .avis-grille-section h2, .marque-fin h2, .contact-hero h1 { text-wrap: balance; }
.marque p, .avis-page-tete p, .contact-hero p { text-wrap: pretty; }
.marque .titre-l em, .marque .titre-xl em, .avis-page-tete em, .avis-mur em, .avis-grille-section em, .marque-fin em, .contact-hero em { color: #9b6a3c; }

/* Apparition au défilement (CSS seul, sans toucher au JS du thème) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.marque-revele { animation: marque-monte linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
		.marque-hero-img { animation: marque-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	}
}
@keyframes marque-monte { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes marque-zoom { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(4%); } }

/* ---------- Hero plein cadre ---------- */
.marque-hero { position: relative; min-height: min(88svh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--m-sable); }
.marque-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.marque-hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250, 244, 236, 0) 30%, rgba(250, 244, 236, .82) 72%, var(--m-creme) 100%); }
.marque-hero-texte { position: relative; padding-bottom: clamp(40px, 7vw, 96px); }
.marque-hero-texte .titre-xl { max-width: 13ch; }
.marque-hero-texte .chapo { color: var(--m-taupe); max-width: 46ch; }

/* ---------- Blocs ---------- */
.marque-bloc { padding-block: clamp(64px, 9vw, 140px); }
.marque-fond { background: var(--m-creme); }
.marque-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.marque-duo-inverse .marque-photo { order: 2; }
.marque-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--m-sable); }
.marque-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marque-photo-detoure { background: radial-gradient(circle at 50% 45%, var(--m-ivoire), var(--m-sable)); display: grid; place-items: center; }
.marque-photo-detoure img { width: 78%; height: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(74, 69, 64, .25)); }
.marque-texte p { font-size: 1.08rem; line-height: 1.7; max-width: 52ch; color: var(--m-taupe); }
.marque-texte .titre-l { margin-bottom: 24px; }
.marque-tete { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }

.marque-citation { margin: 0 auto; padding-block: clamp(24px, 4vw, 56px); text-align: center; }
.marque-citation p { font-family: var(--sans)(--serif); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.2; max-width: 24ch; margin: 0 auto; color: var(--m-taupe); text-wrap: balance; }
.marque-citation p::before { content: "«\00a0"; color: #c9a26b; }
.marque-citation p::after { content: "\00a0»"; color: #c9a26b; }
.marque-citation em { font-style: italic; color: #9b6a3c; }

.marque-convictions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.marque-convictions li { background: var(--m-ivoire); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 1px 2px rgba(74, 69, 64, .05); }
.marque-convictions p { margin: 0; line-height: 1.65; color: var(--m-taupe-2); }
.marque-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--m-sable); font-family: var(--sans); font-style: italic; margin-bottom: 18px; }

.marque-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.marque-etapes li { padding-left: 22px; border-left: 2px solid var(--m-sable); line-height: 1.65; color: var(--m-taupe-2); }
.marque-etapes strong { display: block; color: var(--m-taupe); font-size: 1.05rem; margin-bottom: 2px; }

/* Grande photo pleine largeur */
.marque-pleine { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--m-sable); min-height: 80svh; }
.marque-pleine img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 920px; }
.marque-pleine-texte { align-self: center; padding: clamp(40px, 6vw, 96px); }
.marque-pleine-texte p { font-size: 1.08rem; line-height: 1.7; max-width: 48ch; }

/* Engagements */
.marque-engagements { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.marque-engagements li { background: var(--m-ivoire); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.marque-engagements strong { font-family: var(--sans); font-weight: 400; font-size: 1.15rem; color: var(--m-taupe); }
.marque-engagements span { font-size: .92rem; line-height: 1.5; color: var(--m-taupe-2); }

/* Fin de page */
.marque-fin { text-align: center; padding-block: clamp(64px, 8vw, 128px); }
.marque-fin .chapo { margin-inline: auto; }
.marque-fin-actions { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.marque-lien { color: var(--m-taupe); }

/* ---------- Avis et vidéos ---------- */
.avis-page-tete { background: linear-gradient(180deg, var(--m-creme), transparent); }
.avis-page-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.avis-synthese { background: var(--m-ivoire); border-radius: 28px; padding: 32px; box-shadow: 0 20px 50px -30px rgba(74, 69, 64, .35); }
.avis-synthese-note { font-family: var(--sans); font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: 1; margin: 0 0 8px; color: var(--m-taupe); }
.avis-synthese-note span { font-size: .4em; color: var(--m-taupe-2); }
.avis-synthese .etoiles svg { width: 22px; height: 22px; }
.avis-synthese-nb { margin: 8px 0 18px; color: var(--m-taupe-2); }
.avis-barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--m-taupe-2); }
.avis-barres li { display: grid; grid-template-columns: 14px 1fr 24px; gap: 10px; align-items: center; }
.avis-barres i { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #c9a26b var(--p), var(--m-sable) var(--p)); }

.avis-mur { background: var(--m-creme); }
.avis-mur-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.avis-mur-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.avis-mur-item .reel { width: 100%; }
.avis-mur-item figcaption { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--m-taupe); }

.avis-grille-section .chapo { margin-bottom: clamp(28px, 4vw, 48px); }
.avis-grille { columns: 3 300px; column-gap: 16px; }
.avis-grille .avis-carte { width: 100%; break-inside: avoid; margin-bottom: 16px; background: var(--m-ivoire); }

/* ---------- Contact ---------- */
.contact-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 5vw, 64px); background: linear-gradient(180deg, var(--m-creme), transparent); }
.contact-hero-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-hero-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--m-sable); }
.contact-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.contact-carte { background: var(--m-ivoire); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 24px 60px -36px rgba(74, 69, 64, .4); align-self: start; }
.contact-v3 .encart { background: var(--m-creme); }
.contact-v3 .champ-form input, .contact-v3 .champ-form select, .contact-v3 .champ-form textarea { background: #fff; }
.contact-engagements .marque-engagements { grid-template-columns: 1fr; gap: 8px; }
.contact-engagements .marque-engagements li { padding: 12px 14px; display: block; }
.contact-engagements .marque-engagements strong { font-size: 1rem; display: block; }
.contact-cote .contact-engagements p { display: block; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1100px) {
	.marque-engagements { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.marque-duo, .marque-pleine, .avis-page-grille, .contact-hero-grille { grid-template-columns: 1fr; }
	.marque-duo-inverse .marque-photo { order: 0; }
	.marque-convictions { grid-template-columns: 1fr; }
	.marque-pleine img { max-height: 70svh; }
	.marque-hero { min-height: 82svh; }
	.contact-hero-photo { aspect-ratio: 16 / 10; }
	.avis-mur-grille { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.avis-mur-item .reel { border-radius: 18px; }
}
@media (max-width: 480px) {
	.marque-engagements { grid-template-columns: 1fr; }
	.marque-photo { aspect-ratio: 4 / 4.4; }
}
