/* AICSF — styles partagés du site associatif. */
:root {
  --navy: #1e2c60;
  --orange: #e58139;
  --red: #a32f2d;
  --ink: #202635;
  --muted: #626977;
  --cream: #faf8f5;
  --line: #dedfdf;
  --white: #fff;
  --wrap: 1240px;
  --logo-width: 270px;
  --logo-height: calc(var(--logo-width) * 437 / 1600);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.65 Arial,Helvetica,sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,input {
  font: inherit;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a:focus-visible,button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1,h2 {
  font-family: Georgia,'Times New Roman',serif;
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(46px,6vw,84px);
}

h2 {
  font-size: clamp(34px,4vw,54px);
}

h3 {
  font-size: 24px;
  letter-spacing: -.025em;
}

p+p {
  margin-top: 8px;
}

.wrap {
  width: min(var(--wrap),calc(100% - 96px));
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--navy);
}

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}

.skip:focus {
  top: 12px;
}

/* En-tête et navigation */
.topline {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  letter-spacing: .025em;
}

.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  width: var(--logo-width);
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a {
  padding-block: 10px;
  position: relative;
}

.main-nav a[aria-current=page]:after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.main-nav a:hover {
  color: var(--red);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: min(160px,100%);
  max-width: 100%;
  padding: 10px 20px;
  text-align: center;
  line-height: 1.4;
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  transition: background .2s,color .2s;
}

.button:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.button.light {
  background: white;
  border-color: white;
  color: var(--navy);
}

.button.light:hover {
  background: var(--cream);
}

.button.outline {
  background: transparent;
  color: var(--navy);
}

.button.outline:hover {
  background: var(--navy);
  color: white;
}

.main-nav .nav-cta {
  padding: 11px 20px;
  background: var(--navy);
  color: white;
}

.menu-toggle {
  display: none;
}

/* Accueil : diaporama et commandes */
.hero {
  height: calc(100vh - 121px);
  height: calc(100svh - 121px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--navy);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides,.hero-slide,.hero:after {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: -2;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  object-position: center 48%;
}

.hero-slide.active {
  opacity: 1;
}

.hero:after {
  content: '';
  z-index: -1;
  background: linear-gradient(90deg,rgba(10,20,42,.78),rgba(10,20,42,.28) 70%,rgba(10,20,42,.18));
}

.hero-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 16px;
}

.hero .eyebrow {
  color: #f5b17d;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 760px;
}

.hero h1 em {
  font-weight: 400;
  font-style: italic;
}

.hero-copy {
  max-width: 490px;
  color: #f2f0ec;
  font-size: 16px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-actions .text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 0;
  color: white;
  border-bottom: 1px solid #ffffff90;
  font-size: 12px;
  font-weight: 700;
}

.hero-bottom {
  flex-shrink: 0;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-dot {
  width: 25px;
  height: 20px;
  padding: 0;
  border: 0;
  position: relative;
  background: transparent;
}

.slide-dot:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 9px;
  background: #ffffff65;
}

.slide-dot[aria-pressed=true]:after {
  background: white;
}

.carousel-arrow {
  border: 1px solid #ffffff55;
  background: transparent;
  color: white;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

/* Sections, cartes et contenus éditoriaux */
.section {
  padding-block: 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading>p {
  max-width: 340px;
  font-size: 14px;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
}

.article-card {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
}

.article-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--visual-focus,50% 50%);
  transition: transform .5s;
}

/* Garder le groupe visible dans les formats d’illustration plus étroits. */
img[src$="/education.jpg"] {
  --visual-focus: 58% 50%;
}

img[src$="/dialogue.jpg"] {
  --visual-focus: 55% 55%;
}

.article-image:hover img {
  transform: scale(1.035);
}

.article-copy,.topic-copy {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.article-copy .eyebrow {
  font-size: 10px;
  color: var(--red);
  margin-bottom: 13px;
}

.article-copy h3 {
  min-height: 3.9em;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 13px;
}

.article-copy>p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.article-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
}

.article-link:hover {
  color: var(--red);
}

.story-section {
  background: var(--cream);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.story-image {
  position: relative;
}

.story-image>img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: var(--visual-focus,50% 50%);
}

.since-label {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--cream);
  padding: 22px 0 0 24px;
  color: var(--navy);
  font-size: 12px;
}

.since-label strong {
  display: block;
  font: 55px/1 Georgia,serif;
  letter-spacing: -.05em;
}

.story-copy .eyebrow {
  margin-bottom: 18px;
}

.story-copy h2 {
  margin-bottom: 18px;
}

.story-copy p {
  color: var(--muted);
  font-size: 15px;
}

.story-copy .button {
  margin-top: 28px;
}

.section-intro {
  max-width: 740px;
}

.section-intro .eyebrow {
  margin-bottom: 16px;
}

.section-intro h2 {
  margin-bottom: 24px;
}

.cta-band {
  background: var(--navy);
  color: white;
  padding-block: 32px;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-inner h2 {
  font-size: 36px;
}

.cta-inner p {
  font-size: 14px;
  color: #d7dbe7;
  margin-top: 10px;
}

/* Pied de page */
.site-footer {
  background: var(--cream);
}

.cta-inner > div {
  max-width: 800px;
}

.cta-inner > .button {
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
  padding-block: 12px;
}

.footer-inner nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-unesco {
  display: block;
  width: calc(var(--logo-height) * 748 / 637);
  flex-shrink: 0;
  margin-left: 8px;
}

.footer-unesco img {
  display: block;
  width: 100%;
  height: var(--logo-height);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Pages intérieures */
.page-heading {
  padding-block: 28px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-heading .eyebrow {
  margin-bottom: 20px;
}

.page-heading h1 {
  font-size: clamp(44px,5vw,67px);
  max-width: 960px;
}

.page-heading .lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  margin-top: 24px;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.anchor-nav a {
  border-bottom: 1px solid var(--orange);
}

.text-layout {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px;
}

.text-layout h2 {
  font-size: 43px;
}

.text-layout p {
  max-width: 720px;
  color: var(--muted);
}

.text-layout .intro {
  font-size: 21px;
  color: var(--ink);
  line-height: 1.5;
}

.section+.ruled {
  border-top: 1px solid var(--line);
}

.mission-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mission-list h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}

.mission-list p {
  font-size: 14px;
}

.president {
  background: var(--navy);
  color: white;
}

.president .eyebrow {
  color: #f2aa74;
}

.president h2 {
  margin-top: 18px;
}

.president .role {
  font-size: 13px;
  color: #d7dbe7;
  margin-top: 14px;
}

.president p {
  color: #e3e6ed;
}

.president .intro {
  color: white;
}

.article-head {
  max-width: 860px;
}

.article-head .eyebrow {
  color: var(--red);
}

.article-cover {
  margin-top: 36px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 480px;
  object-fit: cover;
  object-position: var(--visual-focus,50% 50%);
}

.reading {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 24px 28px;
}

.reading p {
  color: var(--muted);
}

.reading h2 {
  font-size: 34px;
  margin-block: 26px 12px;
}

.reading .button {
  margin-top: 30px;
}

/* Contact et informations */
.contact-choices {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-top: 35px;
}

.contact-choice {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.contact-choice h3 {
  font-size: 21px;
  margin-bottom: 15px;
}

.contact-choice p {
  color: var(--muted);
  font-size: 14px;
}

.credit-list {
  padding: 0;
  list-style: none;
}

.credit-list li {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.credit-list a {
  text-decoration: underline;
}

/* Formulaire de contact : trois champs repris du site d’origine. */
.contact-layout>div>.contact-intro {
  margin-top: 24px;
  color: var(--ink);
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.form-field label span {
  color: var(--red);
}

.form-field input,.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bbc0ca;
  border-radius: 0;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.form-field textarea {
  resize: vertical;
  min-height: 180px;
}

.form-field input:focus,.form-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

.contact-form .form-context {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-form .form-required {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.contact-form .form-status {
  background: var(--cream);
  padding: 16px 18px;
  border-left: 2px solid var(--orange);
}

.contact-form .form-status p {
  font-size: 13px;
  color: var(--muted);
}

.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}

.form-submit {
  align-self: flex-start;
}

.form-submit:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.form-submit:disabled:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* Recherche et lien social : composants communs et dimensions accessibles. */
.main-nav .search-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  flex-shrink: 0;
}

.main-nav .search-toggle:hover,
.main-nav .search-toggle[aria-expanded=true] {
  color: var(--red);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--navy);
}

.social-icon:hover {
  color: var(--red);
}

/* Recherche intégrée sous l’en-tête, disponible sur toutes les pages. */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: var(--search-space, calc(100vh - 140px));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 26px #16234718;
  padding-block: 8px;
  z-index: 25;
}

.search-panel[hidden] {
  display: none;
}

.search-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form {
  flex: 1;
  min-width: 0;
}

.search-controls {
  display: flex;
  gap: 8px;
}

.search-controls input {
  flex: 1 1 0;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border-radius: 0;
}

.search-controls .button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}

.search-controls input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.search-close {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.search-close:hover {
  color: var(--red);
}

.search-status {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.search-status:empty,.search-results:empty {
  display: none;
  margin: 0;
}

.search-results li {
  border-top: 1px solid var(--line);
  padding-block: 10px;
}

.search-results h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.search-results h2 a:hover {
  color: var(--red);
}

.search-results p {
  color: var(--muted);
  font-size: 14px;
}

/* Adaptations aux petits écrans */
@media(max-width:760px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-form {
    gap: 20px;
  }
  .form-submit {
    width: 100%;
  }
}

/* Rubriques : mêmes composants, couleurs et proportions sur toutes les pages. */
.nav-group {
  position: relative;
}

.nav-group>summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-block: 10px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-group>summary::-webkit-details-marker {
  display: none;
}

.nav-group>summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.nav-group>summary>span {
  font-size: 13px;
  transition: transform .2s;
}

.nav-group[open]>summary>span {
  transform: rotate(180deg);
}

.nav-group.is-current>summary,.nav-group[open]>summary {
  color: var(--red);
}

.nav-menu {
  position: absolute;
  top: calc(100% + var(--menu-offset,16px));
  left: -14px;
  min-width: 230px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px #16234718;
  padding: 4px;
  z-index: 30;
}

/* Un léger décalage propre au menu des activités, sans rallonger sa liste. */
.nav-group[data-section=actions] .nav-menu {
  --menu-offset: 30px;
}

.main-nav .nav-menu a {
  display: flex;
  align-items: center;
  padding: 3px 12px;
  transition: background .15s, color .15s;
  min-height: 26px;
  line-height: 1.4;
  font-size: 12px;
  white-space: normal;
}

.nav-menu a:hover,.nav-menu a:focus-visible {
  background: var(--cream);
  color: var(--red);
}

.nav-menu a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.main-nav .nav-menu a[aria-current=page] {
  color: var(--red);
  background: var(--cream);
}

.main-nav .nav-menu a[aria-current=page]:after {
  display: none;
}

.section-action {
  margin-top: 30px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  min-width: 0;
  background: white;
}

.topic-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.topic-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--visual-focus,50% 50%);
  transition: transform .5s;
}

.topic-image:hover img {
  transform: scale(1.035);
}

.topic-copy h3 {
  min-height: 2.6em;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 13px;
}

.topic-copy>p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.topic-visual {
  margin: 0;
  min-width: 0;
}

.topic-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: var(--visual-focus,50% 50%);
}

/* Archives : légendes courtes et formats adaptés aux portraits. */
.photo-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.president-portrait {
  margin-top: 16px;
  max-width: 420px;
}

.president-portrait img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.president .photo-caption {
  color: #e3e6ed;
}

.jury-photo {
  margin: 0;
  width: min(100%,340px);
  justify-self: center;
}

.jury-photo img {
  width: 100%;
  height: auto;
}

.topic-intro {
  align-items: start;
}

.topic-intro p {
  color: var(--muted);
}

.topic-intro p:first-child {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-row {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px;
}

.detail-row+.detail-row {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detail-row h2 {
  font-size: 32px;
  line-height: 1.2;
}

.detail-row p {
  color: var(--muted);
}

.source-note {
  font-size: 12px;
  color: var(--muted);
}

.source-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-section .story-copy .button {
  margin-top: 26px;
}

.donation-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  background: var(--cream);
  padding: 30px;
  margin-top: 45px;
  border-left: 2px solid var(--orange);
}

.donation-callout>div {
  max-width: 700px;
}

.donation-callout h2 {
  font-size: 32px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.donation-callout p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
}

.donation-callout .button {
  flex-shrink: 0;
}

/* Adaptations aux écrans moyens */
@media(max-width:1000px) {
  .detail-row {
    gap: 40px;
  }
  .topic-copy {
    padding: 20px;
  }
  .donation-callout {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
}

@media(max-width:760px) {
  .nav-group>summary {
    padding: 10px;
  }
  .nav-menu {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    border: 0;
    border-left: 2px solid var(--orange);
    box-shadow: none;
    padding: 0 0 0 8px;
    margin: 4px 10px 12px;
  }
  .main-nav .nav-menu a {
    min-height: 44px;
    white-space: normal;
  }
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .topic-copy {
    padding: 20px;
  }
  .topic-copy h3 {
    min-height: 0;
    font-size: 24px;
  }
  .topic-copy>p {
    font-size: 15px;
  }
  .topic-intro p:first-child {
    font-size: 18px;
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-row h2 {
    font-size: 30px;
  }
  .detail-sections {
    gap: 14px;
  }
  .detail-row+.detail-row {
    padding-top: 14px;
  }
  .donation-callout {
    padding: 22px;
    margin-top: 35px;
    gap: 22px;
  }
  .donation-callout h2 {
    font-size: 30px;
  }
  .donation-callout .button {
    max-width: 100%;
  }
}

@media(max-width:480px) {
  .donation-callout .button {
    width: 100%;
  }
}

@media(max-width:1000px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .header-inner {
    gap: 18px;
  }
  :root {
    --logo-width: 220px;
  }
  .main-nav {
    gap: 14px;
    font-size: 12px;
  }
  .main-nav .nav-cta {
    padding-inline: 12px;
  }
  .split,.text-layout {
    gap: 40px;
  }
  .article-copy {
    padding: 20px;
  }
  .section {
    padding-block: 28px;
  }
  .hero h1 {
    font-size: 72px;
  }
}

@media(max-width:760px) {
  html {
    scroll-padding-top: 88px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .topline .wrap>span:last-child {
    display: none;
  }
  .topline {
    font-size: 10px;
  }
  .header-inner {
    height: 74px;
  }
  :root {
    --logo-width: min(200px, calc((100vw - 36px) * .65));
  }
  .menu-toggle {
    display: block;
    background: white;
    color: var(--navy);
    border: 1px solid var(--line);
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 7px;
  }
  .main-nav.is-open {
    display: flex;
    max-height: var(--navigation-space, calc(100vh - 110px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .main-nav a {
    padding: 10px;
  }
  .main-nav a[aria-current=page]:after {
    left: 10px;
    bottom: 4px;
  }
  .hero {
    height: auto;
    min-height: calc(100vh - 105px);
    min-height: calc(100svh - 105px);
  }
  .hero h1 {
    font-size: clamp(34px,8vw,54px);
  }
  .hero-content {
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .hero-copy {
    font-size: 15px;
    max-width: 350px;
  }
  .hero-bottom {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .carousel-controls {
    gap: 8px;
    max-width: 100%;
  }
  .slide-dot {
    width: 20px;
  }
  .hero-actions {
    gap: 16px;
    width: 100%;
  }
  .hero-actions .text-action {
    flex: 1;
    text-align: center;
  }
  .hero:after {
    background: linear-gradient(90deg,rgba(10,20,42,.83),rgba(10,20,42,.36));
  }
  .section {
    padding-block: 24px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .section-heading>p {
    max-width: 100%;
  }
  .article-grid,.split,.text-layout,.contact-choices {
    grid-template-columns: 1fr;
  }
  .article-grid {
    gap: 26px;
  }
  .article-copy h3 {
    min-height: 0;
    font-size: 24px;
  }
  .article-copy>p:not(.eyebrow) {
    font-size: 15px;
  }
  .split,.text-layout {
    gap: 22px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: start;
    gap: 24px;
  }
  .cta-inner h2 {
    font-size: 31px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .footer-inner nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-heading {
    padding-block: 24px;
  }
  .page-heading h1 {
    font-size: clamp(32px,7.5vw,44px);
  }
  .page-heading .lede {
    font-size: 16px;
  }
  .text-layout h2 {
    font-size: 35px;
  }
  .text-layout .intro {
    font-size: 19px;
  }
  .mission-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .reading {
    padding-block: 20px 24px;
  }
  .article-cover {
    margin-top: 26px;
  }
  .anchor-nav {
    gap: 17px;
  }
  .contact-choices {
    gap: 28px;
  }
}

/* Fenêtres peu hautes : tous les éléments de l’accueil partagent la place disponible. */
@media (max-height: 720px) and (min-width: 761px) {
  .hero-content {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero .eyebrow {
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: clamp(30px, 7vh, 54px);
  }
  .hero-copy {
    font-size: 14px;
    margin-top: 12px;
    max-width: 580px;
  }
  .hero-bottom {
    padding-bottom: 16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
  }
}
