.prestation-page { background: var(--cream); }

.prestation-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(45px, 7vw, 105px);
  padding: 122px clamp(22px, 5vw, 76px) 72px;
  overflow: hidden;
}
.prestation-hero-copy { position: relative; z-index: 2; max-width: 690px; }
.prestation-hero h1 { margin-bottom: 28px; font-size: clamp(46px, 5.6vw, 82px); line-height: .9; }
/* Titre mariage un peu plus court que les autres : il compte plus de mots. */
.mariage-page .prestation-hero h1 { font-size: clamp(42px, 4.8vw, 70px); }
.prestation-hero-copy > p:not(.eyebrow) { max-width: 590px; color: rgba(0,0,0,.72); font-size: clamp(17px, 1.45vw, 21px); }
.prestation-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.prestation-visual { position: relative; min-height: 0; margin: 0; overflow: visible; justify-self: end; width: fit-content; max-width: 100%; max-height: 86svh; background: transparent; box-shadow: var(--shadow); }
.prestation-visual img { display: block; width: auto; max-width: 100%; height: auto; max-height: 86svh; background: transparent; }
.prestation-visual figcaption { position: absolute; z-index: 2; left: 24px; bottom: 24px; padding: 12px 16px; border-radius: 999px; color: var(--ink); background: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.prestation-visual.is-typographic { display: grid; place-items: center; padding: 40px; background: var(--coral); box-shadow: none; }
.prestation-visual.is-typographic strong { position: relative; z-index: 2; max-width: 520px; font-family: var(--display); font-size: clamp(75px, 9vw, 140px); font-weight: 400; line-height: .78; text-align: center; }
.prestation-visual.is-typographic::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; left: -30%; bottom: -26%; border-radius: 50%; background: var(--sun); }
.prestation-visual.is-typographic::after { content: ""; position: absolute; width: 48%; aspect-ratio: 1; right: -18%; top: 7%; border: 28px solid rgba(255,248,237,.58); border-radius: 50%; }
.mariage-page .prestation-hero { background: var(--cream); }
.famille-page .prestation-hero { background: var(--blush); }
.entreprise-page .prestation-hero { background: var(--sun); }
.restauration-page .prestation-hero { background: var(--coral); }
.restauration-page .prestation-hero h1 em { color: var(--blush); }
.video-page .prestation-hero { color: var(--cream); background: var(--ink); }
.video-page .prestation-hero-copy > p:not(.eyebrow) { color: rgba(255,248,237,.72); }
.video-page .prestation-hero h1 em { color: var(--sun); }

.video-page .prestation-hero .button-outline { color: var(--cream); border-color: var(--cream); }

.video-showcase { padding: clamp(88px, 11vw, 155px) clamp(22px, 7vw, 112px); background: var(--coral); }
/* Titre et sous-titre alignés à gauche, l'un sous l'autre : le sous-titre
   était auparavant renvoyé dans une seconde colonne, à droite. */
.video-showcase-heading { display: grid; justify-items: start; gap: 18px; margin-bottom: clamp(46px, 7vw, 88px); }
.video-showcase-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: .92; }
/* Le fond de ce bloc est terracotta, et la mise en valeur des titres l'est
   aussi par défaut : la seconde ligne du titre était écrite en terracotta
   sur du terracotta, donc invisible. */
.video-showcase-heading h2 em { color: var(--cream); }
.video-showcase-heading > p:last-child { max-width: 620px; margin: 0; font-size: clamp(17px, 1.5vw, 21px); }
.video-showcase .wp-block-video, .video-showcase .wp-block-embed { margin: 0; }
.video-showcase video, .video-showcase iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: var(--ink); }
/* Les vidéos se rangent en lignes de hauteur égale : la largeur de chacune
   découle de son format. Une verticale et une paysage tiennent côte à côte
   sans qu'aucune soit recadrée ni qu'un trou se creuse dans la grille. */
.video-media-grid { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 26px); }
/* Le cadre porte les dimensions, la figure l'entoure : un sous-titre peut
   ainsi s'écrire sous la vidéo sans être rogné par le cadrage. */
.video-media-item { margin: 0; }
.video-media-frame { height: clamp(190px, 21vw, 400px); overflow: hidden; background: rgba(0,0,0,.14); }
.video-media-item.is-landscape .video-media-frame, .video-media-item.is-empty.is-landscape { aspect-ratio: 16 / 9; }
.video-media-item.is-portrait .video-media-frame, .video-media-item.is-empty.is-portrait { aspect-ratio: 9 / 16; }
.video-media-item .wp-video, .video-media-item .mejs-container { width: 100% !important; height: 100% !important; }
.video-media-item video, .video-media-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-media-item figcaption { max-width: 100%; margin-top: 10px; color: rgba(255,248,237,.78); font-size: 13px; line-height: 1.45; }
/* Emplacements en attente : ils montrent la place réservée aux vidéos et
   leurs deux formats, tant que la galerie de la page est vide. */
.video-media-item.is-empty { height: clamp(190px, 21vw, 400px); overflow: hidden; background: rgba(0,0,0,.14); display: grid; place-items: center; border: 1px dashed rgba(255,248,237,.55); text-align: center; }
.video-media-item.is-empty span { display: grid; gap: 6px; padding: 14px; color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.video-media-item.is-empty small { font-size: 10px; font-weight: 600; letter-spacing: .08em; opacity: .62; }
.video-media-hint { flex: 1 0 100%; margin: 4px 0 0; color: rgba(255,248,237,.8); font-size: 13px; }

.service-story { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(40px, 6vw, 104px); padding: clamp(88px, 11vw, 155px) clamp(22px, 7vw, 112px); }
.service-story:nth-of-type(even) { background: var(--blush); }
.story-heading { position: sticky; top: 112px; align-self: start; container-type: inline-size; }
.story-heading h2 sup { font-size: .52em; vertical-align: .62em; }
.story-heading h2 { margin-bottom: 25px; font-size: clamp(36px, 14.2cqw, 92px); line-height: .9;
  /* La taille est calée sur la colonne : plus besoin de casser les mots,
     et surtout plus de coupure sur l'espace insécable avant « ? » ou « ! ». */
  overflow-wrap: normal; }
.story-heading > p:not(.eyebrow) { max-width: 480px; color: rgba(0,0,0,.68); font-size: 17px; }
/* Seconde photo, sous le titre : elle remplit la colonne de gauche. */
.service-story.has-heading-image .story-heading { position: static; }
.story-heading-image { margin: clamp(26px, 3vw, 38px) 0 0; max-width: 480px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--coral); }
.story-heading-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-content { display: grid; gap: 14px; }
/* Photo de section : la page de prestation respire au lieu d'aligner des
   blocs de texte. Elle apparaît dès qu'une image est ajoutée à la galerie. */
/* La photo de section se place à côté des cartes et prend exactement leur
   hauteur : en pleine largeur, un cadre portrait écrasait la page. */
.service-story.has-story-image .story-content { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; }
/* Deux cartes : on déclare les deux rangées pour que la photo les longe
   toutes les deux au lieu de s'arrêter à la première. */
.service-story.has-story-image .story-content:has(.story-card + .story-card) { grid-template-rows: 1fr 1fr; }
.story-image { position: relative; margin: 0; overflow: hidden; grid-row: 1 / -1; }
.service-story.has-story-image .story-card { grid-column: 2; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.75,.25,1); }
.story-image:hover img { transform: scale(1.03); }
.story-card { min-height: 190px; padding: clamp(26px, 4vw, 48px); background: var(--cream); }
.story-card:nth-of-type(2n) { background: var(--sun); }
/* Page Vidéo, « Le bon format » : les cartes 01 (Film de marque)
   et 03 (Reels & formats courts) se détachent du fond crème avec une
   teinte abricot douce. Les cartes 02 et 04 gardent leur fond actuel. */
.video-page #formats .story-content > .story-card:nth-of-type(odd) { background: var(--blush); }

/* Section au format court : les deux cartes sont resserrées et la photo du
   milieu fait exactement leur hauteur. Celle de gauche reste la plus petite. */
/* align-items: start — sinon les cartes s'étirent sur la hauteur de la colonne
   de gauche (titre + photo) et le bloc double de hauteur. Elles gardent donc
   leur hauteur de texte et tiennent dans celle de la photo du milieu. */
.service-story.has-short-image .story-content { align-content: start; align-items: start; }
.service-story.has-short-image .story-content:has(.story-card + .story-card) { grid-template-rows: auto auto; }
.service-story.has-short-image .story-image { grid-row: 1 / 3; align-self: stretch; aspect-ratio: auto; min-height: 0; }
.service-story.has-short-image .story-card { min-height: 0; padding: clamp(22px, 2.1vw, 32px); }
.service-story.has-short-image .story-card h3 { font-size: clamp(20px, 1.6vw, 24px); }
.service-story.has-short-image .story-card p { font-size: 15px; }
.service-story.has-short-image .story-heading-image { max-width: 310px; }

/* Section à quatre cartes : deux colonnes de cartes plus serrées, pour que le
   bloc tienne en hauteur. Le sélecteur :has reprend celui des deux rangées. */
/* La colonne de titre est réduite pour laisser de la place à la photo et
   aux quatre cartes. */
.service-story.is-compact { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: clamp(32px, 4vw, 64px); }
.service-story.is-compact .story-content { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); }
/* Sans photo, les quatre cartes occupent deux colonnes de deux. */
.service-story.is-compact:not(.has-story-image) { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(40px, 6vw, 104px); }
.service-story.is-compact:not(.has-story-image) .story-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.service-story.is-compact .story-content:has(.story-card + .story-card) { grid-template-rows: auto auto; }
.service-story.is-compact .story-image { grid-row: 1 / 3; grid-column: 1; }
.service-story.is-compact .story-card { grid-column: auto; min-height: 0; padding: clamp(22px, 2.1vw, 32px); }
.service-story.is-compact .story-card h3 { font-size: clamp(20px, 1.6vw, 24px); }
.service-story.is-compact .story-card p { font-size: 15px; }
.story-card > span { display: block; margin-bottom: 28px; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.story-card h3 { margin-bottom: 12px; font-size: clamp(29px, 3vw, 42px); line-height: 1.04; }
.story-card p { max-width: 690px; margin: 0; color: rgba(0,0,0,.7); }
.service-story.is-dark { color: var(--cream); background: var(--ink); }
.service-story.is-dark .story-heading > p:not(.eyebrow) { color: rgba(255,248,237,.66); }
.service-story.is-dark .story-card { color: var(--ink); }

.service-photo-break { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: clamp(24px, 5vw, 72px); align-items: end; padding: clamp(30px, 5vw, 72px) clamp(22px, 7vw, 112px); background: var(--cream); }
.service-photo-media { display: grid; gap: clamp(10px, 2vw, 24px); }
.service-photo-break figure { margin: 0; overflow: hidden; }
.service-photo-break figure:nth-child(2) { align-self: end; }
.service-photo-break img { width: 100%; height: 100%; object-fit: cover; }
.service-photo-break figure { aspect-ratio: 4 / 5; }
.service-photo-media { grid-template-columns: 1fr 1fr; align-items: end; }
.service-photo-copy { display: grid; align-content: end; justify-items: start; gap: 26px; }
.service-photo-break p { max-width: 390px; margin: 0; font-family: var(--serif); font-size: clamp(25px, 3.1vw, 43px); line-height: 1.08; }
.service-photo-break p span { display: block; margin-bottom: 13px; font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-photo-break .button { white-space: normal; }

.experience-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; padding: clamp(75px, 9vw, 125px) clamp(22px, 7vw, 112px); background: var(--sun); }
.experience-band h2 { margin: 0; font-size: clamp(36px, 4.2vw, 62px); line-height: .94; }
.experience-band > div > p { max-width: 720px; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.16; }
.experience-band .qualities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
/* Ces mots décrivent une manière de travailler : ce ne sont pas des boutons,
   ils ne doivent donc pas en avoir l'allure. */
.experience-band .qualities { gap: 0 14px; }
.experience-band .qualities span { font-family: var(--serif); font-size: clamp(16px,1.4vw,19px); font-style: italic; }
.experience-band .qualities span + span::before { content: "·"; margin-right: 14px; font-style: normal; opacity: .45; }

.cross-service { padding: clamp(78px, 9vw, 120px) clamp(22px, 7vw, 112px); background: var(--cream); }
.cross-service-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: clamp(35px, 5vw, 70px); background: var(--coral); }
.cross-service h2 { margin-bottom: 12px; font-size: clamp(42px, 5vw, 72px); line-height: .9; }
.cross-service p { max-width: 720px; margin: 0; }
.page-cta { min-height: 490px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: clamp(70px, 9vw, 125px) clamp(22px, 8vw, 130px); color: var(--cream); background: var(--ink); }
.page-cta-copy { min-width: 0; }
.page-cta h2 { margin: 0; font-size: clamp(54px, 8vw, 105px); line-height: .86; }
.page-cta-copy p { max-width: 560px; margin: 26px 0 0; color: rgba(255,248,237,.72); font-size: clamp(16px, 1.3vw, 19px); }
.page-cta h2 em { color: var(--sun); }
.page-cta .circle-button { color: var(--ink); background: var(--coral); }

/* Sur les pages Photo pro, Mariage et Famille, la colonne de présentation
   devient plus étroite et les photos/cartes à droite gagnent en largeur.
   Aucun changement de structure, ni de mise en page sur tablette/mobile. */
@media (min-width: 1021px) {
  .entreprise-page .service-story,
  .mariage-page .service-story,
  .famille-page .service-story {
    grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr);
    gap: clamp(32px, 3.5vw, 60px);
  }
  .entreprise-page .service-story.has-story-image .story-content,
  .mariage-page .service-story.has-story-image .story-content,
  .famille-page .service-story.has-story-image .story-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }
}

/* Photo facultative, au format paysage, sous « Le bon format » :
   proportions réelles préservées pour ne pas recadrer la photo choisie. */
.video-page .video-formats-image { margin: clamp(26px, 3vw, 38px) 0 0; width: 100%; }
.video-page .video-formats-image img { display: block; width: 100%; height: auto; object-fit: contain; background: transparent; }
.video-page .story-heading:has(.video-formats-image) { position: static; }

@media (max-width: 1020px) {
  .prestation-hero { grid-template-columns: .85fr 1fr; gap: 38px; }
  .service-story { grid-template-columns: 1fr; }
  .story-heading { position: static; }
}
/* Entre 761 et 1100 px, trois colonnes rendraient les cartes illisibles :
   la section compacte reprend la mise en page normale. */
@media (max-width: 1100px) {
  .service-story.is-compact { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(40px, 6vw, 104px); }
  .service-story.is-compact .story-content { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .service-story.is-compact:not(.has-story-image) .story-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* À cette largeur les quatre cartes s'empilent : la photo garde un cadre
     portrait en haut plutôt que de s'étirer sur toute la colonne. */
  .service-story.is-compact .story-image { grid-row: 1 / -1; align-self: start; aspect-ratio: 4 / 5; }
  .service-story.is-compact .story-card { grid-column: 2; }
  /* Quatre rangées déclarées : sans elles, grid-row 1 / -1 ne couvre que la
     première et la photo ne longe plus les cartes. */
  .service-story.is-compact .story-content:has(.story-card + .story-card) { grid-template-rows: repeat(4, auto); }
}

@media (max-width: 760px) {
  .prestation-hero { min-height: auto; grid-template-columns: 1fr; padding: 112px 18px 52px; }
  .prestation-hero h1 { font-size: clamp(40px, 13vw, 66px); }
  .prestation-hero { padding-left: 16px; padding-right: 16px; }
  .prestation-visual { justify-self: stretch; width: 100%; max-height: none; }
  .prestation-visual img { width: 100%; max-height: none; }
  .video-showcase { padding: 76px 18px; }
  .video-showcase-heading { gap: 20px; }
  .video-showcase-heading h2 { font-size: 58px; }
  .video-media-item { height: auto; width: 100%; }
  .video-media-frame { height: auto; width: 100%; }
  .video-media-item.is-landscape .video-media-frame, .video-media-item.is-portrait .video-media-frame { aspect-ratio: auto; }
  .video-media-item.is-landscape, .video-media-item.is-portrait { aspect-ratio: auto; }
  .video-media-item.is-landscape video, .video-media-item.is-landscape img, .video-media-item.is-landscape.is-empty { aspect-ratio: 16 / 9; }
  .video-media-item.is-portrait video, .video-media-item.is-portrait img, .video-media-item.is-portrait.is-empty { aspect-ratio: 9 / 16; }
  .service-story { padding: 76px 18px; gap: 42px; }
  .story-heading h2 { font-size: clamp(36px, 14.2cqw, 57px); }
  .story-card { min-height: 0; padding: 28px 23px; }
  /* Sur mobile, la photo repasse au-dessus des cartes, en pleine largeur. */
  .service-story.has-story-image .story-content { grid-template-columns: 1fr; grid-template-rows: none; }
  .service-story.is-compact { grid-template-columns: 1fr; }
  .service-story.is-compact .story-content { grid-template-columns: 1fr; }
  .service-story.is-compact:not(.has-story-image) { grid-template-columns: 1fr; }
  .service-story.is-compact:not(.has-story-image) .story-content { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .service-story.is-compact .story-card { grid-column: auto; padding: 18px 16px; }
  .service-story.is-compact .story-card h3 { font-size: 19px; }
  .service-story.is-compact .story-card p { font-size: 14px; }
  .service-story.is-compact .story-content:has(.story-card + .story-card) { grid-template-rows: none; }
  .service-story.is-compact .story-image { grid-row: auto; grid-column: auto; }
  .service-story.has-story-image .story-content:has(.story-card + .story-card) { grid-template-rows: none; }
  .service-story.has-story-image .story-card { grid-column: auto; }
  .story-image { grid-row: auto; aspect-ratio: 4 / 5; }
  .video-media-grid { gap: 10px; }
  .service-photo-break { grid-template-columns: 1fr; padding: 28px 18px 64px; }
  .service-photo-media { grid-template-columns: 1.2fr .8fr; }
  .service-photo-break p { max-width: 520px; }
  .experience-band { grid-template-columns: 1fr; padding: 70px 20px; }
  .experience-band h2 { font-size: 64px; }
  .cross-service { padding: 66px 18px; }
  .cross-service-inner { grid-template-columns: 1fr; padding: 32px 23px; }
  .page-cta { min-height: 510px; grid-template-columns: 1fr; padding: 70px 20px; }
  .page-cta h2 { font-size: 59px; }
  .page-cta .circle-button { justify-self: end; }
}
