/* Groupe Marill — site v2
   Couleurs : bleu Marill (pictogrammes), nuit du golfe, nacre, basalte, sable du Grand Bara.
   Typo : Archivo (titres, interface, largeur réduite) + Source Serif 4 (textes). */

@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-opsz-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-ext-opsz-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-opsz-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --marill: #00367f;      /* bleu des pictogrammes */
  --nuit: #071e40;        /* nuit du golfe de Tadjourah */
  --nacre: #edf1f5;       /* fonds alternés */
  --nacre-line: #d5dde7;  /* filets, bordures */
  --basalte: #23272e;     /* texte */
  --gris: #5a6372;        /* texte secondaire */
  --sable: #b98b4e;       /* dates de la frise, repères */
  --lien: #0b55b8;
  --blanc: #ffffff;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--blanc); color: var(--basalte); font: 400 1.0625rem/1.65 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--marill); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--sans); font-stretch: 82%; color: var(--nuit); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.35rem; font-weight: 680; font-stretch: 88%; }
h4 { font-size: 1.1rem; font-weight: 650; font-stretch: 92%; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blanc); color: var(--nuit); padding: 10px 14px; font: 600 15px var(--sans); border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.25em; border-radius: var(--radius); font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--marill); background: var(--marill); color: var(--blanc); cursor: pointer; }
.btn:hover { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); text-decoration: none; }
.btn-light { background: var(--blanc); border-color: var(--blanc); color: var(--nuit); }
.btn-light:hover { background: var(--nacre); border-color: var(--nacre); color: var(--nuit); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); color: var(--blanc); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--blanc); }
.btn-line { background: transparent; color: var(--marill); }
.btn-line:hover { background: var(--marill); color: var(--blanc); }
.btn-small { padding: .5em .9em; font-size: .9375rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--marill); color: var(--blanc); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: 0 0 auto; display: block; padding: 10px 0; }
.brand img { width: 190px; }
.site-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 26px 12px; color: var(--blanc); font: 560 1rem/1.2 var(--sans); font-stretch: 92%; text-decoration: none; }
.site-nav > ul > li > a:hover, .site-nav > ul > li:focus-within > a, .site-nav > ul > li.is-active > a { color: #cfe0fb; }
.site-nav > ul > li.is-active > a { box-shadow: inset 0 -3px 0 var(--sable); }
.sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: 0; top: 100%; min-width: 270px; background: var(--blanc); border: 1px solid var(--nacre-line); border-top: 3px solid var(--sable); border-radius: 0 0 var(--radius) var(--radius); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.sub a { display: block; padding: 9px 18px; color: var(--basalte); font: 500 .95rem/1.3 var(--sans); text-decoration: none; }
.sub a:hover { background: var(--nacre); color: var(--marill); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.sub.mega { width: min(720px, 80vw); display: grid; grid-template-columns: 1fr 1fr; padding: 12px; gap: 2px 8px; }
.sub.mega a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 4px; }
.sub.mega img { width: 36px; height: 36px; flex: 0 0 36px; }
.nav-end { display: flex; align-items: center; gap: 16px; }
.nav-end .btn { border-color: var(--blanc); background: transparent; color: var(--blanc); }
.nav-end .btn:hover { background: var(--blanc); color: var(--marill); }
.lang { display: flex; gap: 2px; font: 600 .875rem var(--sans); }
.lang a { color: #cfe0fb; text-decoration: none; padding: 4px 7px; border-radius: 4px; }
.lang a[aria-current="true"] { color: var(--blanc); background: rgba(255,255,255,.16); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--blanc); font: 600 .95rem var(--sans); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 1080px) {
  .site-nav > ul > li > a { padding: 26px 8px; font-size: .95rem; }
  .brand img { width: 160px; }
}
@media (max-width: 960px) {
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 0; }
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); }
  .site-nav > ul > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
  .site-nav > ul > li.is-active > a { box-shadow: none; color: var(--blanc); }
  .sub-toggle { display: block; background: none; border: 0; color: var(--blanc); width: 48px; cursor: pointer; font: 600 1.4rem var(--sans); }
  .sub-toggle::before { content: '+'; }
  .sub-toggle[aria-expanded="true"]::before { content: '–'; }
  .sub, .sub.mega { position: static; display: none; visibility: visible; opacity: 1; transform: none; flex-basis: 100%; width: 100%; min-width: 0; border: 0; border-radius: var(--radius); margin-bottom: 10px; grid-template-columns: 1fr; }
  .has-sub.open > .sub { display: block; }
  .has-sub.open > .sub.mega { display: grid; }
  .has-sub:hover > .sub:not(.mega) { display: none; }
  .has-sub.open:hover > .sub { display: block; }
  .nav-end { justify-content: space-between; padding-top: 14px; }
}

/* Accueil : bandeau */
.hero { position: relative; color: var(--blanc); background: var(--nuit); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 60% 45%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,30,64,.92) 0%, rgba(7,30,64,.72) 42%, rgba(7,30,64,.12) 78%); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(80px, 14vh, 150px); padding-bottom: clamp(70px, 12vh, 130px); }
.hero h1 { color: var(--blanc); max-width: 11.5em; font-size: clamp(2.6rem, 1.2rem + 5vw, 5.6rem); font-stretch: 72%; font-weight: 780; line-height: .98; letter-spacing: -.015em; margin-bottom: .4em; }
.hero p { max-width: 34em; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: #e6edf7; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; margin: 0; font: 400 .8rem var(--sans); color: rgba(255,255,255,.75); }
@media (prefers-reduced-motion: no-preference) {
  .hero picture img { animation: hero-drift 18s ease-out both; }
  @keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* Sections */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-nacre { background: var(--nacre); }
.band-nuit { background: var(--nuit); color: #dfe7f2; }
.band-nuit h2, .band-nuit h3 { color: var(--blanc); }
.band-nuit a { color: var(--blanc); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--gris); max-width: 38em; }
.band-nuit .section-head p { color: #b9c7da; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Grille des activités : les pictogrammes de la marque portent la couleur */
.activity-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--nacre-line); }
.activity-grid li { border-bottom: 1px solid var(--nacre-line); }
.activity-grid a { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; align-items: center; padding: 18px 12px 18px 0; text-decoration: none; color: var(--basalte); }
.activity-grid img { grid-row: span 2; width: 64px; height: 64px; }
.activity-grid strong { font: 650 1.15rem/1.2 var(--sans); font-stretch: 86%; color: var(--nuit); align-self: end; }
.activity-grid span { font-size: .95rem; color: var(--gris); line-height: 1.35; align-self: start; }
.activity-grid a:hover strong { color: var(--lien); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* Groupe familial + frise */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); width: 100%; }
.split figcaption { margin-top: 10px; font: 400 .875rem var(--sans); color: var(--gris); }
.split .prose { font-size: 1.125rem; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.frise { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 2px solid var(--sable); }
.frise li { padding: 18px 20px 0 0; position: relative; }
.frise li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sable); }
.frise b { display: block; font: 750 2rem/1 var(--sans); font-stretch: 72%; color: var(--sable); margin-bottom: 8px; }
.frise span { font-size: .97rem; line-height: 1.45; display: block; }

/* Implantations */
.countries { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-left: 1px solid rgba(255,255,255,.14); }
.country { padding: 6px 26px 10px; border-right: 1px solid rgba(255,255,255,.14); }
.country img { width: 54px; height: auto; margin-bottom: 16px; }
.country h3 { font-size: 1.6rem; margin-bottom: .3em; }
.country h3 a { text-decoration: none; }
.country h3 a:hover { text-decoration: underline; }
.country p { font-size: .97rem; color: #b9c7da; margin: 0 0 .6em; }
.country ul { list-style: none; margin: 0; padding: 0; font: 400 .95rem/1.5 var(--sans); }
.country li a { color: #dfe7f2; text-decoration: none; }
.country li a:hover { color: var(--blanc); text-decoration: underline; }
@media (max-width: 560px) { .countries { border-left: 0; } .country { border-right: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0; } }

/* Logos des sociétés */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 16px; }
.logo-wall a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--basalte); font: 500 .92rem/1.25 var(--sans); text-align: center; }
.logo-wall img { width: 112px; height: 112px; object-fit: contain; }
.logo-wall a:hover span { color: var(--lien); text-decoration: underline; }

/* Bloc recrutement */
.join { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.join .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; } }

/* Pages intérieures */
.page-head { background: var(--nacre); padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--nacre-line); }
.page-head .head-row { display: flex; align-items: center; gap: 24px; }
.page-head .head-row img { width: 88px; height: 88px; flex: 0 0 88px; object-fit: contain; }
.page-head .head-row img.round { border-radius: 50%; background: var(--blanc); }
.page-head h1 { margin: 0; }
.page-head .lede { margin: 14px 0 0; font-size: 1.2rem; color: var(--gris); max-width: 40em; }
.crumbs { font: 400 .9rem var(--sans); color: var(--gris); margin-bottom: 18px; }
.crumbs a { color: var(--gris); }
.crumbs a:hover { color: var(--marill); }
.crumbs span[aria-hidden] { margin: 0 .45em; }
@media (max-width: 560px) { .page-head .head-row { flex-direction: column; align-items: flex-start; gap: 14px; } .page-head .head-row img { width: 64px; height: 64px; flex-basis: 64px; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.layout.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.aside { display: grid; gap: 20px; }
.box { border: 1px solid var(--nacre-line); border-radius: var(--radius); padding: 22px 22px 8px; background: var(--blanc); font-size: .98rem; overflow-wrap: anywhere; }
.box h2 { font-size: 1.2rem; font-stretch: 90%; margin-bottom: .7em; }
.box p { margin-bottom: .7em; }
.box ul { padding-left: 1.1em; margin: 0 0 .8em; }
.box dl { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font: 400 .95rem/1.4 var(--sans); }
.box dt { color: var(--gris); }
.box dd { margin: 0; }
.box.logos { display: block; }
.box .logo-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.box .logo-row a { display: block; }
.box .logo-row img { width: 84px; height: 84px; object-fit: contain; }
.box.partners .logo-row img { width: 120px; height: 70px; }
.box-links { list-style: none; padding: 0 !important; margin: 0 0 14px; font: 500 .98rem/1.4 var(--sans); }
.box-links li { padding: 6px 0; border-top: 1px solid var(--nacre); }
.box-links li:first-child { border-top: 0; }

/* Texte riche (contenu repris de l'ancien site) */
.prose { max-width: 46em; overflow-wrap: break-word; }
.layout.single .prose { max-width: 50em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.8rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin: 8px 0 18px; }
.prose figure { margin: 0 0 28px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font: 400 .95rem/1.45 var(--sans); }
.prose td, .prose th { border-bottom: 1px solid var(--nacre-line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.prose .lead { font-size: 1.3rem; line-height: 1.45; color: var(--nuit); }
.prose hr, .prose hr.tall { border: 0; border-top: 1px solid var(--nacre-line); margin: 2em 0; }
.prose .rtecenter { text-align: center; }
.prose .rtecenter img { margin-left: auto; margin-right: auto; }
.prose .row { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 1.2em; }
.prose .row > [class^="span"], .prose .row > [class*=" span"] { flex: 1 1 220px; min-width: 0; }
.prose .row > .span12, .prose .row > .span10, .prose .row > .span8 { flex-basis: 100%; }
.prose .featured-box { border: 1px solid var(--nacre-line); border-radius: var(--radius); padding: 20px 22px 6px; height: auto !important; }
.prose .btn { margin: 4px 0 8px; }
.prose .accordion-group, .prose details { border: 1px solid var(--nacre-line); border-radius: var(--radius); margin-bottom: 8px; }
.prose summary { cursor: pointer; padding: 12px 16px; font: 600 1rem var(--sans); color: var(--nuit); }
.prose details > div { padding: 0 16px 8px; }
.prose .nav-tabs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--nacre-line); }
.prose .nav-tabs a { display: block; padding: 8px 12px; text-decoration: none; font-family: var(--sans); }
.prose .nav-tabs .active a { border-bottom: 3px solid var(--sable); color: var(--nuit); }
.prose .tab-pane { display: none; padding-top: 12px; }
.prose .tab-pane.active { display: block; }
.prose .file { font-family: var(--sans); }
.docs { list-style: none; padding: 0 !important; }
.prose ul.cards, .prose ul.logo-wall, .prose ul.gallery, .prose ul.contacts, .prose ul.news { padding-left: 0; }
.prose ul.cards li, .prose ul.gallery li { margin-bottom: 0; }
.docs li { padding: 8px 0; border-top: 1px solid var(--nacre); font-family: var(--sans); }

/* Frise historique complète (page Notre histoire) */
.prose ul.timeline { list-style: none; padding: 0 0 0 34px; margin: 1.5em 0 2.5em; border-left: 2px solid var(--sable); }
.prose ul.timeline > li { position: relative; margin: 0 0 34px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.prose ul.timeline > li::before { content: ''; position: absolute; left: -42px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sable); border: 3px solid var(--blanc); }
.prose ul.timeline .thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0; }
.prose ul.timeline .featured-box { border: 0; padding: 0; }
.prose ul.timeline h4 { font-size: 1.9rem; font-stretch: 72%; color: var(--sable); margin: 0 0 .25em; }
.prose ul.timeline h4 strong { font-weight: 760; }
.prose ul.timeline > li > :not(.thumb) { grid-column: 2; }
.prose ul.timeline > li:not(:has(.thumb)) > * { grid-column: 1 / -1; }
.prose ul.timeline > li:not(:has(.thumb, .featured-box)) { display: none; }
.prose ul.timeline > li > p { margin: 0; font: 650 1.05rem/1.3 var(--sans); color: var(--nuit); }
@media (max-width: 560px) { .prose ul.timeline > li > * { grid-column: 1 !important; } .prose ul.timeline > li { grid-template-columns: 1fr; } .prose ul.timeline .thumb img { width: 72px; height: 72px; } }

/* Cartes de liste (pays, sociétés, actualités) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--nacre-line); border-radius: var(--radius); background: var(--blanc); }
.card > a { display: flex; gap: 16px; align-items: center; padding: 18px; text-decoration: none; color: var(--basalte); height: 100%; }
.card img { width: 56px; height: auto; flex: 0 0 56px; }
.card img.logo { width: 72px; height: 72px; flex-basis: 72px; object-fit: contain; }
.card strong { display: block; font: 650 1.12rem/1.2 var(--sans); font-stretch: 88%; color: var(--nuit); }
.card span { display: block; font-size: .92rem; color: var(--gris); line-height: 1.35; margin-top: 3px; }
.card > a:hover { border-color: var(--marill); }
.card:hover { border-color: var(--marill); }
.card > a:hover strong { color: var(--lien); }
.block-title { margin: 48px 0 20px; font-size: 1.6rem; }
.block-title:first-child { margin-top: 0; }

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.news li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--nacre-line); }
.news img { border-radius: var(--radius); width: 220px; height: 150px; object-fit: cover; }
.news .noimg { width: 220px; height: 150px; border-radius: var(--radius); background: var(--nacre); }
.news h2 { font-size: 1.45rem; margin-bottom: .3em; }
.news h2 a { text-decoration: none; color: var(--nuit); }
.news h2 a:hover { text-decoration: underline; color: var(--lien); }
.meta { font: 400 .9rem var(--sans); color: var(--gris); margin: 0 0 .7em; }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; } .news img, .news .noimg { width: 100%; height: auto; aspect-ratio: 3 / 2; } }

.cta-box { background: var(--nacre); border-radius: var(--radius); padding: 26px 28px 18px; margin: 28px 0; }
.cta-box h2 { font-size: 1.5rem; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.contacts li { padding: 14px 0; border-top: 1px solid var(--nacre-line); font-family: var(--sans); }
.contacts strong { display: block; color: var(--nuit); font-weight: 650; }

.gallery { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }

/* Diaporama MD Slider repris tel quel (cartes et infographies de l'ancien site) */
.media-slider { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.md-slider { position: relative; overflow: hidden; background: var(--nuit); aspect-ratio: var(--md-ratio); max-height: var(--md-h); width: 100%; }
.md-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.md-slide.active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
.md-stage { position: relative; margin: 0 auto; height: 100%; aspect-ratio: var(--md-ratio); max-width: 100%; container-type: inline-size; }
.md-layer { position: absolute; line-height: 1.2; font-family: var(--sans); }
.md-layer img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; margin: 0; }
.md-layer a { color: inherit; display: block; width: 100%; height: 100%; }
.md-layer.pending { visibility: hidden; }
.md-prev, .md-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(7,30,64,.55); color: #fff; font: 600 1.5rem/42px var(--sans); cursor: pointer; }
.md-prev { left: 12px; } .md-next { right: 12px; }
.md-prev::before { content: '‹'; } .md-next::before { content: '›'; }
.animated { animation-duration: 1s; animation-fill-mode: both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.fadeIn { animation-name: fadeIn; } .fadeInUp, .fadeInUpBig { animation-name: fadeInUp; } .fadeInDown, .fadeInDownBig { animation-name: fadeInDown; }
.fadeInLeft, .fadeInLeftBig, .bounceInLeft { animation-name: fadeInLeft; } .fadeInRight, .fadeInRightBig, .bounceInRight { animation-name: fadeInRight; }
@media (prefers-reduced-motion: reduce) { .animated { animation: none !important; } .md-slide, .md-slide.active { transition: none; } }

/* Pied de page */
.site-footer { background: var(--nuit); color: #b9c7da; font: 400 .95rem/1.55 var(--sans); padding: 64px 0 28px; }
.site-footer a { color: #dfe7f2; text-decoration: none; }
.site-footer a:hover { color: var(--blanc); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1.1fr; gap: 36px; }
.footer-grid img { width: 170px; margin-bottom: 16px; }
.footer-grid h2 { color: var(--blanc); font-size: 1.05rem; font-stretch: 92%; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid .two-col { columns: 2; column-gap: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid .two-col { columns: 1; } }

/* Erreur 404 */
.error-code { font: 780 clamp(5rem, 18vw, 11rem)/1 var(--sans); font-stretch: 70%; color: var(--nacre-line); margin: 0; }

@media print { .site-header, .site-footer, .nav-toggle, .md-prev, .md-next { display: none; } body { font-size: 11pt; } }
