/* ADT2026 - identite ADAMA officielle : Navy #172A74 (couleur principale,
   surfaces et texte de marque) + Bordeaux #80063F (accent : survols, barre
   de titre de section, etats actifs). Typo : Open Sans (300 texte) + Fraunces
   (titres, caractere editorial).
   Ne pas modifier ces deux couleurs : toute nouvelle teinte doit en deriver. */
:root {
  --adt-primary: #172A74;
  --adt-primary-dark: #111f57;
  --adt-primary-deep: #0c1440;   /* navy profond derive : overlays cinema, footer */
  --adt-accent: #80063F;
  --adt-light: #f5f5f5;
  --adt-shadow-soft: 0 1px 2px rgba(12,20,64,.06), 0 8px 24px rgba(12,20,64,.08);
  --adt-shadow-lift: 0 2px 4px rgba(12,20,64,.08), 0 18px 40px rgba(12,20,64,.16);
  --adt-ease: cubic-bezier(.22,.61,.36,1);
  --adt-ease-out: cubic-bezier(.16,1,.3,1);      /* sortie longue, feutree */
  --adt-grain: url('../images/grain.svg');       /* grain cinema genere */
  --adt-aurora: url('../images/aurora.svg');     /* nappes navy/bordeaux generees */
}

::selection { background: var(--adt-accent); color: #fff; }

/* Fondu doux entre les pages (Chrome/Safari recents, ignore ailleurs) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

html { scrollbar-gutter: stable; } /* pas de saut horizontal quand la scrollbar apparait */

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: var(--bs-body-color, #212529);
  overflow-x: hidden; /* garde-fou : le parallax deborde volontairement de son cadre */
}

/* Typographie editoriale : Fraunces pour les titres, Open Sans pour le texte */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--adt-primary);
  letter-spacing: -.01em;
  text-wrap: balance; /* titres multi-lignes equilibres (ignore si non supporte) */
}
h1 { font-weight: 700; font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
.adt-brand-text { font-weight: 800; }
/* Texte des articles et des pages : lecture confortable (Open Sans 300 parait petit en 16px) */
.adt-article-body, .adt-page-body { font-size: 1.125rem; line-height: 1.75; }
/* Neutralise les styles en dur herites de Joomla/collages Word (ex. 10pt, Calibri,
   color:#000000 illisible en theme sombre, line-height en px) dans le contenu en base.
   ponytail: l'editeur n'a pas d'outil couleur/police, donc aucun style voulu n'est perdu. */
.adt-article-body [style*="font-size"], .adt-page-body [style*="font-size"] { font-size: inherit !important; }
.adt-article-body [style*="color"], .adt-page-body [style*="color"] { color: inherit !important; }
.adt-article-body [style*="font-family"], .adt-page-body [style*="font-family"] { font-family: inherit !important; }
.adt-article-body [style*="line-height"], .adt-page-body [style*="line-height"] { line-height: inherit !important; }
/* Titres justifies (Joomla) : grands blancs entre les mots, on les aligne a gauche */
:is(.adt-article-body, .adt-page-body) :is(h1, h2, h3, h4, h5, h6)[style*="justify"] { text-align: start !important; }
.card-title { font-size: 1.2rem; line-height: 1.3; }
/* Fil d'Ariane (articles et categories) */
.adt-breadcrumb .breadcrumb { margin-bottom: 1rem; --bs-breadcrumb-divider: '›'; }
.adt-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--adt-accent); }
.adt-breadcrumb a { text-decoration: none; }
.adt-breadcrumb a:hover { color: var(--adt-accent); }

a { color: var(--adt-primary); }
a:hover { color: var(--adt-accent); }
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--adt-accent);
  outline-offset: 2px;
}

.adt-topbar {
  background: var(--adt-primary-deep);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}
.adt-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.adt-topbar a:hover { color: #fff; }

/* Menu style Stripe : fond navy, liens blancs, panneau blanc flottant */
.adt-header {
  background: linear-gradient(160deg, var(--adt-primary) 0%, var(--adt-primary-dark) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s var(--adt-ease);
}
.adt-header.adt-scrolled { box-shadow: 0 6px 24px rgba(12,20,64,.35); }
.adt-header .navbar-brand { display: flex; align-items: center; gap: .5rem; }
.adt-header .navbar-collapse { flex-wrap: wrap; } /* la barre de langue passe a la ligne au lieu de deborder */
.adt-header .nav-link {
  color: rgba(255,255,255,.92) !important;
  font-weight: 400;
  position: relative;
  text-shadow: 0 1px 5px rgba(0,0,0,.1);
}
.adt-header .nav-link:hover, .adt-header .nav-link:focus { color: rgba(255,255,255,.6) !important; }
/* soulignement qui se dessine au survol (desktop) — blanc sur fond navy */
@media (min-width: 992px) {
  .adt-header .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: .5rem; right: .5rem; bottom: .15rem;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--adt-ease);
  }
  .adt-header .navbar-nav > .nav-item > .nav-link:hover::after,
  .adt-header .navbar-nav > .nav-item > .nav-link:focus::after { transform: scaleX(1); }
}
.adt-header .navbar-toggler { border-color: rgba(255,255,255,.4); padding: .5rem .75rem; }
.adt-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Panneau flottant blanc facon Stripe : arrondi, grande ombre douce, fleche */
.dropdown-menu {
  border: none;
  box-shadow: 0 2px 7px rgba(12,20,64,.1), 0 2px 20px rgba(12,20,64,.3);
  border-radius: 10px;
  padding: .75rem 0;
}
@media (min-width: 992px) {
  .adt-header .navbar-nav > .dropdown { perspective: 2000px; }
  .adt-header .navbar-nav > .dropdown > .dropdown-menu { margin-top: .75rem; }
  .adt-header .navbar-nav > .dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 1.5rem;
    border: 9px solid transparent;
    border-top: none;
    border-bottom-color: var(--bs-dropdown-bg, #fff); /* suit le theme clair/sombre */
  }
  /* zone tampon invisible pour ne pas perdre le survol entre le lien et le panneau */
  .adt-header .navbar-nav > .dropdown > .dropdown-menu::after {
    content: "";
    position: absolute;
    top: -.8rem;
    left: 0; right: 0;
    height: .8rem;
  }
  /* ouverture au survol (le clic Bootstrap reste actif) */
  .adt-header .navbar-nav > .dropdown:hover > .dropdown-menu {
    display: block;
    animation: adt-dropdown-in .25s var(--adt-ease);
  }
  .dropdown-submenu:hover > .dropdown-menu { display: block; }
}
.dropdown-menu.show { animation: adt-dropdown-in .25s var(--adt-ease); }
@keyframes adt-dropdown-in {
  from { opacity: 0; transform: rotateX(-15deg) translateY(-.5rem); transform-origin: top center; }
  to { opacity: 1; transform: rotateX(0) translateY(0); transform-origin: top center; }
}
.dropdown-menu.show > li, .dropdown:hover > .dropdown-menu > li { animation: adt-dropdown-item .3s var(--adt-ease) backwards; }
.dropdown-menu.show > li:nth-child(2), .dropdown:hover > .dropdown-menu > li:nth-child(2) { animation-delay: .04s; }
.dropdown-menu.show > li:nth-child(3), .dropdown:hover > .dropdown-menu > li:nth-child(3) { animation-delay: .08s; }
.dropdown-menu.show > li:nth-child(4), .dropdown:hover > .dropdown-menu > li:nth-child(4) { animation-delay: .12s; }
.dropdown-menu.show > li:nth-child(n+5), .dropdown:hover > .dropdown-menu > li:nth-child(n+5) { animation-delay: .16s; }
@keyframes adt-dropdown-item {
  from { opacity: 0; transform: translateX(-.4rem); }
  to { opacity: 1; transform: translateX(0); }
}
.dropdown-item { padding-top: .5rem; padding-bottom: .5rem; transition: background-color .2s, color .2s, padding-left .2s var(--adt-ease); }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(128,6,63,.06); color: var(--adt-accent); padding-left: 1.4rem; }
.adt-header-search { margin-left: auto; max-width: 12rem; }
.adt-header-search .form-control { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; }
.adt-header-search .form-control::placeholder { color: rgba(255,255,255,.6); }
.adt-header-search .form-control:focus { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; box-shadow: none; }
.adt-header-search .btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.adt-header-search .btn-outline-light:hover { background: #fff; color: var(--adt-primary); }
@media (max-width: 991px) { .adt-header-search { max-width: none; margin: .5rem 0; } }

.adt-lang-switch .btn { min-width: 2.6rem; }
.adt-lang-switch .btn-light { background: #fff; border-color: #fff; color: var(--adt-primary); font-weight: 600; }
.adt-lang-switch .btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.adt-lang-switch .btn-outline-light:hover { background: #fff; color: var(--adt-primary); }

.adt-hero {
  background: linear-gradient(160deg, var(--adt-primary) 0%, var(--adt-primary-deep) 100%);
  color: #fff;
  padding: 4rem 0;
}
.adt-hero h1, .adt-hero h2 { color: #fff; }

.btn { transition: background-color .2s, border-color .2s, transform .2s var(--adt-ease), box-shadow .2s var(--adt-ease); }
.btn-primary {
  background-color: var(--adt-primary);
  border-color: var(--adt-primary);
}
.btn-primary:hover {
  background-color: var(--adt-primary-dark);
  border-color: var(--adt-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(12,20,64,.25);
}
.nav-pills .nav-link.active { background-color: var(--adt-primary); }
.nav-pills .nav-link { color: var(--adt-primary); }

.card {
  border: none;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: var(--adt-shadow-soft);
  transition: transform .35s var(--adt-ease), box-shadow .35s var(--adt-ease);
}
.card-title { color: var(--adt-primary); }
.card:hover { transform: translateY(-6px); box-shadow: var(--adt-shadow-lift); }
.card .card-img-top { transition: transform .6s var(--adt-ease); }
.card:hover .card-img-top { transform: scale(1.04); }

.adt-footer {
  /* Fond image footer_bottom.jpg (vagues navy/bordeaux) sous un voile navy
     pour la lisibilite du texte ; les vagues emergent dans .adt-footer-waves. */
  background:
    linear-gradient(180deg, var(--adt-primary-deep) 0%, rgba(12,20,64,.88) 55%, rgba(12,20,64,0) 100%),
    url('../../images/footer_bottom.jpg') bottom center / cover no-repeat,
    var(--adt-primary-deep);
  color: rgba(255,255,255,.8);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--adt-primary), var(--adt-accent)) 1;
}
.adt-footer-sep { border-color: rgba(255,255,255,.25); opacity: 1; }
.adt-footer-waves { height: clamp(120px, 18vw, 300px); }
.adt-footer-title { color: #fff; font-weight: 600; }
.adt-footer-links a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s, padding-left .2s var(--adt-ease); }
.adt-footer-links a:hover { color: #fff; padding-left: .25rem; }
.adt-social a { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-right: .75rem; display: inline-block; transition: transform .2s var(--adt-ease), color .2s; }
.adt-social a:hover { color: #fff; transform: translateY(-2px); }

.adt-article-card img, .adt-gallery-thumb img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.sppb-section img { max-width: 100%; height: auto; }

/* Bannieres a image de fond (pages equipe, bios...) : la section suit le
   ratio de son image pour qu'elle apparaisse entiere en hauteur, au lieu
   d'etre ecrasee/rognee quand la section est vide. */
.sppb-section[style*="/slide.jpg"] { aspect-ratio: 1500/582; padding: 0 !important; }

.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu { top: 0; left: 100%; margin-top: -1px; }

/* Signature : le trait bordeaux des titres de section se dessine a l'apparition */
.adt-section-title {
  position: relative;
  padding-bottom: .6rem;
  margin-bottom: 1.5rem;
}
.adt-section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--adt-accent);
  transform-origin: left;
}
.adt-reveal .adt-section-title::after, .adt-section-title.adt-reveal::after { transform: scaleX(0); }
.adt-reveal.is-in .adt-section-title::after, .adt-section-title.adt-reveal.is-in::after {
  transform: scaleX(1);
  transition: transform .8s .3s var(--adt-ease);
}

/* Revue de presse (page Presse) : entrees cliquables reconnaissables */
.adt-press a strong { color: var(--adt-primary); }
.adt-press a:hover strong, .adt-press a:focus strong { color: var(--adt-accent); }

/* Lightbox des liens-vignettes (voir main.js) */
.adt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 20, 64, .88);
  cursor: zoom-out;
  padding: 2rem;
  animation: adt-fade .25s var(--adt-ease);
}
.adt-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: .375rem;
  box-shadow: 0 .5rem 2rem rgba(0,0,0,.5);
  animation: adt-zoom .3s var(--adt-ease);
}
@keyframes adt-fade { from { opacity: 0; } }
@keyframes adt-zoom { from { transform: scale(.96); opacity: 0; } }

/* Repris du custom_css de l'ancien site */
.sp-simpleportfolio-created { display: none; }

/* Accueil : hero au ratio exact de slide-2026.jpg, voile navy en degrade. */
.adt-home-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 1rem 0;
  /* Hauteur = largeur x 1060/1920 : la section epouse exactement l'image,
     donc background-size:cover l'affiche a 100% sans recadrage. */
  aspect-ratio: 1920 / 1060;
  display: flex;
  align-items: center;
}
.adt-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(23,42,116,.82) 0%, rgba(12,20,64,.68) 55%, rgba(128,6,63,.45) 130%);
  z-index: 1;
}
.adt-home-hero .container { position: relative; z-index: 2; }
.adt-home-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  text-wrap: balance;
}
.adt-home-hero .lead { color: rgba(255,255,255,.88); max-width: 640px; font-weight: 300; }
.adt-home-hero .btn-outline-light:hover { color: var(--adt-primary); }

/* Entree orchestree du hero au chargement */
.adt-home-hero .container > * { animation: adt-hero-in .9s var(--adt-ease) backwards; }
.adt-home-hero .container > *:nth-child(2) { animation-delay: .15s; }
.adt-home-hero .container > *:nth-child(3) { animation-delay: .3s; }
@keyframes adt-hero-in { from { opacity: 0; transform: translateY(28px); } }

.adt-team-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(23,42,116,.2), var(--adt-shadow-soft);
  transition: box-shadow .3s var(--adt-ease), transform .3s var(--adt-ease);
}
.adt-team-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--adt-accent), var(--adt-shadow-lift);
}
.adt-team-card .adt-team-role { color: #6c757d; font-size: .9rem; }
.adt-team-card .adt-team-social a { color: var(--adt-primary); margin: 0 .3rem; font-size: 1.1rem; }

.adt-partner-logo img {
  max-height: 90px;
  width: auto;
  max-width: 100%;
  filter: grayscale(35%);
  transition: filter .3s, transform .3s var(--adt-ease);
}
.adt-partner-logo img:hover { filter: none; transform: scale(1.05); }

.adt-cta-band {
  background: linear-gradient(120deg, var(--adt-primary) 0%, var(--adt-primary-deep) 70%, rgba(128,6,63,.9) 160%);
  color: #fff;
  padding: 3.5rem 0;
}
.adt-cta-band h2, .adt-cta-band h3 { color: #fff; }
.adt-cta-band .btn { background: #fff; color: var(--adt-primary); font-weight: 600; }
.adt-cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* Apparitions au defilement (classes posees par main.js, jamais dans la base) */
.adt-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--adt-ease), transform .7s var(--adt-ease);
  transition-delay: var(--adt-reveal-delay, 0s);
}
.adt-reveal.is-in { opacity: 1; transform: none; }

/* Confort mobile */
@media (max-width: 575.98px) {
  .adt-home-hero { padding: 4.5rem 0; min-height: 56vh; }
  .adt-topbar .adt-social a { font-size: 1.15rem; }
}

/* Accessibilite : aucune animation si l'utilisateur les refuse */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .adt-reveal { opacity: 1; transform: none; }
  .adt-hero-parallax { transform: none !important; }
}

/* ============================================================
   Couche "Cinema 2026" — profondeur, matiere et mouvement.
   Toujours les deux couleurs officielles ; le JS (main.js) pose
   les classes et variables, rien n'est stocke en base.
   ============================================================ */

/* Barre de progression de lecture (injectee par main.js) */
.adt-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--adt-accent), #b0135f);
  transform: scaleX(var(--adt-progress, 0));
  transform-origin: left;
  z-index: 3000;
  pointer-events: none;
}

/* --- Hero cinema ------------------------------------------------ */
/* Accueils : le hero remonte sous la topbar et la navbar (chrome
   transparent au sommet, l'image de fond file jusqu'en haut de page).
   main.js mesure la hauteur du chrome (--adt-chrome-h) et pose
   .adt-glass sur <body> quand un hero d'accueil est present. */
body.adt-glass .adt-topbar {
  position: relative;
  z-index: 1021; /* au-dessus du header sticky (1020) et du hero */
  background: transparent;
}
body.adt-glass .adt-header {
  background: transparent;
  border-bottom-color: transparent;
  transition: background .35s var(--adt-ease), box-shadow .3s var(--adt-ease);
}
body.adt-glass .adt-header.adt-scrolled,
body.adt-glass .adt-header:has(.navbar-collapse.show),
body.adt-glass .adt-header:has(.navbar-collapse.collapsing) {
  /* navy retabli des qu'on scrolle ou qu'on ouvre le menu mobile */
  background: linear-gradient(160deg, var(--adt-primary) 0%, var(--adt-primary-dark) 100%);
}
body.adt-glass .adt-home-hero {
  margin-top: calc(var(--adt-chrome-h, 0px) * -1);
  padding-top: calc(1rem + var(--adt-chrome-h, 0px));
}
/* Push-in au defilement : au repos l'image est a 100% (aucun recadrage),
   le zoom ne s'applique qu'en quittant le hero, donc jamais visible en haut
   de page. --adt-hero-out va de 0 (haut de page) a 1 (hero sorti). */
.adt-home-hero {
  transform-origin: center 30%;
}
.adt-home-hero.adt-cinema {
  transform: scale(calc(1 + var(--adt-hero-out, 0) * .06));
}
.adt-home-hero.adt-cinema .container {
  transform: translateY(calc(var(--adt-hero-out, 0) * -60px));
  opacity: calc(1 - var(--adt-hero-out, 0) * 1.1);
}
/* Grain + vignettage letterbox par-dessus le voile navy existant */
.adt-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    var(--adt-grain) repeat,
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(12,20,64,.55) 100%);
  background-size: 240px 240px, cover;
  opacity: .5;
  mix-blend-mode: overlay;
}
/* Balayage lumineux : un faisceau traverse le hero au chargement */
.adt-hero-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: adt-sweep 2.4s var(--adt-ease-out) .5s forwards;
}
@keyframes adt-sweep { to { transform: translateX(120%); } }

/* Indicateur "faites defiler" en bas du hero (injecte par main.js) :
   fleche dans une pilule, rebond doux, s'efface avec le hero au scroll. */
.adt-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(12,20,64,.25);
  backdrop-filter: blur(4px);
  text-decoration: none;
  opacity: calc(.9 - var(--adt-hero-out, 0) * 2);
  animation: adt-cue-bounce 2.2s var(--adt-ease) 1.6s infinite;
  transition: background .2s, border-color .2s;
}
.adt-scroll-cue:hover, .adt-scroll-cue:focus-visible { color: #fff; background: var(--adt-accent); border-color: var(--adt-accent); }
@keyframes adt-cue-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Titre du hero revele mot a mot (spans .adt-w poses par main.js) */
.adt-home-hero h1 .adt-w {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
}
.adt-home-hero h1 .adt-w > span {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  animation: adt-word-in .9s var(--adt-ease-out) forwards;
  animation-delay: calc(.12s + var(--adt-w, 0) * .09s);
}
@keyframes adt-word-in { to { transform: none; } }
/* Filet bordeaux sous le hero : rappel de la signature des sections */
.adt-home-hero .lead { position: relative; padding-top: 1rem; }
.adt-home-hero .lead::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--adt-accent), #b0135f);
  transform: scaleX(0);
  transform-origin: left;
  animation: adt-rule-in .8s var(--adt-ease-out) .9s forwards;
}
.text-center .lead::before { left: 50%; margin-left: -32px; }
@media (min-width: 768px) { .text-md-start .lead::before { left: 0; margin-left: 0; } }
@keyframes adt-rule-in { to { transform: scaleX(1); } }

/* --- Sections : rythme editorial et profondeur ------------------- */
.adt-section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  padding-bottom: .7rem;
  margin-bottom: 1.75rem;
}
/* Surtitre "chapitre" genere depuis le compteur de sections (main.js pose
   --adt-kicker) : petit label capitales espacees au-dessus du titre. */
.adt-section-title[data-kicker]::before {
  content: attr(data-kicker);
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--adt-accent);
  margin-bottom: .6rem;
}
/* Fonds alternes : le gris Bootstrap devient une nappe navy tres pale
   avec un leger degrade, pour des transitions de sections plus douces. */
main .bg-light {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(23,42,116,.055) 0%, transparent 60%),
    radial-gradient(80% 100% at 90% 100%, rgba(128,6,63,.045) 0%, transparent 55%),
    #f7f8fc !important;
}

/* Apparition enrichie : leger flou qui se dissipe (profondeur de champ) */
.adt-reveal {
  filter: blur(6px);
  transition: opacity .8s var(--adt-ease-out), transform .8s var(--adt-ease-out), filter .8s var(--adt-ease-out);
  transition-delay: var(--adt-reveal-delay, 0s);
}
.adt-reveal.is-in { filter: none; }

/* --- Cartes : inclinaison 3D et reflet -------------------------- */
.adt-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.adt-tilt.is-tilting {
  transform: perspective(900px)
    rotateX(calc(var(--adt-ty, 0) * -5deg))
    rotateY(calc(var(--adt-tx, 0) * 7deg))
    translateY(-6px);
  transition: box-shadow .35s var(--adt-ease);
  box-shadow: var(--adt-shadow-lift);
}
/* Reflet qui suit le pointeur */
.adt-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at calc(50% + var(--adt-tx, 0) * 60%) calc(50% + var(--adt-ty, 0) * 60%), rgba(255,255,255,.22), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--adt-ease);
}
.adt-tilt.is-tilting::after { opacity: 1; }

/* --- Bande CTA : aurore + grain --------------------------------- */
.adt-cta-band {
  position: relative;
  overflow: hidden;
  background: var(--adt-aurora) center/cover no-repeat, var(--adt-primary-deep);
  padding: 4.5rem 0;
}
.adt-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--adt-grain) repeat;
  background-size: 240px 240px;
  opacity: .35;
  mix-blend-mode: overlay;
}
.adt-cta-band .container { position: relative; z-index: 1; }

/* --- Footer : meme matiere que la bande CTA --------------------- */
.adt-footer { position: relative; }
.adt-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--adt-grain) repeat;
  background-size: 240px 240px;
  opacity: .25;
  mix-blend-mode: overlay;
}
.adt-footer .container { position: relative; }

/* --- Boutons : pilule + balayage lumineux au survol ------------- */
.btn-lg, .adt-home-hero .btn, .adt-cta-band .btn {
  border-radius: 50rem;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  position: relative;
  overflow: hidden;
}
.adt-home-hero .btn::after, .adt-cta-band .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .7s var(--adt-ease-out);
  pointer-events: none;
}
.adt-home-hero .btn:hover::after, .adt-cta-band .btn:hover::after { transform: translateX(130%); }

/* --- Confort mobile (couche cinema) ----------------------------- */
@media (max-width: 767.98px) {
  .adt-home-hero.adt-cinema, .adt-home-hero.adt-cinema .container { transform: none; opacity: 1; }
  .adt-tilt.is-tilting { transform: none; }
  .adt-section-title[data-kicker]::before { letter-spacing: .24em; }
}
@media (hover: none) {
  .adt-tilt::after { display: none; }
}

/* Accessibilite : la couche cinema se coupe entierement */
@media (prefers-reduced-motion: reduce) {
  .adt-home-hero.adt-cinema, .adt-home-hero.adt-cinema .container { transform: none; opacity: 1; }
  .adt-home-hero h1 .adt-w > span { transform: none; animation: none; }
  .adt-home-hero .lead::before { transform: none; animation: none; }
  .adt-hero-sweep { display: none; }
  .adt-scroll-cue { animation: none; }
  .adt-reveal { filter: none; }
  .adt-tilt.is-tilting { transform: none; }
  .adt-progress { transition: none; }
}

/* ============================================================
   Theme sombre (data-bs-theme="dark", pose par assets/js/theme.js :
   clair / sombre / systeme). Bootstrap 5.3 gere ses composants ;
   ici, uniquement les surfaces et encres ADT. Toutes les teintes
   derivent du navy #172A74 et du bordeaux #80063F officiels.
   ============================================================ */
[data-bs-theme="dark"] {
  --bs-body-bg: #0e1330;            /* navy nuit */
  --bs-body-color: #ccd3ec;
  --adt-ink: #a7b6f0;               /* navy eclairci : titres et liens sur fond sombre */
  --adt-accent-soft: #e0629f;       /* bordeaux eclairci : survols lisibles */
}
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .card-title { color: var(--adt-ink); }
[data-bs-theme="dark"] main a { color: var(--adt-ink); }
[data-bs-theme="dark"] main a:hover { color: var(--adt-accent-soft); }
[data-bs-theme="dark"] .adt-press a strong { color: var(--adt-ink); }
[data-bs-theme="dark"] .adt-press a:hover strong,
[data-bs-theme="dark"] .adt-press a:focus strong { color: var(--adt-accent-soft); }
/* Le footer et le hero restent sombres dans les deux themes : leurs titres
   et boutons blancs ne doivent pas prendre l'encre navy eclaircie. */
[data-bs-theme="dark"] .adt-footer-title, [data-bs-theme="dark"] .adt-hero h1,
[data-bs-theme="dark"] .adt-hero h2, [data-bs-theme="dark"] .adt-home-hero h1,
[data-bs-theme="dark"] .adt-cta-band h2, [data-bs-theme="dark"] .adt-cta-band h3 { color: #fff; }
/* Sections alternees : la nappe claire devient une nappe navy profonde */
[data-bs-theme="dark"] main .bg-light {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(42,68,184,.12) 0%, transparent 60%),
    radial-gradient(80% 100% at 90% 100%, rgba(128,6,63,.12) 0%, transparent 55%),
    #121a3f !important;
}
/* Boutons navy : eclaircis pour se detacher du fond nuit */
[data-bs-theme="dark"] .btn-primary {
  background-color: #2a44b8;
  border-color: #2a44b8;
}
[data-bs-theme="dark"] .btn-primary:hover {
  background-color: #3552cf;
  border-color: #3552cf;
}
[data-bs-theme="dark"] .nav-pills .nav-link { color: var(--adt-ink); }
[data-bs-theme="dark"] .nav-pills .nav-link.active { background-color: #2a44b8; color: #fff; }
/* Cartes et vignettes : ombres plus marquees, anneau des portraits adapte */
[data-bs-theme="dark"] .card { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45); }
[data-bs-theme="dark"] .card:hover { box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.6); }
[data-bs-theme="dark"] .adt-team-card img {
  box-shadow: 0 0 0 4px var(--bs-body-bg), 0 0 0 5px rgba(167,182,240,.35), 0 8px 24px rgba(0,0,0,.45);
}
[data-bs-theme="dark"] .adt-team-card:hover img {
  box-shadow: 0 0 0 4px var(--bs-body-bg), 0 0 0 5px var(--adt-accent-soft), 0 18px 40px rgba(0,0,0,.6);
}
[data-bs-theme="dark"] .adt-team-card .adt-team-role { color: #94a0c8; }
[data-bs-theme="dark"] .adt-team-card .adt-team-social a { color: var(--adt-ink); }
/* Logos partenaires : sur fond nuit, un leger voile plutot que du gris */
[data-bs-theme="dark"] .adt-partner-logo img { filter: grayscale(35%) brightness(.92); }
[data-bs-theme="dark"] .adt-partner-logo img:hover { filter: none; }
/* Titres de section : le filet bordeaux passe a la teinte eclaircie */
[data-bs-theme="dark"] .adt-section-title::after { background: var(--adt-accent-soft); }

/* Commutateur de theme (topbar public et sidebar admin) */
.adt-theme-switch .btn i { pointer-events: none; }
.adt-topbar .adt-theme-switch .btn {
  padding: .05rem .55rem;
  font-size: .8rem;
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
}
.adt-topbar .adt-theme-switch .btn:hover,
.adt-topbar .adt-theme-switch .btn.active { background: #fff; border-color: #fff; color: var(--adt-primary); }
