:root {
  --aten-navy: #0b2545;
  --aten-blue: #1a5fb4;
  --aten-blue-600: #154c91;
  --aten-sky: #2ba8e0;
  --aten-ink: #1d2433;
  --aten-muted: #5b6577;
  --aten-line: #e3e8f0;
  --aten-soft: #f4f7fb;
  --bs-primary: #1a5fb4;
  --bs-primary-rgb: 26, 95, 180;
  --bs-link-color: #1a5fb4;
  --bs-link-hover-color: #154c91;
  --bs-body-color: #1d2433;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .font-display { font-family: "Poppins", var(--bs-body-font-family); font-weight: 600; letter-spacing: -.01em; color: var(--aten-navy); }
.text-muted { color: var(--aten-muted) !important; }
.btn-primary { --bs-btn-bg: var(--aten-blue); --bs-btn-border-color: var(--aten-blue); --bs-btn-hover-bg: var(--aten-blue-600); --bs-btn-hover-border-color: var(--aten-blue-600); --bs-btn-active-bg: var(--aten-blue-600); }
.btn-outline-primary { --bs-btn-color: var(--aten-blue); --bs-btn-border-color: var(--aten-blue); --bs-btn-hover-bg: var(--aten-blue); --bs-btn-hover-border-color: var(--aten-blue); }
.btn { border-radius: .6rem; font-weight: 500; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; }
.skip-link:focus { left: .5rem; }

/* Barre supérieure + navigation */
.topbar { background: var(--aten-navy); color: #c9d5ea; font-size: .85rem; }
.topbar a { color: #c9d5ea; text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-nav { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--aten-line); }
.site-nav .navbar-brand img { height: 38px; width: auto; }
.site-nav .nav-link { white-space: nowrap; color: var(--aten-ink); font-weight: 500; padding: .5rem .8rem !important; border-radius: .5rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--aten-blue); background: var(--aten-soft); }
.lang-switch a { font-weight: 600; font-size: .8rem; padding: .25rem .5rem; border-radius: .4rem; text-decoration: none; color: var(--aten-muted); }
.lang-switch a.active { background: var(--aten-blue); color: #fff; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(43,168,224,.45), transparent 60%), linear-gradient(135deg, #0b2545 0%, #13396d 55%, #1a5fb4 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to left, #000, transparent 70%); pointer-events: none; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.1; }
.hero .lead { color: #d6e2f5; max-width: 38rem; }
.hero .eyebrow { color: #8fd3f4; }
.hero-card { position: relative; z-index: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 1.1rem; padding: 1.5rem; backdrop-filter: blur(6px); }
.hero-card .badge { background: var(--aten-sky); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--aten-blue); }

.page-header { background: linear-gradient(135deg, #0b2545, #1a5fb4); color: #fff; padding: 3.5rem 0 3rem; }
.page-header h1 { color: #fff; margin: 0; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: #a9bddb; --bs-breadcrumb-item-active-color: #d6e2f5; margin-bottom: .5rem; font-size: .875rem; }
.page-header .breadcrumb a { color: #a9d8f2; text-decoration: none; }
.page-header p { color: #d6e2f5; max-width: 46rem; }

.section { padding: 4.5rem 0; }
.section-soft { background: var(--aten-soft); }
.section-title { margin-bottom: 2.25rem; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Chiffres clés */
.stats { margin-top: -2.75rem; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--aten-line); border-radius: 1rem; padding: 1.25rem 1.5rem; box-shadow: 0 12px 30px -18px rgba(11,37,69,.35); }
.stat .value { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2rem; color: var(--aten-blue); line-height: 1; }
.stat .label { color: var(--aten-muted); font-size: .9rem; margin-top: .35rem; }

/* Cartes */
.card-aten { border: 1px solid var(--aten-line); border-radius: 1rem; overflow: hidden; background: #fff; transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.card-aten:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(11,37,69,.45); }
.card-aten .thumb { aspect-ratio: 16/9; background: var(--aten-soft) center/cover no-repeat; display: block; }
.card-aten .thumb-placeholder { display: grid; place-items: center; color: #9fb3d1; font-size: 2.5rem; }
.card-aten .card-body { padding: 1.25rem 1.35rem 1.5rem; }
.card-aten h3 { font-size: 1.1rem; line-height: 1.35; }
.card-aten h3 a { color: inherit; text-decoration: none; }
.card-aten h3 a::after { content: ""; position: absolute; inset: 0; }
.card-aten { position: relative; }
.meta { color: var(--aten-muted); font-size: .85rem; }

.conf-year { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2.25rem; color: var(--aten-blue); line-height: 1; }
.timeline { position: relative; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--aten-soft); color: var(--aten-navy); border-radius: 2rem; padding: .25rem .7rem; font-size: .8rem; font-weight: 500; }
.chip-accent { background: #e3f4fc; color: #0e6c97; }

/* Comité exécutif */
.person-card { position: relative; display: flex; align-items: center; gap: 1rem; height: 100%; background: #fff; border: 1px solid var(--aten-line); border-radius: 1rem; padding: 1rem 1.15rem; transition: border-color .2s, box-shadow .2s; }
.person-card:hover { border-color: #c7d6ec; box-shadow: 0 14px 30px -22px rgba(11,37,69,.5); }
.person-photo { width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.person-initials { display: grid; place-items: center; background: linear-gradient(135deg, #1a5fb4, #2ba8e0); color: #fff; font-family: "Poppins"; font-weight: 600; font-size: 1.25rem; }
.person-body { min-width: 0; padding-right: 1.75rem; }
.person-name { font-size: 1rem; margin: 0 0 .15rem; line-height: 1.3; }
.person-role { display: inline-block; color: var(--aten-blue); background: #eaf2fc; font-weight: 600; font-size: .75rem; border-radius: 2rem; padding: .1rem .6rem; margin-bottom: .3rem; }
.person-title { color: var(--aten-muted); font-size: .85rem; line-height: 1.35; }
.person-linkedin { position: absolute; top: .8rem; right: .9rem; color: #8a96aa; }
.person-linkedin:hover { color: #0a66c2; }
.person-card-lg { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
.person-card-lg .person-photo { width: 120px; height: 120px; font-size: 2rem; box-shadow: 0 0 0 6px #eef4fc; }
.person-card-lg .person-body { padding-right: 0; }
.person-card-lg .person-name { font-size: 1.15rem; margin-top: .5rem; }
.committee-role + .committee-role { margin-top: 3rem; }
.committee-role-title { display: flex; align-items: center; gap: 1rem; font-size: 1.25rem; margin-bottom: 1.25rem; }
.committee-role-title::after { content: ""; flex: 1; height: 1px; background: var(--aten-line); }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.partner { display: grid; place-items: center; background: #fff; border: 1px solid var(--aten-line); border-radius: .9rem; padding: 1rem; height: 110px; }
.partner img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.partner:hover img { filter: none; opacity: 1; }

/* Contenu riche */
.prose { font-size: 1.05rem; line-height: 1.75; color: #2c3446; }
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: .75rem; }
.prose img { max-width: 100%; height: auto; border-radius: .75rem; }
.prose ul { padding-left: 1.25rem; }
.prose blockquote { border-left: 4px solid var(--aten-sky); padding: .25rem 1rem; color: var(--aten-muted); background: var(--aten-soft); border-radius: 0 .5rem .5rem 0; }


.form-control, .form-select { border-radius: .6rem; padding: .65rem .9rem; border-color: #d3dbe7; }
.form-control:focus, .form-select:focus { border-color: var(--aten-blue); box-shadow: 0 0 0 .2rem rgba(26,95,180,.15); }
.form-label { font-weight: 500; font-size: .92rem; }
.hp-field { position: absolute; left: -5000px; }

.cta-band { background: linear-gradient(120deg, #1a5fb4, #2ba8e0); color: #fff; border-radius: 1.25rem; padding: 2.5rem; }
.cta-band h2 { color: #fff; }

/* Pied de page */
.site-footer { background: var(--aten-navy); color: #b8c6dd; padding-top: 4rem; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #b8c6dd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { background: #fff; border-radius: .6rem; padding: .4rem .7rem; height: 46px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.25rem 0; font-size: .85rem; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .35rem; }
.social a:hover { background: var(--aten-sky); }
.newsletter-band { background: #fff; border-radius: 1rem; padding: 1.75rem; color: var(--aten-ink); }

@media (max-width: 991.98px) {
  .section { padding: 3.25rem 0; }
}
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { padding: 1rem 0; }
}

.site-nav .dropdown-menu { border: 1px solid var(--aten-line); border-radius: .75rem; box-shadow: 0 18px 40px -22px rgba(11,37,69,.45); padding: .4rem; }
.site-nav .dropdown-item { border-radius: .45rem; padding: .45rem .8rem; }
.site-nav .dropdown-item.active, .site-nav .dropdown-item:active { background: var(--aten-soft); color: var(--aten-blue); }

/* Publications : frise chronologique */
.pub-summary { position: sticky; top: 6rem; }
.pub-summary .stat-value { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2rem; color: var(--aten-blue); line-height: 1; }
.pub-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pub-timeline::before { content: ""; position: absolute; left: 5.25rem; top: .6rem; bottom: .6rem; border-left: 2px dotted #b9c6da; }
.pub-timeline > li { display: grid; grid-template-columns: 4.25rem 1fr; column-gap: 2.25rem; padding-bottom: 2.5rem; position: relative; scroll-margin-top: 6rem; }
.pub-timeline > li:last-child { padding-bottom: 0; }
.pub-timeline > li::before { content: ""; position: absolute; left: calc(5.25rem - 6px); top: .55rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--aten-blue); }
.pub-year { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--aten-navy); text-align: right; padding-top: .2rem; }
.pub-entry h2 a:hover { color: var(--aten-blue) !important; }
.pub-book { display: grid; grid-template-columns: 1fr auto auto; border: 1px solid var(--aten-line); border-radius: .75rem; background: #fff; overflow: hidden; }
.pub-book > div { padding: .9rem 1.1rem; }
.pub-book-title { display: flex; align-items: flex-start; font-size: 1.02rem; line-height: 1.45; }
.pub-book-title a { text-decoration: underline; text-underline-offset: 3px; }
.pub-book-count { border-left: 1px solid var(--aten-line); min-width: 6rem; display: flex; flex-direction: column; justify-content: center; }
.pub-book-count strong { font-size: 1.15rem; color: var(--aten-navy); line-height: 1.1; }
.pub-book-count span { color: var(--aten-muted); font-size: .82rem; }
@media (max-width: 575.98px) {
  .pub-timeline::before { left: .45rem; }
  .pub-timeline > li { grid-template-columns: 1fr; padding-left: 1.75rem; }
  .pub-timeline > li::before { left: 0; }
  .pub-year { text-align: left; margin-bottom: .25rem; }
  .pub-book { grid-template-columns: 1fr 1fr; }
  .pub-book-title { grid-column: 1 / -1; }
  .pub-book-count { border-left: 0; border-top: 1px solid var(--aten-line); }
  .pub-book-count + .pub-book-count { border-left: 1px solid var(--aten-line); }
}
@media (max-width: 991.98px) { .pub-summary { position: static; } }

/* Documents joints aux actualités */
.doc-link { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border: 1px solid var(--aten-line); border-radius: .75rem; background: #fff; color: var(--aten-ink); text-decoration: none; transition: border-color .15s, background .15s; }
.doc-link:hover { border-color: var(--aten-blue); background: var(--aten-soft); color: var(--aten-ink); }
.doc-link > .bi:first-child { font-size: 1.6rem; color: var(--aten-blue); }
.doc-link .small { color: var(--aten-blue); }

/* Écrans de 1200 à 1399 px : liens du menu resserrés pour que 8 rubriques tiennent sur une ligne. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav .nav-link { padding: .5rem .5rem !important; font-size: .9rem; }
  .site-nav .navbar-brand img { height: 34px; }
}
