/* ==========================================================
   AARZI 2027 : 8th All Africa Rotary Zone Institute, Tunisia
   Palette : bleu nuit, bleu Sidi Bou Saïd, or chaud, sable
   ========================================================== */

:root {
  --navy: #0A2A4A;
  --door: #1565B5;
  --navy-2: #071B31;
  --blue: #014A8F;
  --sea: #00AFF2;
  --gold: #F9A91C;
  --gold-2: #FFD27A;
  --sand: #F5EEE1;
  --paper: #FBF8F2;
  --ink: #10233A;
  --muted: #566678;
  --line: rgba(10, 42, 74, .14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
  --pattern: url("../img/trame-portes-or.svg"); --trame-ciel: url("../img/trame-portes-ciel.svg"); --trame-fonce: url("../img/trame-portes-fonce.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.aa-container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.aa-center { text-align: center; }
.aa-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.aa-skip:focus { left: 8px; }

.aa-section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.aa-section--paper { background-color: var(--paper); background-image: var(--trame-ciel); background-size: 200px 200px; }

/* ---------- Visuels d'attente (avant ajout des photos) ---------- */
.aa-ph { background-color: var(--door); background-image: var(--trame-fonce), linear-gradient(135deg, #1E78CE 0%, var(--blue) 100%); background-size: 200px 200px, cover; }
.aa-ph--2 { background-image: var(--pattern), linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.aa-ph--3 { background-image: var(--trame-fonce), linear-gradient(135deg, var(--sea) 0%, var(--blue) 100%); }
.aa-ph--4 { background-image: var(--pattern), linear-gradient(135deg, var(--door) 0%, var(--navy-2) 100%); }
.aa-slide__bg, .aa-discover__img, .aa-tcard__img, .aa-vn__img, .aa-reg__img { background-size: cover; background-position: center; }
.aa-ph.aa-slide__bg, .aa-ph.aa-discover__img, .aa-ph.aa-tcard__img, .aa-ph.aa-vn__img, .aa-ph.aa-reg__img { background-size: 200px 200px, cover; }

/* ---------- Boutons ---------- */
.aa-btn { display: inline-flex; align-items: center; justify-content: center; padding: .9em 1.9em; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2; border: 2px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s; white-space: nowrap; }
.aa-btn:hover { transform: translateY(-2px); }
.aa-btn--gold { background: var(--gold); color: var(--navy-2); }
.aa-btn--gold:hover { background: var(--gold-2); }
.aa-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.aa-btn--ghost:hover { background: #fff; color: var(--navy); }
.aa-btn--blue { background: var(--blue); color: #fff; }
.aa-btn--blue:hover { background: var(--navy); }
.aa-btn--disabled { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .3); cursor: default; }
.aa-btn--disabled:hover { transform: none; }

/* ---------- Emplacements de logo ---------- */
.aa-logo { width: auto; max-width: 100%; }
.aa-logo--header { height: 34px; }
.aa-logo--footer { height: 52px; }
.aa-logo--onlight { background: #fff; border-radius: 12px; padding: 7px 14px; box-sizing: content-box; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.aa-logo--home { height: 64px; }
.aa-logo-ph { display: inline-flex; align-items: center; justify-content: center; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 10px; color: rgba(255, 255, 255, .78); font-size: .78rem; text-align: center; line-height: 1.2; padding: 4px 8px; }
.aa-logo-ph--header { width: 150px; height: 52px; }
.aa-logo-ph--footer { width: 190px; height: 72px; }
.aa-logo-ph--home { width: 100%; height: 64px; border-color: var(--line); color: var(--muted); }

/* ---------- En-tête ---------- */
.aa-header { position: fixed; inset: 0 0 auto 0; z-index: 60; color: #fff; transition: background .3s, box-shadow .3s; }
.aa-header.is-stuck, .aa-header.is-open { background: rgba(7, 27, 49, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.aa-header__in { width: min(1320px, 100% - 40px); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.aa-header__logo { display: flex; align-items: center; flex: none; }
.aa-nav ul { display: flex; gap: clamp(14px, 1.7vw, 28px); }
.aa-nav a { position: relative; font-weight: 600; font-size: .92rem; padding: 8px 0; white-space: nowrap; }
.aa-nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--gold); transition: right .3s; }
.aa-nav ul a:hover::after, .aa-nav a.is-current::after { right: 0; }
.aa-nav__mobile { display: none; }
.aa-header__tools { display: flex; align-items: center; gap: 16px; flex: none; }
.aa-lang { display: flex; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; overflow: hidden; }
.aa-lang a { padding: 6px 12px; font-size: .8rem; font-weight: 700; }
.aa-lang a.is-on { background: #fff; color: var(--navy); }
.aa-header__cta { padding: .7em 1.5em; }
.aa-burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; border-radius: 12px; position: relative; }
.aa-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.aa-burger span:nth-child(1) { top: 14px; }
.aa-burger span:nth-child(2) { top: 21px; }
.aa-burger span:nth-child(3) { top: 28px; }
.aa-header.is-open .aa-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aa-header.is-open .aa-burger span:nth-child(2) { opacity: 0; }
.aa-header.is-open .aa-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Slider d'accueil ---------- */
.aa-hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--navy-2); color: #fff; overflow: hidden; }
.aa-hero__slides { position: absolute; inset: 0; }
.aa-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.3s ease, visibility 0s 1.3s; }
.aa-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.3s ease; z-index: 1; }
.aa-slide__bg { position: absolute; inset: 0; transform: scale(1.1); transition: transform 9s linear; }
.aa-slide.is-active .aa-slide__bg { transform: scale(1); }
.aa-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 27, 49, .88) 0%, rgba(7, 27, 49, .55) 48%, rgba(7, 27, 49, .2) 100%), linear-gradient(0deg, rgba(7, 27, 49, .7) 0%, transparent 40%); }
.aa-slide__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: var(--header-h); padding-bottom: 150px; z-index: 3; }
.aa-slide__title { font-size: clamp(2.5rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.04; max-width: 13ch; margin-bottom: 26px; }
.aa-slide__text { font-size: clamp(1.02rem, 1.5vw, 1.25rem); max-width: 34em; color: rgba(255, 255, 255, .86); margin-bottom: 34px; }
.aa-slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.aa-slide__title, .aa-slide__text, .aa-slide__actions { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.aa-slide.is-active .aa-slide__title { opacity: 1; transform: none; transition-delay: .35s; }
.aa-slide.is-active .aa-slide__text { opacity: 1; transform: none; transition-delay: .55s; }
.aa-slide.is-active .aa-slide__actions { opacity: 1; transform: none; transition-delay: .75s; }

.aa-hero__arches { position: absolute; right: 7%; bottom: 0; width: min(34vw, 470px); height: 82%; z-index: 2; pointer-events: none; }
.aa-hero__arches span { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border: 1.5px solid rgba(230, 203, 138, .5); border-bottom: 0; border-radius: 999px 999px 0 0; }
.aa-hero__arches span:nth-child(1) { width: 100%; height: 100%; }
.aa-hero__arches span:nth-child(2) { width: 80%; height: 88%; border-color: rgba(230, 203, 138, .38); }
.aa-hero__arches span:nth-child(3) { width: 60%; height: 76%; border-color: rgba(230, 203, 138, .26); }

.aa-hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: rgba(7, 27, 49, .74); backdrop-filter: blur(8px); border-top: 1px solid rgba(230, 203, 138, .35); }
.aa-hero__barin { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.aa-hero__id { display: flex; flex-direction: column; line-height: 1.25; }
.aa-hero__id strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.aa-hero__id span { color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.aa-hero__meta { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; }
.aa-hero__meta span { position: relative; padding-left: 16px; }
.aa-hero__meta span::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.aa-hero__ctrl { display: flex; align-items: center; gap: 14px; }
.aa-hero__nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font-size: 1.1rem; transition: background .25s, color .25s; }
.aa-hero__nav:hover { background: #fff; color: var(--navy); }
.aa-hero__dots { display: flex; gap: 8px; align-items: center; }
.aa-hero__dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); transition: width .35s, background .35s; }
.aa-hero__dot.is-active { width: 34px; background: var(--gold); }

/* ---------- Titres de section ---------- */
.aa-heading { max-width: 720px; }
.aa-heading--center { margin-inline: auto; text-align: center; }
.aa-heading__label { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-weight: 700; font-size: .98rem; margin-bottom: 14px; }
.aa-heading__label::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.aa-heading--center .aa-heading__label::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.aa-heading__title { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--navy); }
.aa-heading__text { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }
.aa-heading.is-light .aa-heading__title { color: #fff; }
.aa-heading.is-light .aa-heading__label { color: var(--gold-2); }
.aa-heading.is-light .aa-heading__text { color: rgba(255, 255, 255, .78); }

/* ---------- Découvrir l'Institut ---------- */
.aa-discover__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.aa-discover__media { position: relative; max-width: 470px; padding: 0 0 28px 0; }
.aa-discover__media::before { content: ""; position: absolute; inset: -18px 22px 46px -18px; border: 1.5px solid var(--gold); border-radius: 999px 999px 28px 28px; }
.aa-discover__img { position: relative; aspect-ratio: 3 / 4; width: 100%; border-radius: 999px 999px 28px 28px; }
.aa-discover__card { position: absolute; right: -30px; bottom: 0; width: 230px; background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: 0 22px 50px rgba(10, 42, 74, .22); border-left: 4px solid var(--gold); display: flex; flex-direction: column; gap: 2px; }
.aa-discover__logo { margin-bottom: 10px; }
.aa-discover__card strong { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.aa-discover__card span { color: var(--muted); font-size: .92rem; }
.aa-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 36px; }
.aa-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--navy); }
.aa-chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Vision ---------- */
.aa-vision { background: var(--navy); color: #fff; overflow: hidden; }
.aa-vision__pattern, .aa-highlights__pattern, .aa-footer__pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 200px 200px; opacity: 1; pointer-events: none; }
.aa-vision .aa-container { position: relative; }
.aa-vision__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.aa-vcard { padding: 38px 32px 40px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; background: rgba(255, 255, 255, .04); transition: background .3s, border-color .3s; }
.aa-vcard:hover { background: rgba(255, 255, 255, .08); border-color: rgba(230, 203, 138, .55); }
.aa-vcard__arch { display: block; width: 46px; height: 27px; border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 46px 46px 0 0; margin-bottom: 24px; }
.aa-vcard h3 { font-size: 1.6rem; margin-bottom: 12px; }
.aa-vcard p { margin: 0; color: rgba(255, 255, 255, .78); }

/* ---------- Tunisie ---------- */
.aa-tgrid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 320px; gap: 22px; margin-top: 56px; }
.aa-tcard { position: relative; margin: 0; overflow: hidden; border-radius: 22px; color: #fff; }
.aa-tcard--1 { grid-column: 1 / span 5; grid-row: 1 / span 2; border-radius: 999px 999px 22px 22px; }
.aa-tcard--2 { grid-column: 6 / span 7; }
.aa-tcard--3 { grid-column: 6 / span 4; }
.aa-tcard--4 { grid-column: 10 / span 3; }
.aa-tcard__img { position: absolute; inset: 0; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.aa-tcard:hover .aa-tcard__img { transform: scale(1.06); }
.aa-tcard figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 26px 26px; background: linear-gradient(0deg, rgba(7, 27, 49, .9), transparent); }
.aa-tcard--1 figcaption { padding-inline: 12%; text-align: center; padding-bottom: 44px; }
.aa-tcard h3 { font-size: 1.5rem; margin-bottom: 6px; }
.aa-tcard p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .85); }

/* ---------- Programme ---------- */
.aa-tabs { margin-top: 48px; }
.aa-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.aa-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 128px; padding: 14px 22px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: background .25s, color .25s, border-color .25s; }
.aa-tab__day { font-weight: 700; }
.aa-tab__date { font-size: .88rem; color: var(--muted); }
.aa-tab:hover { border-color: var(--gold); }
.aa-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.aa-tab.is-active .aa-tab__date { color: var(--gold-2); }
.aa-panel { max-width: 900px; margin-inline: auto; display: grid; gap: 14px; }
.aa-session { display: grid; grid-template-columns: 150px 1fr; gap: 24px; background: #fff; border-radius: 18px; padding: 24px 28px; border-left: 4px solid var(--gold); box-shadow: 0 8px 28px rgba(10, 42, 74, .07); }
.aa-session__time { font-weight: 700; color: var(--blue); }
.aa-session h3 { font-size: 1.3rem; color: var(--navy); }
.aa-session p { margin: 8px 0 0; color: var(--muted); }
.aa-session__cat { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: var(--sand); color: #7A5C1E; font-size: .8rem; font-weight: 700; }
.aa-session__place { font-size: .9rem; }
.aa-empty { border: 1.5px dashed rgba(10, 42, 74, .28); border-radius: 18px; padding: 44px 24px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, .6); }
.aa-empty--wide { grid-column: 1 / -1; }
.aa-contact__list .aa-empty { padding: 20px; }

/* ---------- Lieu et hébergement ---------- */
.aa-venue__row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.aa-venue__row::before { content: ""; position: absolute; top: 110px; left: 16%; right: 16%; border-top: 2px dashed rgba(201, 160, 74, .7); }
.aa-vn { position: relative; text-align: center; }
.aa-vn__img { width: 220px; height: 220px; border-radius: 50%; margin: 0 auto 26px; border: 6px solid #fff; box-shadow: 0 16px 40px rgba(10, 42, 74, .18); }
.aa-vn h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.aa-vn p { margin: 0 auto; max-width: 28ch; color: var(--muted); }

/* ---------- Chiffres clés ---------- */
.aa-highlights { background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy) 45%, var(--blue) 100%); color: #fff; overflow: hidden; }
.aa-highlights .aa-container { position: relative; }
.aa-counters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 50px; }
.aa-counter { text-align: center; padding: 14px 20px; border-left: 1px solid rgba(255, 255, 255, .18); }
.aa-counter:first-child { border-left: 0; }
.aa-counter__value { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 600; color: var(--gold-2); line-height: 1.1; }
.aa-counter__label { margin-top: 6px; color: rgba(255, 255, 255, .8); font-weight: 600; }

/* ---------- Galerie ---------- */
.aa-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; margin-top: 52px; }
.aa-gal__item { position: relative; overflow: hidden; border-radius: 16px; display: block; }
.aa-gal__item--1 { grid-column: span 2; grid-row: span 2; }
.aa-gal__item--3 { grid-row: span 2; }
.aa-gal__item--5, .aa-gal__item--6 { grid-column: span 2; }
.aa-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.aa-gal__item:hover img { transform: scale(1.07); filter: brightness(.88); }
a.aa-gal__item { cursor: zoom-in; }

.aa-lb { position: fixed; inset: 0; z-index: 200; background: rgba(4, 14, 26, .94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.aa-lb img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 80px rgba(0, 0, 0, .5); }
.aa-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.3rem; }
.aa-lb__close { top: 20px; right: 20px; }
.aa-lb__prev { left: 20px; top: 50%; }
.aa-lb__next { right: 20px; top: 50%; }

/* ---------- Comité ---------- */
.aa-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; }
.aa-member { text-align: center; }
.aa-member__photo { aspect-ratio: 5 / 6; border-radius: 999px 999px 18px 18px; overflow: hidden; margin-bottom: 20px; }
.aa-member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.aa-member:hover .aa-member__photo img { transform: scale(1.05); }
.aa-member h3 { font-size: 1.3rem; color: var(--navy); }
.aa-member__role { margin: 4px 0 0; color: #7A5C1E; font-weight: 700; font-size: .95rem; }
.aa-member__bio { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.aa-member--empty { opacity: .8; }
.aa-member--empty h3, .aa-member--empty .aa-member__role { color: var(--muted); }

/* ---------- Actualités ---------- */
.aa-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.aa-ncard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 34px rgba(10, 42, 74, .08); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.aa-ncard:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(10, 42, 74, .14); }
.aa-ncard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.aa-ncard__img img { width: 100%; height: 100%; object-fit: cover; }
.aa-ncard__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.aa-ncard time { font-size: .86rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.aa-ncard h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.aa-ncard h3 a:hover { color: var(--blue); }
.aa-ncard p { color: var(--muted); font-size: .96rem; }
.aa-more { margin-top: auto; font-weight: 700; color: var(--blue); border-bottom: 2px solid var(--gold); align-self: flex-start; }
.aa-pager { margin-top: 48px; text-align: center; }
.aa-pager .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.aa-pager .page-numbers { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; }
.aa-pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Inscription ---------- */
.aa-reg__box { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); border-radius: 28px; overflow: hidden; color: #fff; box-shadow: 0 30px 70px rgba(10, 42, 74, .25); }
.aa-reg__img { min-height: 420px; }
.aa-reg__body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background-image: var(--pattern); background-size: 200px 200px; }
.aa-reg__body h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.aa-reg__body p { color: rgba(255, 255, 255, .82); }
.aa-reg__facts { display: grid; gap: 10px; margin: 8px 0 30px; }
.aa-reg__facts li { display: flex; gap: 14px; align-items: baseline; font-weight: 600; }
.aa-reg__facts span { color: var(--gold-2); font-size: .9rem; min-width: 54px; }

/* ---------- Partenaires ---------- */
.aa-partners { padding: 48px 0; background: #fff; border-top: 1px solid var(--line); }
.aa-partners__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.aa-partners img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.aa-partners a:hover img { filter: none; opacity: 1; }

/* ---------- Bandeau des pages intérieures ---------- */
.aa-banner { position: relative; background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%, var(--blue)); color: #fff; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden; }
.aa-banner::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 200px 200px; opacity: 1; }
.aa-banner__arches { position: absolute; right: 8%; bottom: 0; width: 280px; height: 200px; border: 1.5px solid rgba(230, 203, 138, .45); border-bottom: 0; border-radius: 999px 999px 0 0; }
.aa-banner__arches::after { content: ""; position: absolute; inset: 22px 22px 0; border: 1.5px solid rgba(230, 203, 138, .3); border-bottom: 0; border-radius: 999px 999px 0 0; }
.aa-banner .aa-container { position: relative; }
.aa-banner__title { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.aa-crumbs { display: flex; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .75); margin-bottom: 16px; flex-wrap: wrap; }
.aa-crumbs a:hover { color: var(--gold-2); }

/* ---------- Texte libre, articles ---------- */
.aa-prose { max-width: 780px; margin-inline: auto; font-size: 1.06rem; line-height: 1.8; }
.aa-prose h2, .aa-prose h3 { color: var(--navy); margin: 1.6em 0 .5em; }
.aa-prose a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.aa-prose img { border-radius: 14px; margin-block: 1.4em; }
.aa-prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.aa-article__in { max-width: 860px; }
.aa-article__img { margin-bottom: 28px; border-radius: 20px; overflow: hidden; }
.aa-article__meta { color: var(--blue); font-weight: 700; text-align: center; }

/* ---------- Contact ---------- */
.aa-contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.aa-contact__list { margin-top: 34px; display: grid; gap: 18px; }
.aa-contact__list li { display: grid; gap: 2px; }
.aa-contact__list span { font-weight: 700; color: var(--blue); font-size: .9rem; }
.aa-contact__list a:hover { color: var(--blue); }
.aa-form { display: grid; gap: 18px; background: var(--paper); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.aa-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.aa-form input, .aa-form textarea { font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.aa-form input:focus, .aa-form textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(27, 108, 168, .18); }
.aa-form .aa-btn { justify-self: start; }
.aa-hp { position: absolute; left: -9999px; }
.aa-notice { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.aa-notice--ok { background: #E4F3E8; color: #1E5B30; }
.aa-notice--err { background: #FBE8E6; color: #8A2A22; }

/* ---------- Pied de page ---------- */
.aa-footer { position: relative; background: var(--navy-2); color: rgba(255, 255, 255, .8); overflow: hidden; }
.aa-footer__pattern { opacity: .8; }
.aa-footer__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-block: 76px 56px; }
.aa-footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.aa-footer__logo { margin-bottom: 20px; }
.aa-footer__brand p { max-width: 36ch; }
.aa-footer__links { display: grid; gap: 10px; }
.aa-footer__links a:hover { color: var(--gold-2); }
.aa-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.aa-social a { display: inline-block; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: .88rem; font-weight: 600; transition: background .25s, color .25s; }
.aa-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-2); }
.aa-footer__bar { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); }
.aa-footer__barin { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; font-size: .88rem; }
.aa-footer__legal { display: flex; gap: 22px; }
.aa-footer__legal a:hover { color: var(--gold-2); }

.aa-top { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-2); font-size: 1.2rem; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s; }
.aa-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Apparition au défilement (sobre) ---------- */
.js .aa-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .aa-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Adaptation tablette et mobile ---------- */
@media (max-width: 1280px) {
  .aa-burger { display: block; }
  .aa-header__cta { display: none; }
  .aa-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-2); padding: 28px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease; visibility: hidden; }
  .aa-header.is-open .aa-nav { transform: none; visibility: visible; }
  .aa-nav ul { flex-direction: column; gap: 0; }
  .aa-nav ul a { display: block; padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .aa-nav ul a::after { display: none; }
  .aa-nav a.is-current { color: var(--gold-2); }
  .aa-nav__mobile { display: block; margin-top: 28px; }
  .aa-hero__meta { display: none; }
}

@media (max-width: 960px) {
  .aa-discover__grid, .aa-contact__grid, .aa-reg__box { grid-template-columns: 1fr; }
  .aa-discover__media { margin-inline: auto; }
  .aa-vision__cards, .aa-cards, .aa-venue__row { grid-template-columns: 1fr; }
  .aa-venue__row::before { display: none; }
  .aa-team { grid-template-columns: repeat(2, 1fr); }
  .aa-counters { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .aa-counter:nth-child(3) { border-left: 0; }
  .aa-footer__grid { grid-template-columns: 1fr 1fr; }
  .aa-footer__brand { grid-column: 1 / -1; }
  .aa-tgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .aa-tcard--1 { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .aa-tcard--2 { grid-column: 1 / -1; }
  .aa-tcard--3, .aa-tcard--4 { grid-column: auto; }
  .aa-hero__arches { opacity: .5; right: -10%; width: 70vw; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .aa-container { width: min(1200px, 100% - 32px); }
  .aa-logo-ph--header { width: 120px; height: 44px; font-size: .7rem; }
  .aa-logo--header { height: 26px; }
  .aa-hero__barin { flex-wrap: wrap; gap: 10px; padding-block: 14px; }
  .aa-hero__id strong { font-size: 1rem; }
  .aa-slide__content { padding-bottom: 170px; }
  .aa-session { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .aa-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .aa-gal__item--1 { grid-column: span 2; grid-row: span 2; }
  .aa-gal__item--3 { grid-row: auto; }
  .aa-gal__item--5, .aa-gal__item--6 { grid-column: auto; }
  .aa-discover__card { right: 0; width: 200px; }
  .aa-tgrid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .aa-tcard--3, .aa-tcard--4 { grid-column: 1 / -1; }
  .aa-team { gap: 18px; }
  .aa-footer__grid { grid-template-columns: 1fr; }
  .aa-tab { min-width: 100px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .aa-reveal { opacity: 1; transform: none; }
}
