/* style.css : soirée dirigeants du 19 novembre 2026 · mobile first.
   Charte déduite du visuel LinkedIn par mesure (docs/04-CHARTE-GRAPHIQUE.md) :
   ciel bleu profond, accent vert menthe, titre blanc très gras, carte blanche. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-400-800.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette : chaque couple texte et fond passe le contraste AA (docs/04). */
  --nuit: #0A1630;
  --ciel-1: #143657;
  --ciel-2: #24527C;
  --ciel-3: #7FA6CD;
  --menthe: #8AECC6;
  --menthe-claire: #B4F4DA;
  --vert: #065A4D;
  --blanc: #FFFFFF;
  --brume: #EEF3F8;
  --texte: #0A1630;
  --texte-doux: #4A5568;
  --texte-ciel: #E3ECF6;
  --trait: #DFE5EE;

  --police: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rayon: 22px;
  --ombre: 0 28px 60px -28px rgba(10, 22, 48, .45), 0 2px 6px rgba(10, 22, 48, .06);
  --chevauchement: 3rem;
  --bandeau: 3.5rem;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bandeau) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 3px;
  border-radius: 6px;
}

.conteneur {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.conteneur--moyen { max-width: 60rem; }
.conteneur--etroit { max-width: 46rem; }

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

.evitement {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--nuit);
  color: var(--blanc);
  border-radius: 10px;
  font-weight: 700;
}
.evitement:focus { top: 1rem; }

.icone {
  width: 1.75rem; height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ── Boutons et liens ─────────────────────────────────────────────── */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  background: var(--menthe);
  color: var(--nuit);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(6, 90, 77, .7);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bouton .icone { width: 1.2em; height: 1.2em; stroke-width: 2.4; transition: transform .2s ease; }
.bouton:hover { background: var(--menthe-claire); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(6, 90, 77, .75); }
.bouton:hover .icone { transform: translateX(3px); }
.bouton--petit {
  min-height: 2.5rem;
  padding: .45rem 1.1rem;
  font-size: .9375rem;
  box-shadow: none;
}

.lien {
  color: var(--vert);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.lien:hover { text-decoration-color: var(--menthe); }

/* ── Bandeau ──────────────────────────────────────────────────────── */
.bandeau {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 41, 67, .94);
  color: var(--blanc);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bandeau__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bandeau);
}
.bandeau__repere {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}
.bandeau__lieu { display: none; }
.bandeau__retour { text-decoration: none; }
.bandeau__retour:hover { text-decoration: underline; }
.bandeau :focus-visible, .section--nuit :focus-visible, .pied :focus-visible, .hero__ciel :focus-visible {
  outline-color: var(--blanc);
}

/* ── Premier écran ────────────────────────────────────────────────── */
.hero__ciel { color: var(--blanc); }

.hero__texte {
  /* Le texte reste sur la partie sombre du ciel : contraste du blanc ≥ 7:1. */
  max-width: none;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, var(--ciel-1) 0%, var(--ciel-2) 100%);
}
.hero__texte > * { max-width: 58rem; margin-inline: auto; }

.surtitre {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--menthe);
}
.surtitre::after {
  content: '';
  display: block;
  width: 3rem; height: 3px;
  margin-top: .9rem;
  border-radius: 3px;
  background: var(--menthe);
}
.hero__texte .surtitre { display: block; }

.hero__titre {
  margin-top: 1.25rem;
  font-size: clamp(2.05rem, 1.15rem + 4.3vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.accent { color: var(--menthe); }
.hero__titre-suite {
  display: block;
  margin-top: .55em;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--texte-ciel);
}

.hero__chapo {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--texte-ciel);
  text-wrap: pretty;
}
.hero__texte .hero__chapo { max-width: 58rem; }

.hero__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.75rem;
}
.hero__note { font-size: .9375rem; font-weight: 600; color: var(--texte-ciel); }

.hero__photo {
  position: relative;
  /* Le ciel continue sous la photo, qui s'y fond par le haut. */
  background: linear-gradient(180deg, var(--ciel-2) 0%, var(--ciel-3) 55%, #9DB8C9 100%);
  overflow: hidden;
}
.hero__image {
  width: 100%;
  height: clamp(20rem, 48vw, 38rem);
  object-fit: cover;
  object-position: 40% 55%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
}
.hero__photo::after {
  /* Voile bas : lisibilité de la ligne des formats posée sur l'herbe. */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(0deg, rgba(10, 22, 48, .82) 0%, rgba(10, 22, 48, .55) 45%, transparent 100%);
  pointer-events: none;
}

.hero__formats {
  position: absolute;
  z-index: 1;
  left: 0; right: 0;
  bottom: calc(var(--chevauchement) + .9rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .75rem;
  padding-inline: 1.25rem;
  font-size: clamp(.9375rem, .85rem + .6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(10, 22, 48, .6);
}
.puce {
  width: .45em; height: .45em;
  border-radius: 50%;
  background: var(--menthe);
}

/* ── Carte d'informations ─────────────────────────────────────────── */
.carte-infos {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--chevauchement));
  padding: 1.5rem 1.25rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.reperes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem .75rem;
}
.repere {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
}
.repere .icone { color: var(--vert); margin-bottom: .35rem; }
.repere__valeur { font-size: 1.0625rem; font-weight: 800; line-height: 1.25; }
.repere__precision { font-size: .9375rem; color: var(--texte-doux); line-height: 1.3; }


.partenaires {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
  text-align: center;
}
.partenaires__texte { font-size: .9375rem; color: var(--texte-doux); }
.partenaires__logos {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  align-items: center;
  justify-items: center;
}
.partenaires__logos li { min-width: 0; max-width: 100%; }
.partenaires__logo {
  /* Hauteur commune, largeur bornée par la cellule : object-fit garde les proportions. */
  height: 2.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--brume { background: var(--brume); }
.section--nuit {
  background: linear-gradient(180deg, var(--ciel-1) 0%, var(--nuit) 100%);
  color: var(--blanc);
}

.section__titre {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.section__titre--petit { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.section__intro {
  margin-top: .9rem;
  font-size: 1.125rem;
  color: var(--texte-doux);
}

/* Programme : une ligne de temps. */
.programme {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
}
.temps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: .3rem;
  padding: 0 0 2rem 2rem;
  border-left: 2px solid var(--trait);
  margin-left: .45rem;
}
.temps:last-child { padding-bottom: 0; border-left-color: transparent; }
.temps::before {
  content: '';
  position: absolute;
  left: -.6rem; top: .3rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--menthe);
  border: 3px solid var(--blanc);
  box-shadow: 0 0 0 2px var(--vert);
}
.temps__heure {
  font-weight: 800;
  color: var(--vert);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.temps__titre {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.temps__corps > p { margin-top: .4rem; color: var(--texte); }
.temps__corps > .temps__intervenants-titre { font-weight: 700; }
.temps__intervenants {
  list-style: none;
  padding: 0;
  margin-top: .5rem;
  display: grid;
  gap: .5rem;
}
.temps__intervenants li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.45;
}
.temps__intervenants li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--menthe);
  box-shadow: 0 0 0 1.5px var(--vert);
}
.temps__corps > .temps__par {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--vert);
}

/* Le mot de Luc. */
.mot {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.mot__photo {
  width: 7rem; height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--blanc), 0 0 0 6px var(--menthe);
}
.mot__texte > p { margin-top: .9rem; }
.mot__texte > .section__titre { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.mot__signature { color: var(--texte-doux); }
.mot__signature strong { color: var(--texte); }

/* Pour qui et infos pratiques. */
.deux-colonnes { display: grid; gap: 3rem; }
.bloc { padding-top: 1.25rem; border-top: 4px solid var(--menthe); }
.bloc > p { margin-top: 1rem; }
.bloc__fort { font-size: 1.1875rem; font-weight: 700; line-height: 1.45; }

.pratique { margin-top: 1rem; }
.pratique__ligne {
  display: grid;
  gap: .1rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--trait);
}
.pratique dt {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.pratique dd { font-weight: 700; }

/* Appel final. */
.final { text-align: center; }
.final__texte {
  max-width: 36rem;
  margin: 1rem auto 2rem;
  font-size: 1.1875rem;
  color: var(--texte-ciel);
}

/* ── Pied de page ─────────────────────────────────────────────────── */
.pied {
  padding-block: 2.5rem;
  background: var(--nuit);
  color: #C9D3E0;
  font-size: .9375rem;
}
.pied__grille { display: grid; gap: .75rem; text-align: center; }
.pied a { color: var(--menthe); text-underline-offset: .2em; }

/* ── Page de texte (mentions légales) ─────────────────────────────── */
.page-texte { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.022em;
}
.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.prose p { margin-top: .9rem; }
.prose a:not(.lien) { color: var(--vert); font-weight: 600; }

/* ── Écrans moyens ────────────────────────────────────────────────── */
@media (min-width: 760px) {
  .conteneur { padding-inline: 2rem; }
  .bandeau__repere { font-size: .9375rem; }
  .bandeau__lieu { display: inline; }
  :root { --chevauchement: 5rem; }
  .hero__photo .hero__image { height: clamp(22rem, 42vw, 38rem); }

  .carte-infos { padding: 2.25rem 2.5rem 2rem; }
  .reperes { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .repere { padding-inline: 1rem; }
  .repere + .repere { border-left: 1px solid var(--trait); }
  .repere__valeur { font-size: 1.1875rem; }

  .partenaires__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0;
  }
  .partenaires__logos li { padding-inline: 2rem; }
  .partenaires__logos li + li { border-left: 1px solid var(--trait); }
  .partenaires__logo { height: 2.75rem; max-width: 11rem; }
  .partenaires__logos li { max-width: none; }

  .temps { grid-template-columns: 6.5rem 1fr; gap: 1.5rem; padding-left: 2.25rem; }
  .temps__heure { font-size: 1.25rem; line-height: 1.3; }
  .temps__titre { font-size: 1.375rem; }

  .mot { grid-template-columns: 10rem 1fr; gap: 2.5rem; padding: 2.75rem; align-items: start; }
  .mot__photo { width: 10rem; height: 10rem; }

  .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .pratique__ligne { grid-template-columns: 7rem 1fr; gap: 1rem; align-items: baseline; }

  .pied__grille { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
}

/* ── Grands écrans ────────────────────────────────────────────────── */
@media (min-width: 1100px) {
  :root { --chevauchement: 6.5rem; }
  .hero__photo .hero__image { height: clamp(28rem, 38vw, 34rem); object-position: 42% 60%; }
}

/* ── Mouvement réduit ─────────────────────────────────────────────── */
/* ⚠️ « transition: none » et jamais une durée de 0,01 ms sur * : WebKit animerait
   la couleur du texte depuis le noir au chargement (BONNES-PRATIQUES §9). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .bouton:hover, .bouton:hover .icone { transform: none; }
}
