/* ==========================================================================
   LANGAGE ÉDITORIAL (validé par Jean le 3 novembre 2026)
   Couche posée sur style.css, active sur les pages dont le body porte .editorial.
   Règles : axe central et vides égaux à gauche et à droite, texte tout près de
   sa photo, photo jamais plus petite que le texte voisin, photos voisines de même
   hauteur, une seule marge et un seul rythme vertical, aucun cadre de fond.
   Mouvement : uniquement proportionnel au défilement (voir JS/editorial.js).
   ========================================================================== */
.editorial {
    --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);
    --pli: 0px;
    background: #fff;
}
.editorial main {
    overflow-x: clip;
    --type-h1-size: clamp(30px, 3.4vw, 48px);
    --type-h1-leading: 1.05;
    --type-h1-tracking: .01em;
    --type-h1-space-after: 0;
    --type-h2-size: clamp(24px, 2.2vw, 32px);
    --type-h2-leading: 1.14;
    --type-h3-size: 17px;
    --type-h3-leading: 1.25;
}
.editorial main section, .editorial main blockquote, .editorial main ul, .editorial main figure { margin: 0; padding: 0; }
.editorial main ul { list-style: none; }
.editorial main img { display: block; width: 100%; height: auto; }
.editorial main > section, .editorial main > .zone { margin-top: var(--blanc); }
.editorial main > section:first-child { margin-top: 0; padding-top: 0 !important; }

.ed-g { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--g); padding-inline: var(--m) !important; }
.ed-bloc { padding-inline: var(--m) !important; }
.ed-axe { text-align: center; }

/* Texte */
.editorial main p { font-size: 15px; font-weight: 400; line-height: 1.65; letter-spacing: 0; color: #404040; margin: 0 0 1em; max-width: 42ch; }
.editorial main p:last-child { margin-bottom: 0; }
.editorial main p.ed-axe, .editorial main .ed-axe p { margin-inline: auto; max-width: 60ch; }
.editorial main h1, .editorial main h2, .editorial main h3 { font-family: var(--font-title); font-weight: 400; color: #141414; word-spacing: -.08em; text-transform: uppercase; }
.editorial main h2 { margin-bottom: 20px; }
.editorial main h3 { margin-bottom: 10px; }
.editorial main h2.ed-axe { margin-bottom: 34px; }
.editorial main p.ed-exergue { font-size: 19px; line-height: 1.4; color: #141414; }
.ed-etiquette, body.editorial:not(.on-hero) main h1.ed-legende { font-family: var(--font-text) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: .2em !important; text-transform: uppercase; color: #141414 !important; line-height: 1.5 !important; word-spacing: 0; }
.editorial main p.ed-etiquette { margin: 0; max-width: none; }
.ed-signature { width: 190px !important; margin-top: 18px; }
.editorial .btn { margin-top: 18px; }
.editorial .contextual-link { text-underline-offset: 3px; }

/* Survol des photos cliquables */
.ed-zoom { display: block; overflow: hidden; }
.ed-zoom img { transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
a:hover > .ed-zoom img { transform: scale(1.015); }

/* Ouverture de l'accueil */
.ed-ouverture figure { margin-inline: var(--mh) !important; overflow: hidden; }
body.editorial:not(.on-hero) main h1.ed-legende { padding: 16px var(--mh) 0; text-align: left; }

/* Sur ordinateur, ouverture et tête de page tiennent dans la hauteur de la fenêtre ; le sujet reste visible */
@media (min-width: 1025px) {
    .editorial main .ed-ouverture img { max-height: calc(100svh - 134px); object-fit: cover; object-position: 50% 74%; }
    .editorial main .ed-tete-photo img { max-height: calc(100svh - 150px); object-fit: cover; object-position: 50% 45%; }
}

/* PAIRE : la photo suit la fenêtre, en largeur et en hauteur ; si le texte devient plus haut, elle s'étire avec lui. */
.ed-paire { --ra: 1.5; --pw: clamp(340px, min(46vw, 76svh), 700px); --tw: clamp(280px, 28vw, 410px); display: flex; justify-content: center; align-items: stretch; gap: clamp(28px, 3.4vw, 56px); padding-inline: var(--m) !important; }
.ed-verticale { --ra: .667; --pw: clamp(250px, min(27vw, 50svh), 430px); }
.ed-cloture { --ra: .667; --pw: clamp(250px, min(24vw, 46svh), 370px); }
.ed-paire-photo { position: relative; display: block; flex: 0 0 var(--pw); min-height: calc(var(--pw) / var(--ra)); overflow: hidden; }
.editorial main .ed-paire-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-paire-texte { flex: 0 1 var(--tw); align-self: center; min-width: 0; }
.editorial main .ed-cloture .btn { margin-top: 12px; }

/* RANG : photos de même hauteur, sans recadrage ; la largeur suit le format */
.ed-rang { display: flex; gap: var(--g); }
.ed-rang.ed-petit { max-width: 800px; margin-inline: auto; }
.ed-rang-item { flex: var(--r) 1 0; min-width: 0; display: block; text-decoration: none; color: inherit; }
.ed-rang-nom { display: block; font-family: var(--font-title); font-size: 19px; letter-spacing: .02em; word-spacing: -.06em; text-transform: uppercase; color: #141414; text-align: center; padding-top: 14px; }
.ed-rang-txt { display: block; font-size: 13px; font-weight: 300; line-height: 1.5; color: #404040; text-align: center; max-width: 38ch; margin: 4px auto 0; }

/* TRIPTYQUE : deux photos identiques, le texte au milieu */
.ed-triptyque { --w: clamp(190px, min(23vw, 46svh), 350px); display: flex; justify-content: center; align-items: stretch; gap: clamp(20px, 3vw, 48px); padding-inline: var(--m) !important; }
.editorial main .ed-triptyque > figure { position: relative; flex: 0 0 var(--w); min-height: calc(var(--w) * 1.5); overflow: hidden; }
.editorial main .ed-triptyque figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-triptyque-texte { flex: 0 1 clamp(260px, 30vw, 440px); align-self: center; min-width: 0; }
.editorial main .ed-triptyque-texte h3:not(:first-child) { margin-top: 34px !important; }

/* Preuves : trois cases identiques, visuels de même hauteur, libellés sur la même ligne */
.ed-preuves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; justify-items: center; max-width: 680px; margin: 0 auto; }
.editorial main .ed-preuve { display: flex; flex-direction: column; align-items: center; margin: 0; max-width: none; text-decoration: none; color: #404040; }
.ed-preuve-visuel { display: flex; align-items: center; justify-content: center; height: 76px; }
.editorial main .ed-preuve-visuel img { width: auto; height: auto; }
.editorial main .ed-preuve:first-child img { height: 72px; }
.editorial main .ed-preuve:last-child img { width: 132px; }
.ed-preuve-nombre { font-family: var(--font-title); font-size: 60px; line-height: 1; color: #141414; }
.editorial main .ed-preuve-lib { margin-top: 14px; font-size: 13px; line-height: 1.4; text-align: center; color: #404040; font-weight: 400; }
a.ed-preuve:hover .ed-preuve-lib { text-decoration: underline; text-underline-offset: 3px; }
.editorial main .ed-preuves + p.ed-etiquette { margin-top: clamp(56px, 6vw, 84px); }

/* Logos en couleur, détourés, à poids visuel égal : une ligne, puis trois rangs égaux de trois (9 logos depuis le 8 novembre 2026, avec Œlysium) */
.ed-logos { --e: 1; --n: 9; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 0; max-width: 1120px; margin: 34px auto 0 !important; }
.editorial main .ed-logos li { flex: 0 0 calc(100% / var(--n)); display: flex; justify-content: center; margin: 0; max-width: none; }
.editorial main .ed-logos img, .editorial main .ed-defile img { width: calc(var(--w) * var(--e, 1) * 1px); height: calc(var(--h) * var(--e, 1) * 1px); object-fit: contain; }
@media (min-width: 1281px) {
    .ed-logos { flex-wrap: nowrap; justify-content: space-between; max-width: 1180px; }
    .editorial main .ed-logos li { flex: 0 0 auto; }
}
@media (max-width: 1280px) { .ed-logos { --n: 3; } }
@media (max-width: 560px) { .ed-logos { --n: 3; --e: .72; } }
@media (max-width: 360px) { .ed-logos { --e: .62; } }

/* Bandeau de logos défilant */
.editorial main > section.ed-confiance { margin-top: clamp(56px, 6vw, 84px); }
.ed-defile { overflow: hidden; margin-top: 28px; }
.ed-defile-piste { display: flex; width: max-content; animation: ed-defile 48s linear infinite; }
.ed-defile:hover .ed-defile-piste { animation-play-state: paused; }
.ed-defile ul { display: flex; align-items: center; flex: none; }
.editorial main .ed-defile li { margin: 0; padding-inline: clamp(24px, 3vw, 44px); max-width: none; }
@keyframes ed-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ed-defile-piste { animation: none; } }

/* Carte */
.editorial .coverage-section { max-width: none; padding: 0 var(--m); }
.editorial .coverage-layout { display: grid; grid-template-columns: repeat(24, minmax(0,1fr)); gap: 0 var(--g); align-items: center; position: relative; }
.editorial .coverage-intro { grid-column: 4 / span 8; grid-row: 1; }
.editorial .coverage-map-shell { grid-column: 13 / span 8; grid-row: 1; padding: 0; }
.editorial .coverage-results { grid-column: 21 / -1; grid-row: 1; }
.editorial .coverage-map g.region path { stroke-width: .6; stroke: #555; }

/* Fin de l'accueil : calendrier au centre, une photo de chaque côté */
.ed-final { padding-inline: clamp(20px, 2.8vw, 40px) !important; }
.editorial main .ed-final > p.ed-axe { max-width: 62ch; }
.editorial main .ed-final > p.ed-final-contact .btn { margin-top: 2px; }
.ed-final-rang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 800px) minmax(0, 1fr); gap: clamp(20px, 2.8vw, 40px); align-items: start; max-width: 1500px; margin: 44px auto 0; padding-block: 20px; }
.ed-final-g, .ed-final-d { max-width: 300px; align-self: center; will-change: transform; }
.ed-final-g { justify-self: end; }
.ed-final-d { justify-self: start; }
.ed-final-cal { min-height: 590px; }
@media (max-width: 1180px) {
    .ed-final-rang { grid-template-columns: minmax(0, 1fr); }
    .ed-final-g, .ed-final-d { display: none; }
    .ed-final-cal { width: 100%; max-width: 800px; margin-inline: auto; }
}

/* Tête de page intérieure : titre sur le côté, photo jusqu'au bord droit, paragraphes tout près */
.editorial main > section.ed-tete { padding-right: 0 !important; margin-top: 24px; --photo: calc((100vw - var(--m)) * .7083); --pli: clamp(40px, calc(100svh - 124px - var(--photo) / 1.5), 72px); }
.ed-tete-photo { grid-column: 8 / -1; grid-row: 1; margin-bottom: var(--pli) !important; }
.ed-tete-titre { grid-column: 1 / span 7; grid-row: 1; align-self: end; padding-right: 12px; --type-h1-space-after: var(--pli); }
.ed-tete-t1, .ed-tete-t2 { grid-row: 2; }
.ed-tete-t1 { grid-column: 8 / span 8; }
.ed-tete-t2 { grid-column: 17 / -1; padding-right: var(--m); }
.editorial main .ed-tete-t1 p, .editorial main .ed-tete-t2 p { max-width: 44ch; }

/* Citation seule sur son axe et rangées courtes */
.ed-citation { padding-inline: var(--m) !important; }
.ed-citation .ed-signature { margin-inline: auto; }

/* À l'honneur : six petites photos, une sur deux légèrement descendue. Petite touche, à ne pas généraliser. */
.ed-domaines { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1120px; margin-inline: auto; gap: 0 clamp(12px, 1.6vw, 24px); padding-bottom: 46px; }
.ed-domaines > a { display: block; text-decoration: none; }
.ed-domaines > a:nth-child(even) { transform: translateY(46px); }
.ed-domaines img { aspect-ratio: 2 / 3; object-fit: cover; }
.editorial main .ed-domaines h3 { text-align: center; padding-top: 10px; margin: 0; --type-h3-size: 15px; --type-h3-leading: 1.2; }

/* Pied de page d'origine */
.editorial footer { margin-top: var(--blanc); }

/* Fenêtre réduite : le titre passe au-dessus de la photo */
@media (max-width: 1024px) {
    .editorial main > section.ed-tete { grid-template-columns: 1fr 1fr; column-gap: 28px; padding-right: var(--m) !important; margin-top: 14px; }
    .ed-tete-titre { grid-column: 1 / -1; grid-row: 1; padding: 0 0 22px; --type-h1-space-after: 0; }
    .ed-tete-photo { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--m) * -1) 28px 0 !important; }
    .ed-tete-t1 { grid-column: 1; grid-row: 3; }
    .ed-tete-t2 { grid-column: 2; grid-row: 3; padding-right: 0; }
}

/* Triptyque étroit : les deux photos côte à côte, le texte dessous */
@media (max-width: 900px) {
    .ed-triptyque { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: center; gap: 0 var(--g); }
    .editorial main .ed-triptyque > figure { min-height: 0; aspect-ratio: 2 / 3; grid-row: 1; }
    .ed-triptyque > .ed-triptyque-texte { grid-column: 1 / -1; grid-row: 2; margin-top: 26px; }
}

/* Téléphone */
@media (max-width: 768px) {
    .ed-ouverture figure { margin-inline: 0 !important; }
    .ed-rang { flex-wrap: wrap; }
    .ed-rang-item { flex: 1 1 100%; }
    .ed-rang .ed-rang-item:nth-child(n+2):nth-last-child(-n+2) { flex: 1 1 calc(50% - var(--g)); }
    .ed-preuves { gap: 0 8px; }
    .ed-preuve-visuel { height: 52px; }
    .editorial main .ed-preuve:first-child img { height: 50px; }
    .editorial main .ed-preuve:last-child img { width: 92px; }
    .ed-preuve-nombre { font-size: 42px; }
    .editorial main .ed-preuve-lib { font-size: 12px; margin-top: 8px; }
    .editorial main .ed-defile img { --e: .75; }
    .editorial .coverage-layout { display: block; }
    .editorial .coverage-map-shell { margin-top: 24px; }
    .ed-domaines { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; padding-bottom: 22px; }
    .ed-domaines > a:nth-child(even) { transform: translateY(22px); }
    body.editorial:not(.on-hero) main .ed-domaines h3 { font-size: 12px !important; letter-spacing: 0 !important; line-height: 1.25 !important; padding-top: 8px; word-spacing: 0; }
    .ed-final-cal { min-height: 520px; }
    .editorial main > section.ed-tete { display: flex; flex-direction: column; margin-top: 0; }
    .ed-tete-titre { order: 1; padding: 22px 0 18px; align-self: flex-start; }
    .ed-tete-photo { order: 0; margin: 0 calc(var(--m) * -1) 0 calc(var(--m) * -1) !important; }
    .ed-tete-t1, .ed-tete-t2 { order: 2; padding-right: 0; margin-bottom: 14px; }
    .ed-signature { width: 160px !important; }
}
@media (max-width: 760px) {
    .ed-paire { flex-direction: column; gap: 22px; }
    .ed-paire-photo { flex: none; width: 100%; min-height: 0; aspect-ratio: 3 / 2; }
    .ed-verticale .ed-paire-photo, .ed-cloture .ed-paire-photo { width: 72%; margin-inline: auto !important; aspect-ratio: 2 / 3; }
    .ed-paire-texte { flex: none; }
}

/* ==========================================================================
   Composants des pages Mariages
   ========================================================================== */
.ed-liens { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
.editorial main .ed-liens .btn { margin-top: 0; }
.editorial main .ed-liens .contextual-link { font-size: 13px; }

/* Avis : un rang de photos de même hauteur, comme le Portfolio, chaque mot sous la photo de son mariage */
.editorial .wedding-reviews { background: none; padding: 0 var(--m); }
.editorial .wedding-reviews-inner { max-width: 1248px; margin: 0 auto; padding: 0; }
.editorial .wedding-reviews-heading { margin-bottom: 34px; text-align: center; padding: 0; }
.editorial .wedding-reviews-list { display: flex; justify-content: center; align-items: flex-start; gap: var(--g); }
.editorial .wedding-review, .editorial .wedding-review.wedding-review-text { display: block; flex: .667 1 0; min-width: 0; background: none; text-align: center; }
.editorial .wedding-review:first-child { flex-grow: 1.499; }
.editorial .wedding-review:only-child { flex: 0 1 720px; }
.editorial .wedding-reviews .wedding-review-photo { margin: 0; min-height: 0; aspect-ratio: auto; height: auto; }
.editorial main .wedding-review-photo img { display: block; width: 100%; height: auto; }
.editorial .wedding-review-copy { display: block; padding: 20px clamp(8px, 1.4vw, 20px) 0; }
.editorial .wedding-reviews .wedding-review-copy blockquote { font-size: 16px; line-height: 1.5; margin: 0 auto 14px; color: #141414; font-weight: 300; max-width: 46ch; }
.editorial main .wedding-review-author { font-size: 11px; letter-spacing: .14em; margin: 0 auto 4px; max-width: none; }
.editorial main .wedding-review-context { font-size: 13px; margin: 0 auto 10px; max-width: none; opacity: 1; }
.editorial .wedding-review-copy a { font-size: 11px; letter-spacing: .14em; }

/* Préparer votre mariage : deux colonnes sur l'axe, filets légers, sans fond */
.editorial .wedding-preparation { padding-inline: var(--m); max-width: none; background: none; }
.editorial main .wedding-preparation > h2 { text-align: center; margin-bottom: 34px; }
.editorial .preparation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 88px); max-width: 1040px; margin: 0 auto; }
.editorial main .wedding-practical-questions p { max-width: none; font-size: 14px; }
.editorial .wedding-practical-questions details { border-top: 1px solid #e4e2de; padding: 13px 0; }
.editorial .wedding-practical-questions details:last-child { border-bottom: 1px solid #e4e2de; }
.editorial .wedding-practical-questions summary { cursor: pointer; font-size: 15px; color: #141414; list-style-position: inside; }
.editorial .wedding-practical-questions details[open] summary { margin-bottom: 8px; }
.editorial .preparation-guides { display: block; }
.editorial .resource-link-card { display: block; border: 0; border-top: 1px solid #e4e2de; padding: 13px 0; background: none; text-decoration: none; }
.editorial .resource-link-card:last-child { border-bottom: 1px solid #e4e2de; }
.editorial .resource-link-card > span { display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #404040; }
.editorial .resource-link-card .prep-guide-title { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #141414; margin-bottom: 3px; }
.editorial .prep-journal { display: inline-block; margin-top: 16px; font-size: 13px; color: #404040; text-underline-offset: 3px; }

@media (max-width: 760px) {
    .editorial .wedding-reviews-list { flex-direction: column; gap: 40px; }
    .editorial .wedding-review, .editorial .wedding-review.wedding-review-text, .editorial .wedding-review:first-child { flex: none; width: 100%; }
    .editorial .wedding-review:not(:first-child) .wedding-review-photo { width: 72%; margin-inline: auto; }
    .editorial .preparation-grid { grid-template-columns: 1fr; }
}

/* Liens de suite sous le bouton de contact */
.editorial main .ed-cloture-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.editorial main .ed-cloture-liens a { font-size: 13px; color: #404040; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
