/*
 * Styles des blocs et des motifs — chargés sur le site ET dans l'éditeur Gutenberg.
 */
:root {
	--ed-craie: #FEF7F0; --ed-pierre: #E9E1CF; --ed-bordeaux: #5C1E29; --ed-or: #AB8A4C;
	--ed-encre: #22201C; --ed-gris: #5A5249; --ed-filet-clair: #D9CFBA; --ed-carte: #FFFDF9;
	--ed-serif: Amiri, Georgia, "Times New Roman", serif;
	--ed-narrow: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
}

/* ---------- Sections ---------- */
.ed-section { padding-top: 88px !important; padding-bottom: 88px !important; }
.ed-section--serre { padding-top: 56px !important; padding-bottom: 56px !important; }
.wp-block-group.is-style-fond-pierre { background: var(--ed-pierre); }
.wp-block-group.is-style-fond-bordeaux { background: var(--ed-bordeaux); color: var(--ed-craie); padding: 40px; }
.is-style-fond-bordeaux :where(h2, h3, h4, p, li) { color: var(--ed-craie); }
.is-style-fond-bordeaux .ed-hours, .is-style-fond-bordeaux p:not(.ed-price) { color: #EBDCD3; }
.is-style-fond-bordeaux .wp-block-button__link { background: var(--ed-craie); color: var(--ed-bordeaux); border-color: var(--ed-craie); }
.is-style-fond-bordeaux .wp-block-button__link:hover { background: transparent; color: var(--ed-craie); }
.wp-block-group.is-style-carte { background: var(--ed-carte); border: 1px solid var(--ed-filet-clair); padding: 32px 28px; height: 100%; box-sizing: border-box; }
.wp-block-group.is-style-carte.ed-recommande { border-color: var(--ed-bordeaux); border-top-width: 4px; }
.wp-block-group.is-style-emplacement-photo { background: var(--ed-pierre); border: 1px dashed var(--ed-or); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 260px; padding: 24px; color: var(--ed-gris); }
.is-style-emplacement-photo p { font-family: var(--ed-serif); font-style: italic; font-size: 1.12rem; max-width: 32em; margin: 0 auto; }
.is-style-emplacement-photo p.is-style-legende { font-family: var(--ed-narrow); font-style: normal; font-size: .78rem; }
.ed-bandeau.is-style-emplacement-photo { aspect-ratio: 21 / 8; }
@media (max-width: 781px) { .ed-bandeau.is-style-emplacement-photo { aspect-ratio: auto; min-height: 200px; } }
.wp-block-image.ed-photo img { width: 100%; height: auto; }

/* ---------- Filet et carré ---------- */
hr.wp-block-separator.is-style-filet, hr.wp-block-separator.is-style-filet-court {
	border: 0; height: 14px; width: 100%; opacity: 1; color: var(--ed-bordeaux);
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
	position: relative; overflow: visible; margin-top: 22px; margin-bottom: 22px;
}
hr.wp-block-separator.is-style-filet-court { max-width: 340px; margin-left: 0; margin-right: auto; }
hr.wp-block-separator.is-style-filet::after, hr.wp-block-separator.is-style-filet-court::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; background: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}
.has-text-align-center + hr.is-style-filet-court, .ed-centre hr.is-style-filet-court { margin-left: auto; }

/* ---------- Textes ---------- */
p.ed-lead { font-size: 1.15rem; color: var(--ed-gris); max-width: 34em; }
p.is-style-legende { font-family: var(--ed-narrow); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-bordeaux); margin-bottom: 0; }
p.is-style-signature { font-family: var(--ed-serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ed-bordeaux); }
p.is-style-lien-souligne a { color: var(--ed-bordeaux); text-decoration: none; border-bottom: 1px solid var(--ed-or); padding-bottom: 2px; }
p.is-style-lien-souligne a:hover { border-bottom-color: var(--ed-bordeaux); }
p.is-style-lien-souligne a + a { margin-left: 26px; }
.ed-muted, p.ed-muted { color: var(--ed-gris); }
blockquote.wp-block-quote.is-style-signature, .ed-citation { border: 0; padding: 0; margin: 0; font-family: var(--ed-serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3; color: var(--ed-bordeaux); }
.wp-block-group.is-style-fond-bordeaux a:not(.wp-block-button__link) { color: var(--ed-craie); }

/* ---------- Boutons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--ed-bordeaux); border: 1.5px solid var(--ed-bordeaux); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ed-bordeaux); color: var(--ed-craie); }
.wp-block-button__link { transition: background .2s, color .2s; }

/* ---------- Listes ---------- */
ul.is-style-losanges { list-style: none; padding: 0; margin-left: 0; }
ul.is-style-losanges li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--ed-filet-clair); font-size: .97rem; }
ul.is-style-losanges li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--ed-or); transform: rotate(45deg); }
.is-style-fond-bordeaux ul.is-style-losanges li { border-bottom-color: rgba(254, 247, 240, .18); }
ol.is-style-etapes { list-style: none; padding: 0; margin-left: 0; counter-reset: ed-etape; border-top: 1px solid var(--ed-filet-clair); }
ol.is-style-etapes > li { counter-increment: ed-etape; position: relative; padding: 20px 0 20px 56px; border-bottom: 1px solid var(--ed-filet-clair); font-family: var(--ed-serif); font-size: 1.3rem; line-height: 1.3; }
ol.is-style-etapes > li::before { content: counter(ed-etape); position: absolute; left: 0; top: 16px; font-size: 2rem; color: var(--ed-bordeaux); line-height: 1; }

/* ---------- Accueil : en-tête ---------- */
.ed-hero { padding: 0 !important; }
.ed-hero > .wp-block-columns { gap: 0; margin: 0 !important; min-height: 640px; }
.ed-hero__texte { padding: 72px clamp(24px, 5vw, 72px) 72px max(24px, calc((100vw - 1180px) / 2)); display: flex; flex-direction: column; justify-content: center; }
.ed-hero__texte h1 { margin-top: 0; }
.ed-hero__photo { background: var(--ed-pierre); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; }
.ed-hero__photo .wp-block-image { margin: 0; width: min(100%, 640px); }
.ed-hero__photo img { display: block; width: 100%; }
@media (max-width: 781px) { .ed-hero > .wp-block-columns { min-height: 0; } .ed-hero__texte { padding: 48px 24px; } }

/* ---------- Accordéon (Détails) ---------- */
.wp-block-details.is-style-accordeon { border-bottom: 1px solid var(--ed-filet-clair); padding: 0; margin: 0 !important; }
.ed-accordeon > .wp-block-details.is-style-accordeon:first-child, .ed-accordeon > :first-child { border-top: 1px solid var(--ed-filet-clair); }
.wp-block-details.is-style-accordeon > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--ed-serif); font-size: 1.7rem; line-height: 1.2; color: var(--ed-encre); }
.wp-block-details.is-style-accordeon > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-accordeon > summary::after { content: ""; width: 12px; height: 12px; background: var(--ed-bordeaux); transform: rotate(45deg) scale(.55); transition: transform .25s; flex: none; }
.wp-block-details.is-style-accordeon[open] > summary::after { transform: rotate(45deg) scale(1); }
.wp-block-details.is-style-accordeon > :not(summary) { margin-bottom: 18px; }
.wp-block-details.is-style-accordeon > :last-child { margin-bottom: 28px; }

/* ---------- Cartes d'offres ---------- */
.ed-cartes { gap: 24px; }
.ed-cartes > .wp-block-column { display: flex; }
.ed-cartes > .wp-block-column > .wp-block-group { width: 100%; }
.is-style-carte > * { margin-top: 0; }
.is-style-carte > * + * { margin-top: 12px; }
p.ed-price { font-family: var(--ed-serif); font-size: 2.6rem; line-height: 1; color: var(--ed-encre); margin-top: 16px !important; margin-bottom: 0; }
.is-style-fond-bordeaux p.ed-price { color: var(--ed-craie); }
p.ed-hours { color: var(--ed-gris); font-size: .92rem; margin-top: 4px !important; }
p.ed-gain { font-family: var(--ed-serif); font-style: italic; font-size: 1.12rem; line-height: 1.5; color: var(--ed-bordeaux); }
.is-style-carte .wp-block-details { border-top: 1px solid var(--ed-filet-clair); margin-top: 18px !important; }
.is-style-carte .wp-block-details > summary { cursor: pointer; font-size: .93rem; color: var(--ed-bordeaux); padding: 12px 0; }
.is-style-carte p.is-style-legende:empty::before { content: "\00a0"; }

/* ---------- Encarts ---------- */
.ed-note { border-left: 3px solid var(--ed-or); background: var(--ed-carte); padding: 18px 22px !important; font-size: .95rem; }
.ed-fnd { border: 1px solid var(--ed-or); background: var(--ed-carte); padding: 32px 36px !important; }
.ed-fnd h2, .ed-fnd h3 { margin-top: 0; }
.ed-fnd .ed-mention { font-size: .82rem; font-style: italic; color: var(--ed-gris); }
.ed-appel { text-align: center; }
.ed-appel .wp-block-buttons { justify-content: center; }
.ed-appel p { color: var(--ed-gris); max-width: 34em; margin-left: auto !important; margin-right: auto !important; }
.ed-appel hr.is-style-filet-court { margin-left: auto; margin-right: auto; }

/* ---------- Colonnes alternées ---------- */
.ed-alterne { padding: 56px 0; border-bottom: 1px solid var(--ed-filet-clair); gap: 64px; align-items: center; margin: 0 !important; }
.ed-alterne:last-child { border-bottom: 0; }
@media (max-width: 781px) { .ed-alterne { gap: 28px; padding: 40px 0; } .ed-alterne.ed-inverse > .wp-block-column:first-child { order: 2; } }
@media (min-width: 782px) { .ed-alterne.ed-inverse > .wp-block-column:first-child { order: 2; } }

/* ---------- Pour qui (3 colonnes à filets) ---------- */
.ed-trois { gap: 0; border-top: 1px solid var(--ed-filet-clair); margin-top: 40px !important; }
.ed-trois > .wp-block-column { padding: 32px 32px 8px 0; }
.ed-trois > .wp-block-column + .wp-block-column { padding-left: 32px; border-left: 1px solid var(--ed-filet-clair); }
.ed-trois p:not(.is-style-lien-souligne) { color: var(--ed-gris); }
@media (max-width: 781px) { .ed-trois > .wp-block-column, .ed-trois > .wp-block-column + .wp-block-column { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--ed-filet-clair); } }

/* ---------- Engagement ---------- */
.ed-engagement h3 { margin-bottom: 4px; }
.ed-engagement h3 + p { color: var(--ed-gris); padding-bottom: 20px; border-bottom: 1px solid var(--ed-filet-clair); margin-top: 0; }

/* ---------- Tableaux ---------- */
.wp-block-table.is-style-tarifs { overflow-x: auto; }
.wp-block-table.is-style-tarifs table { border-collapse: collapse; width: 100%; min-width: 620px; }
.wp-block-table.is-style-tarifs th, .wp-block-table.is-style-tarifs td { border: 0; border-bottom: 1px solid var(--ed-filet-clair); text-align: left; padding: 16px 16px 16px 0; vertical-align: top; }
.wp-block-table.is-style-tarifs thead { border: 0; }
.wp-block-table.is-style-tarifs thead th { font-family: var(--ed-narrow); font-weight: 400; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ed-gris); border-bottom: 1px solid var(--ed-encre); }
.wp-block-table.is-style-tarifs tbody td:first-child { font-family: var(--ed-serif); font-size: 1.25rem; }
.wp-block-table.is-style-tarifs figcaption { font-size: .85rem; color: var(--ed-gris); }

/* ---------- Portrait ---------- */
.ed-portrait { background: var(--ed-pierre); margin: 0; }
.ed-portrait img { display: block; width: 100%; }
@media (min-width: 782px) { .ed-colle { position: sticky; top: 110px; } }
.ed-cartes + .ed-cartes, .ed-cartes + p, .ed-cartes + .wp-block-heading { margin-top: 40px !important; }
.ed-note { margin-top: 28px !important; }

/* ---------- En-tête de page en blocs ---------- */
.ed-entete-page { padding-top: 56px !important; padding-bottom: 56px !important; border-bottom: 1px solid var(--ed-filet-clair); }
.ed-entete-page > .wp-block-columns { gap: 64px; margin: 0; }
h1.ed-titre-page { font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-top: 0; }
.ed-entete-page p.ed-lead { font-size: 1.12rem; max-width: 38em; }
.ed-entete-page .is-style-emplacement-photo { min-height: 280px; }
@media (max-width: 781px) { .ed-entete-page > .wp-block-columns { gap: 32px; } }

/* Filet court aligné à gauche, même dans une section « contrainte » (WordPress y force le centrage) */
hr.wp-block-separator.is-style-filet-court { margin-left: 0 !important; margin-right: auto !important; }
.ed-appel hr.wp-block-separator.is-style-filet-court,
.has-text-align-center + hr.wp-block-separator.is-style-filet-court { margin-left: auto !important; }

/* ---------- Pied de page ---------- */
.ed-pied { color: var(--ed-gris); font-size: .9rem; }
.ed-pied > * + * { margin-top: 0 !important; }
.ed-pied__haut { gap: 32px; margin: 0 0 18px !important; }
.ed-pied__marque { display: flex; align-items: center; gap: 16px; }
.ed-pied__marque > * { margin: 0 !important; }
.ed-pied-logo { flex: none; }
.ed-pied-logo img { width: 56px; height: auto; display: block; }
p.ed-pied-texte { max-width: 22em; line-height: 1.5; }
p.ed-pied-liens { line-height: 2; }
p.ed-pied-liens a { display: inline-block; margin-right: 18px; color: var(--ed-encre); text-decoration: none; }
p.ed-pied-contact a { color: var(--ed-gris); text-decoration: none; }
.ed-pied a:hover { color: var(--ed-bordeaux); }
.ed-pied__bas { border-top: 1px solid var(--ed-filet-clair); padding-top: 14px; gap: 16px; margin: 0 !important; }
p.ed-pied-copy { font-size: .82rem; }
.wp-block-buttons.ed-pied-boutons { justify-content: flex-end; gap: 8px; }
.ed-pied-boutons .wp-block-button__link { padding: 7px 14px !important; font-size: .8rem !important; }
@media (max-width: 781px) {
	.ed-pied__haut { gap: 14px; }
	.wp-block-buttons.ed-pied-boutons { justify-content: flex-start; }
	.ed-pied__bas { gap: 10px; }
}

/* ---------- Page À propos ---------- */
.ed-hda { gap: 40px 56px; }
h2.ed-titre-moyen { font-size: 1.9rem; line-height: 1.15; }
hr.wp-block-separator.ed-filet-mini { max-width: 160px; }
.is-style-carte.ed-valeur::before { content: ""; display: block; width: 10px; height: 10px; background: var(--ed-or); transform: rotate(45deg); margin-bottom: 12px; }
.ed-valeur h3 { font-size: 1.4rem; }
