/* ==========================================================================
   LANGAGE ÉDITORIAL, PAGES DONT LA MISE EN PAGE EST CONSERVÉE
   Actif quand le body porte .ed-leger. Applique le langage validé (voir editorial.css)
   sans réécrire les sections existantes : pas de cadre de fond, pas de lettrine,
   pas de trait décoratif, libellés sous les photos, titres à taille moyenne.
   ========================================================================== */
.ed-leger {
    --mh: clamp(20px, 6.6vw, 96px);
    --m: max(var(--mh), calc((100vw - 1480px) / 2));
    --g: clamp(10px, 1.4vw, 20px);
    --blanc: clamp(84px, 12vw, 176px);
}
.ed-leger main {
    --type-h1-size: clamp(30px, 3.4vw, 48px);
    --type-h1-leading: 1.05;
    --type-h1-tracking: .01em;
    --type-h2-size: clamp(24px, 2.2vw, 32px);
    --type-h2-leading: 1.14;
    --type-h3-size: 17px;
    --type-h3-leading: 1.25;
}
.ed-leger main h1, .ed-leger main h2, .ed-leger main h3 { word-spacing: -.08em; }
body.ed-leger main p, body.ed-leger main li { font-weight: 400; color: #404040; }
body.ed-leger main p.lead { font-size: inherit; }

/* Plus de lettrine ni de trait décoratif */
body.ed-leger main .drop-cap { float: none !important; display: inline !important; font: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important; line-height: inherit !important; }
body.ed-leger main .elementor-divider { display: none !important; }
body.ed-leger main *::first-letter { float: none !important; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important; }

/* Plus de cadre de fond : sections et cartes sur le blanc de la page */
body.ed-leger main :is(.theme-card, .theme-card-body, .pilot-practical, .legal-note, .dispo-disclaimer, .press-box, .venue-grid, .booking-card, .carnet-overview, .brief-section, .brief-card, .brief-card-body, .hero-info-box, .quote-box, .press-card) { background: none !important; box-shadow: none !important; border-radius: 0; }
body.ed-leger main .pilot-practical { border-top: 1px solid #e4e2de; border-bottom: 1px solid #e4e2de; padding-inline: 0; }
body.ed-leger main .booking-card { border: 0 !important; padding-inline: 0; }

/* Cartes : texte centré sous la photo, sans marges de cadre */
body.ed-leger main .theme-card-body, body.ed-leger main .brief-card-body { padding: 14px clamp(4px, 1vw, 14px) 0; }

/* Vignettes : photo au format d'origine, libellé dessous, sans dégradé */
body.ed-leger main .mtile { display: block; aspect-ratio: auto !important; overflow: visible; background: none; text-decoration: none; }
body.ed-leger main .mtile img { position: static !important; display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
body.ed-leger main .mtile-scrim { display: none !important; }
body.ed-leger main .mtile-label { position: static !important; display: block; padding: 12px 0 0; background: none; transform: none; opacity: 1; text-align: center; }
body.ed-leger main .mtile-title, body.ed-leger main .mtile-label * { color: #141414 !important; text-shadow: none !important; font-size: 17px; }

/* Page Château : plus de fond noir */
body.ed-leger main .venue-cta, body.ed-leger main .venue-cta * { background: none !important; color: #141414 !important; }

/* Bloc photo et texte existant : la photo n'est jamais plus petite que le texte */
@media (min-width: 769px) {
    body.ed-leger main .profile-grid-2 { align-items: stretch; }
    body.ed-leger main .profile-grid-2 .profile-photo { position: relative; overflow: hidden; min-height: 320px; }
    body.ed-leger main .profile-grid-2 .profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    body.ed-leger main .profile-grid-2 .profile-text { align-self: center; }
}

/* Bloc dont la photo est passée en tête de page : le texte reste seul, centré */
body.ed-leger main .profile-grid-2:not(:has(.profile-photo)) { display: block; max-width: 720px; margin-inline: auto; }
body.ed-leger main .profile-grid-2:not(:has(.profile-photo)) p { max-width: none; }

/* Tête de page : titre sur le côté, photo jusqu'au bord droit */
.ed-leger main > section.ed-tete { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--g); padding: 0 0 0 var(--m); margin: 24px 0 0; max-width: none; --photo: calc((100vw - var(--m)) * .7083); --pli: clamp(40px, calc(100svh - 124px - var(--photo) / 1.5), 72px); }
.ed-leger main .ed-tete figure { grid-column: 8 / -1; grid-row: 1; margin: 0 0 var(--pli); }
.ed-leger main .ed-tete figure img { display: block; width: 100%; height: auto; }
.ed-leger main .ed-tete-titres { grid-column: 1 / span 7; grid-row: 1; align-self: end; padding-right: 12px; margin-bottom: var(--pli); text-align: left; }
.ed-leger main .ed-tete-titres h1 { margin: 0; text-align: left; }
.ed-leger main .ed-tete-sous { display: block; margin-top: 12px; font-family: var(--font-text); font-size: 11px; font-weight: 500; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; color: #141414; }
.ed-leger main .ed-tete-t1, .ed-leger main .ed-tete-t2 { grid-row: 2; font-size: 15px; }
.ed-leger main .ed-tete-t1 { grid-column: 8 / span 8; }
.ed-leger main .ed-tete-t2 { grid-column: 17 / -1; padding-right: var(--m); }
.ed-leger main .ed-tete-t1 p, .ed-leger main .ed-tete-t2 p { font-size: 15px; line-height: 1.65; max-width: 44ch; margin: 0 0 1em; }
@media (min-width: 1025px) {
    .ed-leger main .ed-tete figure img { max-height: calc(100svh - 150px); object-fit: cover; object-position: 50% 45%; }
}
@media (max-width: 1024px) {
    .ed-leger main > section.ed-tete { grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 0 var(--m); margin-top: 14px; }
    .ed-leger main .ed-tete-titres { grid-column: 1 / -1; grid-row: 1; padding: 0 0 22px; margin: 0; }
    .ed-leger main .ed-tete figure { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--m) * -1) 28px 0; }
    .ed-leger main .ed-tete-t1 { grid-column: 1; grid-row: 3; }
    .ed-leger main .ed-tete-t2 { grid-column: 2; grid-row: 3; padding-right: 0; }
}
@media (max-width: 768px) {
    .ed-leger main > section.ed-tete { display: flex; flex-direction: column; margin-top: 0; }
    .ed-leger main .ed-tete figure { order: 0; margin: 0 calc(var(--m) * -1); }
    .ed-leger main .ed-tete-titres { order: 1; padding: 22px 0 18px; align-self: flex-start; }
    .ed-leger main .ed-tete-t1, .ed-leger main .ed-tete-t2 { order: 2; padding-right: 0; }
}
.ed-leger main > section.ed-tete + section, .ed-leger main > section.ed-tete + div { margin-top: clamp(30px, 4vw, 60px); }

/* Fin de page : photo et texte, jamais un bouton isolé */
.ed-leger main > section.ed-cloture { --pw: clamp(250px, min(24vw, 46svh), 370px); --tw: clamp(280px, 28vw, 410px); display: flex; justify-content: center; align-items: stretch; gap: clamp(28px, 3.4vw, 56px); max-width: none; padding: 0 var(--m); margin: var(--blanc) 0 0; text-align: left; }
.ed-leger main .ed-cloture figure { position: relative; flex: 0 0 var(--pw); min-height: calc(var(--pw) * 1.5); overflow: hidden; margin: 0; }
.ed-leger main .ed-cloture figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-leger main .ed-cloture-texte { flex: 0 1 var(--tw); align-self: center; min-width: 0; }
.ed-leger main .ed-cloture-texte h2 { margin: 0 0 18px; text-align: left; }
.ed-leger main .ed-cloture-texte p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.ed-leger main .ed-cloture-texte .btn { margin-top: 6px; }
.ed-leger main .ed-cloture-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.ed-leger main .ed-cloture-liens a { font-size: 13px; color: #404040; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ed-leger footer { margin-top: var(--blanc); }
@media (max-width: 760px) {
    .ed-leger main > section.ed-cloture { flex-direction: column; gap: 22px; }
    .ed-leger main .ed-cloture figure { flex: none; width: 72%; min-height: 0; aspect-ratio: 2 / 3; margin-inline: auto; }
    .ed-leger main .ed-cloture-texte { flex: none; }
}

/* Articles : tête de page, colonne de lecture, liens sans cartes */
.ed-leger main > section.ed-tete-article { margin-top: 10px; }
.ed-leger main .article-breadcrumb { max-width: none; padding-inline: var(--m); }
.ed-leger main > section.ed-tete + article { margin-top: clamp(20px, 3vw, 44px); }
body.ed-leger main .article-body { max-width: 680px; margin-inline: auto; }
body.ed-leger main .article-body p, body.ed-leger main .article-body li { font-size: 16px; line-height: 1.7; }
body.ed-leger main .article-body p.lead { font-size: 19px; line-height: 1.5; color: #141414; }
body.ed-leger main .article-body h2 { margin-top: 44px; }
body.ed-leger main .article-body img { display: block; width: 100%; height: auto; }
body.ed-leger main :is(.article-related-links, .article-related, .related-articles) a { border: 0 !important; background: none !important; box-shadow: none !important; padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.ed-leger main .pilot-article-byline { max-width: 680px; margin-inline: auto; text-align: left; font-size: 13px; }

/* FAQ : plus de numéros, filets légers */
body.ed-leger main .faq-category-number { display: none !important; }
body.ed-leger main .faq-category-title { font-size: clamp(22px, 2vw, 28px); }

/* Carnet : catégories sur le blanc, sans boîtes */
body.ed-leger main :is(.carnet-overview, .links-directory-layout > aside, .map-selected) { background: none !important; border-color: #e4e2de; }
body.ed-leger main :is(.links-category-card, .directory-category-card, .carnet-category-card) { background: none !important; border: 0 !important; border-top: 1px solid #e4e2de !important; box-shadow: none !important; }

/* Pages de service : titre posé, sans cadre autour des modules */
body.ed-leger main .legal-content { max-width: 720px; margin-inline: auto; }
body.ed-leger main .booking-section { padding-top: 0; }
body.ed-leger main .contact-calendar { background: none !important; }

/* Carnet : fiches et carte sur le blanc de la page */
body.ed-leger main .directory-map, body.ed-leger main .directory-item { background: none !important; }
body.ed-leger main .directory-item { border: 0; border-top: 1px solid #e4e2de; }
