/* Maison Relais Charlemagne Académie — V2 « chaleureuse »
   Couche posée sur styles.css. La structure et la clarté restent celles
   d’Apple ; la température change :
   - titres en police arrondie (SF Pro Rounded sur Mac et iPhone, Nunito ailleurs) ;
   - cases aux couleurs douces des groupes d’âge au lieu du gris neutre ;
   - une seule section sombre par page ;
   - dessins au crayon, à remplacer à terme par de vrais dessins d’enfants. */

@font-face {
  font-family: 'Nunito Var';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Var';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-round: ui-rounded, 'SF Pro Rounded', 'Nunito Var', -apple-system, BlinkMacSystemFont, sans-serif;
  --paper: #FBF8F3;          /* fond des sections alternées : blanc à peine réchauffé */
  --coral-50: #FCEDE7;
  --leaf-50: #E7F3EA;
  --sky-50: #E7EFFB;
  --sun-50: #FBF2DC;
  --royal-50: #E9EEFA;
  --coral-ink: #A8432A;      /* textes colorés sur fonds doux (contraste AA) */
  --leaf-ink: #2A6E41;
  --sky-ink: #1C5BA6;
  --sun-ink: #7E5C14;
  --ink-2: #616166;       /* gris de texte un peu plus soutenu : AA sur tous les fonds doux */
  --r-tile: 32px;
  --r-img: 22px;
}

/* ---------- Titres et grands chiffres : police arrondie ---------- */
.h1, .h2, .h3, .kicker, .subhead, .tile__big, .tile__label, .group__age, .price__val, .rhythm__when, .steps-day time,
.estimate__val, .fact__big, .age__badge, .meteo__temp, .cal-month__title, .cal-detail strong, .faq summary,
.services strong, .privacy strong, .rights strong, .ladder strong, .values strong, .rules strong, .study-rules strong,
.signature strong, .fsec > h2, .legal h2, .tile__cap, .contact a, .contact p, .agenda__body strong, .carousel__item figcaption strong {
  font-family: var(--font-round);
}
.h1 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.h3, .subhead, .faq summary, .fsec > h2, .legal h2 { font-weight: 700; letter-spacing: -0.015em; }
.kicker { font-weight: 700; letter-spacing: 0; }
.tile__big, .group__age, .price__val, .fact__big, .age__badge, .estimate__val, .rhythm__when { font-weight: 800; letter-spacing: -0.035em; }
.steps-day time { font-weight: 800; letter-spacing: -0.02em; }
.services strong, .privacy strong, .rights strong, .ladder strong, .values strong, .rules strong, .study-rules strong, .signature strong { font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Fonds ---------- */
.section--light { background: var(--paper); }
.ribbon { background: var(--sun-50); }
.ribbon strong { font-family: var(--font-round); font-weight: 800; color: var(--sun-ink); margin-right: 4px; }
.footer { background: var(--paper); }
.section--sun { background: var(--sun-50); }
.section--sky { background: var(--sky-50); }

/* ---------- Héros : la photo garde son effet, les dessins entrent une seule fois ---------- */
.hero__copy { position: relative; max-width: 1040px; margin: 0 auto; }
.doodle { position: absolute; pointer-events: none; user-select: none; height: auto; }
.hero .doodle { width: clamp(44px, 6vw, 84px); animation: doodle-in .7s cubic-bezier(.34, 1.4, .64, 1) both; }
.hero .d1 { top: -6px; left: 2%; transform: rotate(-8deg); animation-delay: .15s; }
.hero .d2 { top: 34%; left: -1%; width: clamp(36px, 4.6vw, 64px); transform: rotate(10deg); animation-delay: .3s; }
.hero .d3 { top: -16px; right: 4%; width: clamp(56px, 8vw, 110px); animation-delay: .45s; }
.hero .d4 { top: 46%; right: 0; width: clamp(40px, 5vw, 70px); transform: rotate(6deg); animation-delay: .6s; }
.hero .d5 { bottom: -4px; left: 16%; width: clamp(46px, 6vw, 86px); animation-delay: .75s; }
@keyframes doodle-in { from { opacity: 0; scale: .4; rotate: -14deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@media (max-width: 734px) {
  .hero__copy { padding-top: 58px; }
  .hero .d2, .hero .d4 { display: none; }
  .hero .d1 { top: 6px; left: 12%; width: 40px; }
  .hero .d3 { top: -6px; right: 12%; width: 56px; }
  .hero .d5 { bottom: -22px; left: 6%; width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .hero .doodle { animation: none; } }
@media (min-width: 735px) { .hero__media { border-radius: 40px; } }

/* Petit dessin au-dessus de certains titres de section */
.head { position: relative; }
.doodle--head { position: static; display: block; width: 58px; margin-bottom: 14px; }
.head--center .doodle--head { margin-left: auto; margin-right: auto; }

/* ---------- L’essentiel : chaque case a sa couleur ---------- */
.tile { background: var(--paper); }
.b-ages { background: var(--coral-50); }
.b-ages .tile__label, .b-ages .tile__big { color: var(--coral-ink); }
.tile--night.b-hours, .b-hours { background: var(--sun-50) !important; color: var(--ink); }
.b-hours .tile__label, .b-hours .tile__big { color: var(--sun-ink) !important; }
.b-hours .tile__txt { color: var(--ink-2) !important; }
.b-trajet { background: var(--leaf-50); }
.b-trajet .tile__label, .b-trajet .tile__big { color: var(--leaf-ink); }
.b-csa { background: var(--sky-50); }
.b-csa .tile__label, .b-csa .tile__big { color: var(--sky-ink); }
.tile .doodle { position: absolute; width: 74px; right: 26px; top: 24px; opacity: .95; }
@media (max-width: 734px) { .tile .doodle { width: 56px; right: 18px; top: 18px; } }

/* ---------- Groupes, ateliers, valeurs : couleurs des âges ---------- */
.group { background: var(--paper); }
#groupes .group:nth-child(1), #equipe .member:nth-child(1) { background: var(--coral-50); }
#groupes .group:nth-child(2), #equipe .member:nth-child(2) { background: var(--leaf-50); }
#groupes .group:nth-child(3), #equipe .member:nth-child(3) { background: var(--sky-50); }
#groupes .group:nth-child(1) .group__age { color: var(--coral-ink); }
#groupes .group:nth-child(2) .group__age { color: var(--leaf-ink); }
#groupes .group:nth-child(3) .group__age { color: var(--sky-ink); }
.section--light .group { background: var(--white); }
.atelier:nth-child(4n+1) { background: var(--coral-50); }
.atelier:nth-child(4n+2) { background: var(--leaf-50); }
.atelier:nth-child(4n+3) { background: var(--sky-50); }
.atelier:nth-child(4n+4) { background: var(--sun-50); }
.atelier:nth-child(4n+1) .h3 { color: var(--coral-ink); }
.atelier:nth-child(4n+2) .h3 { color: var(--leaf-ink); }
.atelier:nth-child(4n+3) .h3 { color: var(--sky-ink); }
.atelier:nth-child(4n+4) .h3 { color: var(--sun-ink); }
.values li { border-top-width: 3px; }
.values li:nth-child(5n+1) { border-top-color: #E7A28F; }
.values li:nth-child(5n+2) { border-top-color: #93C7A2; }
.values li:nth-child(5n+3) { border-top-color: #9CBDEB; }
.values li:nth-child(5n+4) { border-top-color: #EBC771; }
.values li:nth-child(5n+5) { border-top-color: #A7B6E2; }
.values li:nth-child(5n+1) strong { color: var(--coral-ink); }
.values li:nth-child(5n+2) strong { color: var(--leaf-ink); }
.values li:nth-child(5n+3) strong { color: var(--sky-ink); }
.values li:nth-child(5n+4) strong { color: var(--sun-ink); }
.age__note { background: var(--sun-50); }
.ladder li { background: var(--coral-50); }
.ladder li::before { background: var(--coral-ink); }
.steps li::before { background: var(--accent); }
.fact { background: var(--paper); }
.section:not(.section--light) .fact:nth-child(3n+1) { background: var(--coral-50); }
.section:not(.section--light) .fact:nth-child(3n+2) { background: var(--leaf-50); }
.section:not(.section--light) .fact:nth-child(3n+3) { background: var(--sky-50); }
.price--accent { background: var(--sky-50); }
.contact > div, .section--light .contact > div { background: var(--white); }
.section:not(.section--light):not(.section--sun) .contact > div { background: var(--sky-50); }
.pillar .frame, .carousel__item img { border-radius: var(--r-img); }
.pillar .frame { border-radius: 0; }
.services li { border-top: 3px solid var(--sun-50); }

/* ---------- L’équipe ---------- */
.team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
.team__lead { background: var(--white); border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column; }
.team__lead .frame { border-radius: 0; aspect-ratio: 4 / 3; }
.team__lead .frame img { object-position: 50% 22%; }
.team__lead div.team__body { padding: 28px 30px 32px; }
.team__lead blockquote { margin: 0; font-family: var(--font-round); font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.team__lead p { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.team__lead p strong { color: var(--ink); }
.team__groups { display: grid; gap: 20px; grid-template-rows: repeat(3, auto) 1fr; }
.member { border-radius: var(--r-tile); padding: 26px 28px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; }
.member img { width: 64px; height: 64px; }
.member strong { display: block; font-family: var(--font-round); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.member span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.team__facts { list-style: none; margin: 0; padding: 26px 28px; background: var(--white); border-radius: var(--r-tile); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px 28px; }
.team__facts li { color: var(--ink-2); font-size: 15px; }
.team__facts strong { display: block; font-family: var(--font-round); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }

/* ---------- Sections redevenues claires ---------- */
/* Suivi (accueil) */
.section--sun .rhythm li { background: var(--white); }
.section--sun .rhythm__when { color: var(--sun-ink); }
.section--sun .rhythm p { color: var(--ink-2); }
.section--sun .privacy li { border-top-color: rgba(126, 92, 20, 0.22); color: var(--ink-2); }
.section--sun .privacy strong { color: var(--ink); }
/* Règles de vie (pédagogie) */
.section--sky .rules li { background: var(--white); color: var(--ink-2); }
.section--sky .rules li::before { color: var(--sky-ink); font-family: var(--font-round); font-weight: 800; }
.section--sky .rules strong { color: var(--ink); }
.section--sky .lead { color: var(--ink-2); }

/* Simulateur de tarif */
.estimator { background: var(--sky-50); color: var(--ink); }
.estimator .h3 { color: var(--ink); }
.estimator label { color: var(--ink-2); }
.estimator label strong { color: var(--ink); }
.estimator select { background-color: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #C9D6EC; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.6'/%3E%3C/svg%3E"); }
.estimator input[type=range] { accent-color: var(--accent); }
.presets button { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #C9D6EC; }
.presets button:hover { background: var(--accent); color: #fff; box-shadow: none; }
.estimate { border-top-color: rgba(28, 91, 166, 0.2); }
.estimate__val { color: var(--sky-ink); }
.estimate p { color: var(--ink-2); }
.estimator :focus-visible { outline-color: rgba(26, 79, 209, 0.55); }

/* Détail du jour (calendrier) */
.cal-detail { background: var(--white); color: var(--ink-2); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 12px 32px rgba(27, 47, 110, 0.10); }
.cal-detail strong { color: var(--ink); }
.cal-detail__type { background: var(--sun-50); color: var(--sun-ink); }
.cal-detail__type--ferme, .cal-detail__type--ferie { background: var(--coral-50); color: var(--coral-ink); }
.cal-detail__evt { color: var(--sky-ink); }
.cal-detail :focus-visible { outline-color: rgba(26, 79, 209, 0.55); }
.cal-month { border-radius: 26px; }
.cal-day.is-today { background: var(--accent); }

/* Actions du dossier en ligne */
.insc-actions { background: var(--sun-50); color: var(--ink); }
.insc-actions p { color: var(--ink-2); }
.insc-actions .btn--gold { background: var(--accent); color: #fff; }
.insc-actions .btn--gold:hover { background: var(--accent-hover); color: #fff; }
.insc-actions .btn--ghost { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.insc-actions .btn--ghost:hover { background: var(--accent); color: #fff; }
.insc-status { color: var(--leaf-ink); }
.insc-status.is-error { color: #B3261E; }
.linkbtn { color: var(--accent); }
.insc-actions :focus-visible { outline-color: rgba(26, 79, 209, 0.55); }

/* La seule section sombre de l’accueil (la journée) se réchauffe légèrement */
.section--navy { background: #12224E; }
.steps-day li, .rules li, .study__card { background: #1B2E63; }

/* Page d’erreur */
.page-head .doodle--head { width: 84px; }

/* Contraste accru : les fonds doux deviennent blancs, les cases sont cerclées */
@media (prefers-contrast: more) {
  .b-ages, .b-hours, .b-trajet, .b-csa, .member, .atelier, .fact, .estimator, .insc-actions, .rhythm li { background: #FFFFFF !important; box-shadow: inset 0 0 0 1.5px #1D1D1F; }
}
@media print { .doodle { display: none !important; } }
.team__lead { background: var(--white); }
.team__lead .h3 { font-size: clamp(22px, 2.2vw, 28px); }
.engagements { list-style: none; counter-reset: e; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.engagements li { counter-increment: e; position: relative; padding-left: 32px; color: var(--ink-2); font-size: 15.5px; }
.engagements li::before { content: ''; position: absolute; left: 6px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #EBC771; }
.engagements li:nth-child(3n+2)::before { background: #93C7A2; }
.engagements li:nth-child(3n+3)::before { background: #E7A28F; }
.engagements strong { display: block; color: var(--ink); font-family: var(--font-round); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* Calendrier : les fermetures en corail plutôt qu’en noir, plus doux mais toujours lisibles */
:root { --c-ferme: #A8432A; --c-vac: #F8E6B8; --c-peda: #DCE8FA; --c-ferie: #E4DFD6; }
.cal-day--ferme { color: #FFFFFF; }
.agenda__tag--ferme { background: var(--coral-50); color: var(--coral-ink); }
.agenda__tag--mr { background: var(--sun-50); color: var(--sun-ink); }
.agenda__tag--ecole { background: var(--sky-50); color: var(--sky-ink); }

/* ---------- Signature Charlemagne Académie : visible partout ---------- */
:root { --header-h: 72px; }
.site-header__bar { height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-round); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #1B2F6E; white-space: nowrap; }
.brand__sub { margin-top: 3px; font-size: 13px; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.brand:active { opacity: .7; }
@media (max-width: 1060px) {
  .nav { top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}
@media (min-width: 1061px) { .nav { gap: clamp(14px, 1.4vw, 20px); } .nav a { white-space: nowrap; } }
@media (max-width: 1340px) and (min-width: 1061px) { .nav { gap: 14px; font-size: 13.5px; } .nav .btn { padding: 7px 12px; font-size: 13.5px; } .brand__name { font-size: 20px; } }
@media (max-width: 420px) {
  :root { --header-h: 64px; }
  .brand { gap: 10px; }
  .brand__mark { height: 38px; }
  .brand__name { font-size: 19px; }
  .brand__sub { font-size: 12px; }
}
html { scroll-padding-top: calc(var(--header-h) + 12px); }

/* Héros de l’accueil : le nom avant le message */
.hero__brand { margin: 0; display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-round); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.025em; color: #1B2F6E; line-height: 1.1; }
.hero__brand img { height: clamp(40px, 4.6vw, 56px); width: auto; }
.hero__sub { margin: 8px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
.hero .h1 { margin-top: clamp(22px, 3vw, 34px); }
@media (max-width: 734px) { .hero__copy { padding-top: 64px; } }

/* Pied de page : la marque en tête */
.footer__brand { max-width: var(--measure); margin: 0 auto; padding: 34px 0 22px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #D2D2D7; }
.footer__brand img { height: 52px; width: auto; }
.footer__name { display: block; font-family: var(--font-round); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: #1B2F6E; margin: 0; }
.footer__brand span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.footer .footer__brand strong { margin-bottom: 0; }
.footer .footer__name { display: block; font-family: var(--font-round); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: #1B2F6E; margin: 0; }
/* Sur mobile, la barre porte déjà la signature : le héros ne la répète pas */
@media (max-width: 734px) {
  .hero__brand { display: none; }
  .hero__sub { margin-top: 0; font-weight: 600; color: var(--accent); font-size: 17px; }
  .hero__copy { padding-top: 54px; }
}
.estimator select:disabled { opacity: .5; cursor: not-allowed; }

/* Cette semaine : menus et programme (js/semaine.js) */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.week-nav__btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #D2D2D7; cursor: pointer; display: grid; place-items: center; }
.week-nav__btn::before { content: ''; width: 9px; height: 9px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateX(2px) rotate(-45deg); }
.week-nav__btn--next::before { transform: translateX(-2px) rotate(135deg); }
.week-nav__btn:disabled { opacity: .35; cursor: default; }
.week-nav__title { margin: 0; text-align: center; font: 700 clamp(19px, 2.2vw, 26px)/1.25 var(--font-round); letter-spacing: -0.02em; }
.week-msg { margin: 14px 0 0; text-align: center; color: var(--ink-2); }
.week-msg:empty { display: none; }
.week-h { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(26px, 3vw, 38px); }
.week-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (max-width: 1060px) { .week-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.day-card { background: var(--white); border-radius: var(--r-img); padding: 20px; }
.day-card.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.day-card__date { margin: 0 0 12px; font: 700 17px/1.25 var(--font-round); }
.day-card__date::first-letter { text-transform: uppercase; }
.day-card__today { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 12px; vertical-align: 2px; }
.day-card__empty { margin: 0; color: var(--ink-2); font-size: 15px; }
.meal + .meal, .act + .act { margin-top: 14px; padding-top: 14px; border-top: 1px solid #EAE6DF; }
.meal__type { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sun-ink); }
.meal__dishes { list-style: none; margin: 6px 0 0; padding: 0; font-size: 15.5px; line-height: 1.4; }
.meal__dishes li + li { margin-top: 3px; }
.meal__allerg { margin: 8px 0 0; font-size: 13px; color: var(--coral-ink); }
.act__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.act__time { font-weight: 700; color: var(--ink); }
.act__group { padding: 1px 8px; border-radius: 980px; background: var(--leaf-50); color: var(--leaf-ink); }
.act__title { display: block; margin-top: 6px; font-size: 15.5px; }
.act__desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.week-note { margin-top: 16px; max-width: 70ch; }
.week-nav[hidden], .week-grid[hidden], .week-h[hidden], .week-note[hidden] { display: none; }

/* Actualités et galerie (js/actualites.js) */
.news-list { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
.news { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--white); border-radius: var(--r-tile); overflow: hidden; }
.news:not(:has(.news__media)), .news--small { grid-template-columns: 1fr; }
@media (max-width: 700px) { .news { grid-template-columns: 1fr; } }
.news__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news__body { padding: clamp(22px, 3vw, 32px); }
.news__date { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sun-ink); }
.news__title { margin: 6px 0 0; font: 700 clamp(21px, 2.2vw, 27px)/1.2 var(--font-round); letter-spacing: -0.02em; }
.news__text { margin: 10px 0 0; line-height: 1.5; color: var(--ink-2); }
.news .more { margin-top: 14px; }
.news-list--home { max-width: none; margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .news-list--home { grid-template-columns: 1fr; } }
.news-list--home .news { background: var(--paper); }
.news--small .news__media img { aspect-ratio: 16 / 10; }
.news--small .news__title { font-size: 19px; }
.news--small .news__text { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.album__title { margin: 36px 0 14px; font: 700 20px/1.25 var(--font-round); }
.album__title:first-child { margin-top: 0; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .album { grid-template-columns: repeat(2, 1fr); } }
.album__item { padding: 0; border: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.album__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album__item:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .album__item img { transition: none; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 14, 30, 0.9); }
.lightbox__fig { margin: 0; }
.lightbox__fig img { width: auto; height: auto; max-width: min(88vw, 1100px); max-height: 78vh; margin: 0 auto; border-radius: 14px; }
.lightbox__cap { margin-top: 12px; text-align: center; color: #fff; font-size: 15px; }
.lightbox__btn { position: fixed; top: 50%; margin-top: -22px; }
.lightbox__btn--prev { left: 12px; }
.lightbox__btn--next { right: 12px; }
.lightbox__close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* Accueil sur ordinateur : la photo apparaît dès le premier écran (le logo est déjà dans l’en-tête) */
@media (min-width: 735px) {
  .hero { padding-top: clamp(40px, 4vw, 60px); }
  .hero__brand { display: none; }
  .hero__sub { margin-top: 0; font-weight: 600; color: var(--accent); font-size: 18px; }
  .hero .h1 { margin-top: 16px; }
  .hero__media { margin-top: clamp(36px, 4vw, 52px); }
}
@media (min-width: 735px) and (max-height: 820px) {
  .hero .h1 { font-size: clamp(40px, 9vh, 66px); }
  .hero__text { margin-top: 16px; font-size: 19px; }
  .hero .actions { margin-top: 22px; }
}
