/* ==========================================================
   Thémis Sorbonne – feuille de style
   ========================================================== */

:root {
  --encre: #14213d;
  --bleu: #0a2a60;
  --gris: #d5d9e0;
  --filet: #e8eaee;
  --texte: #6b7384;
  --fond-doux: #f6f8fc;
  --panneau-largeur: clamp(320px, 26vw, 460px);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --courbe: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--sans);
  color: var(--encre);
  background: #fff;
  overflow: hidden;
}

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

/* Lien d'evitement : visible uniquement lors de la navigation au clavier. */
.lien-evitement {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 14px 18px;
  background: #fff;
  color: var(--bleu);
  border: 2px solid var(--bleu);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}

.lien-evitement:focus,
.lien-evitement:focus-visible {
  transform: translateY(0);
  outline: 3px solid #e5b252;
  outline-offset: 2px;
}

/* ---------- Défilement vertical du site ---------- */
.site-scroll {
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 33, 61, .22) transparent;
}

.site-scroll::-webkit-scrollbar { width: 8px; }
.site-scroll::-webkit-scrollbar-track { background: transparent; }
.site-scroll::-webkit-scrollbar-thumb {
  background: rgba(20, 33, 61, .18);
  border-radius: 999px;
}

/* ---------- Accueil ---------- */
.visuel {
  --hero-position: center;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 80px);
  color: #fff;
  overflow: hidden;
  background-color: #17276b;
}

/* Le visuel LCP est un vrai <picture> : AVIF/WebP responsive + dimensions connues.
   La version couleur n'est injectée qu'après le chargement initial ou au premier hover. */
.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--hero-position);
}

.hero-media-couleur {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1);
}


@media (hover: hover) and (pointer: fine) {
  .visuel:hover .hero-media-couleur { opacity: 1; }
  .visuel:hover .marque { color: var(--bleu); }
}

/* Voile de lisibilité au-dessus des deux fonds. */
.visuel::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top right,
    rgba(12, 22, 60, .72),
    rgba(12, 22, 60, .25) 45%,
    transparent 70%
  );
}

.visuel > :not(.hero-media) {
  position: relative;
  z-index: 4;
}

/* La tagline doit rester absolue, contrairement au contenu en flux de la hero. */
.visuel > .marque {
  position: absolute;
}

.marque {
  position: absolute;
  top: clamp(24px, 4vh, 40px);
  left: clamp(28px, 5vw, 80px);
  margin: 0;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #fff;
  transition: right .55s var(--courbe), color .75s cubic-bezier(.2, .7, .2, 1);
}

.visuel h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
}

.mot {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .1em .04em;
  margin: -.1em -.04em;
}

.mot > span { display: inline-block; }

.description {
  max-width: 58ch;
  margin: 0 0 32px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.5;
}

.bouton {
  align-self: flex-start;
  padding: 15px 46px;
  background: #fff;
  color: var(--encre);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s;
}

.bouton:hover {
  background: var(--encre);
  color: #fff;
  transform: translateY(-2px);
}

/* Sticker global : position fixe identique sur toutes les pages. */
.sticker-accueil {
  position: fixed;
  top: clamp(24px, 4vh, 48px);
  left: clamp(28px, 5.5vw, 96px);
  right: auto;
  z-index: 9999;
  width: clamp(66px, 6.05vw, 101px);
  aspect-ratio: 1 / 1;
  display: block;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  /* La fuite déplace le conteneur ; le disque tourne indépendamment. */
  transform: translate3d(var(--sticker-fuite-x, 0px), var(--sticker-fuite-y, 0px), 0);
  will-change: transform;
}

.sticker-rotation {
  position: relative;
  width: 100%;
  height: 100%;
  animation: rotation-sticker 18s linear infinite;
}

/* Les deux stickers sont superposés. Le wrapper continue de tourner pendant
   que les images se fondent l'une dans l'autre, ce qui évite tout saut visuel. */
.sticker-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 1;
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity;
}

.sticker-image-drives {
  opacity: 0;
}

body.sticker-drives-actif .sticker-image-defaut {
  opacity: 0;
}

body.sticker-drives-actif .sticker-image-drives {
  opacity: 1;
}

@keyframes rotation-sticker {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Sur la home, seule la tagline change de place : le sticker ne bouge jamais. */
body.sur-accueil .marque {
  /* Meme axe vertical que le bouton burger (52px de haut). */
  top: clamp(16px, 3vh, 32px);
  height: 52px;
  display: flex;
  align-items: center;
  left: auto;
  right: clamp(96px, 8vw, 150px);
  white-space: nowrap;
  text-align: right;
  color: #fff;
}

@media (min-width: 821px) {
  body.sur-accueil.ouvert .marque {
    right: calc(var(--panneau-largeur) + clamp(36px, 4vw, 72px));
  }
}

/* ---------- Qui sommes-nous : template standard ---------- */
.qui-sommes-nous {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(72px, 8vw, 130px) clamp(28px, 8vw, 140px) clamp(56px, 7vw, 110px);
  overflow: hidden;
  background: #fff;
  color: var(--encre);
  transition: margin-right .55s var(--courbe), padding .55s var(--courbe);
}

/* Sur ordinateur, si le menu est ouvert, la page "Qui sommes-nous"
   utilise uniquement la largeur réellement disponible à gauche du panneau.
   Quand le menu est fermé, elle reprend naturellement toute la largeur. */
@media (min-width: 821px) {
  body.ouvert .qui-sommes-nous {
    margin-right: var(--panneau-largeur);
    padding-left: clamp(28px, 5.5vw, 96px);
    padding-right: clamp(28px, 5.5vw, 96px);
  }
}

.qs-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.qs-entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}

.qs-surline {
  margin: 0 0 22px;
  color: var(--bleu);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.qui-sommes-nous h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.055em;
}

.qs-intro-bloc {
  padding-bottom: .3rem;
}

.qs-chapo {
  margin: 0;
  color: var(--encre);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 300;
  line-height: 1.55;
}

.qs-texte {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--texte);
  font-size: .98rem;
  font-weight: 300;
  line-height: 1.75;
}

.qs-separateur {
  width: 100%;
  height: 1px;
  margin: clamp(44px, 6vw, 78px) 0 0;
  background: var(--filet);
}

.qs-cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--filet);
}

.qs-carte {
  position: relative;
  min-height: 250px;
  padding: clamp(12px, 4vw, 52px) clamp(22px, 3vw, 42px) clamp(34px, 4vw, 52px) 0;
}

.qs-carte + .qs-carte {
  padding-left: clamp(22px, 3vw, 42px);
  border-left: 1px solid var(--filet);
}

.qs-numero {
  display: block;
  margin-bottom: 22px;
  color: var(--gris);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.qs-carte h3 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.02em;
}

.qs-carte p {
  max-width: 34ch;
  margin: 0;
  color: var(--texte);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.7;
}


/* Hover des trois blocs A propos : liseré bleu Thémis + numéro bleu. */
.qs-carte {
  isolation: isolate;
}

.qs-carte::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.qs-carte .qs-numero {
  transition: color .3s ease;
}

.qs-carte:hover::before,
.qs-carte:active::before {
  transform: scaleX(1);
}

.qs-carte:hover .qs-numero,
.qs-carte:active .qs-numero {
  color: var(--bleu);
}

.qs-bas {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding-top: clamp(38px, 5vw, 68px);
}

.qs-reperes {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 78px);
}

.qs-repere {
  display: grid;
  gap: 8px;
}

.qs-repere strong {
  color: var(--bleu);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -.03em;
  font-weight:400;
}

/* Les compteurs gardent exactement la typographie d'origine :
   seule la valeur numerique evolue en JavaScript. */

.qs-repere span {
  color: var(--texte);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qs-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.qs-bouton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 30px;
  background: var(--bleu);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, background .2s;
}

.qs-bouton:hover {
  background: var(--encre);
  transform: translateY(-2px);
}

.qs-retour {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--encre);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.qs-fleche {
  font-size: 1rem;
  transition: transform .2s;
}

.qs-retour:hover .qs-fleche { transform: translateY(-3px); }

.qs-marque {
  position: absolute;
  z-index: 0;
  right: clamp(-85px, -4vw, -30px);
  top: 50%;
  width: min(32vw, 470px);
  aspect-ratio: 1;
  transform: translateY(-44%);
  opacity: .035;
  pointer-events: none;
}

.qs-marque img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Animation douce lors de l'arrivée sur la section */
.qs-entete,
.qs-cartes,
.qs-bas {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .9s var(--courbe);
}

.qui-sommes-nous.est-visible .qs-entete {
  opacity: 1;
  transform: none;
}

.qui-sommes-nous.est-visible .qs-cartes {
  opacity: 1;
  transform: none;
  transition-delay: .1s;
}

.qui-sommes-nous.est-visible .qs-bas {
  opacity: 1;
  transform: none;
  transition-delay: .18s;
}

/* ---------- Pages supplementaires dans le scroll ---------- */
.page-scroll {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(76px, 8vw, 132px) clamp(28px, 8vw, 140px) clamp(58px, 7vw, 110px);
  overflow: hidden;
  color: var(--encre);
  transition: margin-right .55s var(--courbe), padding .55s var(--courbe);
}

.page-drives {
  background: #f0ba52;
}

.page-outils {
  background: var(--fond-doux);
}



/* Hover des trois blocs Nos drives : liseré bleu Thémis + numéro bleu. */
.page-drives .page-scroll-carte {
  isolation: isolate;
}

.page-drives .page-scroll-carte::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.page-drives .page-scroll-carte .page-scroll-numero {
  transition: color .3s ease;
}

.page-drives .page-scroll-carte:hover::before,
.page-drives .page-scroll-carte:active::before {
  transform: scaleX(1);
}

.page-drives .page-scroll-carte:hover .page-scroll-numero,
.page-drives .page-scroll-carte:active .page-scroll-numero {
  color: var(--bleu);
}


/* Hover des trois blocs Nos outils : liseré doré + numéro doré. */
.page-outils .page-scroll-carte {
  isolation: isolate;
}

.page-outils .page-scroll-carte::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(229, 178, 82, 1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.page-outils .page-scroll-carte .page-scroll-numero {
  transition: color .3s ease;
}

.page-outils .page-scroll-carte:hover::before,
.page-outils .page-scroll-carte:active::before {
  transform: scaleX(1);
}

.page-outils .page-scroll-carte:hover .page-scroll-numero,
.page-outils .page-scroll-carte:active .page-scroll-numero {
  color: rgba(229, 178, 82, 1);
}


/* ---------- Prendre RDV ---------- */
.page-rdv {
  background: var(--fond-doux);
}

/* Sur la page RDV, le bloc "Trois formes d'accompagnement / Prendre RDV"
   est centre verticalement par rapport au paragraphe place a sa droite. */
@media (min-width: 981px) {
  .page-rdv .page-scroll-entete {
    align-items: center;
  }
}

.page-rdv .page-scroll-ligne,
.page-rdv .page-scroll-grille {
  border-color: rgba(10, 42, 96, .16);
}

.page-rdv .page-scroll-carte + .page-scroll-carte {
  border-left-color: rgba(10, 42, 96, .16);
}

.page-rdv .page-scroll-numero {
  color: rgba(10, 42, 96, .35);
}


/* Hover des trois blocs RDV : liseré doré + numéro doré.
   Pas de media query hover/pointer : certains navigateurs et appareils hybrides
   la désactivent même avec une souris, notamment une fois le site en ligne. */
.page-rdv .page-scroll-carte {
  isolation: isolate;
}

.page-rdv .page-scroll-carte::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(229, 178, 82, 1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.page-rdv .page-scroll-carte .page-scroll-numero {
  transition: color .3s ease;
}

.page-rdv .page-scroll-carte:hover::before,
.page-rdv .page-scroll-carte:active::before {
  transform: scaleX(1);
}

.page-rdv .page-scroll-carte:hover .page-scroll-numero,
.page-rdv .page-scroll-carte:active .page-scroll-numero {
  color: rgba(229, 178, 82, 1);
}

.page-rdv .page-scroll-marque {
  --marque-hover: rgba(229, 178, 82, 1);
}

/* RDV utilise maintenant le meme ancrage au bord inferieur de section
   que DRIVES et OUTILS, avec une echelle volontairement plus forte. */
.page-rdv > .page-scroll-marque {
  right: clamp(18px, 2.5vw, 44px);
  bottom: 0;
  font-size: clamp(5.7rem, 13.4vw, 12.6rem);
}

/* ---------- Intégration TidyCal officielle ---------- */
.rdv-reserver {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.rdv-reserver:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 4px;
}

.page-rdv .rdv-choix.est-actif::before { transform: scaleX(1); }

.page-rdv .rdv-choix.est-actif .page-scroll-numero,
.page-rdv .rdv-choix.est-actif .rdv-reserver {
  color: rgba(229, 178, 82, 1);
}

.rdv-reservation[hidden] { display: none; }

.rdv-reservation.est-ouverte {
  animation: rdv-revelation .55s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes rdv-revelation {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.rdv-reservation {
  position: relative;
  z-index: 2;
  margin-top: clamp(34px, 4.5vw, 64px);
}

.rdv-reservation-entete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.rdv-reservation-surline {
  display: block;
  margin-bottom: 8px;
  color: rgba(229, 178, 82, 1);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rdv-reservation h3 {
  margin: 0;
  color: var(--encre);
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.rdv-reservation-note {
  padding-bottom: 4px;
  color: rgba(20, 33, 61, .46);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rdv-reservation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding-bottom: 4px;
}

.rdv-fermer {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 6px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--encre);
  font-family: inherit;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: gap .22s ease, color .22s ease, opacity .22s ease;
}

.rdv-fermer:hover,
.rdv-fermer:focus-visible {
  gap: 15px;
  color: rgba(229, 178, 82, 1);
}

.rdv-fermer:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 4px;
}

.rdv-reservation.est-fermeture {
  animation: rdv-fermeture .28s ease both;
}

@keyframes rdv-fermeture {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

.rdv-embed-wrap {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: #fff;
  border: 1px solid rgba(10, 42, 96, .13);
}

.rdv-tidycal-mount,
.rdv-tidycal-mount .tidycal-embed {
  width: 100%;
  min-height: 0;
}

/* Ne jamais fixer la hauteur de l'iframe : le script officiel TidyCal
   la redimensionne automatiquement en fonction de son contenu. */
.rdv-tidycal-mount iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0 !important;
}

.rdv-embed-wrap.est-en-chargement::before {
  content: "Chargement des disponibilités…";
  display: block;
  padding: 24px;
  color: var(--bleu);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rdv-secours {
  margin: 12px 0 0;
  text-align: right;
}

.rdv-secours a {
  color: rgba(20, 33, 61, .55);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.rdv-secours a:hover,
.rdv-secours a:focus-visible { color: var(--bleu); }

@media (max-width: 980px) {
  .rdv-reservation-entete {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .rdv-reservation-actions {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }
  .rdv-reservation-note { white-space: normal; }
}

@media (max-width: 820px) {
  .page-rdv > .page-scroll-marque {
    right: 18px;
    bottom: 0;
    font-size: clamp(4.6rem, 20vw, 7.2rem);
  }
  .rdv-reservation { margin-top: 30px; }
  .rdv-secours { text-align: left; }
}

@media (min-width: 821px) {
  body.ouvert .page-scroll {
    margin-right: var(--panneau-largeur);
    padding-left: clamp(28px, 5.5vw, 96px);
    padding-right: clamp(28px, 5.5vw, 96px);
  }
}

.page-scroll-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.page-scroll-entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
}

.page-scroll-surline {
  margin: 0 0 22px;
  color: var(--bleu);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-scroll h2 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 6rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.055em;
}

.page-scroll-chapo {
  max-width: 48ch;
  margin: 0 0 .3rem;
  color: var(--encre);
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.6;
}

.page-scroll-ligne {
  width: 100%;
  height: 1px;
  margin: clamp(44px, 6vw, 78px) 0 0;
  background: rgba(20, 33, 61, .18);
}

.page-scroll-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(20, 33, 61, .18);
}

.page-scroll-carte {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 4vw, 54px) clamp(22px, 3vw, 42px) clamp(36px, 4vw, 54px) 0;
}

.page-scroll-carte + .page-scroll-carte {
  padding-left: clamp(22px, 3vw, 42px);
  border-left: 1px solid rgba(20, 33, 61, .18);
}

.page-scroll-numero {
  display: block;
  margin-bottom: 22px;
  color: rgba(20, 33, 61, .38);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.page-scroll-carte h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -.02em;
}

.page-scroll-carte p {
  max-width: 34ch;
  margin: 0;
  color: rgba(20, 33, 61, .72);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.7;
}

.page-scroll-statut {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 33, 61, .28);
  border-radius: 999px;
  color: var(--encre);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}


.page-scroll-lien {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 0 6px;
  border-bottom: 1px solid currentColor;
  color: var(--encre);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap .22s ease, opacity .22s ease;
}

.page-scroll-lien:hover,
.page-scroll-lien:focus-visible {
  gap: 18px;
  opacity: .7;
}

.page-scroll-lien span {
  font-size: 1rem;
  line-height: 1;
}

.page-scroll-marque {
  --marque-x: 0px;
  --marque-track: .07em;
  position: absolute;
  right: clamp(18px, 2.5vw, 44px);
  bottom: 0;
  z-index: 0;
  --marque-base: rgba(10, 42, 96, .045);
  --marque-hover: rgba(10, 42, 96, .30);
  color: var(--marque-base);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: var(--marque-track);
  transform: translate3d(var(--marque-x), 0, 0);
  transform-origin: 100% 100%;
  pointer-events: auto;
  cursor: default;
  user-select: none;
  white-space: nowrap;
  will-change: transform, letter-spacing;
  transition: color .45s ease;
}

/* Remplissage au survol : la couleur balaie le mot de gauche a droite. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-scroll-marque {
    background-image: linear-gradient(
      90deg,
      var(--marque-hover) 0 50%,
      var(--marque-base) 50% 100%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position .7s cubic-bezier(.2, .7, .2, 1);
  }

  .page-scroll-marque:hover {
    background-position: 0 0;
  }
}

/* Couleurs de remplissage propres a chaque univers. */
.page-drives .page-scroll-marque {
  --marque-hover: var(--bleu);
}

.page-outils .page-scroll-marque {
  --marque-hover: rgba(229, 178, 82, 1);
}

/* Fallback si le clipping du texte n'est pas supporte. */
.page-scroll-marque:hover {
  color: var(--marque-hover);
}

.page-scroll-entete,
.page-scroll-grille {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .9s var(--courbe);
}

.page-scroll.est-visible .page-scroll-entete,
.page-scroll.est-visible .page-scroll-grille {
  opacity: 1;
  transform: none;
}

.page-scroll.est-visible .page-scroll-grille {
  transition-delay: .12s;
}

/* ---------- Burger ---------- */
.burger {
  position: fixed;
  top: clamp(16px, 3vh, 32px);
  right: clamp(16px, 3vw, 48px);
  z-index: 20;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 6px rgba(12, 22, 60, .35));
  transition: color .3s, filter .3s;
}

.burger:focus-visible { outline-offset: 2px; border-radius: 4px; }

.burger span {
  position: absolute;
  left: 13px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--courbe), opacity .2s;
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger span:nth-child(3) { top: 33px; }

body.ouvert .burger,
body.sur-page-claire .burger {
  color: var(--encre);
  filter: none;
}

body.ouvert .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.ouvert .burger span:nth-child(2) { opacity: 0; }
body.ouvert .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Panneau de menu ---------- */
.panneau {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  width: var(--panneau-largeur);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vh, 48px) clamp(28px, 4vw, 76px);
  background: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .55s var(--courbe), visibility 0s .55s;
}

body.ouvert .panneau {
  transform: none;
  visibility: visible;
  transition: transform .55s var(--courbe), visibility 0s;
}

.logo-site {
  position: absolute;
  top: clamp(24px, 4vh, 48px);
  left: clamp(28px, 3vw, 76px);
  width: clamp(72px, 6.5vw, 96px);
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
}

.logo-site img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.panneau nav { margin-top: clamp(24px, 14vh, 150px); }
.panneau ul { margin: 0; padding: 0; list-style: none; }
.panneau li { border-bottom: 1px solid var(--filet); }
.panneau li:last-child { border-bottom: 0; }

.panneau nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: clamp(52px, 8.6vh, 90px);
  color: var(--encre);
  text-decoration: none;
}

.panneau nav b {
  min-width: 1.15em;
  font-size: clamp(2rem, 4.4vh, 2.8rem);
  font-weight: 300;
  color: var(--gris);
  transition: color .2s;
}

.panneau nav a:hover b,
.panneau nav a:focus-visible b { color: var(--bleu); }

.panneau nav span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Petite flèche pour les actions externes du menu. */
.panneau nav a.menu-lien-fleche .menu-fleche {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transition: transform .22s ease, color .22s ease;
}

.panneau nav a.menu-lien-fleche:hover .menu-fleche,
.panneau nav a.menu-lien-fleche:focus-visible .menu-fleche {
  color: var(--bleu);
  transform: translate(3px, -3px);
}

/* ---------- Entrées du menu bientôt disponibles ---------- */
.panneau nav a.menu-indisponible {
  color: #c8cdd6;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.panneau nav a.menu-indisponible b {
  color: #e1e4ea;
}

.panneau nav a.menu-indisponible span {
  color: #c8cdd6;
}

.panneau nav a.menu-indisponible small {
  margin-left: auto;
  color: #b8bec9;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.panneau nav a.menu-indisponible:hover,
.panneau nav a.menu-indisponible:focus-visible,
.panneau nav a.menu-indisponible:hover b,
.panneau nav a.menu-indisponible:focus-visible b {
  color: #c8cdd6;
}

/* ---------- Partenaire + contact en bas du menu ---------- */
.panneau-bas {
  display: grid;
  gap: clamp(20px, 3vh, 30px);
}

.partenariat {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--filet);
}

.partenariat-label {
  color: #536176;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.partenariat-lien {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  transition: opacity .22s ease, transform .22s ease;
}

.partenariat-logo {
  display: block;
  width: clamp(152px, 11vw, 190px);
  max-width: 100%;
  height: auto;
  /* Le PNG contient ~11 % de marge transparente a gauche :
     on la compense pour aligner visuellement le logo sur le libelle. */
  transform: translateX(-11.1%);
}

.partenariat-lien:hover,
.partenariat-lien:focus-visible {
  opacity: .82;
}

/* ---------- Contact et réseaux ---------- */
.contact { font-size: .82rem; color: var(--texte); }

.contact a {
  color: inherit;
  font-style: italic;
  text-decoration: none;
}

.contact a:hover { color: var(--bleu); }

.reseaux {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.reseaux a {
  display: inline-flex;
  color: var(--gris);
  font-style: normal;
  transition: color .2s;
}

.reseaux a:hover { color: var(--bleu); }

.reseaux svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signature-site {
  margin-left: auto;
  color: #a2a9b6;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
  white-space: nowrap;
}

.signature-site span {
  margin-left: 3px;
  color: rgba(229, 178, 82, 1);
  font-size: .66rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .qs-entete { grid-template-columns: 1fr; gap: 28px; }
  .qs-intro-bloc { max-width: 680px; }
  .qs-cartes { grid-template-columns: 1fr; }
  .qs-carte { min-height: auto; padding: 30px 0; }
  .qs-carte + .qs-carte { padding-left: 0; border-left: 0; border-top: 1px solid var(--filet); }
  .qs-numero { margin-bottom: 18px; }
  .qs-carte p { max-width: 60ch; }
  .qs-bas { align-items: flex-start; flex-direction: column; }
  .qs-actions { width: 100%; justify-content: space-between; }
  .qs-marque { width: 55vw; right: -18vw; top: 34%; }
}

@media (max-width: 980px) {
  .page-scroll-entete { grid-template-columns: 1fr; gap: 28px; }
  .page-scroll-chapo { max-width: 680px; }
  .page-scroll-grille { grid-template-columns: 1fr; }
  .page-scroll-carte { min-height: auto; padding: 30px 0; }
  .page-scroll-carte + .page-scroll-carte {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(20, 33, 61, .18);
  }
  .page-rdv .page-scroll-carte + .page-scroll-carte {
    border-top-color: rgba(10, 42, 96, .16);
  }
  .page-scroll-carte p { max-width: 60ch; }
  .page-scroll-marque { font-size: clamp(5rem, 18vw, 9rem); }
}

@media (max-width: 820px) {
  .visuel {
    --hero-position: 15% center;
    padding: 24px;
  }

  .visuel::after {
    background: linear-gradient(
      to top,
      rgba(12, 22, 60, .85),
      rgba(12, 22, 60, .3) 45%,
      transparent 65%
    );
  }

  .marque { left: 24px; }
  body.sur-accueil .marque {
    top: clamp(16px, 3vh, 32px);
    left: auto;
    right: 92px;
    font-size: .68rem;
    white-space: nowrap;
  }
  .description { margin-bottom: 20px; }

  .page-scroll { padding: 88px 24px 54px; }
  .page-scroll h2 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .page-scroll-marque {
    right: 18px;
    bottom: 0;
  }

  .sticker-accueil {
    top: 20px;
    left: 24px;
    right: auto;
    width: clamp(53px, 15.4vw, 68px);
  }

  .qui-sommes-nous { padding: 88px 24px 54px; }
  .qui-sommes-nous h2 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .qs-reperes { gap: 28px 36px; }
  .qs-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .qs-bouton { width: 100%; justify-content: center; }

  .panneau {
    width: 100%;
    padding: 104px 24px max(20px, env(safe-area-inset-bottom));
  }

  .logo-site {
    top: 20px;
    left: 24px;
    width: 64px;
  }

  .panneau nav { margin-top: 0; }
  .panneau nav a { height: clamp(48px, 8vh, 64px); }
}

@media (max-height: 520px) {
  .partenariat { gap: 7px; padding-top: 10px; }
  .partenariat-logo { width: 140px; }
  .panneau-bas { gap: 12px; }
  .visuel { padding: 20px 28px; }
  .visuel h1 { margin-bottom: 8px; font-size: 2rem; }
  .description { margin-bottom: 14px; font-size: .9rem; }
  .bouton { padding: 11px 32px; }
  .sticker-accueil { top: 10px; width: 48px; }
  body.sur-accueil .marque {
    top: clamp(16px, 3vh, 32px);
    left: auto;
    right: 82px;
    font-size: .62rem;
  }

  .panneau { padding-top: 64px; padding-bottom: 16px; }
  .logo-site { top: 10px; left: 28px; width: 44px; }
  .panneau nav { margin-top: 0; }
  .panneau nav a { height: 44px; }
  .panneau nav b { font-size: 1.6rem; }
  .reseaux { margin-top: 10px; }
}



/* ---------- Retour global vers l'accueil ---------- */
/*
   Reprend exactement l'aspect de l'ancien .qs-retour.
   Il est simplement fixe au viewport, à l'emplacement qu'occupait
   l'action dans le bas droit de la section "Qui sommes-nous".
*/
.retour-global {
  position: fixed;
  right: clamp(28px, 5.5vw, 96px);
  bottom: clamp(22px, 3vw, 42px);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--encre);
  background: transparent;
  border: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: right .55s var(--courbe), opacity .2s ease, transform .2s ease, visibility 0s .2s;
}

body.retour-visible .retour-global {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: right .55s var(--courbe), opacity .2s ease, transform .2s ease, visibility 0s;
}

.retour-global-fleche {
  font-size: 1rem;
  line-height: 1;
  transition: transform .2s;
}

.retour-global:hover .retour-global-fleche,
.retour-global:focus-visible .retour-global-fleche {
  transform: translateY(-3px);
}

/* Quand le panneau est ouvert sur ordinateur, le bouton conserve
   la même position visuelle que l'ancien bouton dans .qs-actions. */
@media (min-width: 821px) {
  body.ouvert .retour-global {
    right: calc(var(--panneau-largeur) + clamp(28px, 5.5vw, 96px));
  }
}

/* Sur mobile, l'ancien .qs-actions passait sous les repères et était
   aligné à gauche : on conserve également ce comportement visuel. */
@media (max-width: 820px) {
  .retour-global {
    left: 24px;
    right: auto;
    bottom: 22px;
  }
}

@media (max-height: 520px) {
  .retour-global {
    bottom: 12px;
  }
}



/* ---------- Liens légaux dans le panneau ---------- */
/* Le sélecteur générique .panneau nav ne doit pas transformer ces liens
   secondaires en grandes entrées du menu principal. */
.panneau nav.liens-legaux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--filet);
  color: #536176;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.panneau nav.liens-legaux a {
  display: inline;
  height: auto;
  gap: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
  text-transform: inherit;
  transition: color .2s ease;
}

.panneau nav.liens-legaux a:hover,
.panneau nav.liens-legaux a:focus-visible {
  color: var(--bleu);
}

@media (max-height: 620px) {
  .panneau nav.liens-legaux {
    padding-top: 8px;
    font-size: .56rem;
  }
}


/* ==========================================================
   Footer institutionnel Thémis
   ========================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 78px) clamp(28px, 8vw, 140px) clamp(22px, 2.7vw, 32px);
  background: var(--bleu);
  color: #fff;
  transition: margin-right .55s var(--courbe), padding .55s var(--courbe);
}

.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e5b252;
}

.footer-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(125px, .65fr) minmax(125px, .65fr) minmax(190px, .95fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
  padding-bottom: clamp(34px, 4.4vw, 54px);
}

.footer-identite {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: clamp(32px, 3vw, 44px);
  row-gap: 0;
  align-items: start;
}

/* Les enfants du bloc texte participent directement à la grille :
   le logo peut ainsi se caler précisément sur le bas du titre "Thémis Sorbonne". */
.footer-identite-texte {
  display: contents;
}

.footer-logo {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: end;
  width: clamp(58px, 5.4vw, 76px);
  height: auto;
  display: block;
  padding: 0;
  background: transparent;
  text-decoration: none;
  line-height: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  transform: translateY(-2px);
  opacity: .92;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-kicker,
.footer-col h3 {
  margin: 0 0 16px;
  color: #e5b252;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-kicker {
  grid-column: 2;
  grid-row: 1;
}

.footer-identite h2 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.footer-identite-texte > p:not(.footer-kicker):not(.footer-tagline) {
  grid-column: 2;
  grid-row: 3;
  max-width: 34ch;
  margin: 10px 0 0;
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.6;
}

.footer-tagline {
  grid-column: 2;
  grid-row: 4;
  margin: 12px 0 0;
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-col h3 {
  margin-bottom: 7px;
}

.footer-col a,
.footer-bas a {
  position: relative;
  color: rgba(255,255,255,.78);
  font-size: .73rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color .22s ease;
}

.footer-col a::after,
.footer-bas a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: #e5b252;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-bas a:hover,
.footer-bas a:focus-visible {
  color: #fff;
}

.footer-col a:hover::after,
.footer-col a:focus-visible::after,
.footer-bas a:hover::after,
.footer-bas a:focus-visible::after {
  transform: scaleX(1);
}

.footer-contact a span,
.footer-retour span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .22s ease;
}

.footer-contact a:hover span,
.footer-contact a:focus-visible span {
  transform: translate(3px,-3px);
}

.footer-retour:hover span,
.footer-retour:focus-visible span {
  transform: translateY(-3px);
}

.footer-email {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.footer-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.footer-bas p {
  margin: 0;
  color: rgba(255,255,255,.48);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-bas-liens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.footer-bas a {
  color: rgba(255,255,255,.58);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Animation sobre : le contenu reste visible si JavaScript est indisponible. */
.site-footer.footer-animation-ready .footer-identite,
.site-footer.footer-animation-ready .footer-col,
.site-footer.footer-animation-ready .footer-bas {
  opacity: 0;
  transform: translateY(18px);
}

.site-footer.footer-animation-ready.est-visible .footer-identite,
.site-footer.footer-animation-ready.est-visible .footer-col,
.site-footer.footer-animation-ready.est-visible .footer-bas {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .8s var(--courbe);
}

.site-footer.footer-animation-ready.est-visible .footer-col:nth-child(2) { transition-delay: .06s; }
.site-footer.footer-animation-ready.est-visible .footer-col:nth-child(3) { transition-delay: .12s; }
.site-footer.footer-animation-ready.est-visible .footer-col:nth-child(4) { transition-delay: .18s; }
.site-footer.footer-animation-ready.est-visible .footer-bas { transition-delay: .22s; }

/* Le footer doit rester dans la même largeur utile que les autres sections lorsque
   le panneau de navigation est ouvert sur ordinateur. */
@media (min-width: 821px) {
  body.ouvert .site-footer {
    margin-right: var(--panneau-largeur);
    padding-left: clamp(28px, 5.5vw, 96px);
    padding-right: clamp(28px, 5.5vw, 96px);
  }

  body.sur-footer-sombre:not(.ouvert) .burger {
    color: #fff;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,.22));
  }

  body.sur-footer-sombre.ouvert .burger {
    color: var(--encre);
    filter: none;
  }
}

/* Sticker interactif visible egalement sur le footer : toutes les sections restent jouables. */
.sticker-accueil {
  transition: opacity .3s ease;
}

/* Securite visuelle : des que le footer est actif, le bouton fixe Retour
   disparait afin de ne laisser que le lien Retour en haut du footer. */
body.sur-footer-sombre .retour-global {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

@media (max-width: 1050px) {
  .footer-main {
    grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(150px, .8fr));
  }

  .footer-contact {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: 24px;
  }

  .footer-contact h3,
  .footer-contact .footer-email {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 48px 24px 22px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
    padding-bottom: 34px;
  }

  .footer-identite {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: flex;
  }

  .footer-bas {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-bas-liens {
    justify-content: flex-start;
    gap: 14px 20px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-identite {
    grid-template-columns: 58px minmax(0,1fr);
    column-gap: 24px;
    row-gap: 0;
  }

  .footer-logo {
    width: 58px;
    height: 58px;
    padding: 6px;
  }
}



/* Tagline : espace garanti entre le sticker et le burger sur petits écrans. */
@media (max-width: 480px) {
  body.sur-accueil .visuel > .marque {
    left: calc(24px + clamp(53px, 15.4vw, 68px) + 12px);
    right: 78px;
    width: auto;
    height: 52px;
    white-space: normal;
    text-align: left;
    font-size: .61rem;
    line-height: 1.35;
  }
}

/* Partenaire et soutien : libelles alignes, logo de soutien a hauteur egale. */
.partenaires-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(112px, 1fr);
  column-gap: clamp(8px, 1vw, 16px);
  align-items: start;
}
.partenaires-grille .partenariat { min-width: 0; }
.partenaires-grille .partenariat-label {
  min-height: 2.5em;
  white-space: nowrap;
}
.partenaires-grille .partenariat-logo {
  width: 100%;
  max-width: 190px;
}
.soutien-logo {
  display: block;
  width: auto;
  height: clamp(27px, 2.75vw, 38px);
  max-width: 100%;
  object-fit: contain;
}
@media (max-height: 520px) {
  .soutien-logo { height: 28px; }
}

/* Accessibilite : zones tactiles (ajustements discrets, sans changer la typographie). */
/* Icones sociales : zone de 40px, pictogramme conserve a 22px. */
.panneau .reseaux { gap: 8px; margin-top: 8px; }
.panneau .reseaux a {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* Liens legaux : 24px de hauteur et espacement suffisant, sans agrandir le texte. */
.panneau nav.liens-legaux { column-gap: 8px; row-gap: 4px; }
.panneau nav.liens-legaux a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Logos cliquables : le visuel ne change pas, la zone peut etre plus haute. */
.partenaires-grille .partenariat-lien { min-height: 40px; align-items: center; }

/* Pied de page : liens de hauteur suffisante, espaces verticaux compenses. */
.site-footer .footer-col { gap: 4px; }
.site-footer .footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.site-footer .footer-bas a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.site-footer .footer-bas-liens { column-gap: 22px; row-gap: 4px; }

/* Liens d'action : surface verticale minimale. */
.page-scroll-lien { min-height: 32px; }

/* Nos drives : deux cartes equilibrees, sans colonne vide. */
@media (min-width: 981px) {
  .page-drives .page-scroll-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================
   Bibliotheque immersive Nos drives - version 1
   ========================================================== */
.page-drives .drives-ouvrir {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
}
/* Catalogue insere sous les cartes Nos drives, sans fenetre modale. */
.catalogue-panneau {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: clamp(30px, 5vw, 70px);
  background: #f6f7fb;
  color: #14213d;
  border-top: 3px solid #0a2a60;
  box-shadow: 0 22px 45px rgba(10, 42, 96, .12);
  scroll-margin-top: 20px;
  animation: catalogue-entree .34s cubic-bezier(.2,.7,.2,1) both;
}
.catalogue-panneau[hidden] { display: none !important; }
@keyframes catalogue-entree { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.catalogue-interface { min-height:100%; display:flex; flex-direction:column; }
.catalogue-entete {
  padding: clamp(20px, 3.2vw, 45px) clamp(22px, 5vw, 84px);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  border-bottom:1px solid rgba(10,42,96,.14);
}
.catalogue-identite { display:flex; flex-direction:column; gap:9px; }
.catalogue-kicker,.catalogue-numero,.catalogue-surline,.catalogue-controles,.catalogue-pied,.catalogue-document-meta>span {
  font-size:.7rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
}
.catalogue-kicker { color:#0a2a60; }
.catalogue-numero { color:#69768b; }
.catalogue-fermer { display:flex; align-items:center; gap:15px; justify-content:center; min-width:102px; min-height:44px; border:1px solid #0a2a60; background:transparent; color:#0a2a60; font:700 .75rem var(--sans); letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
.catalogue-fermer span { font-size:1.5rem; line-height:1; font-weight:300; }
.catalogue-fermer:hover { background:#0a2a60; color:#fff; }
.catalogue-intro { display:grid; grid-template-columns:1.3fr .7fr; align-items:end; gap:24px; padding: clamp(34px,5vw,75px) clamp(22px, 5vw, 84px) clamp(24px,3vw,48px); }
.catalogue-surline { color:#9a7120; margin:0 0 16px; }
.catalogue-intro h2 { font-size:clamp(2.7rem,7vw,7rem); line-height:.97; font-weight:300; letter-spacing:-.06em; margin:0; }
.catalogue-intro>p { max-width:35ch; color:#536176; font-size:clamp(.9rem,1.4vw,1.2rem); line-height:1.65; margin:0; }
.catalogue-onglets { display:flex; gap:0; border-bottom:1px solid rgba(10,42,96,.18); padding:0 clamp(22px,5vw,84px); overflow-x:auto; }
.catalogue-onglet { display:flex; gap:15px; align-items:center; white-space:nowrap; padding:20px clamp(12px,2.7vw,42px); min-height:56px; background:none; border:0; border-bottom:3px solid transparent; color:#536176; font:700 .72rem var(--sans); letter-spacing:.09em; cursor:pointer; }
.catalogue-onglet:first-child { padding-left:0; }
.catalogue-onglet span { text-transform:uppercase; }
.catalogue-onglet.est-actif { color:#0a2a60; border-bottom-color:#e5b252; }
.catalogue-zone { padding:30px clamp(22px,5vw,84px) 45px; flex:1; }
.catalogue-controles { display:flex; justify-content:space-between; align-items:center; gap:20px; color:#536176; margin-bottom:24px; }
.catalogue-fleches { display:flex; gap:8px; }
.catalogue-fleches button { width:44px; height:44px; border:1px solid #a9b2c2; background:transparent; color:#0a2a60; font-size:1.25rem; cursor:pointer; }
.catalogue-fleches button:hover { background:#0a2a60; color:#fff; }
.catalogue-livres { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(200px,23vw,320px); gap:clamp(16px,2.7vw,42px); overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:10px 3px 20px; }
.catalogue-document { min-width:0; scroll-snap-align:start; }
.catalogue-document-action { display:block; height:100%; text-decoration:none; color:#14213d; }
.catalogue-document-action.est-disponible:hover .catalogue-couverture { transform:translateY(-9px) rotate(-1deg); box-shadow:12px 21px 30px rgba(12,32,70,.18); }
.catalogue-couverture { aspect-ratio:3/4; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(18px,2.2vw,33px); color:white; box-shadow:6px 12px 22px rgba(12,32,70,.13); transition:transform .25s ease, box-shadow .25s ease; overflow:hidden; }
.catalogue-couverture img { width:100%; height:100%; object-fit:cover; }
.catalogue-couverture:has(img) { padding:0; }
.catalogue-teinte-0 {background:linear-gradient(145deg,#254b89,#0a2a60 68%)}
.catalogue-teinte-1 {background:linear-gradient(145deg,#758bad,#263858 68%)}
.catalogue-teinte-2 {background:linear-gradient(145deg,#1e5478,#0c244c 68%)}
.catalogue-teinte-3 {background:linear-gradient(145deg,#786e9a,#273458 68%)}
.catalogue-couverture-surline { font-size:.54rem; letter-spacing:.14em; font-weight:700; color:#e5b252; }
.catalogue-couverture strong { font-size:clamp(1.25rem,2.2vw,2rem); line-height:1.15; font-weight:500; letter-spacing:-.035em; overflow-wrap:anywhere; }
.catalogue-couverture-numero { align-self:flex-end; font-size:.7rem; }
.catalogue-document-meta { padding:20px 2px; display:grid; align-content:start; gap:9px; }
.catalogue-document-meta>span:first-child { color:#657187; }
.catalogue-document-meta h3 { margin:0; font-size:1rem; font-weight:500; line-height:1.45; }
.catalogue-statut { color:#536176; font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.catalogue-document-action.est-disponible .catalogue-statut { color:#0a2a60; }
.catalogue-note { color:#536176; font-size:.76rem; line-height:1.6; margin-top:5px; }
.catalogue-pied { display:flex; justify-content:space-between; gap:15px; padding:22px clamp(22px,5vw,84px); border-top:1px solid rgba(10,42,96,.14); color:#536176; }
.catalogue-panneau button:focus-visible, .catalogue-document-action:focus-visible { outline:3px solid #0a2a60; outline-offset:4px; }
@media (max-width:820px) {
  .catalogue-intro { grid-template-columns:1fr; gap:16px; }
  .catalogue-intro h2 { font-size:clamp(2.5rem,10vw,4.5rem); }
  .catalogue-onglet { padding:15px; font-size:.66rem; }
  .catalogue-livres { grid-auto-columns:minmax(210px,66vw); gap:22px; }
  .catalogue-pied { flex-wrap:wrap; font-size:.58rem; }
  .catalogue-entete { padding:18px 22px; }
  .catalogue-kicker { font-size:.56rem; }
}


/* Adapter la galerie au panneau integre, sans toucher aux autres sections. */
.page-drives .catalogue-intro h2 { font-size: clamp(2.3rem, 5vw, 5.2rem); }
.page-drives .catalogue-livres { grid-auto-columns: clamp(185px, 24vw, 280px); }
@media (max-width: 820px) {
  .page-drives .catalogue-livres { grid-auto-columns: minmax(190px, 69vw); }
  .page-drives .catalogue-panneau { margin-top: 28px; }
  .page-drives .catalogue-intro { padding-top: 30px; }
}


/* Nos drives : mosaique de couvertures bord a bord, sans titre ni textes visibles. */
.page-drives .page-scroll-wrap { max-width: 1280px; }
.page-drives .catalogue-panneau {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  margin-top: 28px;
  width: auto;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: hidden;
}
.page-drives .catalogue-interface {
  position: relative;
  min-height: 0;
}
/* On garde uniquement le bouton de fermeture, en surimpression. */
.page-drives .catalogue-entete {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 0;
  border: 0;
  background: transparent;
}
.page-drives .catalogue-identite,
.page-drives .catalogue-intro,
.page-drives .catalogue-onglets,
.page-drives .catalogue-controles,
.page-drives .catalogue-note,
.page-drives .catalogue-pied {
  display: none;
}
/* Bouton fermer : simple pastille blanche avec croix doree. */
.page-drives .catalogue-fermer {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  box-shadow: 0 10px 24px rgba(10,42,96,.16);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.page-drives .catalogue-fermer span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  font-size: 0;
  transition: transform .22s ease;
}
/* Croix geometrique centree independamment de la metrique du glyphe ×. */
.page-drives .catalogue-fermer span::before,
.page-drives .catalogue-fermer span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #e5b252;
  transform-origin: center;
}
.page-drives .catalogue-fermer span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.page-drives .catalogue-fermer span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.page-drives .catalogue-fermer:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10,42,96,.20);
}
.page-drives .catalogue-fermer:hover span {
  transform: rotate(90deg);
}
.page-drives .catalogue-fermer:focus-visible {
  outline: 3px solid #e5b252;
  outline-offset: 3px;
}
.page-drives .catalogue-zone {
  padding: 0;
}
.page-drives .catalogue-livres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-type: none;
}
.page-drives .catalogue-document {
  min-width: 0;
  margin: 0;
  padding: 0;
  scroll-snap-align: none;
}
.page-drives .catalogue-document-action {
  display: block;
  margin: 0;
  padding: 0;
}
.page-drives .catalogue-couverture,
.page-drives .catalogue-document-action.est-disponible:hover .catalogue-couverture {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.page-drives .catalogue-couverture.est-image {
  padding: 0;
  background: transparent;
}
.page-drives .catalogue-couverture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.page-drives .catalogue-document-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 15px 0 28px;
  font-family: var(--sans);
  color: var(--bleu);
  background: transparent;
  white-space: normal;
}
/* Typographie editorial / identite Themis : labels fins, titre affirme. */
.page-drives .catalogue-document-meta > span:first-child {
  color: var(--encre);
  opacity: 1;
  font-size: clamp(.58rem, .7vw, .72rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.page-drives .catalogue-document-meta h3 {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0 0 3px;
  color: var(--bleu);
  font-size: clamp(.83rem, 1.18vw, 1.12rem);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.page-drives .catalogue-document-meta h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.page-drives .catalogue-document-action:hover h3::after,
.page-drives .catalogue-document-action:focus-visible h3::after {
  transform: scaleX(1);
}
.page-drives .catalogue-document-meta .catalogue-statut {
  margin-top: 1px;
  color: #5f5037;
  font-size: clamp(.56rem, .68vw, .68rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.page-drives .catalogue-document-action.est-disponible .catalogue-statut {
  color: var(--bleu);
}
@media (max-width: 820px) {
  .page-drives .catalogue-panneau {
    margin-left: 0;
    margin-right: 0;
    margin-top: 28px;
  }
  .page-drives .catalogue-entete {
    top: 10px;
    right: 10px;
  }
  .page-drives .catalogue-fermer {
    min-width: 42px;
    width: 42px;
    height: 42px;
  }
  .page-drives .catalogue-livres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-drives .catalogue-couverture {
    padding: 12px;
  }
  .page-drives .catalogue-document-meta {
    padding: 11px 0 20px;
    gap: 5px;
  }
  .page-drives .catalogue-document-meta h3 {
    font-size: .82rem;
  }
  .page-drives .catalogue-couverture strong {
    font-size: clamp(.95rem, 4vw, 1.35rem);
  }
}


/* Animation pilotee par JavaScript : pas de double animation CSS. */
.page-drives .catalogue-panneau { animation: none; }

/* Pamplemousse : partenariat au pied de page, hors menu. */
.panneau .partenaires-grille {
  grid-template-columns: minmax(0, 1fr);
}
.panneau .partenaires-grille .partenariat-label {
  min-height: 0;
}
.footer-partenariat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.footer-partenariat-label {
  color: rgba(255,255,255,.72);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-partenariat-lien {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 13px;
  background: #fff;
  border-radius: 4px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.footer-partenariat-lien img {
  display: block;
  width: clamp(150px, 13vw, 190px);
  max-width: 100%;
  height: auto;
}
.footer-partenariat-lien:hover,
.footer-partenariat-lien:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.footer-partenariat-lien:focus-visible {
  outline: 2px solid #e5b252;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .footer-partenariat {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}


/* Partenariat aligne sous la signature, sur une ligne et sans fond. */
.site-footer .footer-identite .footer-partenariat {
  grid-column: 2;
  grid-row: 5;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.site-footer .footer-identite .footer-partenariat-label {
  flex: 0 0 auto;
  color: rgba(255,255,255,.6);
  font-size: .55rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .06em;
  white-space: nowrap;
}
.site-footer .footer-identite .footer-partenariat-lien {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: .9;
  line-height: 0;
}
.site-footer .footer-identite .footer-partenariat-lien::after { display: none; }
.site-footer .footer-identite .footer-partenariat-lien img {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
}
.site-footer .footer-identite .footer-partenariat-lien:hover,
.site-footer .footer-identite .footer-partenariat-lien:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: none;
}
@media (max-width: 480px) {
  .site-footer .footer-identite .footer-partenariat {
    gap: 2px;
    margin-top: 24px;
  }
  .site-footer .footer-identite .footer-partenariat-label { font-size: .49rem; }
  .site-footer .footer-identite .footer-partenariat-lien img { width: 123px; }
}

/* Garder la surimpression DRIVES au bas du premier ecran de la section,
   meme quand le catalogue ajoute puis retire de la hauteur. */
.page-drives > .page-scroll-marque {
  bottom: auto;
  top: calc(100vh - .8em);
  top: calc(100dvh - .8em);
}

/* Filtres d'annee, visibles sous les cartes dans le catalogue ouvert. */
.page-drives .catalogue-filtres {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0 64px 0 0;
}
.page-drives .catalogue-filtre {
  appearance: none;
  border: 1px solid rgba(10, 42, 96, .22);
  background: transparent;
  color: #0a2a60;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 42px;
  font: 500 .75rem/1.2 Montserrat, sans-serif;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.page-drives .catalogue-filtre:hover,
.page-drives .catalogue-filtre:focus-visible {
  border-color: #0a2a60;
}
.page-drives .catalogue-filtre.est-actif {
  background: #0a2a60;
  border-color: #0a2a60;
  color: #fff;
}
@media (max-width: 600px) {
  .page-drives .catalogue-filtres { gap: 6px; margin-bottom: 15px; padding-right: 54px; }
  .page-drives .catalogue-filtre { min-height: 40px; padding: 9px 14px; font-size: .7rem; }
}


/* Fermeture placee sur la meme ligne que les filtres par annee. */
.page-drives .catalogue-filtres {
  padding-right: 0;
}
.page-drives .catalogue-filtres .catalogue-fermer {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin-left: auto;
  border: 1px solid rgba(20, 33, 61, .22);
  background: transparent;
  box-shadow: none;
}
.page-drives .catalogue-filtres .catalogue-fermer span::before,
.page-drives .catalogue-filtres .catalogue-fermer span::after {
  background: #14213d;
}
.page-drives .catalogue-filtres .catalogue-fermer:hover,
.page-drives .catalogue-filtres .catalogue-fermer:focus-visible {
  border-color: #14213d;
  box-shadow: none;
}
@media (max-width: 600px) {
  .page-drives .catalogue-filtres { padding-right: 0; }
  .page-drives .catalogue-filtres .catalogue-fermer {
    flex-basis: 40px;
    min-width: 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

/* Pamplemousse dans le menu, soutien dans le footer (sans fond ni separateur). */
.panneau .partenaire-pamplemousse .partenariat-logo {
  width: clamp(145px, 11vw, 185px);
  transform: none;
}
.site-footer .footer-identite .footer-soutien {
  gap: 8px;
}
.site-footer .footer-identite .footer-soutien .footer-partenariat-lien img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
@media (max-width: 480px) {
  .site-footer .footer-identite .footer-soutien .footer-partenariat-lien img {
    width: 34px;
    height: 34px;
  }
}

/* Nos drives : tous les textes bleus utilisent le bleu du logo Themis. */
.page-drives {
  --encre: #0a2a60;
  --bleu: #0a2a60;
}
.page-drives .page-scroll-surline,
.page-drives .page-scroll-entete h2,
.page-drives .page-scroll-chapo,
.page-drives .page-scroll-numero,
.page-drives .page-scroll-carte h3,
.page-drives .page-scroll-carte p,
.page-drives .page-scroll-lien,
.page-drives .catalogue-document-meta,
.page-drives .catalogue-document-meta > span:first-child,
.page-drives .catalogue-document-meta h3,
.page-drives .catalogue-document-action.est-disponible .catalogue-statut,
.page-drives .catalogue-filtre:not(.est-actif) {
  color: #0a2a60;
}
.page-drives .catalogue-document-meta h3::after {
  background-color: #0a2a60;
}
.page-drives .catalogue-filtres .catalogue-fermer span::before,
.page-drives .catalogue-filtres .catalogue-fermer span::after {
  background-color: #0a2a60;
}

/* Titres principaux de Nos drives : bleu identique au logo Themis. */
#nos-drives #titre-nos-drives,
#nos-drives .page-scroll-grille > .page-scroll-carte > h3 {
  color: #0a2a60;
}

/* Accueil original conserve : titre editorial et deux actions uniquement. */
/* Titre hero : element graphique principal, sans changer les fonds. */
.visuel#accueil h1 {
  max-width: min(100%, 1150px);
  margin: 0 0 clamp(18px, 2.4vw, 34px);
  font-family: Montserrat, sans-serif;
  font-size: clamp(4rem, 7.5vw, 8.8rem);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 5px 36px rgba(2, 13, 45, .24);
}
.visuel#accueil h1 .mot {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: .075em .055em;
  margin: -.075em -.055em;
  overflow: hidden;
}
.visuel#accueil h1 .mot-accent {
  padding-right: .15em;
}
.visuel#accueil h1 .mot-accent > span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.11em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.065em;
  color: #e5b252;
}
.visuel#accueil .description {
  max-width: 55ch;
  text-shadow: 0 2px 12px rgba(3, 14, 48, .4);
}
@media (min-width: 821px) and (max-height: 750px) {
  .visuel#accueil h1 { font-size: clamp(3.7rem, 6.5vw, 7rem); }
}
@media (min-width: 561px) and (max-width: 820px) {
  .visuel#accueil h1 { font-size: clamp(3.7rem, 9vw, 6.4rem); }
}
.visuel#accueil .accueil-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.visuel#accueil .accueil-actions .bouton { display: inline-flex; align-items: center; justify-content: center; gap: 16px; margin: 0; }
.visuel#accueil .accueil-actions .accueil-bouton-secondaire { background: transparent; border: 1px solid rgba(255,255,255,.85); color: #fff; }
.visuel#accueil .accueil-actions .accueil-bouton-secondaire:hover,
.visuel#accueil .accueil-actions .accueil-bouton-secondaire:focus-visible { background: #fff; color: var(--encre); }

/* Evaluation sous le titre Prendre RDV. */
.page-rdv .rdv-rating-image {
  display: block;
  width: clamp(138px, 16vw, 190px);
  max-width: 100%;
  height: auto;
  margin-top: 22px;
  object-fit: contain;
}
@media (max-width: 820px) {
  .page-rdv .rdv-rating-image { width: 150px; margin-top: 16px; }
}

@media (max-width: 560px) {
  .visuel#accueil h1 {
    font-size: clamp(2.85rem, 10.4vw, 4.6rem);
    line-height: .94;
    letter-spacing: -.055em;
  }
  .visuel#accueil h1 .mot-accent > span { font-size: 1.04em; }
  .visuel#accueil .accueil-actions { gap: 9px; }
  .visuel#accueil .accueil-actions .bouton { padding: 13px 16px; font-size: .72rem; gap: 9px; }
}

/* Le libelle du Discord IED est cliquable au meme titre que son logo. */
.site-footer .footer-identite a.footer-soutien-texte {
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}
.site-footer .footer-identite a.footer-soutien-texte:hover,
.site-footer .footer-identite a.footer-soutien-texte:focus-visible {
  color: #fff;
}

/* Bibliotheque Nos drives : fiche editoriale sous chaque couverture. */
.page-drives .catalogue-document-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 150px;
  padding: 17px 11px 29px 0;
  border-top: 0;
  background: transparent;
  color: #0a2a60;
}
.page-drives .catalogue-document-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(10,42,96,.20);
  border-radius: 3px;
  color: #0a2a60;
  font: 500 .59rem/1.1 Montserrat, sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.page-drives .catalogue-document-meta h3 {
  position: relative;
  display: inline;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0 0 4px;
  color: #0a2a60;
  font: 500 clamp(.91rem,1.33vw,1.13rem)/1.32 Montserrat, sans-serif;
  letter-spacing: -.025em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.page-drives .catalogue-document-meta h3::after {
  height: 1px;
  background-color: #0a2a60;
}
.page-drives .catalogue-document-meta .catalogue-statut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 0;
  color: rgba(10,42,96,.61);
  font: 500 .62rem/1.3 Montserrat, sans-serif;
  letter-spacing: .015em;
  text-transform: none;
}
.page-drives .catalogue-document-meta .catalogue-statut::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a2a60;
  flex: none;
}
.page-drives .catalogue-document-action.est-disponible .catalogue-statut::before {
  background: #0a2a60;
}
/* Sans modifier l'alignement bord-a-bord des couvertures. */
.page-drives .catalogue-couverture strong {
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.035em;
}
@media (max-width:820px) {
  .page-drives .catalogue-document-meta {
    min-height: 142px;
    padding: 13px 7px 24px 0;
  }
  .page-drives .catalogue-document-meta > span:first-child {
    font-size: .54rem;
    margin-bottom: 8px;
    padding: 3px 6px;
  }
  .page-drives .catalogue-document-meta h3 {
    font-size: clamp(.80rem,2.8vw,.96rem);
    margin-bottom: 10px;
  }
  .page-drives .catalogue-document-meta .catalogue-statut {
    font-size: .57rem;
  }
}


/* Bibliothèque : année au-dessus du titre, disponibilité juste en dessous. */
.page-drives .catalogue-document-meta {
  min-height: 0;
  padding-bottom: 20px;
}
.page-drives .catalogue-document-meta h3 {
  margin-bottom: 5px;
}
.page-drives .catalogue-document-meta .catalogue-statut {
  margin: 0;
}
.page-drives .catalogue-document-meta .catalogue-annee {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(10,42,96,.67);
  font: 400 .64rem/1.4 Montserrat, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  min-height: 0;
}
@media (max-width: 820px) {
  .page-drives .catalogue-document-meta { min-height: 0; padding-bottom: 15px; }
  .page-drives .catalogue-document-meta h3 { margin-bottom: 5px; }
  .page-drives .catalogue-document-meta .catalogue-annee { font-size: .57rem; }
}

/* Bibliotheque : couverture qui commence a s'ouvrir au survol. */
.page-drives .catalogue-document {
  position: relative;
  isolation: isolate;
}
.page-drives .catalogue-document-action {
  perspective: 1100px;
}
.page-drives .catalogue-couverture {
  position: relative;
  transform-origin: left center;
  backface-visibility: hidden;
}
/* Coin de page clair revele progressivement sous la couverture. */
.page-drives .catalogue-couverture::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  background: linear-gradient(225deg, #f8f6ee 0%, #f8f6ee 47%, #d7dfeb 53%, #a5b7d0 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  box-shadow: -5px 6px 12px rgba(4,22,55,.18);
  transition: width .42s cubic-bezier(.2,.7,.2,1), height .42s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .page-drives .catalogue-couverture {
    transition: transform .48s cubic-bezier(.2,.7,.2,1), filter .48s cubic-bezier(.2,.7,.2,1);
  }
  .page-drives .catalogue-document:hover { z-index: 3; }
  .page-drives .catalogue-document:hover .catalogue-couverture,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture {
    transform: perspective(1100px) rotateY(-9deg) translateX(2px);
    filter: drop-shadow(8px 5px 5px rgba(5,25,55,.2));
  }
  .page-drives .catalogue-document:hover .catalogue-couverture::after,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture::after {
    width: 19%;
    height: 15%;
  }
}


/* Livre : amorce lisible d'un vrai tourne-page au coin superieur droit. */
.page-drives .catalogue-couverture {
  transform-origin: left center;
  overflow: hidden;
}
/* Le papier clair qui se devoile sous le coin retourne. */
.page-drives .catalogue-couverture::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0 0 auto auto;
  width: 47%;
  height: 41%;
  background: linear-gradient(140deg, #f4f0e8 0%, #fffdf7 55%, #c4d0dd 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transform: translate(101%, -101%);
  transition: transform .55s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
/* Revers triangulaire : ombre pres de la pliure et lumiere sur le papier. */
.page-drives .catalogue-couverture::after {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  width: 47%;
  height: 41%;
  background: linear-gradient(135deg, #6e829f 0%, #c5d0dd 25%, #fefdf7 65%, #ebe7df 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  filter: drop-shadow(-7px 8px 6px rgba(5,23,55,.35));
  transform-origin: top right;
  transform: translate(110%, -110%) rotate(-15deg);
  transition: transform .55s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
@media (hover:hover) and (pointer:fine) {
  .page-drives .catalogue-document:hover { z-index: 4; }
  .page-drives .catalogue-document:hover .catalogue-couverture,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture {
    transform: perspective(1100px) rotateY(-6deg);
    filter: drop-shadow(8px 6px 8px rgba(5,25,55,.18));
  }
  .page-drives .catalogue-document:hover .catalogue-couverture::before,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture::before {
    transform: translate(0, 0);
  }
  .page-drives .catalogue-document:hover .catalogue-couverture::after,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture::after {
    transform: translate(0, 0) rotate(0deg);
  }
}
@media (hover:none) {
  .page-drives .catalogue-couverture::before,
  .page-drives .catalogue-couverture::after { transition: none !important; }
}

/* Quelques pixels plus bas pour l'ensemble Pamplemousse, sans toucher aux reseaux. */
.panneau .partenaire-pamplemousse {
  margin-top: 12px;
}
@media (max-height: 620px) {
  .panneau .partenaire-pamplemousse { margin-top: 5px; }
}

/* Survol des cartes : les titres reagissent comme le liseré et le numero. */
.qs-carte h3,
.page-drives .page-scroll-carte h3,
.page-outils .page-scroll-carte h3 {
  transition: color .3s ease, opacity .3s ease;
}
.qs-carte:hover h3,
.qs-carte:active h3,
.page-drives .page-scroll-carte:hover h3,
.page-drives .page-scroll-carte:active h3 {
  color: #0a2a60;
  opacity: 1;
}
.page-drives .page-scroll-carte h3 { opacity: .78; }
.page-outils .page-scroll-carte:hover h3,
.page-outils .page-scroll-carte:active h3 {
  color: #e5b252;
}

/* Partenariat Pamplemousse : decalage supplementaire de 15 px. */
.panneau .partenaire-pamplemousse { margin-top: 35px; }
@media (max-height: 620px) {
  .panneau .partenaire-pamplemousse { margin-top: 23px; }
}

/* RDV : le titre suit la couleur doree du liseré et du numero au survol. */
.page-rdv .page-scroll-carte h3 {
  transition: color .3s ease;
}
.page-rdv .page-scroll-carte:hover h3,
.page-rdv .page-scroll-carte:active h3,
.page-rdv .page-scroll-carte:focus-within h3,
.page-rdv .rdv-choix.est-actif h3 {
  color: #e5b252;
}

/* Menu : bloc Pamplemousse juste au-dessus des reseaux, sans decalage artificiel. */
.panneau .panneau-bas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.panneau .partenaires-grille,
.panneau .partenaire-pamplemousse {
  margin-top: 0;
}
.panneau .partenaire-pamplemousse {
  padding-top: 12px;
  border-top: 1px solid var(--filet);
  gap: 3px;
}
.panneau .partenaires-grille .partenariat-lien { min-height: 0; }
.panneau .contact,
.panneau .reseaux { margin-top: 0; }
@media (max-height: 620px) {
  .panneau .partenaire-pamplemousse { margin-top: 0; }
}

/* Filtre par semestre S1-S6 : conserver la lisibilite sur petit ecran. */
@media (max-width: 440px) {
  .page-drives .catalogue-filtres { flex-wrap: wrap; }
  .page-drives .catalogue-filtres .catalogue-filtre { padding-inline: 11px; }
}

/* Home : lettres individuelles du mot « autrement. » au survol.
   Les boutons gardent uniquement leur interaction CSS d'origine. */
@media (hover: hover) and (pointer: fine) {
  .visuel#accueil h1 .mot-accent .lettre-interactive {
    display: inline-block;
    position: relative;
    will-change: translate;
  }
}

/* Couvertures PDF personnalisees : pleine carte, ratio reel du PDF (612 x 792). */
.page-drives .catalogue-couverture.est-image {
  padding: 0;
  aspect-ratio: 17 / 22;
  background: transparent;
}
.page-drives .catalogue-couverture.est-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}


/* Couvertures personnalisees : le visuel EST la couverture, sans cadre ni fond ajoute. */
.page-drives .catalogue-couverture.est-image {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: 612 / 792 !important;
  overflow: hidden !important;
}
.page-drives .catalogue-couverture.est-image::before,
.page-drives .catalogue-couverture.est-image::after {
  display: none !important;
  content: none !important;
}
.page-drives .catalogue-couverture.est-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  background: transparent !important;
}

/* PDF fournis : image brute sans habillage CSS de couverture. */
.page-drives .catalogue-document-action > img.catalogue-image-directe {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  transform: none;
  filter: none;
  object-fit: contain;
}


/* Reapplique la pliure de coin sur les vraies couvertures image, sans recreer de faux fond. */
.page-drives .catalogue-couverture.est-image {
  position: relative;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: 612 / 792 !important;
  overflow: hidden !important;
}
.page-drives .catalogue-couverture.est-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  background: transparent !important;
}
.page-drives .catalogue-couverture.est-image::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  z-index: 5;
  inset: 0 0 auto auto;
  width: 47%;
  height: 41%;
  background: linear-gradient(140deg, #f4f0e8 0%, #fffdf7 55%, #c4d0dd 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transform: translate(101%, -101%);
  transition: transform .55s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
.page-drives .catalogue-couverture.est-image::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  width: 47%;
  height: 41%;
  background: linear-gradient(135deg, #6e829f 0%, #c5d0dd 25%, #fefdf7 65%, #ebe7df 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  filter: drop-shadow(-7px 8px 6px rgba(5,23,55,.35));
  transform-origin: top right;
  transform: translate(110%, -110%) rotate(-15deg);
  transition: transform .55s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
@media (hover:hover) and (pointer:fine) {
  .page-drives .catalogue-document:hover .catalogue-couverture.est-image,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture.est-image {
    transform: perspective(1100px) rotateY(-6deg);
    filter: drop-shadow(8px 6px 8px rgba(5,25,55,.18));
  }
  .page-drives .catalogue-document:hover .catalogue-couverture.est-image::before,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture.est-image::before {
    transform: translate(0, 0);
  }
  .page-drives .catalogue-document:hover .catalogue-couverture.est-image::after,
  .page-drives .catalogue-document-action:focus-visible .catalogue-couverture.est-image::after {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Footer : rendre le lien de soutien Discord IED plus lisible. */
.site-footer .footer-identite a.footer-soutien-texte,
.site-footer .footer-identite a.footer-soutien-texte:visited {
  color: #fff;
  font-size: .7rem;
  line-height: 1.45;
  letter-spacing: .035em;
}
@media (max-width: 560px) {
  .site-footer .footer-identite a.footer-soutien-texte,
  .site-footer .footer-identite a.footer-soutien-texte:visited { font-size: .66rem; }
}


/* Discord IED : conserver visiblement le logo a cote du libelle blanc. */
.site-footer .footer-identite .footer-soutien .footer-partenariat-lien {
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  opacity: 1;
  visibility: visible;
}
.site-footer .footer-identite .footer-soutien .footer-partenariat-lien img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
}
@media (max-width: 560px) {
  .site-footer .footer-identite .footer-soutien .footer-partenariat-lien { flex-basis: 36px; width: 36px; min-width: 36px; }
  .site-footer .footer-identite .footer-soutien .footer-partenariat-lien img { width: 36px; height: 36px; }
}

/* Burger lisible sur toutes les sections : contraste sans ombre. */
body:not(.ouvert) .burger,
body.sur-footer-sombre:not(.ouvert) .burger,
body.sur-page-claire:not(.ouvert) .burger {
  background: #f8f5ee;
  color: #0a2a60;
  border: 1px solid rgba(10,42,96,.16);
  border-radius: 50%;
  filter: none;
  box-shadow: none;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
body:not(.ouvert) .burger:hover {
  background: #e5b252;
  border-color: #e5b252;
}
body.ouvert .burger {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  filter: none;
  box-shadow: none;
}
.burger span { height: 2.5px; border-radius: 2px; }
.burger:focus-visible { outline: 3px solid #e5b252; outline-offset: 3px; }


/* Annales IED : filtre principal par annee et second niveau L1-L3. */
.page-drives .catalogue-annales-filtres {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}
.page-drives .catalogue-annales-filtres[hidden],
.page-drives .catalogue-filtres .catalogue-filtre[hidden] { display: none !important; }
.page-drives .catalogue-filtre-groupe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-drives .catalogue-filtre-legende {
  display: inline-block;
  width: 66px;
  flex: 0 0 66px;
  color: #0a2a60;
  font: 600 .65rem/1.3 Montserrat, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.page-drives .catalogue-annales-filtres .catalogue-filtre {
  appearance: none;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(10, 42, 96, .35);
  border-radius: 999px;
  background: transparent;
  color: #0a2a60;
  font: 500 .75rem/1.2 Montserrat, sans-serif;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.page-drives .catalogue-annales-filtres .catalogue-filtre.est-actif {
  color: #fff;
  border-color: #0a2a60;
  background: #0a2a60;
}
.page-drives .catalogue-annales-filtres .catalogue-filtre:focus-visible {
  outline: 2px solid #e5b252;
  outline-offset: 3px;
}
.page-drives .catalogue-vide-annales {
  grid-column: 1 / -1;
  padding: 45px 16px;
  text-align: center;
  color: #0a2a60;
  font: 500 .9rem/1.6 Montserrat, sans-serif;
}
@media (max-width: 440px) {
  .page-drives .catalogue-filtre-legende { width: 100%; flex-basis: 100%; }
  .page-drives .catalogue-annales-filtres .catalogue-filtre { min-height: 38px; padding: 8px 13px; }
}


/* La fermeture reste assuree par le bouton unique #catalogue-fermer. */



/* Annales : croix unique dans la ligne Année, collée à droite du catalogue. */
.page-drives .catalogue-zone.est-annales .catalogue-filtres {
  display: none; /* aucun espace résiduel sous les années */
}
.page-drives .catalogue-annales-filtres > .catalogue-filtre-groupe:first-child {
  width: 100%;
  flex-wrap: nowrap;
}
.page-drives .catalogue-annales-filtres .catalogue-fermer {
  appearance: none;
  -webkit-appearance: none;
  position: static;
  inset: auto;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid rgba(10, 42, 96, .55);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
}
.page-drives .catalogue-annales-filtres .catalogue-fermer span::before,
.page-drives .catalogue-annales-filtres .catalogue-fermer span::after {
  background: #0a2a60;
}
.page-drives .catalogue-annales-filtres .catalogue-fermer:hover {
  border-color: #0a2a60;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 600px) {
  .page-drives .catalogue-annales-filtres > .catalogue-filtre-groupe:first-child {
    flex-wrap: wrap;
    padding-right: 50px;
    position: relative;
  }
  .page-drives .catalogue-annales-filtres .catalogue-fermer {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }
}

/* --- Documents non encore disponibles : couvertures a 50% d'opacite --- */
.catalogue-document-action.est-indisponible .catalogue-couverture,
.catalogue-document-action.est-indisponible .catalogue-couverture.est-image,
.catalogue-document-action.est-indisponible .catalogue-couverture img,
.catalogue-document-action.est-indisponible > img.catalogue-image-directe,
.page-drives .catalogue-document-action.est-indisponible .catalogue-couverture,
.page-drives .catalogue-document-action.est-indisponible .catalogue-couverture.est-image,
.page-drives .catalogue-document-action.est-indisponible .catalogue-couverture img,
.page-drives .catalogue-document-action.est-indisponible > img.catalogue-image-directe {
  opacity: 0.5 !important;
}

/* On garde l'etat identique au survol pour que l'indisponibilite reste explicite */
.catalogue-document-action.est-indisponible:hover .catalogue-couverture,
.catalogue-document-action.est-indisponible:hover .catalogue-couverture.est-image,
.catalogue-document-action.est-indisponible:hover .catalogue-couverture img,
.catalogue-document-action.est-indisponible:focus-visible .catalogue-couverture,
.catalogue-document-action.est-indisponible:focus-visible .catalogue-couverture.est-image,
.catalogue-document-action.est-indisponible:focus-visible .catalogue-couverture img,
.page-drives .catalogue-document-action.est-indisponible:hover .catalogue-couverture,
.page-drives .catalogue-document-action.est-indisponible:hover .catalogue-couverture.est-image,
.page-drives .catalogue-document-action.est-indisponible:hover .catalogue-couverture img,
.page-drives .catalogue-document-action.est-indisponible:focus-visible .catalogue-couverture,
.page-drives .catalogue-document-action.est-indisponible:focus-visible .catalogue-couverture.est-image,
.page-drives .catalogue-document-action.est-indisponible:focus-visible .catalogue-couverture img {
  opacity: 0.5 !important;
}


/* Mention legale : composition editoriale dans la DA Themis. */
.page-drives .drives-disclaimer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.7fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: start;
  margin-top: clamp(14px, 2.4vw, 30px);
  padding: clamp(8px, 1.1vw, 16px) 0 clamp(26px, 3vw, 42px);
  border-top: none;
  border-bottom: none;
  background: transparent;
  color: #0a2a60;
}
.page-drives .drives-disclaimer::before { content: none; }
.page-drives .drives-disclaimer-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.page-drives .drives-disclaimer-index {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border: 1px solid rgba(10,42,96,.55);
  border-radius: 50%;
  color: #0a2a60;
  font: 500 1.05rem/1 Montserrat, sans-serif;
}
.page-drives .drives-disclaimer-kicker {
  display: block;
  margin: 2px 0 12px;
  padding: 0;
  color: #0a2a60;
  font: 700 .63rem/1.5 Montserrat, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-drives .drives-disclaimer-intro h3 {
  margin: 0;
  color: #0a2a60;
  font: 300 clamp(1.35rem, 2.15vw, 2rem)/1.25 Montserrat, sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.page-drives .drives-disclaimer-intro h3 span { display: block; }
.page-drives .drives-disclaimer-corps {
  display: grid;
  gap: 11px;
  max-width: 710px;
  padding-top: 0;
}
.page-drives .drives-disclaimer-corps p {
  margin: 0;
  padding: 0;
  color: rgba(10,42,96,.86);
  font: 500 clamp(.84rem, 1.05vw, .94rem)/1.72 Montserrat, sans-serif;
  letter-spacing: -.012em;
}
@media (max-width: 820px) {
  .page-drives .drives-disclaimer {
    grid-template-columns: 1fr;
    gap: 21px;
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-drives .drives-disclaimer-heading { gap: 14px; }
  .page-drives .drives-disclaimer-corps { padding-left: 51px; }
}
@media (max-width: 440px) {
  .page-drives .drives-disclaimer-corps { padding-left: 0; }
  .page-drives .drives-disclaimer-intro h3 span { display: inline; }
}



/* Mode Concentration — composant isole */
.pomodoro-fab { position: fixed; bottom: 26px; right: 26px; z-index: 42; display: inline-flex; align-items: center; gap: 9px; background: #0a2a60; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 13px 17px; font: 600 .75rem/1.3 Montserrat, sans-serif; letter-spacing: .015em; box-shadow: 0 7px 24px rgba(10,42,96,.15); cursor: pointer; transition: background .2s,transform .2s; }
.pomodoro-fab:hover { background: #17457d; transform: translateY(-2px); }
.pomodoro-fab:focus-visible,.pomodoro-overlay button:focus-visible,.pomodoro-overlay summary:focus-visible { outline: 3px solid #e5b252; outline-offset: 4px; }
body.pomodoro-open { overflow: hidden !important; }
body.pomodoro-open .pomodoro-fab { visibility: hidden; }
.pomodoro-overlay[hidden] { display: none !important; }
.pomodoro-overlay { position: fixed; z-index: 10000; inset: 0; background: #092855; color: white; overflow: auto; overscroll-behavior: contain; font-family: Montserrat,sans-serif; }
.pomodoro-overlay::before { content: ''; position: fixed; z-index: -1; width: min(65vw,850px); aspect-ratio: 1; right: -24vw; top: 10vh; background: radial-gradient(circle,rgba(72,111,157,.24),transparent 68%); pointer-events: none; }
.pomodoro-shell { box-sizing: border-box; min-height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(18px,3vw,42px) clamp(22px,5vw,85px) 22px; }
.pomodoro-header,.pomodoro-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pomodoro-brand { display: flex; align-items: center; gap: 12px; font: 600 .67rem/1.5 Montserrat,sans-serif; letter-spacing: .12em; }
.pomodoro-brand-icon { font-size: 1.6rem; color: #e5b252; }
.pomodoro-brand-divider { color: #e5b252; padding: 0 4px; }
.pomodoro-close { color: white; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; min-height: 42px; padding: 10px 16px; font: 500 .76rem Montserrat,sans-serif; cursor: pointer; }
.pomodoro-close:hover { background: rgba(255,255,255,.1); }
.pomodoro-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0 36px; text-align: center; }
.pomodoro-eyebrow { margin: 0 0 12px; color: #e5b252; letter-spacing: .21em; font: 600 .62rem Montserrat,sans-serif; }
.pomodoro-body h2 { font: 300 clamp(2rem,4.8vw,4.35rem)/1.15 Montserrat,sans-serif; letter-spacing: -.055em; margin: 0; }
.pomodoro-body h2 em { color: #e5b252; font-weight: 500; }
.pomodoro-description { margin: 15px 0 26px; color: #c4d0df; font-size: .9rem; }
.pomodoro-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 24px; }
.pomodoro-mode { padding: 10px 16px; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; color: #c6d4e5; font: 500 .75rem Montserrat,sans-serif; cursor: pointer; }
.pomodoro-mode.is-active { border-color: #e5b252; background: #e5b252; color: #0a2a60; }
.pomodoro-clock { position: relative; width: clamp(240px,31vw,325px); aspect-ratio: 1; display: grid; place-items: center; }
.pomodoro-progress { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pomodoro-track,.pomodoro-ring { fill:none; stroke-width:3; }
.pomodoro-track { stroke:rgba(255,255,255,.12); }
.pomodoro-ring { stroke:#e5b252; stroke-linecap:round; stroke-dasharray:917.35; stroke-dashoffset:0; transition: stroke-dashoffset .5s linear; }
.pomodoro-clock-center { position:absolute; inset: 0; display: flex; flex-direction: column; align-items:center; justify-content: center; }
.pomodoro-phase { font-size: .58rem; color:#e5b252; letter-spacing:.16em; font-weight:700; }
.pomodoro-time { font-size:clamp(3.5rem,7vw,5rem); font-weight:300; letter-spacing:-.065em; font-variant-numeric:tabular-nums; line-height:1.3; }
.pomodoro-clock-caption { color:#c4d0df; font-size:.69rem; }
.pomodoro-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin:20px 0 25px; }
.pomodoro-actions button { min-height:46px; border-radius:999px; padding: 13px 21px; font: 600 .78rem Montserrat,sans-serif; cursor:pointer; }
.pomodoro-primary { background: #e5b252; color:#0a2a60; border: 1px solid #e5b252; min-width:165px; }
.pomodoro-primary:hover { background:#f4ca79; }
.pomodoro-secondary { background:transparent; color:white; border:1px solid rgba(255,255,255,.35); }
.pomodoro-secondary:hover { background:rgba(255,255,255,.08); }
.pomodoro-session-info { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:16px; color:#c6d4e5; font:500 .66rem Montserrat,sans-serif; }
.pomodoro-dots { display:flex; gap:6px; }
.pomodoro-dots i { display:block; height:6px; width:6px; border-radius:50%; background:rgba(255,255,255,.27); }
.pomodoro-dots i.is-complete { background:#e5b252; }
.pomodoro-settings { width:min(100%,450px); text-align:left; margin-top:24px; padding:12px 0; border-top:1px solid rgba(255,255,255,.16); color:#c6d4e5; font-size:.76rem; }
.pomodoro-settings summary { cursor:pointer; display:flex; justify-content:space-between; list-style:none; }
.pomodoro-settings summary::-webkit-details-marker { display:none; }
.pomodoro-settings-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.pomodoro-settings-grid label { display:flex; align-items:center; gap:4px; flex-wrap:wrap; color:white; font-size:.67rem; }
.pomodoro-settings-grid input { width:100%; box-sizing:border-box; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.3); padding:9px; border-radius:4px; color:white; font:500 .8rem Montserrat,sans-serif; }
.pomodoro-settings p { font-size:.65rem; color:#c6d4e5; line-height:1.5; }
.pomodoro-footer { border-top:1px solid rgba(255,255,255,.14); padding-top:19px; font-size:.58rem; color:#9eb4ce; letter-spacing:.07em; }
@media (max-width: 800px) { .page-outils .page-scroll-grille {grid-template-columns: 1fr;} .pomodoro-fab { bottom:17px; right:17px; padding:11px 13px; } .pomodoro-fab span { display:none; } .pomodoro-shell {padding:19px;} .pomodoro-brand { font-size:.56rem; } .pomodoro-close span { display:none; } .pomodoro-close {padding:9px 13px;} .pomodoro-body {padding:32px 0 22px;} .pomodoro-description {margin-bottom:22px;} }
@media (max-width: 400px) { .pomodoro-modes {gap:4px;} .pomodoro-mode {padding:9px 11px; font-size:.66rem;} .pomodoro-settings-grid {gap:6px;} .pomodoro-footer {font-size:.5rem;} }


/* Acces Pomodoro depuis le menu principal, entree n° 7. */
.panneau nav button.menu-pomodoro {
  display: flex; align-items: center; gap: 6px; width: 100%;
  height: clamp(52px, 8.6vh, 90px); padding: 0;
  border: 0; background: transparent; color: var(--encre);
  font-family: inherit; text-align: left; cursor: pointer;
}
.panneau nav button.menu-pomodoro b {
  min-width: 1.15em; font-size: clamp(2rem, 4.4vh, 2.8rem);
  font-weight: 300; color: var(--gris); transition: color .2s;
}
.panneau nav button.menu-pomodoro > span {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.panneau nav button.menu-pomodoro .menu-fleche {
  margin-left: auto; flex-shrink: 0; font-size: 1rem;
  font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none;
  transition: transform .22s ease, color .22s ease;
}
.panneau nav button.menu-pomodoro:hover b,
.panneau nav button.menu-pomodoro:focus-visible b { color: var(--bleu); }
.panneau nav button.menu-pomodoro:hover .menu-fleche,
.panneau nav button.menu-pomodoro:focus-visible .menu-fleche {
  color: var(--bleu); transform: translate(3px, -3px);
}
.panneau nav button.menu-pomodoro:focus-visible { outline: 2px solid var(--bleu); outline-offset: -2px; }
/* Les dimensions du bouton sont synchronisees sur celles des autres liens du menu.
   Evite le changement de taille au seuil mobile de 500 px. */
@media (max-width: 820px) {
  .panneau nav button.menu-pomodoro { height: clamp(48px, 8vh, 64px); }
}
@media (max-height: 520px) {
  .panneau nav button.menu-pomodoro { height: 44px; }
  .panneau nav button.menu-pomodoro b { font-size: 1.6rem; }
}


/* Menu Thémis : minuteur dore, numero dore uniquement au survol. */
.panneau nav li.menu-concentration-entree { border-bottom: 0; }
.panneau nav button.menu-pomodoro { position: relative; gap: 6px; }
.panneau nav button.menu-pomodoro > b { color: var(--gris); }
.panneau nav button.menu-pomodoro > .menu-pomodoro-texte {
  display: inline-block;
  letter-spacing: .085em;
}
.panneau nav button.menu-pomodoro > .menu-pomodoro-icone {
  margin-left: auto; flex: 0 0 21px;
  fill: none; stroke: #c7983e; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s ease, transform .35s ease, filter .35s ease;
}
.panneau nav button.menu-pomodoro:hover > .menu-pomodoro-icone,
.panneau nav button.menu-pomodoro:focus-visible > .menu-pomodoro-icone {
  stroke: #b98724; transform: rotate(-10deg) scale(1.06);
  filter: drop-shadow(0 0 4px rgba(229,178,82,.38));
}
.panneau nav button.menu-pomodoro:hover > b,
.panneau nav button.menu-pomodoro:focus-visible > b { color: #b58a34; }



/* Pomodoro - version epuree : le temps est l'element central */
.pomodoro-overlay .pomodoro-brand {
  font: 500 clamp(.9rem, 1.25vw, 1.12rem)/1.4 Montserrat, sans-serif;
  letter-spacing: .015em;
  text-transform: none;
}
.pomodoro-overlay .pomodoro-eyebrow,
.pomodoro-overlay .pomodoro-description,
.pomodoro-overlay .pomodoro-body > h2,
.pomodoro-overlay .pomodoro-phase,
.pomodoro-overlay .pomodoro-clock-caption,
.pomodoro-overlay .pomodoro-session-info {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pomodoro-overlay .pomodoro-body {
  gap: 0;
  padding: 12px 0 18px;
}
.pomodoro-overlay .pomodoro-progress {
  display: none;
}
.pomodoro-overlay .pomodoro-clock {
  width: 100%;
  max-width: calc(100vw - 28px);
  aspect-ratio: auto;
  margin: 0 auto 10px;
}
.pomodoro-overlay .pomodoro-clock-center {
  position: relative;
  inset: auto;
}
.pomodoro-overlay .pomodoro-time {
  display: block;
  width: 100%;
  font-family: "SFMono-Regular", "Roboto Mono", "IBM Plex Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: min(34vw, 53vh);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: .84;
  letter-spacing: -.12em;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 1px rgba(255,255,255,.35), 0 0 18px rgba(229,178,82,.12);
}
.pomodoro-overlay .pomodoro-modes { margin-bottom: 8px; }
.pomodoro-overlay .pomodoro-actions { margin: 6px 0 10px; }
.pomodoro-overlay .pomodoro-settings { margin-top: 10px; }
/* Les trois reperes editoriaux partagent exactement le style du copyright. */
.pomodoro-overlay .pomodoro-brand,
.pomodoro-overlay .pomodoro-footer > span:first-child,
.pomodoro-overlay .pomodoro-footer > span:last-child {
  color: #9eb4ce;
  font: 400 .58rem/1.5 Montserrat, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .pomodoro-overlay .pomodoro-clock {
    max-width: calc(100vw - 20px);
    margin: 0 auto 12px;
  }
  .pomodoro-overlay .pomodoro-time {
    font-size: min(34vw, 42dvh);
    letter-spacing: -.1em;
    line-height: .86;
  }
}

/* Ajustement mobile harmonise sur le copyright. */
@media (max-width: 800px) {
  .pomodoro-overlay .pomodoro-brand,
  .pomodoro-overlay .pomodoro-footer > span:first-child,
  .pomodoro-overlay .pomodoro-footer > span:last-child { font-size: .58rem; }
}
@media (max-width: 400px) {
  .pomodoro-overlay .pomodoro-brand,
  .pomodoro-overlay .pomodoro-footer > span:first-child,
  .pomodoro-overlay .pomodoro-footer > span:last-child { font-size: .5rem; }
}

/* Pomodoro : commandes accessibles meme avec un compteur XXL. */
.pomodoro-overlay .pomodoro-clock,
.pomodoro-overlay .pomodoro-clock-center,
.pomodoro-overlay .pomodoro-time {
  pointer-events: none;
}
.pomodoro-overlay .pomodoro-clock {
  flex: 0 0 auto;
  overflow: visible;
}
.pomodoro-overlay .pomodoro-modes,
.pomodoro-overlay .pomodoro-actions,
.pomodoro-overlay .pomodoro-settings,
.pomodoro-overlay .pomodoro-header,
.pomodoro-overlay .pomodoro-close {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.pomodoro-overlay .pomodoro-time {
  font-size: min(26vw, 37vh);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .pomodoro-overlay .pomodoro-time { font-size: min(26vw, 30dvh); }
}

/* Mode concentration : boutons harmonises avec les CTA du site. */
.pomodoro-overlay .pomodoro-actions button {
  box-sizing: border-box;
  border-radius: 0;
  padding: 15px 36px;
  min-height: 50px;
  min-width: 175px;
  font: 500 .85rem/1.2 Montserrat, sans-serif;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pomodoro-overlay .pomodoro-primary {
  background: #fff;
  color: #092855;
  border: 1px solid #fff;
}
.pomodoro-overlay .pomodoro-primary:hover {
  background: #e5b252;
  color: #092855;
  border-color: #e5b252;
  transform: translateY(-2px);
}
.pomodoro-overlay .pomodoro-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.9);
  color: #fff;
}
.pomodoro-overlay .pomodoro-secondary:hover {
  background: #fff;
  color: #092855;
  transform: translateY(-2px);
}
/* Croix seule, blanche et sans contour. */
.pomodoro-overlay .pomodoro-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 300 2.3rem/1 Arial, sans-serif;
  transition: opacity .2s, transform .2s;
}
.pomodoro-overlay .pomodoro-close:hover {
  background: transparent;
  color: #fff;
  opacity: .72;
  transform: rotate(90deg);
}
@media (max-width: 420px) {
  .pomodoro-overlay .pomodoro-actions button {
    min-width: 0;
    padding: 13px 18px;
    font-size: .7rem;
  }
}

/* Footer: acces direct au Mode concentration, apparence identique aux liens de navigation. */
.site-footer .footer-col button.footer-pomodoro {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font: 500 .73rem/1.35 Montserrat, sans-serif;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color .22s ease;
}
.site-footer .footer-col button.footer-pomodoro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #e5b252;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.site-footer .footer-col button.footer-pomodoro:hover,
.site-footer .footer-col button.footer-pomodoro:focus-visible { color: #fff; }
.site-footer .footer-col button.footer-pomodoro:hover::after,
.site-footer .footer-col button.footer-pomodoro:focus-visible::after { transform: scaleX(1); }
.site-footer .footer-col button.footer-pomodoro:focus-visible { outline: 2px solid #e5b252; outline-offset: 3px; }
.site-footer .footer-depuis { font-weight: 400; opacity: .78; white-space: nowrap; }

/* Correctif tagline homepage : ancrage stable en haut, pres du menu. */
#accueil > .marque {
  position: absolute;
  top: clamp(16px, 3vh, 32px);
  right: clamp(96px, 8vw, 150px);
  left: auto;
  bottom: auto;
  width: max-content;
  max-width: calc(100% - 190px);
  height: 52px;
  display: flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
  text-align: right;
  z-index: 5;
}
@media (max-width: 820px) {
  #accueil > .marque {
    right: 92px;
    max-width: calc(100% - 180px);
  }
}
@media (max-width: 480px) {
  #accueil > .marque {
    left: calc(24px + clamp(53px, 15.4vw, 68px) + 12px);
    right: 78px;
    width: auto;
    max-width: none;
    white-space: normal;
    text-align: left;
  }
}
@media (min-width: 821px) {
  body.sur-accueil.ouvert #accueil > .marque {
    right: calc(var(--panneau-largeur) + clamp(36px, 4vw, 72px));
  }
}

/* Note compacte intégrée au bouton Prendre RDV sur la page d’accueil. */
.visuel#accueil .accueil-actions .bouton-rdv-note { padding-left: 20px; padding-right: 20px; gap: 8px; }
.visuel#accueil .bouton-rdv-evaluation {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.visuel#accueil .bouton-rdv-etoile { color: #c18d2b; font-size: 1em; }
.visuel#accueil .bouton-rdv-note:hover .bouton-rdv-etoile { color: #f0ba52; }
@media (max-width: 560px) {
  .visuel#accueil .accueil-actions .bouton-rdv-note { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .visuel#accueil .bouton-rdv-evaluation { padding-left: 6px; }
}

/* =============================================================
   Grands ecrans (1440p / 4K) — harmonisation proportionnelle
   Reference : rendu MacBook 16 pouces en largeur logique standard.
   La base et les tailles tablettes / mobiles restent inchangees.
   Aucun zoom global : scroll, TidyCal, animations et positions fixes
   conservent leur comportement natif.
   ============================================================= */
@media screen and (min-width: 1920px) and (min-height: 900px) {
  /* Espace utilisable et rythme des sections. */
  .qs-wrap, .page-scroll-wrap, .footer-wrap {
    width: min(100%, 1480px);
  }
  .qui-sommes-nous, .page-scroll {
    padding-left: clamp(140px, 6vw, 170px);
    padding-right: clamp(140px, 6vw, 170px);
  }
  body.ouvert .qui-sommes-nous, body.ouvert .page-scroll {
    padding-left: clamp(70px, 4vw, 100px);
    padding-right: clamp(70px, 4vw, 100px);
  }
  .visuel { padding: clamp(80px, 5vw, 110px); }
  .visuel#accueil h1 {
    font-size: clamp(8.8rem, 6vw, 10.5rem);
    max-width: min(100%, 1350px);
  }
  .visuel#accueil .description { font-size: clamp(1.2rem, .94vw, 1.42rem); }
  .visuel#accueil .accueil-actions .bouton {
    font-size: clamp(.85rem, .7vw, 1rem);
    padding-top: clamp(15px, .85vw, 20px);
    padding-bottom: clamp(15px, .85vw, 20px);
  }
  .visuel#accueil .accueil-actions .bouton-rdv-note {
    padding-left: clamp(20px, 1.1vw, 26px);
    padding-right: clamp(20px, 1.1vw, 26px);
  }
  .visuel#accueil .accueil-actions .accueil-bouton-secondaire {
    padding-left: clamp(46px, 2.5vw, 60px);
    padding-right: clamp(46px, 2.5vw, 60px);
  }

  /* Titres, chapos et cartes conservent leur hierarchie. */
  .qui-sommes-nous h2, .page-scroll h2 {
    font-size: clamp(6rem, 4.6vw, 7.2rem);
  }
  .qs-chapo, .page-scroll-chapo {
    font-size: clamp(1.55rem, 1vw, 1.85rem);
  }
  .qs-texte, .qs-carte p, .page-scroll-carte p {
    font-size: clamp(.98rem, .65vw, 1.15rem);
  }
  .qs-carte h3, .page-scroll-carte h3 {
    font-size: clamp(1.8rem, 1.2vw, 2.25rem);
  }
  .page-scroll-surline { font-size: clamp(.76rem, .48vw, .9rem); }
  .page-scroll-lien { font-size: clamp(.72rem, .48vw, .86rem); }

  .site-footer { padding-left: clamp(140px, 6vw, 170px); padding-right: clamp(140px, 6vw, 170px); }
  body.ouvert .site-footer { padding-left: clamp(70px, 4vw, 100px); padding-right: clamp(70px, 4vw, 100px); }
}

/* Sur les ecrans tres larges, conserver une composition centree plutot
   qu'etirer les textes a l'infini. */
@media screen and (min-width: 3000px) and (min-height: 1400px) {
  .qs-wrap, .page-scroll-wrap, .footer-wrap { width: min(100%, 1640px); }
  .visuel#accueil h1 { font-size: clamp(10.5rem, 4.1vw, 12rem); max-width: 1550px; }
}

/* Deux logos de partenaires strictement cote a cote dans le menu. */
.panneau .partenaires-grille-double .partenaire-pamplemousse { min-width: 0; }
.panneau .partenaires-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.1vw, 18px);
  width: 100%;
  max-width: 100%;
}
.panneau .partenaires-logos > .partenariat-lien {
  min-width: 0;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.panneau .partenaires-logos .partenariat-logo,
.panneau .partenaires-logos .partenariat-logo-lexis {
  display: block;
  width: auto;
  height: 32px;
  max-width: none;
  object-fit: contain;
}
/* Compensation de la marge transparente interne du PNG Pamplemousse. */
.panneau .partenaires-logos .partenariat-logo {
  transform: translateX(-6%);
}
.panneau .partenaires-logos .partenariat-logo-lexis {
  transform: none;
}
@media (max-width: 640px) {
  .panneau .partenaires-logos {
    gap: 10px;
  }
  .panneau .partenaires-logos .partenariat-logo,
  .panneau .partenaires-logos .partenariat-logo-lexis {
    height: 26px;
  }
}

/* Alignement du bloc partenaires et des reseaux sur le meme axe gauche. */
.panneau .partenaire-pamplemousse,
.panneau .partenaires-logos,
.panneau .contact,
.panneau .reseaux {
  margin-left: 0;
  padding-left: 0;
}
.panneau .partenaires-logos {
  justify-content: flex-start;
}
/* La marge transparente integree dans le PNG est compensee :
   le premier pixel du dessin rejoint le bord du libelle. */
.panneau .partenaires-logos .partenariat-logo {
  transform: translateX(-11.1%);
}
/* Les zones cliquables restent larges sans decaler les pictogrammes. */
.panneau .reseaux {
  justify-content: flex-start;
  gap: 12px;
}
.panneau .reseaux a {
  justify-content: flex-start;
  width: 28px;
  min-width: 28px;
}
.panneau .reseaux a:first-child svg { transform: translateX(-2.75px); }
.panneau .reseaux a:nth-child(2) svg { transform: translateX(-4.6px); }


/* Correctif final partenaires : une seule ligne, desktop ET mobile.
   Le dimensionnement se fait sur la largeur disponible du panneau. */
.panneau .partenaires-grille-double,
.panneau .partenaires-grille-double .partenaire-pamplemousse {
  width: 100%;
  min-width: 0;
}
.panneau .partenaires-grille-double .partenaires-logos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  align-items: center;
  justify-content: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.panneau .partenaires-grille-double .partenaires-logos > .partenariat-lien {
  display: flex;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo,
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo {
  transform: translateX(-11.1%);
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
  transform: none;
}
@media (max-width: 820px) {
  .panneau .partenaires-grille-double .partenaires-logos {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
    gap: 9px;
  }
  .panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo,
  .panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
    height: 30px;
  }
}

/* Partenaires : meme largeur pour chaque logo (reference LexisNexis),
   ecart resserre et disposition cote a cote sur toutes les tailles. */
.panneau .partenaires-grille-double .partenaires-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}
.panneau .partenaires-grille-double .partenaires-logos > .partenariat-lien {
  width: 100%;
  min-width: 0;
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo,
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo {
  transform: translateX(-11.1%);
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
  transform: translateX(-7%);
}
@media (max-width: 820px) {
  .panneau .partenaires-grille-double .partenaires-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }
}

/* Correctif 2026-10-20 : partenaires compacts, une seule ligne sur mobile.
   LexisNexis = 90 % de la largeur de reference (Pamplemousse). */
.panneau .partenaires-grille-double .partenaires-logos {
  display: grid;
  grid-template-columns: 140px 126px;
  align-items: center;
  justify-content: start;
  justify-items: start;
  column-gap: 2px;
  width: fit-content;
  max-width: 100%;
}
.panneau .partenaires-grille-double .partenaires-logos > .partenariat-lien {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo,
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo {
  transform: translateX(-11.1%);
}
.panneau .partenaires-grille-double .partenaires-logos img.partenariat-logo-lexis {
  transform: none;
}
@media (max-width: 820px) {
  .panneau .partenaires-grille-double .partenaires-logos {
    grid-template-columns: minmax(0, 110px) minmax(0, 99px);
    column-gap: 2px;
    width: auto;
  }
}
@media (max-width: 360px) {
  .panneau .partenaires-grille-double .partenaires-logos {
    grid-template-columns: minmax(0, 98px) minmax(0, 88px);
    column-gap: 2px;
  }
}

/* Nos drives : titres des deux cartes fixes, en bleu plein (sans effet au survol). */
.page-drives .page-scroll-grille > .page-scroll-carte > h3,
.page-drives .page-scroll-grille > .page-scroll-carte:hover > h3,
.page-drives .page-scroll-grille > .page-scroll-carte:active > h3,
.page-drives .page-scroll-grille > .page-scroll-carte:focus-within > h3 {
  color: #0a2a60;
  opacity: 1;
  transition: none;
}
