/* =========================================================
   R&R Consulting — Feuille de style principale
   Palette : bleu nuit / ivoire / or
   ========================================================= */

:root {
  /* Couleurs de marque (relevées sur le logo officiel)
     Bleu marine #000080 — Or #CC924E */
  --brand-navy: #000080;
  --brand-gold: #CC924E;

  --navy-900: #06062B;
  --navy-800: #0F0F52;
  --navy-700: #1A1A6B;
  --navy-600: #2A2A85;
  --gold-500: #CC924E;
  --gold-400: #DBA968;
  --gold-300: #E9C99A;
  --ivory: #FAF8F4;
  --ivory-dark: #F1ECE3;
  --white: #FFFFFF;
  --ink: #101822;
  --ink-soft: #4A5566;
  --line: rgba(16, 24, 34, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Typographie */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Effets */
  --shadow-sm: 0 1px 2px rgba(6, 6, 43, .06), 0 4px 14px rgba(6, 6, 43, .05);
  --shadow-md: 0 10px 30px rgba(6, 6, 43, .10), 0 2px 8px rgba(6, 6, 43, .06);
  --shadow-lg: 0 24px 60px rgba(6, 6, 43, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.18rem; }
p  { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-800);
  color: var(--white);
  padding: .8rem 1.2rem;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 1rem;
}

.accent { color: var(--gold-400); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(204, 146, 78, .28);
}
.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(204, 146, 78, .36);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .38);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

.btn-sm { padding: .68rem 1.3rem; font-size: .88rem; }
.nav-cta { white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: .8rem 0;
  transition: background-color .35s var(--ease), padding .35s var(--ease),
              box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(15, 15, 82, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: .5rem 0;
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(6, 6, 43, .28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  transition: height .35s var(--ease);
}
.site-header.is-scrolled .brand-logo { height: 46px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  color: rgba(255, 255, 255, .82);
  font-size: .89rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: .3rem;
  /* Sans cela, « Notre approche » se casse en deux lignes dès que la barre est
     chargée — ce qu'a provoqué l'ajout d'une sixième entrée. */
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--white); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  padding: .2rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.lang-switch a,
.lang-switch .lang-current {
  padding: .3rem .6rem;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
}
.lang-switch .lang-current {
  background: var(--gold-500);
  color: var(--navy-900);
}
.lang-switch a {
  color: rgba(255, 255, 255, .7);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-switch a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: -22%;
  right: -12%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, rgba(204, 146, 78, .18) 0%, rgba(204, 146, 78, .05) 42%, transparent 68%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 146, 78, .5), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.2rem; }
.h1-line { display: block; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .78);
  max-width: 60ch;
}
.lead strong { color: var(--white); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.6rem;
}

.hero-proof {
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: .55rem;
}
.hero-proof li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-size: .92rem;
  color: rgba(255, 255, 255, .68);
}
.hero-proof span { color: var(--gold-500); font-weight: 700; }

/* Carte visuelle */
.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line-dark);
}
.hero-card-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(204, 146, 78, .18);
}

.value-chain {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  counter-reset: vc;
}
.value-chain li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
}
.value-chain li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 2.6rem;
  bottom: -.4rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(204, 146, 78, .5), rgba(204, 146, 78, .08));
}
.vc-step {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid rgba(204, 146, 78, .45);
  border-radius: 50%;
  background: rgba(204, 146, 78, .1);
  color: var(--gold-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.vc-label { font-size: .96rem; color: rgba(255, 255, 255, .88); }

.hero-card-foot {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-serif);
  font-size: .98rem;
  font-style: italic;
  color: var(--gold-300);
}

/* ---------- Chiffres ---------- */
.stats {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.stat {
  padding-left: 1.4rem;
  border-left: 1px solid rgba(204, 146, 78, .35);
}
.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: .4rem;
  font-size: .86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--ivory-dark); }
.section-dark {
  background: var(--navy-800);
  color: var(--white);
}
.section-dark .section-lead,
.section-dark p { color: rgba(255, 255, 255, .74); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: .7rem; }
.section-lead {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Approche ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.split-card {
  padding: 2rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.split-card h3 {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: .8rem;
}
.split-num {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-500);
}
.split-card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- Expertises ---------- */
.pillar-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.8rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.pillar-title:first-of-type { margin-top: 0; }
.pillar-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.pillar-tag {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--gold-300);
  padding: .32rem .7rem;
  border-radius: 2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  padding: 1.9rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(204, 146, 78, .5);
  box-shadow: var(--shadow-md);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(204, 146, 78, .5);
  border-radius: var(--radius);
  color: var(--navy-700);
  background: rgba(204, 146, 78, .1);
}
.card-icon svg { width: 23px; height: 23px; }
.card h4 { margin-bottom: .55rem; line-height: 1.3; }
.card p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Méthode ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line-dark);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--gold-500);
}
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1;
  color: rgba(204, 146, 78, .55);
  margin-bottom: .8rem;
}
.step h3 { color: var(--white); margin-bottom: .5rem; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- Secteurs ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.7rem 1.5rem;
  background: var(--ivory);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.sector:hover { background: var(--white); }
.sector strong {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
}
.sector span { font-size: .88rem; color: var(--ink-soft); }

.quote {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 44rem;
  text-align: center;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--navy-800);
}
.quote figcaption {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.about-grid p { color: var(--ink-soft); }

.about-photo { margin: 0; }

.about-photo picture {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 561 / 701;
}
/* Filet doré discret, aux couleurs de la marque */
.about-photo picture::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(204, 146, 78, .45);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-caption {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: 1.1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-500);
}
.about-caption strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.about-caption span {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Parcours du fondateur */
.career {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .55rem;
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
}
.career li {
  padding: .38rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--navy-700);
  white-space: nowrap;
}

.checklist {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-size: .96rem;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold-500);
  background: rgba(204, 146, 78, .35);
  transform: rotate(45deg);
}

.about-panel {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.about-panel-head h3 { color: var(--white); margin: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1.8rem 0 0;
}
.facts > div { padding: 0; }
.facts dt {
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: .3rem;
}
.facts dd {
  margin: 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.contact-info li {
  display: grid;
  gap: .2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-dark);
}
.contact-info li:last-child { border-bottom: 0; padding-bottom: 0; }
.ci-label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}
.contact-info a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
  justify-self: start;
}
.contact-info a:hover { border-bottom-color: var(--gold-500); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.15rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy-800);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .95rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(204, 146, 78, .18);
}
.field input::placeholder,
.field textarea::placeholder { color: #9AA3AF; }

.field .error {
  margin: .35rem 0 0;
  min-height: 1em;
  font-size: .8rem;
  color: #B3261E;
}
.field.has-error input,
.field.has-error textarea { border-color: #B3261E; }

/* Champ leurre anti-robot : retiré du flux sans display:none, que certains
   robots savent détecter. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled] { opacity: .6; cursor: progress; }

.form-note {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-note.is-success { color: #1D6B44; font-weight: 600; }
.form-note.is-error { color: #B3261E; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .68);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
  font-size: .92rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.6rem;
}
.footer-logo {
  display: block;
  width: auto;
  height: 116px;
  margin-bottom: 1.3rem;
}
.footer-brand p { max-width: 30ch; margin: 0; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-nav h5 {
  margin: 0 0 .9rem;
  font-family: var(--font-sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nav a {
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Pages annexes (mentions légales, confidentialité) ---------- */
.page-header {
  background: var(--navy-800);
  color: var(--white);
  padding: clamp(8rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 146, 78, .5), transparent);
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.legal {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem);
}
.legal-inner {
  max-width: 46rem;
  margin-inline: auto;
}
.legal h2 {
  margin: 2.8rem 0 .9rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.1rem;
}
.legal p,
.legal li { color: var(--ink-soft); }
.legal a { color: var(--navy-700); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }

/* Bloc d'identification de l'éditeur */
.legal-card {
  margin: 0 0 1.6rem;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
}
.legal-card dl { margin: 0; display: grid; gap: .7rem; }
.legal-card dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600, #A8763B);
  margin-bottom: .1rem;
}
.legal-card dd { margin: 0; color: var(--ink); }

.legal-date {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ---------- Fiches de formation ---------- */
.formations {
  display: grid;
  gap: 1.6rem;
}

.formation {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.formation:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.formation-tete {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.formation-tete h3 { margin: 0 0 .6rem; }

.formation-num {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-500);
}

.formation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.formation-meta li {
  padding: .28rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy-700);
  /* Pas de nowrap : un libellé long imposerait sa largeur à la carte entière
     et ferait déborder la page sur petit écran. */
  max-width: 100%;
}

.formation-objectif {
  margin: 0 0 1.1rem;
  font-size: .97rem;
  color: var(--ink-soft);
}
.formation-objectif strong { color: var(--navy-800); }

.formation-programme {
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
  display: grid;
  gap: .45rem;
}
.formation-programme li {
  font-size: .95rem;
  color: var(--ink-soft);
}

/* Le livrable est l'argument décisif : il doit se distinguer du programme. */
.formation-livrable {
  margin: 0;
  padding: .9rem 1.1rem;
  background: rgba(204, 146, 78, .09);
  border-radius: var(--radius);
  font-size: .93rem;
  color: var(--ink);
}
.formation-livrable span {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A8763B;
  margin-bottom: .2rem;
}

/* Chiffres de format, sans encadré : ils doivent se lire d'un coup d'œil. */
.stats-clairs {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.stats-clairs > div { display: grid; gap: .5rem; justify-items: center; }
.stats-clairs .chiffre {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1;
  color: var(--gold-500);
}
.stats-clairs .sur { font-size: .5em; color: var(--ink-soft); }
.stats-clairs span:last-child {
  max-width: 22rem;
  font-size: .93rem;
  color: var(--ink-soft);
}

/* Parcours public : le titre et l'objectif de chaque module, sans le détail
   des séances qui reste dans l'espace participants. Une liste ordonnée plutôt
   que des cartes — la progression compte plus que la comparaison. */
.parcours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 56rem;
  border-top: 1px solid var(--line);
}
.parcours li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding: clamp(1.2rem, 2.6vw, 1.7rem) 0;
  border-bottom: 1px solid var(--line);
}
.parcours-num {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1;
  color: var(--gold-500);
}
.parcours h3 {
  margin: 0 0 .35rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.parcours p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Renvoi vers l'espace participants */
.acces-reserve {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: center;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: 4px;
  background: var(--white);
}
.acces-reserve h3 { margin: .3rem 0 .6rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.acces-reserve p { margin: 0; color: var(--ink-soft); max-width: 38rem; }
.acces-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.acces-actions .btn-ghost { border-color: var(--line); color: var(--ink); }

@media (min-width: 860px) {
  .acces-reserve { grid-template-columns: 1fr auto; }
  .acces-actions { flex-direction: column; }
}

.mention-offerte {
  margin: 1.6rem 0 0;
  display: inline-block;
  padding: .4rem .9rem;
  border: 1px solid rgba(204, 146, 78, .5);
  border-radius: 999px;
  background: rgba(204, 146, 78, .14);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* Cases à cocher du formulaire de devis */
.champ-groupe {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem 1rem;
  margin-bottom: 1.15rem;
}
.champ-groupe legend {
  padding: 0 .4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy-800);
}
.case {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem 0;
  font-size: .92rem;
  color: var(--ink);
  cursor: pointer;
}
.case input { width: 16px; height: 16px; accent-color: var(--gold-500); }

@media (min-width: 760px) {
  .stats-clairs { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .formations { grid-template-columns: repeat(3, 1fr); }
  /* Cinq modules : trois puis deux, plutôt qu'une rangée orpheline. */
  .formations-5 { grid-template-columns: repeat(6, 1fr); }
  .formations-5 > .formation { grid-column: span 2; }
  .formations-5 > .formation:nth-child(4) { grid-column: 2 / span 2; }
  .formations-5 > .formation:nth-child(5) { grid-column: 4 / span 2; }
  .formation { display: flex; flex-direction: column; }
  .formation-livrable { margin-top: auto; }
}

/* ---------- Espace membres ---------- */
.badge-membre {
  padding: .35rem .8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}

.ressources {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .5rem;
}
.ressources li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  font-size: .92rem;
}
.ressources a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 146, 78, .5);
}
.ressources a:hover { border-bottom-color: var(--gold-500); }
.ressources span { font-size: .8rem; color: var(--ink-soft); }
.ressources em { font-style: normal; font-size: .88rem; color: var(--ink-soft); }
.ressources-larges { border-top: 0; }
.ressources-larges li {
  padding: .9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Liste des comptes, en administration */
/* Grille de l'administration.
   Elle ne réutilise pas .about-grid, dont le align-items:center est fait pour
   caler une photo au milieu d'un texte : appliqué ici, il centrait la liste
   des comptes face au formulaire et les deux titres ne commençaient pas à la
   même hauteur. Les deux colonnes sont indépendantes, elles partent du haut. */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .admin-grid { grid-template-columns: minmax(19rem, .85fr) minmax(0, 1.15fr); }
}

/* =========================================================
   Sur le terrain — galerie publique
   ========================================================= */

.interventions { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }

.intervention { border-top: 1px solid var(--line); padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.intervention:first-child { border-top: 0; padding-top: 0; }

.intervention-tete h2 {
  margin: 0 0 .4rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}
.intervention-ou {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A8763B;
}
.intervention-contexte {
  margin: 1.2rem 0 0;
  max-width: 46rem;
  color: var(--ink-soft);
}

/* Renvoi vers une publication LinkedIn : une preuve extérieure, datée et
   signée. Discrète — c'est une pièce justificative, pas un appel à l'action. */
.intervention-preuves {
  margin: clamp(1.2rem, 2.4vw, 1.6rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
}
.lien-linkedin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lien-linkedin:hover,
.lien-linkedin:focus-visible {
  border-color: var(--navy-800);
  background: var(--white);
  color: var(--navy-800);
}
/* Le sigle plutôt qu'un logo importé : aucune image à charger, aucune marque
   déformée, et le lien reste lisible si la police de rendu change. */
.lien-linkedin__in {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 3px;
  background: #0A66C2;
  color: #FFFFFF;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}

/* Grille de médias. auto-fill plutôt qu'un nombre fixe de colonnes : une
   intervention illustrée d'une seule photo ne doit pas laisser deux trous. */
.galerie {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.8rem, 1.6vw, 1.2rem);
}

.media { margin: 0; }

.media-ouvrir,
.media-lire {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory-dark);
  cursor: pointer;
  /* Toutes les vignettes au même format : sans cela, un portrait glissé entre
     deux paysages déchire l'alignement de la grille. */
  aspect-ratio: 4 / 3;
}
.media-ouvrir img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.media-ouvrir:hover img,
.media-ouvrir:focus-visible img { transform: scale(1.04); }

.media figcaption {
  margin-top: .5rem;
  font-size: .86rem;
  color: var(--ink-soft);
}

/* Vidéo : une pastille avant le clic, le lecteur seulement après.
   Rien n'est demandé à YouTube tant que le visiteur n'a rien demandé. */
.media-lire {
  display: grid;
  place-items: center;
  background: var(--navy-800);
}
.media-play {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--gold-500);
  position: relative;
  transition: transform .3s var(--ease);
}
.media-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: .55rem 0 .55rem .9rem;
  border-color: transparent transparent transparent var(--navy-900);
}
.media-lire:hover .media-play,
.media-lire:focus-visible .media-play { transform: scale(1.1); }

.media-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}

/* Visionneuse */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 6, 43, .92);
}
.visionneuse[hidden] { display: none; }
.visionneuse figure { margin: 0; max-width: 100%; max-height: 100%; }
.visionneuse img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius);
}
.visionneuse figcaption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: .92rem;
}
.visionneuse-fermer {
  position: absolute;
  top: clamp(.6rem, 2vw, 1.4rem);
  right: clamp(.6rem, 2vw, 1.4rem);
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.visionneuse-fermer:hover { background: rgba(255, 255, 255, .1); }

/* Intertitre dans le bloc de rattachement d'un compte : sans lui, les cases
   « formations » et « sessions » se lisent comme une seule liste. */
.rattachement-titre {
  display: block;
  width: 100%;
  margin: .6rem 0 .2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rattachement-titre:first-child { margin-top: 0; }

/* ---------- Éditeur d'évaluations ---------- */
.filtres-eval {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 0 1.2rem;
}
.filtres-eval select { max-width: 15rem; }

/* Le changement d'état se fait dans la liste : ouvrir la fiche pour publier
   un quiz relu la veille serait un détour sans objet. */
.select-etat {
  padding: .25rem .5rem;
  font-size: .82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

/* Un choix et ses réglages, dans le formulaire de question. Le cadre les
   tient ensemble : sans lui, on ne sait plus quelle case « bonne réponse »
   appartient à quel libellé. */
.choix-ligne {
  padding: .9rem 1rem .4rem;
  margin-bottom: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.choix-reglages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.2rem;
  margin-bottom: .8rem;
}
.choix-reglages .case { margin: 0; }

/* Glisser-déposer des questions. Le curseur et le liseré sont les seuls
   indices qu'une ligne se déplace : sans eux, personne n'essaie. */
.est-deplacable { cursor: grab; }
.est-deplacable:active { cursor: grabbing; }
.en-deplacement {
  opacity: .45;
  outline: 2px dashed var(--gold-500);
  outline-offset: -2px;
}
/* Pendant l'envoi, la liste cesse de répondre : un second glisser partirait
   sur un ordre que le serveur est déjà en train de réécrire. */
.tableau-membres.en-cours { opacity: .6; pointer-events: none; }

/* ---------- Aperçu ---------- */
.apercu-langues {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 0 0 1.6rem;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.apercu {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.apercu > h2 { margin-top: 0; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.apercu-intro { color: var(--ink-soft); max-width: 40rem; }
.apercu-question {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: clamp(1.2rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--line);
}
.apercu-num {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.apercu-num span { color: var(--ink-soft); }
.apercu-question h3 { margin: 0 0 .8rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.apercu-choix {
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}
.apercu-choix li {
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.apercu-libre {
  margin: .8rem 0 0;
  padding: 1.4rem .9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Catalogue de formations, dans l'espace ---------- */
/* auto-fit plutôt qu'un nombre fixe : à deux formations les cartes remplissent
   la largeur, à cinq elles se rangent d'elles-mêmes. */
.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}
.catalogue-carte {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
/* Fermée mais lisible : une formation qu'on n'a pas achetée doit rester
   attirante, sinon autant ne pas la montrer. Le grisé porte sur l'état, pas
   sur le texte de vente. */
.catalogue-carte.est-verrouillee { background: var(--ivory); }
.catalogue-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.catalogue-carte h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}
.catalogue-promesse { margin: 0 0 .9rem; color: var(--ink-soft); }
.catalogue-carte .detail { display: block; }
/* Pousse le bouton en bas : deux cartes de hauteurs de texte différentes
   gardent leurs actions alignées. */
.catalogue-action { margin: auto 0 0; padding-top: 1.4rem; }
.catalogue-refus {
  margin: 1.2rem 0 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--gold-500);
  background: var(--white);
  font-size: .92rem;
  color: var(--ink-soft);
}
.catalogue-refus strong { color: var(--ink); }

/* Mention du partenaire d'une formation. Le logo est déposé à la main dans
   assets/img/partenaires/ ; à défaut, le nom s'affiche en toutes lettres. */
.partenaire-bandeau {
  display: flex;
  align-items: center;
  /* Sur un écran étroit, le logo passe sous la mention plutôt que de la
     casser en trois lignes ou de se comprimer contre le bord. */
  flex-wrap: wrap;
  gap: .6rem .8rem;
  margin: 0 0 clamp(1.6rem, 3vw, 2.2rem);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* Un seul nombre à régler si le logo paraît trop petit ou trop imposant.
   Les logos de kit de marque embarquent souvent une large zone de respiration
   dans leur viewBox : le signe visible n'occupe alors qu'une fraction de la
   boîte, et il faut une boîte généreuse pour qu'il se lise. */
.partenaire-bandeau { --logo-partenaire: 3.4rem; }
.partenaire-bandeau > span { white-space: nowrap; }
.partenaire-bandeau img,
.partenaire-bandeau object {
  height: var(--logo-partenaire);
  width: auto;
  /* Le rapport du SVG est conservé et le reste de la boîte laissé vide :
     un logo très allongé ne repoussera pas la mention hors de l'écran. */
  max-width: min(15rem, 100%);
}
/* Le logo n'est pas cliquable : sans cela, object intercepterait le pointeur
   et la sélection du texte s'arrêterait net à son bord. */
.partenaire-bandeau object { pointer-events: none; }
.partenaire-bandeau strong {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* Bloc de saisie anglaise, dans la fiche. Encadré et titré : sans séparation
   visible, on ne sait plus lequel des deux titres on est en train de remplir. */
.bloc-anglais {
  margin: 1.6rem 0 1.4rem;
  padding: 1.1rem 1.1rem .2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  background: var(--ivory);
}
.bloc-anglais__titre {
  margin: 0 0 .3rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  /* Pas d'or sur l'ivoire : le contraste tomberait sous le seuil lisible pour
     un texte de cette taille. Le liseré doré porte déjà l'accent. */
  color: var(--ink-soft);
}
.bloc-anglais .field:last-of-type { margin-bottom: 1.1rem; }

/* Repli de correction des légendes, sous chaque média : présent mais discret,
   pour ne pas transformer la liste en formulaire géant. */
.traduction {
  margin: 0 0 1.4rem;
  padding: .8rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}
.traduction > summary {
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  list-style-position: inside;
}
.traduction > summary:hover { color: var(--ink); }
.traduction[open] > summary { margin-bottom: .4rem; }
.traduction .field:last-child { margin-bottom: 0; }

/* Médias dans l'administration */
.medias-admin { display: grid; gap: .8rem; }
.media-admin {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.media-admin img {
  width: 5.5rem;
  height: 4.1rem;
  object-fit: cover;
  border-radius: 3px;
}
.media-video-vide {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 4.1rem;
  border-radius: 3px;
  background: var(--navy-800);
  color: var(--gold-400);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Rattachement d'un compte à ses sessions, dans la liste des membres.
   Compact volontairement : c'est un réglage secondaire, il ne doit pas voler
   la vedette au nom et à l'adresse du participant. */
.rattachement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
}
.rattachement .case { margin: 0; font-size: .84rem; }
.rattachement .lien-action { margin-left: auto; }

.tableau-membres { display: grid; gap: .8rem; }
.ligne-membre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ligne-membre.inactif { opacity: .55; }
.ligne-membre .detail { font-size: .84rem; color: var(--ink-soft); }

.puce {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: rgba(204, 146, 78, .18);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8A5F2B;
  vertical-align: middle;
}
.puce-off { background: rgba(179, 38, 30, .12); color: #B3261E; }
.puce-att { background: rgba(26, 26, 107, .1); color: var(--navy-700); }
/* Une évaluation en ligne se distingue d'un brouillon au premier regard :
   publier par erreur et ne pas s'en apercevoir coûte plus cher qu'une teinte
   de plus dans la feuille. */
.puce-on  { background: rgba(20, 108, 67, .12); color: #14663F; }

.actions-membre { display: grid; gap: .3rem; justify-items: end; }
.lien-action {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: .82rem;
  color: var(--navy-700);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.lien-action:hover { color: var(--gold-500); }

@media (max-width: 620px) {
  .ligne-membre { flex-direction: column; }
  .actions-membre { justify-items: start; }
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .facts { grid-template-columns: 1fr; gap: 1.4rem; }
  .facts > div { padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
  .facts > div:first-child { padding-top: 0; border-top: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Bascule vers le menu déroulant. Le seuil est à 1024px et non 860px :
   avec le sélecteur de langue, la barre se cassait en deux lignes entre
   les deux valeurs. Le script utilise le même seuil. */
@media (max-width: 1024px) {
  html { scroll-padding-top: 80px; }

  .nav-toggle { display: block; }

  .brand-logo,
  .site-header.is-scrolled .brand-logo { height: 48px; }

  /* La marque et le bouton restent visibles par-dessus le panneau déroulant. */
  .brand,
  .nav-toggle { position: relative; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6rem var(--gutter) 2rem;
    background: var(--navy-800);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s var(--ease);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-dark); }
  .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
  }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 1rem; }

  .lang-switch {
    align-self: flex-start;
    margin-top: 1.6rem;
  }

  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .hero-bg, .contact-form { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
