/* Polices hébergées sur le site (aucune requête vers Google Fonts : les adresses IP des visiteurs ne sont pas transmises).
   Quicksand et Nunito : licence SIL Open Font License 1.1 (fichiers variables, sous-ensemble latin). */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/nunito-latin-var.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: 'Quicksand'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/quicksand-latin-var.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; }

/* ==========================================================================
   OMNIA — charte graphique
   Bordeaux #5C0013 (dominante) / Olive doré #958623 (accent)
   Olive logo #B2B61C (logo uniquement, jamais en UI)
   Quicksand (titres) / Nunito (texte courant) — fond ivoire #FAF8F4
   ========================================================================== */

:root {
  --bordeaux: #5C0013;
  --bordeaux-dark: #3D000C;
  --bordeaux-light: #7A1B2E;
  /* Olive doré #958623 : l'accent de la charte. Règles d'accessibilité (WCAG AA / RGAA) :
     - fond de bouton ou de pastille : texte bordeaux très foncé (--bordeaux-dark), 4,75:1 ; jamais de texte blanc (3,7:1) ;
     - texte olive sur fond bordeaux : uniquement sur --bordeaux-dark (4,75:1) ;
     - texte olive sur fond clair (liens, surtitres, dates) : --olive-text, plus foncé (5,0:1 sur ivoire) ;
     - #958623 seul : filets, bordures, icônes, barres décoratives (3:1 suffit hors texte). */
  --olive: #958623;
  --olive-text: #786c1c;
  --olive-hover: #786c1c;
  --olive-badge: #6a5f18;
  --ivory: #FAF8F4;
  --white: #FFFFFF;
  --text: #2A2220;
  --text-muted: #6B5F5A;
  --border: #E4DDD3;
  --card-bg: #FFFFFF;
  --success: #4C7A3D;

  --font-title: 'Quicksand', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(60, 20, 20, 0.08);
  --shadow-hover: 0 10px 28px rgba(60, 20, 20, 0.14);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--bordeaux);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--olive-text); text-decoration: none; }
a:hover { color: var(--bordeaux); text-decoration: underline; }
ul, ol { padding-left: 1.3em; }

img { max-width: 100%; height: auto; display: block; }
/* <picture> (versions WebP) : bloc qui occupe la place de l'ancienne <img>. Les photos portent width/height (réserve la place,
   pas de saut de page) mais gardent la largeur de leur conteneur, comme avant ; dans les cartes à cadrage fixe, le bloc
   <picture> prend toute la hauteur du cadre pour que la photo le remplisse (object-fit: cover). */
picture { display: block; }
picture img { width: 100%; }
/* Liens au milieu d'un texte : soulignés (RGAA : ils ne doivent pas se distinguer par la seule couleur). Pas les boutons, ni les liens
   étirés des cartes, ni le fil d'Ariane. */
main :is(p, li):not(.breadcrumb) a:not(.btn):not(.stretched) { text-decoration: underline; text-underline-offset: 2px; }
.card__img picture, .person-card__photo picture { width: 100%; height: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--bordeaux); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
}
.btn--primary { background: var(--bordeaux); color: var(--white); }
.btn--primary:hover { background: var(--bordeaux-dark); color: var(--white); text-decoration: none; }
.btn--secondary { background: var(--olive); color: var(--bordeaux-dark); }
.btn--secondary:hover { background: var(--olive-hover); color: var(--white); text-decoration: none; }
.btn--outline { background: transparent; border-color: var(--bordeaux); color: var(--bordeaux); }
.btn--outline:hover { background: var(--bordeaux); color: var(--white); text-decoration: none; }
.btn--partner {
  background: var(--olive); color: var(--bordeaux-dark);
  padding: 10px 22px; font-size: 0.9rem;
}
.btn--partner:hover { background: var(--olive-hover); color: var(--white); text-decoration: none; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 24px;
}
.site-header__logo img { display: block; }

.site-nav {
  display: flex; align-items: center; gap: 28px;
}
.site-nav ul {
  display: flex; align-items: center; gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--bordeaux);
  border-bottom-color: var(--olive);
}

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 20px; margin: 0 auto;
  background: var(--bordeaux);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  color: var(--white);
  padding: 72px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(149,134,35,0.35) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(178,182,28,0.18) 0, transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,0.92); max-width: 620px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn--outline { border-color: var(--white); color: var(--white); }
.hero .btn--outline:hover { background: var(--white); color: var(--bordeaux); }

.page-header {
  background: var(--bordeaux);
  color: var(--white);
  padding: 56px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.page-header p { color: rgba(255,255,255,0.88); max-width: 680px; font-size: 1.08rem; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--white); }
.section-head { max-width: 700px; margin: 0 0 40px; }
.section-head .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-title); font-weight: 700; font-size: 0.78rem;
  color: var(--olive-text); margin-bottom: 10px;
}

/* ---------- Grids / cards ---------- */
.grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid var(--border);
}
a.card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--bordeaux); font-family: var(--font-title); font-weight: 600;
  background: linear-gradient(135deg, #f1e9df, #e4d9c8);
  text-align: center; padding: 12px; font-size: 0.9rem;
}
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 6px; }
.card__meta {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
  font-family: var(--font-title);
}
.card__body p { color: var(--text-muted); font-size: 0.96rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

.badge {
  display: inline-block; font-family: var(--font-title); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(149,134,35,0.12); color: var(--olive-badge);
}
.badge--bordeaux { background: rgba(92,0,19,0.09); color: var(--bordeaux); }
.badge--muted { background: #eee; color: var(--text-muted); }

/* ---------- Team ---------- */
.person-card { text-align: left; }
.person-card__photo {
  aspect-ratio: 1/1; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px; background: var(--border);
  box-shadow: var(--shadow);
}
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card__role { color: var(--olive-text); font-weight: 700; font-family: var(--font-title); margin-bottom: 10px; }
.person-card__contact { font-size: 0.95rem; margin-top: 12px; }
.person-card__contact a { color: var(--bordeaux); font-weight: 700; }

/* ---------- Facts table / definition list ---------- */
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { display: flex; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.fact-list strong { min-width: 190px; color: var(--bordeaux); font-family: var(--font-title); }

table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
th { background: var(--bordeaux); color: var(--white); font-family: var(--font-title); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(149,134,35,0.06); }
.table-scroll { overflow-x: auto; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border-top: 4px solid var(--olive); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bordeaux); color: var(--white);
  font-family: var(--font-title); font-weight: 700; margin-bottom: 14px;
}

/* Lien LinkedIn (équipe, contact) */
main a.linkedin-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; text-decoration: none; }
main a.linkedin-link:hover { text-decoration: underline; }

/* Page Partenaires : étapes à quatre colonnes, questions fréquentes */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-family: var(--font-title); font-weight: 700; color: var(--bordeaux); }
.faq details[open] summary { margin-bottom: 4px; }
.faq details p { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- Callout / advantage blocks ---------- */
.callout {
  background: var(--white); border-left: 5px solid var(--olive);
  border-radius: var(--radius-sm); padding: 22px 26px; box-shadow: var(--shadow);
}
.callout--bordeaux { border-left-color: var(--bordeaux); background: #fbf1ee; }

.advantage-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.advantage-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.advantage-card h3 { font-size: 1.05rem; }
.advantage-card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-title); font-weight: 600; margin-bottom: 6px; color: var(--bordeaux); font-size: 0.92rem; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: var(--font-body); font-size: 0.98rem;
  background: var(--ivory); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(149,134,35,0.35); background: var(--white); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; }
/* Formulaires : champ piège anti-robots (hors écran) et message d'état de l'envoi */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status--ok { color: var(--success); }
.form-status--error { color: var(--bordeaux); }

/* ---------- Filters (actualités) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-title); font-weight: 700; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text); cursor: pointer;
}
.filter-btn:hover { border-color: var(--olive); }
.filter-btn.is-active { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--white); }

.article-list { display: grid; gap: 22px; }
.article-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 22px;
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); align-items: start;
}
.article-row time { font-family: var(--font-title); font-weight: 700; color: var(--olive-text); font-size: 0.9rem; }
.article-row h2 { margin: 6px 0 8px; font-size: 1.3rem; font-weight: 600; }
.person-card h2 { font-size: 1.3rem; font-weight: 600; }
.article-row a.stretched::after { content: ""; position: absolute; inset: 0; }
.article-row { position: relative; }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.article-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

/* ---------- Diagram (démembrement) ---------- */
.diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.diagram__step { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); border-bottom: 4px solid var(--olive); }
.diagram__step .n { font-family: var(--font-title); font-weight: 700; color: var(--bordeaux); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }

/* ---------- Programme detail ---------- */
.programme-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.programme-gallery { display: grid; gap: 14px; }
.programme-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); }
.programme-gallery .main { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.programme-gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 10px; }
.programme-gallery .thumbs img { aspect-ratio: 1/1; object-fit: cover; }
/* Vignettes verticales (photos prises en portrait) : même largeur de colonne que .thumbs, mais hauteur qui suit le ratio 3/4 au lieu du recadrage carré, pour ne pas déformer/tronquer le cadrage d'origine. */
.programme-gallery .thumbs--portrait img { aspect-ratio: 3/4; }
.programme-side { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 90px; }
.programme-side h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }

.notice-box {
  background: #fbf1ee; border: 1px dashed var(--bordeaux-light);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: var(--bordeaux-dark);
  margin: 20px 0;
}

.breadcrumb { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bordeaux); color: var(--white); border-radius: var(--radius);
  padding: 44px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bordeaux); color: rgba(255,255,255,0.85); padding: 56px 0 0; margin-top: 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer__brand p { font-size: 0.92rem; color: rgba(255,255,255,0.7); margin-top: 16px; }
.site-footer h2 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--white); }
/* Lien réseau social : pastille aux couleurs d'OMNIA (icône olive sur bordeaux : 3,9:1, suffisant pour une icône ; pas de texte olive dans le pied de page), qui s'inverse au survol. */
.site-footer__social { margin-top: 10px; }
.site-footer .social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--olive); border-radius: var(--radius-sm); color: var(--olive); transition: background-color .15s ease, color .15s ease; }
.site-footer .social-link:hover, .site-footer .social-link:focus-visible { background: var(--olive); color: var(--bordeaux-dark); }
.site-footer .social-link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.stack { display: grid; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .programme-hero { grid-template-columns: 1fr; }
  .programme-side { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .diagram { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--ivory);
    flex-direction: column; align-items: stretch; padding: 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all .2s ease; overflow-y: auto;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .site-nav .btn--partner { margin-top: 18px; text-align: center; }
  .article-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
