/* ==========================================================================
   OFPAN — Organisme de formation animalier
   Thème Luxe / Chic — Glassmorphism — Animations fluides
   Palette : bleu #3c6ca8 (primaire) + doré (secondaire)
   ========================================================================== */

:root {
  --primary: #3c6ca8;
  --primary-dark: #2b5183;
  --primary-light: #5b89c4;
  --gold: #c9a24b;
  --gold-light: #e0c47a;
  --ink: #0e1a2b;
  --ink-soft: #16263d;
  --slate: #4a5b73;
  --muted: #7c8aa0;
  --cream: #f7f9fc;
  --white: #ffffff;
  --line: rgba(60,108,168,0.14);
  --glass-bg: rgba(255,255,255,0.08);
  --glass-brd: rgba(255,255,255,0.18);
  --shadow-sm: 0 6px 20px rgba(14,26,43,0.08);
  --shadow-md: 0 18px 50px rgba(14,26,43,0.12);
  --shadow-lg: 0 30px 80px rgba(14,26,43,0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h: 84px;
  --topbar-h: 38px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .3px;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--slate); }

.wrap { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: #e9eef6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #b9c6d8; }

/* ---------------- Titres de section ---------------- */
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: 1.02rem; }
.rule {
  width: 70px; height: 2px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head.left .rule { margin-left: 0; }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: .86rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn--lg { padding: 13px 30px; font-size: .88rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(201,162,75,0.32);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(201,162,75,0.44); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 34px rgba(60,108,168,0.32);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(14,26,43,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 42px; height: 42px; flex: 0 0 auto; }
/* Logo image : pastille claire arrondie, nette et lisible sur le header comme sur le footer */
.logo img {
  width: 48px; height: 48px; flex: 0 0 auto;
  padding: 4px; border-radius: 12px;
  background: #fff; object-fit: contain;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
  font-family: var(--font-title);
  font-size: 1.42rem; font-weight: 700; letter-spacing: 2.5px; color: #fff;
}
.logo-text span { font-size: .6rem; letter-spacing: 3.4px; text-transform: uppercase; color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 500; color: rgba(255,255,255,0.9); position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta { display: inline-flex; }

.burger {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; z-index: 1002;
}
.burger span {
  display: block; width: 27px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(14,26,43,0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-title); font-size: 1.7rem; color: #fff; letter-spacing: 1px;
  padding: 10px 0; opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .26s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .32s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .38s; }
.mobile-menu .mm-cta { margin-top: 24px; font-size: .8rem; letter-spacing: 2px; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(14,26,43,0.92) 0%, rgba(14,26,43,0.62) 48%, rgba(43,81,131,0.55) 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p.lead {
  color: rgba(255,255,255,0.86); font-size: 1.12rem; max-width: 620px; margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 54px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: #fff;
}
.hero-badge svg { width: 17px; height: 17px; color: var(--gold-light); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.scroll-cue i {
  display: block; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2s infinite;
}
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------------- Grilles / cartes ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 38px 32px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.4); }
.card .ico {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(60,108,168,0.12), rgba(201,162,75,0.14));
  color: var(--primary); margin-bottom: 22px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .95rem; }

/* Carte formation (hover 3D) */
.fcard {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.fcard:hover { transform: perspective(1100px) rotateX(3deg) rotateY(-4deg) translateY(-10px); box-shadow: var(--shadow-lg); }
.fcard-img { position: relative; height: 230px; overflow: hidden; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.fcard:hover .fcard-img img { transform: scale(1.08); }
.fcard-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 15px; border-radius: 6px; font-size: .66rem; letter-spacing: 1.8px;
  text-transform: uppercase; font-weight: 600;
  background: rgba(14,26,43,0.72); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fcard-tag.gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--ink); border-color: transparent; }
.fcard-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.fcard-body h3 { margin-bottom: 12px; }
.fcard-body p { font-size: .93rem; margin-bottom: 20px; }
.fcard-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; font-size: .78rem; color: var(--muted); }
.fcard-meta span { display: inline-flex; align-items: center; gap: 7px; }
.fcard-meta svg { width: 15px; height: 15px; color: var(--gold); }
.fcard-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------------- Réassurance ---------------- */
.reassure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reassure-item {
  text-align: center; padding: 34px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.reassure-item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); border-color: rgba(201,162,75,0.45); }
.reassure-item svg { width: 42px; height: 42px; color: var(--gold-light); margin-bottom: 18px; stroke-width: 1.4; }
.reassure-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.reassure-item p { font-size: .84rem; color: #adbccf; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 32px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-title); font-size: clamp(2.1rem,4vw,2.9rem); color: var(--primary); line-height: 1.05; margin-bottom: 10px; }
/* Le libellé est le <span> directement dans .stat ; le chiffre vit dans <strong>.
   Sans le « > », le grand chiffre héritait du style du libellé (petit et grisé). */
.stat > span { font-size: .78rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
/* Chiffre écrit en toutes lettres depuis l'admin (« En cours d'actualisation ») :
   on réduit la taille pour qu'il tienne dans la carte au lieu de déborder. */
.stat strong .stat-long { font-size: clamp(.95rem, 1.7vw, 1.15rem); line-height: 1.3; letter-spacing: .2px; }

/* ---------------- Split image / texte ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.split-img::after {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid rgba(201,162,75,0.5); border-radius: var(--radius); pointer-events: none;
  transform: translate(14px, 14px);
}
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 18px; }
.checklist { margin: 26px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: .96rem; color: var(--slate); }
.checklist li svg { width: 21px; height: 21px; color: var(--gold); flex: 0 0 auto; margin-top: 3px; }

/* ---------------- Financement / steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 40px 26px 32px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-title); font-size: 2.4rem; font-weight: 700;
  color: rgba(60,108,168,0.16); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { font-size: .9rem; }

/* ---------------- Témoignages ---------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote .mark { font-family: var(--font-title); font-size: 4.4rem; line-height: .6; color: rgba(201,162,75,0.28); }
.quote p { font-size: .96rem; font-style: italic; color: var(--slate); margin: 10px 0 22px; }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .who .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-title); font-size: 1.2rem; }
/* Photo du stagiaire à la place de l'initiale */
.quote .who img.av {
  flex: 0 0 auto; padding: 0; object-fit: cover; object-position: center top;
  border: 2px solid rgba(201,162,75,0.45); background: var(--cream);
  box-shadow: 0 4px 14px rgba(14,26,43,0.14);
}
.quote .who b { display: block; font-size: .92rem; color: var(--ink); }
.quote .who small { font-size: .76rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------------- CTA band ---------------- */
.cta-band {
  position: relative; border-radius: 26px; overflow: hidden; padding: 76px 60px; text-align: center;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #4d7cb8);
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(201,162,75,0.35), transparent 52%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 620px; margin: 0 auto 34px; }

/* ---------------- Page hero (pages internes) ---------------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 110px) 0 90px;
  background-color: var(--ink); background-size: cover; background-position: center;
  text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,43,0.88), rgba(14,26,43,0.72)); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.crumb { font-size: .74rem; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.crumb a:hover { color: var(--gold-light); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.ci-item {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px;
  background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ci-item .ico { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(60,108,168,0.1); color: var(--primary); }
.ci-item .ico svg { width: 21px; height: 21px; }
.ci-item h3 { font-size: .98rem; margin-bottom: 4px; }
.ci-item p, .ci-item a { font-size: .92rem; color: var(--slate); }
.ci-item a:hover { color: var(--primary); }

.form-card { background: var(--white); border-radius: var(--radius); padding: 42px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .74rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); font-size: .94rem; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(60,108,168,0.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.form-alert { padding: 14px 18px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; display: none; }
.form-alert.ok { display: block; background: rgba(46,160,94,0.1); color: #1f7a46; border: 1px solid rgba(46,160,94,0.3); }
.form-alert.ko { display: block; background: rgba(201,74,74,0.1); color: #a33232; border: 1px solid rgba(201,74,74,0.3); }

.map-wrap { margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------------- Tableau tarifs ---------------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.price-table th { background: rgba(60,108,168,0.07); font-family: var(--font-title); font-size: 1.02rem; letter-spacing: .5px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { font-weight: 600; color: var(--primary); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #a9b7ca; padding: 90px 0 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,162,75,0.5), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
.footer-brand .logo { margin-bottom: 22px; }
.footer-brand p { color: #8896ab; font-size: .92rem; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: 2.6px; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: .92rem; color: #97a6ba; transition: color .3s, padding-left .3s; }
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact div { display: flex; gap: 12px; font-size: .92rem; color: #97a6ba; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: 0 0 auto; margin-top: 4px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #cbd6e4;
  transition: background .3s, transform .3s, color .3s, border-color .3s;
}
.socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-4px); border-color: transparent; }
.socials a svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 66px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: #78879c; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------------- Reveal animations ---------------- */
/* Sans JS, le contenu reste visible ; les animations ne s'activent qu'avec .js */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* Bannière cookies */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 950;
  background: rgba(14,26,43,0.96); color: #d4deea; border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px; padding: 20px 26px; display: none;
  align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); max-width: 1160px; margin: 0 auto;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { color: #b6c3d5; font-size: .88rem; margin: 0; }
.cookie-bar a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie-actions button { padding: 10px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.28); background: transparent; color: #fff; font-size: .74rem; letter-spacing: 1.6px; text-transform: uppercase; transition: background .3s; }
.cookie-actions .acc { background: var(--gold); color: var(--ink); border-color: transparent; font-weight: 600; }
.cookie-actions .acc:hover { background: var(--gold-light); }
.cookie-actions button:hover { background: rgba(255,255,255,0.1); }

/* Bouton retour en haut */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 700;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s, transform .4s, visibility .4s, background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--ink); }
.to-top svg { width: 20px; height: 20px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .grid-4, .reassure, .stats, .steps { grid-template-columns: 1fr 1fr; }
  .quotes, .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .section { padding: 72px 0; }
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .logo-text strong { font-size: 1.2rem; letter-spacing: 2px; }
  .logo-text span { font-size: .54rem; letter-spacing: 2.6px; }
  .logo svg { width: 36px; height: 36px; }
  .logo img { width: 40px; height: 40px; padding: 3px; border-radius: 10px; }
  .logo-text strong, .logo-text span { white-space: nowrap; }

  .hero {
    padding-top: calc(var(--header-h) + 40px); min-height: auto;
    /* téléphone : version verticale dédiée pour garder la personne, le chien et le chat */
    background-image: url('../images/hero-accueil-mobile.jpg') !important;
    background-position: 50% 30%;
    background-repeat: no-repeat;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(14,26,43,0.86) 0%, rgba(14,26,43,0.58) 46%, rgba(14,26,43,0.90) 100%);
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 10px; }
  .hero-badge { font-size: .68rem; padding: 9px 14px; }
  .scroll-cue { display: none; }

  .grid-4, .reassure, .stats, .steps, .grid-3, .quotes, .grid-2 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .split-img img { min-height: 280px; }
  .split-img::after { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .cta-band { padding: 52px 26px; }
  .cta-band .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }

  .page-hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 62px; }
  .price-table { display: block; overflow-x: auto; }
  .map-wrap iframe { height: 300px; }

  .cookie-bar { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: flex-start; padding: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ==========================================================================
   COMPOSANTS OFPAN — glassmorphism, packs, stages, FAQ, admin
   ========================================================================== */

/* Sections glass (verre) sur fond sombre */
.glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.section--glass-dark {
  background:
    radial-gradient(circle at 12% 8%, rgba(60,108,168,0.5), transparent 55%),
    radial-gradient(circle at 88% 92%, rgba(201,162,75,0.24), transparent 52%),
    var(--ink);
  color: #e9eef6;
}
.section--glass-dark h2, .section--glass-dark h3 { color: #fff; }
.section--glass-dark p { color: #b9c6d8; }

/* ---- Bandeau confiance / chiffres clés ---- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.trust-item { padding: 34px 22px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; font-family: var(--font-title); font-size: clamp(1.7rem,3.2vw,2.3rem); color: var(--gold-light); line-height: 1; margin-bottom: 8px; }
.trust-item span { font-size: .72rem; letter-spacing: 1.7px; text-transform: uppercase; color: #a9b7ca; }

/* ---- Packs Alliance Animal Pro ---- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pack {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.pack:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,75,0.45); }
.pack--featured { border-color: rgba(201,162,75,0.65); box-shadow: 0 24px 60px rgba(60,108,168,0.18); }
.pack-flag {
  position: absolute; top: 0; right: 0; z-index: 3;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--ink);
  font-size: .62rem; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700;
  padding: 7px 16px; border-radius: 0 0 0 8px;
}
.pack-img { position: relative; height: 190px; overflow: hidden; background: var(--ink); }
.pack-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pack:hover .pack-img img { transform: scale(1.07); }
.pack-head { padding: 28px 28px 0; }
.pack-head small { display: block; font-size: .68rem; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.pack-head h3 { font-size: 1.42rem; margin-bottom: 10px; }
.pack-head p { font-size: .92rem; }
.pack-price { padding: 20px 28px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.pack-price b { font-family: var(--font-title); font-size: 2.5rem; line-height: 1; color: var(--primary); font-weight: 700; }
.pack-price span { font-size: .8rem; color: var(--muted); padding-bottom: 5px; }
.pack-body { padding: 24px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.pack-body .checklist { margin: 0 0 24px; }
.pack-body .checklist li { font-size: .9rem; }
.pack-body .btn { margin-top: auto; width: 100%; }

/* ---- Stages terrain ---- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stage {
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.stage:hover { transform: perspective(1000px) rotateX(2.5deg) translateY(-8px); border-color: rgba(201,162,75,0.5); background: rgba(255,255,255,0.09); }
.stage-img { height: 180px; overflow: hidden; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; }
.stage-body { padding: 26px 26px 30px; }
.stage-body h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.stage-body p { color: #adbccf; font-size: .9rem; }
.stage-days {
  display: inline-block; margin-bottom: 14px; padding: 6px 13px; border-radius: 6px;
  background: rgba(201,162,75,0.16); border: 1px solid rgba(201,162,75,0.4);
  color: var(--gold-light); font-size: .66rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
}
/* Mention « inclus dans Alliance Animal Pro » sur chaque stage */
.stage-incl {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px 8px; padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22);
  color: #dbe4ef; font-size: .64rem; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 600;
}
.stage-incl svg { width: 12px; height: 12px; color: var(--gold-light); flex: 0 0 auto; }
/* Encadré explicatif sous le titre de la section stages */
.stage-note {
  max-width: 820px; margin: 0 auto 38px; text-align: center;
  padding: 20px 26px; border-radius: var(--radius-sm);
  background: rgba(201,162,75,0.1); border: 1px solid rgba(201,162,75,0.34);
}
.stage-note p { font-size: .93rem; color: #dbe4ef; margin: 0; }
.stage-note strong { color: #fff; }
.stage-note a { color: var(--gold-light); text-decoration: underline; }
.stage-note a:hover { color: #fff; }
@media (max-width: 768px) {
  .stage-incl { display: flex; margin-left: 0; }
  .stage-note { padding: 18px 20px; text-align: left; }
}

/* ---- FAQ accordéon ---- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: rgba(60,108,168,0.38); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 26px; padding-right: 60px;
  font-family: var(--font-title); font-size: 1.1rem; font-weight: 600; color: var(--ink);
  position: relative; transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; color: var(--primary);
  transition: transform .35s var(--ease);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--primary); }
.faq-item .faq-a { padding: 0 26px 24px; }
.faq-item .faq-a p { font-size: .94rem; }
.faq-item .faq-a ul { display: grid; gap: 8px; margin-top: 10px; }
.faq-item .faq-a li { font-size: .92rem; color: var(--slate); padding-left: 16px; position: relative; }
.faq-item .faq-a li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---- Encadré obligation légale ---- */
.law-box {
  border-left: 3px solid var(--gold); background: rgba(201,162,75,0.07);
  padding: 26px 30px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.law-box h3 { font-size: 1.12rem; margin-bottom: 10px; }
.law-box p { font-size: .94rem; }

/* ---- Liste à puces générique ---- */
.list { display: grid; gap: 12px; }
.list li { display: flex; gap: 13px; align-items: flex-start; font-size: .95rem; color: var(--slate); }
.list li svg { width: 19px; height: 19px; color: var(--gold); flex: 0 0 auto; margin-top: 4px; }

/* ---- Tableaux responsives (transformation en cartes sur mobile) ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rwd-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.rwd-table th, .rwd-table td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.rwd-table th { background: rgba(60,108,168,0.07); font-family: var(--font-title); font-size: 1rem; }
.rwd-table tr:last-child td { border-bottom: none; }

/* ---- Image certificat Qualiopi ---- */
.qualiopi-figure { max-width: 420px; margin: 0 auto; background: var(--white); padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.qualiopi-figure img { width: 100%; border-radius: var(--radius-sm); }

/* ---- Grille de cartes contact rapide ---- */
.quick-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-contact a {
  display: flex; gap: 15px; align-items: center; padding: 22px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .3s;
}
.quick-contact a:hover { transform: translateY(-5px); border-color: rgba(201,162,75,0.5); }
.quick-contact svg { width: 24px; height: 24px; color: var(--primary); flex: 0 0 auto; }
.quick-contact b { display: block; font-size: .94rem; color: var(--ink); }
.quick-contact small { font-size: .8rem; color: var(--muted); }

/* ---- Espace admin ---- */
.admin-body { background: #eef2f8; min-height: 100vh; padding: 40px 0 80px; }
.admin-head { background: var(--ink); color: #fff; padding: 22px 0; margin-bottom: 34px; }
.admin-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.admin-head h1 { color: #fff; font-size: 1.5rem; }
.admin-head p { color: #9fb0c6; font-size: .84rem; margin: 0; }
.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; }
.admin-list { display: grid; gap: 16px; margin-top: 22px; }
.admin-msg { border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 20px 22px; background: var(--cream); }
.admin-msg header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-msg header b { font-size: .98rem; color: var(--ink); }
.admin-msg header time { font-size: .78rem; color: var(--muted); }
.admin-msg .meta { font-size: .85rem; color: var(--primary); margin-bottom: 8px; word-break: break-word; }
.admin-msg p { font-size: .93rem; white-space: pre-wrap; }
.admin-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-tabs button {
  padding: 10px 20px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white);
  font-size: .82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate);
  transition: background .3s, color .3s, border-color .3s;
}
.admin-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: .7rem; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(60,108,168,0.12); color: var(--primary); font-weight: 600; }
.login-card { max-width: 430px; margin: 8vh auto 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px 34px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.login-card > p { font-size: .9rem; margin-bottom: 26px; }

/* ---- Bloc « Logo du site » de l'administration ---- */
.logo-current {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 26px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.logo-current img {
  width: 84px; height: 84px; flex: 0 0 auto; padding: 6px;
  background: #fff; border-radius: 14px; object-fit: contain;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.logo-current b { display: block; font-size: .96rem; color: var(--ink); margin-bottom: 4px; }
.logo-current p { font-size: .86rem; margin: 0; }
.logo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.field input[type="file"] {
  padding: 12px 14px; background: #fff; cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; border: 1.5px solid var(--primary);
  border-radius: 8px; background: var(--white); color: var(--primary);
  font-family: inherit; font-size: .8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s;
}
.field input[type="file"]::file-selector-button:hover { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
  .logo-current { gap: 14px; padding: 18px; }
  .logo-current img { width: 68px; height: 68px; }
  .logo-actions { width: 100%; }
  .logo-actions .btn { width: 100%; }
}

.muted { color: var(--muted); font-size: .82rem; }

/* ---- Accessibilité ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(201,162,75,0.85); outline-offset: 2px; }

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

/* ---- Responsive compléments ---- */
@media (max-width: 1024px) {
  .packs, .stages, .quick-contact { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .packs .pack--featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .packs, .stages, .quick-contact { grid-template-columns: 1fr; }
  .packs .pack--featured { grid-column: span 1; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .trust-item:last-child { border-bottom: none; }
  .btn, .btn--lg { padding: 11px 20px; font-size: .8rem; }
  .form-card { padding: 24px 18px; }
  .admin-panel { padding: 20px 16px; }
  .login-card { padding: 30px 20px; margin-top: 4vh; }
  .pack-price b { font-size: 2.1rem; }

  /* Tableaux -> cartes empilées */
  .rwd-table, .rwd-table thead, .rwd-table tbody, .rwd-table tr, .rwd-table th, .rwd-table td { display: block; width: 100%; }
  .rwd-table thead { display: none; }
  .rwd-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .rwd-table tr:last-child { border-bottom: none; }
  .rwd-table td { border: none; padding: 9px 18px; }
  .rwd-table td::before { content: attr(data-label); display: block; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
}

/* ---- Barre d'information haute (fixe, au-dessus du header) ---- */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 902;
  background: rgba(14,26,43,0.97); border-bottom: 1px solid rgba(255,255,255,0.09);
  color: #9fb0c6; font-size: .78rem; padding: 9px 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.topbar a { color: #d4deea; letter-spacing: .4px; transition: color .3s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-tag { color: var(--gold-light); letter-spacing: 1.2px; text-transform: uppercase; font-size: .68rem; }

.site-header { top: var(--topbar-h); }
body.has-topbar .hero { padding-top: calc(var(--header-h) + var(--topbar-h) + 70px); }
body.has-topbar .page-hero { padding-top: calc(var(--header-h) + var(--topbar-h) + 110px); }

/* ---- Liens légaux du footer ---- */
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-ident {
  margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: .76rem; color: #6f7f94; line-height: 1.7; max-width: 100%;
}

/* ---- Bandeau « guide offert » ---- */
.gift {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px;
  border-radius: var(--radius-sm); background: rgba(201,162,75,0.09);
  border: 1px solid rgba(201,162,75,0.35);
}
.gift svg { width: 30px; height: 30px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.gift b { display: block; font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }
.gift p { font-size: .92rem; }
.gift em { font-style: italic; color: var(--slate); }

/* ---- Cartes arguments (3 colonnes sur fond sombre) ---- */
.blk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blk-item {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .45s var(--ease), border-color .4s, background .4s;
}
.blk-item:hover { transform: translateY(-7px); border-color: rgba(201,162,75,0.45); background: rgba(255,255,255,0.09); }
.blk-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 9px; }
.blk-item p { color: #adbccf; font-size: .9rem; }

/* Bloc « engagements » (page À propos) ramené à 4 cartes :
   2 colonnes équilibrées au lieu de 3 + 1 carte orpheline. */
.blk--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .blk--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .blk--duo { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .blk { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blk { grid-template-columns: 1fr; }
  .topbar-inner { gap: 14px; justify-content: flex-start; }
  .topbar-tag { display: none; }
  .footer-legal { gap: 12px; }
  body.has-topbar .hero { padding-top: calc(var(--header-h) + var(--topbar-h) + 40px); }
  body.has-topbar .page-hero { padding-top: calc(var(--header-h) + var(--topbar-h) + 56px); }
}

/* ==========================================================================
   SÉLECTEUR « QUEL EST VOTRE BESOIN ? »  (accueil)
   ========================================================================== */
.nav { gap: 22px; }
@media (min-width: 1025px) {
  .nav { gap: 17px; }
  .nav a { font-size: .74rem; letter-spacing: .9px; }
}
@media (min-width: 769px) and (max-width: 1240px) {
  .nav { gap: 11px; }
  .nav a { font-size: .69rem; letter-spacing: .3px; }
  .header-cta { padding: 10px 16px; font-size: .74rem; letter-spacing: .8px; }
}

/* Deux parcours seulement désormais (ACACED + ressources) : 2 colonnes centrées,
   sinon les cartes s'étirent sur 5 colonnes et laissent un grand vide. */
.needs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.need {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 30px 24px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
  overflow: hidden;
}
.need::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.need:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.45); }
.need:hover::after { transform: scaleX(1); }
.need .ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(60,108,168,0.12), rgba(201,162,75,0.16)); color: var(--primary);
}
.need .ico svg { width: 25px; height: 25px; }
.need h3 { font-size: 1.14rem; margin: 0; }
.need p { font-size: .87rem; margin: 0; flex: 1; }
.need .go {
  display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary);
}
.need .go svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.need:hover .go svg { transform: translateX(4px); }

@media (max-width: 1024px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 768px) {
  .needs { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   QUIZ ACACED + RESSOURCES GRATUITES
   ========================================================================== */
.quiz-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 38px 40px; max-width: 820px; margin: 0 auto;
}
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.quiz-step { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.quiz-score { font-size: .78rem; color: var(--primary); font-weight: 600; }
.quiz-bar { height: 6px; border-radius: 4px; background: rgba(60,108,168,0.12); overflow: hidden; margin-bottom: 30px; }
.quiz-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); transition: width .45s var(--ease); }
.quiz-q { font-family: var(--font-title); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; color: var(--ink); margin-bottom: 24px; line-height: 1.3; }
.quiz-answers { display: grid; gap: 12px; }
.quiz-answers button {
  text-align: left; padding: 16px 20px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink); font-size: .95rem; line-height: 1.5;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.quiz-answers button:hover:not(:disabled) { border-color: var(--primary); background: #fff; transform: translateX(4px); }
.quiz-answers button:disabled { cursor: default; }
.quiz-answers button.good { border-color: rgba(46,160,94,0.6); background: rgba(46,160,94,0.1); color: #1f7a46; font-weight: 600; }
.quiz-answers button.bad { border-color: rgba(201,74,74,0.6); background: rgba(201,74,74,0.09); color: #a33232; }
.quiz-feedback {
  margin-top: 22px; padding: 18px 22px; border-radius: var(--radius-sm); font-size: .93rem;
  border-left: 3px solid var(--gold); background: rgba(201,162,75,0.09);
}
.quiz-feedback b { color: var(--ink); }
.quiz-feedback.good { border-left-color: #2ea05e; background: rgba(46,160,94,0.09); }
.quiz-feedback.bad { border-left-color: #c94a4a; background: rgba(201,74,74,0.08); }
.quiz-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.quiz-result { text-align: center; }
.quiz-result .score-ring {
  width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(60,108,168,0.12), rgba(201,162,75,0.16));
  border: 1px solid var(--line);
}
.quiz-result .score-ring b { font-family: var(--font-title); font-size: 2.7rem; line-height: 1; color: var(--primary); }
.quiz-result .score-ring span { font-size: .68rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 32px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.res-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.45); }
.res-card .ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(60,108,168,0.1); color: var(--primary); }
.res-card .ico svg { width: 25px; height: 25px; }
.res-card h3 { font-size: 1.2rem; margin: 0; }
.res-card p { font-size: .92rem; flex: 1; margin: 0; }
.res-card .tag {
  align-self: flex-start; padding: 5px 12px; border-radius: 6px; font-size: .64rem; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 700; background: rgba(201,162,75,0.16);
  border: 1px solid rgba(201,162,75,0.4); color: var(--gold);
}

/* Bandeau email (capture du lead) */.lead-band {
  border-radius: var(--radius); padding: 42px 46px; color: #fff;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #4d7cb8);
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.lead-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lead-band p { color: rgba(255,255,255,0.86); font-size: .95rem; margin: 0; }
.lead-form { display: flex; gap: 12px; flex-wrap: wrap; }
.lead-form input {
  flex: 1 1 240px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.14); color: #fff; font-size: 16px;
}
.lead-form input::placeholder { color: rgba(255,255,255,0.72); }
.lead-form input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.2); }
.lead-form .btn { flex: 0 0 auto; }
.lead-note { font-size: .76rem; color: rgba(255,255,255,0.72); margin-top: 12px; }
.lead-msg { margin-top: 14px; font-size: .88rem; }

@media (max-width: 1024px) {
  .res-grid { grid-template-columns: 1fr 1fr; }
  .lead-band { grid-template-columns: 1fr; gap: 26px; padding: 36px 32px; }
}
@media (max-width: 768px) {
  .res-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 26px 20px; }
  .quiz-answers button { padding: 14px 16px; font-size: .92rem; }
  .quiz-actions .btn { width: 100%; }
  .lead-band { padding: 30px 22px; }
  .lead-form input { flex: 1 1 100%; }
  .lead-form .btn { width: 100%; }
}

/* ==========================================================================
   BLOG / ACTUALITÉS
   ========================================================================== */
/* Le blog ne contient plus qu'un article : il est centré à une largeur lisible
   au lieu d'être écrasé dans un tiers de la page. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 520px;
  margin: 0 auto;
}
.blog-grid:has(> .post:nth-child(2)) { max-width: none; }
.post {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.post:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,75,0.45); }
.post-img { height: 210px; overflow: hidden; background: var(--ink); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-img img { transform: scale(1.07); }
.post-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .72rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.post-meta span { color: var(--gold); font-weight: 600; }
.post-body h3 { font-size: 1.24rem; margin-bottom: 12px; }
.post-body h3 a:hover { color: var(--primary); }
.post-body p { font-size: .92rem; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .72rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); }
.post-more svg { width: 14px; height: 14px; }

.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 42px 0 16px; }
.article h3 { font-size: 1.24rem; margin: 30px 0 12px; }
.article p { margin-bottom: 18px; font-size: 1rem; }
.article ul { display: grid; gap: 12px; margin: 0 0 22px; }
.article ul li { display: flex; gap: 13px; align-items: flex-start; font-size: .97rem; color: var(--slate); }
.article ul li svg { width: 19px; height: 19px; color: var(--gold); flex: 0 0 auto; margin-top: 4px; }
.article .lead { font-size: 1.08rem; color: var(--slate); }
.article figure { margin: 30px 0; }
.article figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.article figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.article-note {
  margin: 32px 0; padding: 24px 28px; border-radius: var(--radius-sm);
  background: rgba(60,108,168,0.06); border-left: 3px solid var(--primary);
}
.article-note b { display: block; font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 6px; }
.article-note p { margin: 0; font-size: .94rem; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; max-width: none; }
  .article h2 { margin-top: 34px; }
}

/* ==========================================================================
   TÉLÉCHARGEMENT DES DONNÉES (administration) — fichiers CSV pour Excel
   ========================================================================== */
.export-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.export-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px solid var(--line);
}
.export-card h3 { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.export-card h3 svg { width: 20px; height: 20px; color: var(--primary); flex: 0 0 auto; }
.export-card p { font-size: .88rem; margin: 0; flex: 1; }
.export-card .btn { align-self: flex-start; }
.export-all {
  margin-top: 24px; padding: 26px 28px; border-radius: var(--radius-sm);
  background: rgba(60,108,168,0.06); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.export-all b { display: block; font-family: var(--font-title); font-size: 1.1rem; }
.export-all p { font-size: .88rem; margin: 4px 0 0; }
.export-help {
  margin-top: 22px; padding: 20px 24px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold); background: rgba(201,162,75,0.08);
}
.export-help b { display: block; font-family: var(--font-title); font-size: 1.02rem; margin-bottom: 6px; }
.export-help p { font-size: .88rem; margin: 0; }

@media (max-width: 1024px) {
  .export-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .export-grid { grid-template-columns: 1fr; }
  .export-card .btn { width: 100%; }
  .export-all { padding: 20px 18px; }
  .export-all .btn { width: 100%; }
}

/* ==========================================================================
   PROGRAMME DÉTAILLÉ ACACED (contenu des livrets pédagogiques)
   ========================================================================== */
.prog-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog-day {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.prog-day:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.45); }
.prog-day .dnum {
  align-self: flex-start; padding: 6px 14px; border-radius: 6px;
  background: rgba(60,108,168,0.1); color: var(--primary);
  font-size: .66rem; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700;
}
.prog-day h3 { font-size: 1.14rem; margin: 0; }
.prog-day p { font-size: .9rem; margin: 0; }
.prog-day ul { display: grid; gap: 9px; margin-top: 4px; }
.prog-day li { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--slate); }
.prog-day li svg { width: 17px; height: 17px; color: var(--gold); flex: 0 0 auto; margin-top: 4px; }

.prog-code {
  display: inline-block; margin: 26px 0 0; padding: 14px 22px; border-radius: var(--radius-sm);
  background: rgba(201,162,75,0.1); border: 1px solid rgba(201,162,75,0.38);
  font-size: .92rem; color: var(--ink);
}

@media (max-width: 1024px) {
  .prog-days { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .prog-days { grid-template-columns: 1fr; }
  .prog-day { padding: 22px 20px; }
}

/* ==========================================================================
   PROGRAMME OFFICIEL ACACED — onglets par option (chien / chat / les deux)
   ========================================================================== */
.prog-tabs > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prog-tablist { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.prog-tablist label {
  cursor: pointer; padding: 12px 22px; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: .78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate);
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.prog-tablist label:hover { transform: translateY(-2px); border-color: rgba(60,108,168,0.45); }
#opt-chien:checked ~ .prog-tablist label[for="opt-chien"],
#opt-chat:checked ~ .prog-tablist label[for="opt-chat"],
#opt-both:checked ~ .prog-tablist label[for="opt-both"] {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(60,108,168,0.28);
}

.prog-panes > .pane { display: none; }
#opt-chien:checked ~ .prog-panes > .pane-chien,
#opt-chat:checked ~ .prog-panes > .pane-chat,
#opt-both:checked ~ .prog-panes > .pane-both { display: grid; gap: 22px; }

.week {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.week:hover { box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.4); }
.week-head {
  padding: 24px 28px; background: rgba(60,108,168,0.06); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
}
.week-head .wnum {
  font-size: .64rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--primary); padding: 5px 12px; border-radius: 6px; background: rgba(60,108,168,0.1);
}
.week-head h3 { font-size: 1.18rem; margin: 0; }
.week-head p { font-size: .88rem; margin: 0; flex: 1 1 100%; }
.week-seq { padding: 6px 28px 26px; display: grid; gap: 0; }
.seq { padding: 20px 0 0; border-top: 1px dashed var(--line); }
.seq:first-child { border-top: none; }
.seq h4 {
  font-family: var(--font-body); font-size: .8rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px; font-weight: 600;
}
.seq ul { display: grid; gap: 7px; }
.seq li { font-size: .89rem; color: var(--slate); padding-left: 16px; position: relative; }
.seq li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.week-logic {
  margin: 0 28px 26px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(201,162,75,0.09); border-left: 3px solid var(--gold); font-size: .87rem;
}

/* Cartes d'information (objectifs, prérequis, modalités, certification) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.4); }
.info-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.info-card p { font-size: .9rem; margin: 0; }
.info-card ul { display: grid; gap: 8px; margin-top: 12px; }
.info-card li { font-size: .88rem; color: var(--slate); padding-left: 16px; position: relative; }
.info-card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Téléchargement des programmes officiels */
.prog-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog-dl a {
  display: flex; gap: 16px; align-items: center; padding: 22px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .3s;
}
.prog-dl a:hover { transform: translateY(-5px); border-color: rgba(201,162,75,0.5); }
.prog-dl svg { width: 26px; height: 26px; color: var(--primary); flex: 0 0 auto; }
.prog-dl b { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 5px; }
.prog-dl small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.prog-dl span { min-width: 0; }
.prog-dl .open-tag {
  display: flex; align-items: center; gap: 7px; margin-top: 10px;
  font-style: normal; font-size: .74rem; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--primary);
}
.prog-dl .open-tag::after { content: '\2192'; font-size: 1rem; line-height: 1; }

/* Organisation des journées en présentiel */
.day-plan { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.day-plan th, .day-plan td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
.day-plan th { background: rgba(60,108,168,0.07); font-family: var(--font-title); font-size: 1rem; }
.day-plan tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
  .info-grid, .prog-dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .prog-tablist { flex-direction: column; }
  .prog-tablist label { width: 100%; text-align: center; }
  .info-grid, .prog-dl { grid-template-columns: 1fr; }
  .week-head { padding: 20px 20px; }
  .week-seq { padding: 4px 20px 22px; }
  .week-logic { margin: 0 20px 22px; }
  .day-plan { display: block; overflow-x: auto; }
}

/* ---- Lien vers la fiche programme du catalogue officiel (packs) ---- */
.pack-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.pack-actions .btn { width: 100%; }
.pack-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  align-self: center; padding-bottom: 3px;
  font-size: .72rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--slate); border-bottom: 1px solid rgba(60,108,168,0.3);
  transition: color .3s, border-color .3s;
}
.pack-link:hover { color: var(--primary); border-color: var(--primary); }
.pack-link svg { width: 14px; height: 14px; flex: 0 0 auto; }
@media (max-width: 768px) {
  .pack-link { align-self: stretch; text-align: center; }
}

/* ---- Consultation du certificat Qualiopi ---- */
.prog-dl--single { grid-template-columns: 1fr; max-width: 620px; margin: 26px auto 0; }
.cert-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: .86rem; font-weight: 500; color: var(--primary);
  text-decoration: none; border-bottom: 1px solid rgba(60,108,168,0.35);
  padding-bottom: 2px; transition: color .3s, border-color .3s;
}
.cert-link:hover { color: var(--gold); border-color: var(--gold); }
.cert-link svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---- Boutons de téléchargement des documents officiels (fiables sur mobile) ---- */
.doc-dl-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 26px;
}
.doc-dl-row .btn { padding: 8px 18px; font-size: .84rem; }
.doc-dl-note {
  text-align: center; margin-top: 16px; font-size: .82rem; color: var(--muted);
}
@media (max-width: 768px) {
  .doc-dl-row { flex-direction: column; align-items: stretch; }
  .doc-dl-row .btn { width: 100%; justify-content: center; }
}

/* ---- Visuels officiels des programmes (affiches) ---- */
.pack-img--affiche { height: auto; aspect-ratio: 16 / 9; background: #0e1a2b; }
.pack-img--affiche img { object-fit: contain; }
.pack:hover .pack-img--affiche img { transform: scale(1.03); }
@media (max-width: 768px) {
  .pack-img--affiche { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   ASSISTANT IA — bulle de discussion (bas à droite)
   Design du site : bleu nuit + doré, glassmorphism, boutons rectangulaires.
   ========================================================================== */

.agent-wrap {
  position: fixed; right: 24px; bottom: 24px; z-index: 940;
  display: none;               /* affiché uniquement si une clé est configurée */
  flex-direction: column; align-items: flex-end; gap: 14px;
}
.agent-wrap.on { display: flex; }

/* --- Bouton bulle --- */
.agent-fab {
  width: 58px; height: 58px; border-radius: 12px; border: none;
  background: linear-gradient(150deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(14,26,43,0.28);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  position: relative;
}
.agent-fab svg { width: 26px; height: 26px; }
.agent-fab:hover { transform: translateY(-3px); background: linear-gradient(150deg, var(--primary-light), var(--primary)); }
.agent-fab .agent-fab-close { display: none; }
.agent-wrap.open .agent-fab .agent-fab-open { display: none; }
.agent-wrap.open .agent-fab .agent-fab-close { display: block; }
.agent-fab::after {
  content: ''; position: absolute; top: -3px; right: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--cream);
}
.agent-wrap.open .agent-fab::after { display: none; }

/* --- Fenêtre de discussion --- */
.agent-panel {
  display: none;
  width: 372px; max-width: calc(100vw - 48px);
  height: 520px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(14,26,43,0.26);
  flex-direction: column;
}
.agent-wrap.open .agent-panel { display: flex; }

.agent-head {
  background: linear-gradient(150deg, var(--ink), var(--ink-soft));
  color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
}
.agent-head-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.agent-head-ico svg { width: 20px; height: 20px; color: var(--gold-light); }
.agent-head b { font-family: var(--font-title); font-size: 1.08rem; font-weight: 600; display: block; line-height: 1.25; }
.agent-head span { font-size: .74rem; color: #a9b8cc; letter-spacing: .3px; }
.agent-close {
  margin-left: auto; background: transparent; border: none; color: #b6c3d5;
  padding: 6px; display: flex; border-radius: 8px; transition: background .25s, color .25s;
}
.agent-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.agent-close svg { width: 18px; height: 18px; }

.agent-body {
  flex: 1 1 auto; overflow-y: auto; padding: 18px 16px;
  background: var(--cream); display: flex; flex-direction: column; gap: 12px;
}
.agent-msg {
  max-width: 86%; padding: 11px 14px; border-radius: 12px;
  font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word;
}
.agent-msg.bot {
  align-self: flex-start; background: #fff; color: var(--ink-soft);
  border: 1px solid var(--line); border-bottom-left-radius: 4px;
}
.agent-msg.user {
  align-self: flex-end; background: var(--primary); color: #fff;
  border-bottom-right-radius: 4px;
}
.agent-msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.agent-msg.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary-light);
  animation: agent-bounce 1.2s infinite ease-in-out;
}
.agent-msg.typing i:nth-child(2) { animation-delay: .18s; }
.agent-msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes agent-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* --- Saisie --- */
.agent-form {
  flex: 0 0 auto; border-top: 1px solid var(--line); background: #fff;
  padding: 12px 12px 14px; display: flex; gap: 8px; align-items: flex-end;
}
.agent-form textarea {
  flex: 1 1 auto; resize: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 16px; line-height: 1.4; color: var(--ink);
  max-height: 96px; min-height: 42px; background: var(--cream);
}
.agent-form textarea:focus { outline: none; border-color: var(--primary-light); background: #fff; }
.agent-send {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; border: none;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .25s, opacity .25s;
}
.agent-send:hover { background: var(--primary-dark); }
.agent-send:disabled { opacity: .45; cursor: not-allowed; }
.agent-send svg { width: 18px; height: 18px; }

.agent-foot {
  font-size: .68rem; color: var(--muted); text-align: center;
  padding: 0 12px 10px; background: #fff; line-height: 1.4;
}
.agent-foot a { color: var(--primary); text-decoration: underline; }

/* --- Voyant d'état dans l'admin --- */
.agent-state {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 12px 16px; border-radius: 12px; background: var(--cream);
  border: 1px solid var(--line); font-size: .88rem; color: var(--slate);
}
.agent-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--muted);
}
.agent-dot.on { background: #2e9e5b; box-shadow: 0 0 0 3px rgba(46,158,91,0.18); }
.agent-dot.off { background: #c2554d; box-shadow: 0 0 0 3px rgba(194,85,77,0.16); }

/* --- Téléphone --- */
@media (max-width: 768px) {
  .agent-wrap { right: 16px; bottom: 16px; gap: 10px; }
  .agent-panel {
    width: calc(100vw - 32px); height: auto;
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
  }
  .agent-fab { width: 54px; height: 54px; border-radius: 10px; }
  .agent-fab svg { width: 24px; height: 24px; }
  .agent-msg { max-width: 90%; }
  .agent-body { max-height: 52vh; max-height: 52dvh; }
  /* le bouton retour en haut ne gêne pas la bulle */
  .to-top { bottom: 84px; }
}

/* ==========================================================================
   INSTALLER L'APPLICATION (PWA) — pastille flottante + marche à suivre
   Design du site : bleu nuit + doré, boutons rectangulaires, mobile first.
   ========================================================================== */

/* --- Bouton dans le pied de page, à côté des liens légaux --- */
.install-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0; border: none; background: transparent;
  font-family: inherit; font-size: .82rem; color: #78879c;
  cursor: pointer; transition: color .3s;
}
.install-link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.install-link:hover { color: var(--gold-light); }

/* --- Pastille flottante (bas à gauche, la bulle IA reste à droite) ---
   Le bouton « Parler avec nous » de la voix occupe le coin bas gauche :
   la pastille est remontée au-dessus pour ne jamais le chevaucher. */
.install-pill {
  position: fixed; left: 24px; bottom: 96px; z-index: 930;
  display: none; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(150deg, var(--ink), var(--ink-soft));
  color: #fff; font-family: inherit; font-size: .76rem; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(14,26,43,0.30);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, opacity .3s;
}
.install-pill.show { display: inline-flex; }
.install-pill svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold-light); }
.install-pill:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(14,26,43,0.38); }
.install-pill[data-ready="1"] { border-color: rgba(201,162,75,0.55); }

/* --- Fenêtre « marche à suivre » --- */
.install-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(14,26,43,0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.install-modal.open { display: flex; }
html.install-no-scroll, html.install-no-scroll body { overflow: hidden; }

.install-box {
  position: relative; width: 100%; max-width: 460px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 34px 30px 28px; text-align: center;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(14,26,43,0.35);
}
.install-x {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; background: transparent; color: var(--muted);
  transition: background .25s, color .25s;
}
.install-x:hover { background: var(--cream); color: var(--ink); }
.install-x svg { width: 17px; height: 17px; }

.install-ico { display: flex; justify-content: center; margin-bottom: 16px; }
.install-ico img {
  width: 56px; height: 56px; border-radius: 13px;
  box-shadow: 0 7px 20px rgba(14,26,43,0.18);
}
.install-box h2 { font-size: 1.44rem; margin-bottom: 10px; }
.install-sub { font-size: .92rem; margin-bottom: 22px; }

.install-steps { display: grid; gap: 12px; text-align: left; margin-bottom: 20px; counter-reset: ins; }
.install-steps li {
  display: grid; gap: 2px; padding: 14px 16px 14px 46px; position: relative;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  counter-increment: ins;
}
.install-steps li::before {
  content: counter(ins); position: absolute; left: 14px; top: 14px;
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: .74rem; font-weight: 700; line-height: 1;
}
.install-steps b { font-size: .93rem; color: var(--ink); }
.install-steps span { font-size: .86rem; color: var(--slate); line-height: 1.5; }

.install-note {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
  background: rgba(201,162,75,0.09); border-left: 3px solid var(--gold);
  font-size: .84rem; text-align: left;
}
.install-ok { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .install-pill { left: 16px; bottom: 16px; padding: 8px 13px; font-size: .68rem; letter-spacing: .5px; }
  .install-modal { padding: 14px; }
  .install-box { padding: 28px 20px 22px; max-height: calc(100vh - 28px); }
  .install-box h2 { font-size: 1.26rem; }
  .install-steps li { padding: 12px 14px 12px 42px; }
  .install-steps li::before { left: 12px; top: 12px; }
}

/* ==========================================================================
   BADGE « FORMATION ÉLIGIBLE AU CPF » — bannière de la page ACACED
   ========================================================================== */
.page-hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 26px;
}
.cpf-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); border: 1px solid rgba(255,255,255,0.4);
  font-size: .74rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(201,162,75,0.34);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cpf-badge svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cpf-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201,162,75,0.45); }

@media (max-width: 768px) {
  .page-hero-badges { margin-top: 22px; }
  .cpf-badge { font-size: .68rem; letter-spacing: 1px; padding: 9px 15px; }
}

/* ==========================================================================
   IMAGE AFFICHÉE EN ENTIER (bloc « Bon à savoir » — page Financement)
   L'image n'est plus recadrée : on la voit complète, dans son ratio d'origine.
   ========================================================================== */
.split-img--full { background: var(--ink); }
.split-img--full img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 768px) {
  .split-img--full img { min-height: 0; height: auto; }
}

/* ==========================================================================
   TARIFS ACACED — 3 options × 2 formats (liens vers les fiches du catalogue)
   ========================================================================== */
.acaced-tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.acaced-tarif {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 24px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.acaced-tarif:hover { transform: translateY(-5px); border-color: rgba(201,162,75,0.5); box-shadow: var(--shadow-md); }
.acaced-tarif h3 { font-size: 1.18rem; margin-bottom: 6px; }
.acaced-tarif .at-duree { font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.acaced-tarif .at-prix { font-family: var(--font-title); font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.acaced-tarif .at-prix small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.acaced-tarif .at-mention { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.acaced-tarif .at-liens { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
/* Liens « Programme en présentiel / distanciel » : même bouton bleu que le reste */
.acaced-tarif .at-liens a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 15px; border: 1.5px solid var(--primary); border-radius: 8px;
  font-size: .84rem; font-weight: 600; letter-spacing: .4px;
  color: #fff; background: var(--primary);
  box-shadow: 0 6px 16px rgba(60,108,168,0.2);
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s;
}
.acaced-tarif .at-liens a:hover {
  background: var(--primary-dark); border-color: var(--primary-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(60,108,168,0.3);
}
.acaced-tarif .at-liens a svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* Visuel officiel du programme, en tête de carte */
.acaced-tarif { overflow: hidden; }
.acaced-tarif .at-img {
  margin: -26px -24px 20px; overflow: hidden;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.acaced-tarif .at-img img { width: 100%; height: auto; display: block; }

/* Bouton « En savoir plus » -> prise de rendez-vous */
.acaced-tarif .at-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 10px 18px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase;
  transition: background .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 26px rgba(60,108,168,0.26);
}
.acaced-tarif .at-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(60,108,168,0.34); }
.acaced-tarif .at-cta svg { width: 15px; height: 15px; flex: 0 0 auto; }

@media (max-width: 1024px) { .acaced-tarifs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .acaced-tarifs { grid-template-columns: 1fr; }
  .acaced-tarif { padding: 22px 20px; }
  .acaced-tarif .at-img { margin: -22px -20px 18px; }
  .acaced-tarif .at-cta { width: 100%; }
}

/* ==========================================================================
   CARROUSEL DES PARTENAIRES DE FINANCEMENT (page Financement)
   Défilement continu, pause au survol, logos sur cartes blanches.
   ========================================================================== */
.fin-partners { margin-top: 54px; }
.fin-partners-head { text-align: center; margin-bottom: 26px; }
.fin-partners-head h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--ink);
  margin-top: 4px;
}
.fin-partners-head p { font-size: .9rem; margin-top: 8px; }

.fin-carousel {
  position: relative;
  overflow: hidden;
  padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.fin-carousel-track {
  display: flex;
  width: max-content;
  animation: fin-scroll 88s linear infinite;
  will-change: transform;
}
.fin-carousel:hover .fin-carousel-track,
.fin-carousel:focus-within .fin-carousel-track { animation-play-state: paused; }

.fin-logo {
  flex: 0 0 auto;
  width: 230px;
  height: 156px;
  margin-right: 22px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.fin-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,162,75,0.5);
}
.fin-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes fin-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .fin-partners { margin-top: 38px; }
  .fin-logo { width: 166px; height: 118px; margin-right: 14px; padding: 10px; }
  .fin-carousel-track { animation-duration: 58s; }
  .fin-partners-head p { font-size: .86rem; }
}

/* Si le visiteur préfère moins d'animations : défilement manuel */
@media (prefers-reduced-motion: reduce) {
  .fin-carousel {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .fin-carousel-track { animation: none; }
}

/* ==========================================================================
   BLOC UNIQUE « DISPOSITIFS & PARTENAIRES » (page Financement)
   Les 12 dispositifs et les logos partenaires sont réunis dans un seul
   panneau : un seul titre, une liste aérée, les logos en pied de bloc.
   ========================================================================== */
.fin-panel {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 46px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.fin-panel-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.fin-panel-head h2 { margin-bottom: 14px; }
.fin-panel-head p { font-size: .99rem; }

/* Liste des dispositifs : 2 colonnes, filets fins, lecture de haut en bas */
.fin-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 0 42px;
}
.fin-item {
  position: relative;
  padding: 17px 0 17px 22px;
  border-top: 1px solid var(--line);
}
.fin-item::before {
  content: ''; position: absolute; left: 0; top: 25px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.fin-item h3 { font-size: 1.04rem; margin-bottom: 5px; }
.fin-item p { font-size: .89rem; margin: 0; }

/* Partenaires, à l'intérieur du même panneau */
.fin-logos { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.fin-logos-title {
  margin: 0 0 22px; text-align: center;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted);
}

/* Phrase de prudence, en pied de panneau */
.fin-note {
  max-width: 780px; margin: 28px auto 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: .84rem; color: var(--muted);
}

@media (max-width: 1024px) {
  .fin-panel { padding: 40px 32px 34px; }
  .fin-list { gap: 0 30px; }
}
@media (max-width: 768px) {
  .fin-panel { padding: 30px 20px 28px; }
  .fin-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .fin-item { padding: 15px 0 15px 20px; }
  .fin-item::before { top: 23px; }
  .fin-item h3 { font-size: 1rem; }
  .fin-logos { margin-top: 28px; padding-top: 24px; }
  .fin-note { font-size: .8rem; }
}

/* ==========================================================================
   FICHE DE RÉVISION — aperçu du PDF directement dans la page
   Le document s'affiche sur place après la saisie de l'e-mail.
   ========================================================================== */
.pdf-frame {
  display: block;
  width: 100%;
  height: 620px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .pdf-frame { height: 480px; margin-top: 18px; }
}

/* ==========================================================================
   FICHES DE RÉVISION — choix de la fiche avant la saisie de l'e-mail
   Trois fiches proposées : ACACED, Divagation, Commerce et importations.
   ========================================================================== */
.fiche-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.fiche-opt { position: relative; display: block; cursor: pointer; }
.fiche-opt input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.fiche-opt-body {
  display: flex; flex-direction: column; gap: 4px;
  height: 100%;
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.fiche-opt-body b {
  font-family: var(--font-title);
  font-size: .98rem;
  line-height: 1.25;
  color: var(--ink);
}
.fiche-opt-body span { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.fiche-opt:hover .fiche-opt-body { border-color: rgba(60,108,168,0.4); }
.fiche-opt input:checked + .fiche-opt-body {
  border-color: var(--gold);
  background: rgba(201,162,75,0.08);
  box-shadow: 0 2px 10px rgba(201,162,75,0.18);
}
.fiche-opt input:focus-visible + .fiche-opt-body {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .fiche-choice { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   BANNIÈRE « PRENDRE RENDEZ-VOUS » — la photo reste bien visible
   Le voile par défaut (88 %) écrasait la photo sur téléphone : ici, cadrage
   sur les sujets et voile plus léger, uniquement pour cette bannière.
   ========================================================================== */
.page-hero--rdv { background-position: center 40%; }
@media (max-width: 768px) {
  .page-hero--rdv {
    background-position: 62% 22%;
    background-size: cover;
  }
  .page-hero--rdv::before {
    background: linear-gradient(180deg, rgba(14,26,43,0.70) 0%, rgba(14,26,43,0.48) 48%, rgba(14,26,43,0.86) 100%);
  }
}

/* ==========================================================================
   PAGE TÉMOIGNAGES — portraits entiers + cartouche réorganisé
   La photo n'est plus recadrée en médaillon : elle s'affiche en entier,
   en portrait arrondi, à gauche du nom et du métier.
   ========================================================================== */
.page-temoignages .quote { display: flex; flex-direction: column; }
.page-temoignages .quote > p { margin-bottom: 26px; }
.page-temoignages .quote .who {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.page-temoignages .quote .who img.av {
  width: 88px;
  height: 118px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: var(--cream);
  border: 1.5px solid rgba(201,162,75,0.45);
  box-shadow: 0 6px 18px rgba(14,26,43,0.14);
}
.page-temoignages .quote .who > span { min-width: 0; }
.page-temoignages .quote .who b {
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 4px;
}
.page-temoignages .quote .who small {
  display: block;
  font-size: .72rem;
  letter-spacing: 1.2px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 768px) {
  .page-temoignages .quote .who { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .page-temoignages .quote .who img.av { width: 76px; height: 102px; }
  .page-temoignages .quote .who b { font-size: 1.04rem; }
  .page-temoignages .quote .who small { font-size: .68rem; letter-spacing: 1px; }
}

/* ==========================================================================
   ANCRES — le titre ne passe plus sous la barre fixe
   Le header (et la barre d'information) restent collés en haut : sans cette
   marge, arriver par un lien #ancre masquait le titre de la section.
   ========================================================================== */
[id] { scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 20px); }
@media (max-width: 768px) {
  [id] { scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 12px); }
}

/* ==========================================================================
   LIENS D'ACTION — un seul et même bouton, la couleur bleue du site
   Tout ce qui était un lien en texte cliquable (« Ouvrir le certificat »,
   « Ouvrir dans le navigateur », « Lire l'article », « Découvrir l'ACACED »)
   prend l'apparence du bouton principal : fond bleu #3c6ca8, texte blanc.
   ========================================================================== */
.need .go,
.prog-dl .open-tag,
.post-more,
.cert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 20px rgba(60,108,168,0.24);
  transition: background .3s, color .3s, border-color .3s,
              transform .3s var(--ease), box-shadow .3s;
}
.need .go:hover,
.prog-dl .open-tag:hover,
.post-more:hover,
.cert-link:hover,
.need .go:focus-visible,
.prog-dl .open-tag:focus-visible,
.post-more:focus-visible,
.cert-link:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(60,108,168,0.32);
}
.need .go svg,
.prog-dl .open-tag svg,
.post-more svg,
.cert-link svg {
  width: 15px; height: 15px; flex: 0 0 auto; color: currentColor;
}
.prog-dl .open-tag::after { content: '\2192'; font-size: 1rem; line-height: 1; }

@media (max-width: 768px) {
  .need .go,
  .prog-dl .open-tag,
  .post-more,
  .cert-link {
    font-size: .72rem;
    letter-spacing: .7px;
    padding: 9px 14px;
  }
}

/* ==========================================================================
   LIENS DANS LE TEXTE — cohérents et lisibles (couleur bleue du site)
   Les renvois au fil d'une phrase (politique de confidentialité, CGV…)
   ne deviennent pas des boutons, mais prennent la couleur et le soulignement
   du site pour rester clairement identifiables comme cliquables.
   ========================================================================== */
.article p a:not(.btn):not(.quote-link),
.article-note p a:not(.btn),
.faq-a a:not(.btn),
.law-box a:not(.btn),
.form-note a:not(.btn),
.section p a:not(.btn):not(.quote-link):not(.at-cta):not(.pack-link),
.section li a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .25s;
}
.article p a:not(.btn):not(.quote-link):hover,
.article-note p a:not(.btn):hover,
.faq-a a:not(.btn):hover,
.law-box a:not(.btn):hover,
.form-note a:not(.btn):hover,
.section p a:not(.btn):not(.quote-link):not(.at-cta):not(.pack-link):hover,
.section li a:not(.btn):hover { color: var(--gold); }

/* Rangée de boutons dans un encadré d'article */
.article-note-actions,
.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.article-note-actions .btn,
.note-actions .btn { flex: 0 1 auto; }
@media (max-width: 768px) {
  .article-note-actions,
  .note-actions { flex-direction: column; align-items: stretch; }
  .article-note-actions .btn,
  .note-actions .btn { width: 100%; }
}

/* ==========================================================================
   HARMONISATION DES BOUTONS — centrage et alignement sur tout le site
   Trois défauts corrigés ici :
   1. dans une rangée, des boutons de hauteurs différentes n'étaient pas
      centrés verticalement (le plus petit restait collé en haut) ;
   2. un bouton seul dans un bloc large restait collé au bord gauche alors
      que le texte du bloc, lui, est centré (pages Ressources et Blog) ;
   3. dans les cartes, les boutons ne faisaient pas la même largeur d'une
      carte à l'autre, ce qui donnait des rangées irrégulières.
   Résultat identique sur ordinateur et sur téléphone.
   ========================================================================== */

/* 1. Alignement vertical des rangées de boutons */
.hero-actions,
.quiz-actions,
.note-actions,
.article-note-actions,
.rdv-nav,
.doc-dl-row,
.logo-actions,
.pack-actions,
.export-all {
  align-items: center;
}

/* 2. Bouton seul : plus jamais collé au bord gauche d'un bloc centré */
.lead-band .hero-actions { justify-content: center; }

/* 3. Cartes : le bouton occupe la largeur de la carte, texte centré.
      .need .go / .res-card .btn gardent ainsi le même gabarit partout. */
.res-card > .btn,
.res-card .btn {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
}
.need .go { align-self: stretch; justify-content: center; text-align: center; }

/* 4. Les deux boutons « Retour / Continuer » d'une même étape se répartissent
      la largeur de façon égale au lieu d'avoir des tailles inégales. */
.rdv-nav .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 768px) {
  /* Sur téléphone, une rangée de boutons se centre et passe en pleine largeur */
  .hero-actions,
  .quiz-actions,
  .note-actions,
  .article-note-actions,
  .rdv-nav {
    justify-content: center;
  }
  .lead-band .hero-actions .btn,
  .quiz-actions .btn,
  .note-actions .btn,
  .article-note-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .rdv-nav .btn { width: 100%; }
}
