/* Madeleine — sections composables (Blok 3.1) + fondations typo/rythme (3.2 vague 1). */

/* ═══ Fondations Madeleine — échelle typographique & rythme vertical ═══
   Ratio ~1.25 ; tout est en clamp() : les sections consomment ces variables,
   plus aucune taille au cas par cas. */
.page-sections {
  --t-display: clamp(2.8rem, 7vw, 5.4rem);     /* héro */
  --t-h2:      clamp(1.7rem, 3.2vw, 2.6rem);   /* titres de sections */
  --t-lead:    clamp(1.08rem, 1.5vw, 1.25rem); /* sous-titres, accroches */
  --t-body:    1.05rem;
  --t-small:   .85rem;
  --t-caption: .78rem;
  --t-over:    .72rem;                          /* surtitres uppercase */
  --lh-tight:  1.05;
  --lh-body:   1.75;
  --sp-s: clamp(28px, 4vw, 48px);               /* section serrée */
  --sp-n: clamp(56px, 9vw, 112px);              /* section normale */
  --sp-l: clamp(104px, 14vw, 184px);            /* section aérée */
  --gap:    clamp(24px, 4.5vw, 56px);           /* gouttières internes */
  --in-pad: clamp(20px, 4vw, 30px);             /* marges latérales */
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 300;
}

/* Titre de section : la voix de Madeleine — serif fine + surtitre optionnel */
.blk-h2 { font-family: var(--f-head); font-weight: 100; font-size: var(--t-h2);
  line-height: 1.15; letter-spacing: -.01em; margin: 0 0 clamp(20px, 3vw, 36px); }
.blk-over { display: block; font-family: var(--f-body); font-size: var(--t-over);
  font-weight: 400; letter-spacing: .14em; text-transform: uppercase; opacity: .55;
  margin-bottom: 14px; }

.blk-sec { padding: var(--sp-n) var(--in-pad); }
.blk-sec.blk-sp-serre { padding-top: var(--sp-s); padding-bottom: var(--sp-s); }
.blk-sec.blk-sp-aere  { padding-top: var(--sp-l); padding-bottom: var(--sp-l); }
.blk-sec.blk-bg-clair  { background: var(--bg, #fff); color: var(--text, #111); }
.blk-sec.blk-bg-sombre { background: var(--ink, #111); color: var(--paper, #f4f2ec); }
.blk-sec.blk-bg-accent { background: var(--accent, #b1502c); color: var(--paper, #f4f2ec); }
.blk-in { max-width: 1200px; margin: 0 auto; }
.blk-in--narrow { max-width: 760px; }

/* Héro */
.blk-hero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; padding: 0; overflow: hidden; }
.blk-hero .blk-hero-img, .blk-hero .blk-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blk-hero .blk-hero-txt { position: relative; z-index: 2; padding: 60px 30px; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,.45)); color: #fff; }
.blk-hero h1 { font-family: var(--f-head); font-weight: 100; font-size: var(--t-display); line-height: var(--lh-tight); letter-spacing: -.02em; margin: 0; }
.blk-hero p  { font-size: var(--t-lead); font-weight: 300; margin: 16px 0 0; opacity: .92; }
.blk-hero.blk-v-centre .blk-hero-txt { text-align: center; }
.blk-hero--nude { min-height: 0; }
.blk-hero--nude .blk-hero-txt { background: none; color: inherit; padding: 96px 30px 40px; }

/* Média + texte */
.blk-media-texte .blk-in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.blk-media-texte img { width: 100%; border-radius: var(--r, 8px); }
.blk-media-texte.blk-v-droite .blk-mt-media { order: 2; }
.blk-media-texte h2 { font-family: var(--f-head); font-weight: 100; font-size: var(--t-h2); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 20px; }
.blk-media-texte .blk-mt-body { font-size: var(--t-body); line-height: var(--lh-body); }
.blk-media-texte .blk-mt-body p { margin-bottom: 1em; }

/* Texte riche */
.blk-rich-text .blk-in { font-size: var(--t-body); line-height: var(--lh-body); }
.blk-rich-text p { margin-bottom: 1.2em; }
.blk-rich-text h2, .blk-rich-text h3 { font-family: var(--f-head); font-weight: 100; margin: 1.4em 0 .5em; }
.blk-rich-text a { text-decoration: underline; text-underline-offset: 3px; }

/* Image pleine largeur */
.blk-image-full { padding-left: 0; padding-right: 0; }
.blk-image-full img { width: 100%; display: block; }
.blk-image-full figcaption { max-width: 1200px; margin: 12px auto 0; padding: 0 var(--in-pad); font-size: var(--t-caption); opacity: .6; }

/* Bandeau d'appel */
.blk-cta .blk-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.blk-cta p { font-family: var(--f-head); font-weight: 100; font-size: var(--t-h2); line-height: 1.15; margin: 0; }
.blk-cta a { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 12px 28px;
  font-size: .9rem; text-decoration: none; color: inherit; transition: background .15s, color .15s; }
.blk-cta a:hover { background: currentColor; }
.blk-cta a:hover span { color: var(--bg, #fff); filter: invert(1); }

/* Espace */
.blk-espace { padding: 0; }
.blk-esp-s { height: 32px; } .blk-esp-m { height: 88px; } .blk-esp-l { height: 176px; }

@media (max-width: 820px) {
  .blk-sec { padding: 48px 20px; }
  .blk-media-texte .blk-in { grid-template-columns: 1fr; gap: 28px; }
  .blk-media-texte.blk-v-droite .blk-mt-media { order: 0; }
}

/* Galerie */
.blk-gal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.blk-gal img { width: 100%; border-radius: var(--r, 8px); }
.blk-gal figcaption { font-size: var(--t-caption); opacity: .6; margin-top: 8px; }
.blk-gal-it { margin: 0; }
.blk-gal--scroll { display: flex; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.blk-gal--scroll .blk-gal-it { flex: 0 0 70%; scroll-snap-align: start; }

/* Vidéo */
.blk-video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r, 8px); overflow: hidden; }
.blk-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-video-file { width: 100%; border-radius: var(--r, 8px); }
.blk-video-cap { font-size: var(--t-caption); opacity: .6; margin-top: 10px; }

/* Citation */
.blk-quote-q { margin: 0; text-align: center; }
.blk-quote-q p { font-family: var(--f-head); font-weight: 100; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.blk-quote-q cite { display: block; margin-top: 22px; font-size: var(--t-over); font-style: normal; opacity: .55; letter-spacing: .14em; text-transform: uppercase; }

/* Chiffres clés */
.blk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--gap); text-align: center; }
.blk-stat b { display: block; font-family: var(--f-head); font-weight: 100; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -.02em; }
.blk-stat span { display: block; margin-top: 12px; font-size: var(--t-over); opacity: .55; letter-spacing: .14em; text-transform: uppercase; }

/* Liste datée */
.blk-liste { list-style: none; margin: 0; padding: 0; }
.blk-liste li { display: flex; gap: 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-weight: 300; }
.blk-liste-y { flex: 0 0 56px; font-size: var(--t-small); opacity: .5; font-variant-numeric: tabular-nums; }
.blk-liste-t { flex: 1; }
.blk-liste-n { font-size: var(--t-small); opacity: .55; }

/* Colonnes de texte */
.blk-cols { display: grid; gap: var(--gap); font-size: var(--t-body); line-height: var(--lh-body); }
.blk-cols-2 { grid-template-columns: 1fr 1fr; } .blk-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.blk-cols p { margin-bottom: 1em; }

/* Grille de projets */
.blk-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.blk-pcard { text-decoration: none; color: inherit; display: block; }
.blk-pcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r, 8px); transition: opacity .2s; }
.blk-pcard:hover img { opacity: .85; }
.blk-pcard-t { display: block; margin-top: 14px; font-size: var(--t-body); }
.blk-pcard-m { display: block; margin-top: 3px; font-size: var(--t-caption); opacity: .5; }

/* Clients */
.blk-clients { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.blk-client { font-size: .95rem; font-weight: 300; opacity: .75; text-decoration: none; color: inherit; }
a.blk-client:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Équipe */
.blk-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.blk-member img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r, 8px); margin-bottom: 12px; }
.blk-member b { display: block; font-size: .98rem; }
.blk-member span { display: block; font-size: .8rem; opacity: .6; margin-top: 2px; }
.blk-member p { font-size: .86rem; line-height: 1.6; font-weight: 300; margin: 8px 0 0; opacity: .85; }

/* Derniers articles */
.blk-arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.blk-art { text-decoration: none; color: inherit; }
.blk-art img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r, 8px); }
.blk-art-d { display: block; margin-top: 14px; font-size: var(--t-over); opacity: .5; letter-spacing: .14em; text-transform: uppercase; }
.blk-art-t { display: block; margin-top: 4px; font-size: .98rem; }
.blk-art:hover .blk-art-t { text-decoration: underline; text-underline-offset: 3px; }

/* Bande coordonnées */
.blk-cband { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: baseline; font-weight: 300; }
.blk-cband b { font-weight: 600; }
.blk-cband a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Accordéon */
.blk-acc { border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.blk-acc summary { padding: 16px 0; cursor: pointer; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.blk-acc summary::after { content: '+'; font-size: 1.3rem; font-weight: 100; }
.blk-acc[open] summary::after { content: '–'; }
.blk-acc-body { padding: 0 0 18px; font-weight: 300; line-height: 1.7; }

@media (max-width: 820px) {
  .blk-gal, .blk-cols-2, .blk-cols-3 { grid-template-columns: 1fr; }
  .blk-pgrid, .blk-arts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .blk-pgrid, .blk-arts { grid-template-columns: 1fr; } }
