.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

/* Mini-quiz Code : interaction courte, lisible et cohérente avec la palette Smart. */
.road-quiz { width: 100%; margin-top: 30px; padding: 25px; background: #f6f8fb; color: #080b12; border: 2px solid #080b12; box-shadow: 7px 7px 0 #f5d316; }
.road-quiz .kicker { color: #075aa8; }
.road-quiz h3 { margin: 7px 0 7px; font: 800 25px/1.12 Manrope, sans-serif; }
.quiz-intro { margin: 0 0 17px; color: #4d5967; font-size: 15px; }
.quiz-progress { margin-bottom: 10px; color: #075aa8; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quiz-question { min-height: 52px; margin-bottom: 14px; font: 800 19px/1.25 Manrope, sans-serif; }
.quiz-answers { display: grid; gap: 9px; }
.quiz-answer { width: 100%; padding: 12px 14px; border: 2px solid #080b12; background: #fff; color: #080b12; text-align: left; font: 700 15px/1.3 DM Sans, sans-serif; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.quiz-answer:hover:not(:disabled), .quiz-answer:focus-visible { transform: translateX(3px); background: #e9f3fb; outline: 3px solid rgba(7,90,168,.28); outline-offset: 2px; }
.quiz-answer:disabled { cursor: default; }
.quiz-answer.is-correct { background: #198754; border-color: #146c43; color: #fff; }
.quiz-answer.is-wrong { background: #d64545; border-color: #a92828; color: #fff; }
.quiz-feedback { margin: 14px 0 0; color: #075aa8; font-size: 15px; font-weight: 700; }
.quiz-result { padding-top: 16px; border-top: 2px solid #080b12; }
.quiz-score { display: block; margin-bottom: 5px; color: #075aa8; font: 800 28px/1.1 Manrope, sans-serif; }
.quiz-result p { margin: 0 0 15px; color: #4d5967; }
.quiz-result .button { display: inline-block; }
.quiz-restart { margin-left: 9px; padding: 11px 14px; border: 2px solid #080b12; background: #fff; color: #080b12; font-weight: 800; cursor: pointer; }
@media (max-width: 850px) { .road-quiz { padding: 21px; box-shadow: 5px 5px 0 #f5d316; } .road-quiz h3 { font-size: 22px; } .quiz-result .button, .quiz-restart { width: 100%; margin: 8px 0 0; text-align: center; } }

.nav .brand-logo { width: 68px; height: 68px; transform: translateY(2px); }

@media (max-width:850px) {
  .nav .brand-logo { width: 54px; height: 54px; transform: none; }
}

/* Sarool sur la page d'accueil */
.sarool-teaser { padding:54px max(32px,calc((100vw - 1216px)/2)); display:grid; grid-template-columns:220px 1fr auto; gap:34px; align-items:center; background:#075aa8; color:#fff; border-top:8px solid #f5d316; }
.sarool-wordmark { width:170px; aspect-ratio:1; display:grid; place-items:center; padding:0; overflow:hidden; background:#fff; border:5px solid #071c39; border-radius:50%; box-shadow:8px 8px 0 #f5d316; transform:rotate(-2deg); }
.sarool-wordmark img { display:block; width:100%; height:100%; object-fit:contain; border-radius:50%; }
.sarool-teaser .kicker { color:#f5d316; }
.sarool-teaser h2 { margin:5px 0 8px; font-size:clamp(30px,3.4vw,46px); line-height:1.05; }
.sarool-teaser p { margin:0; max-width:670px; color:#dcecf9; }
.sarool-teaser>.button { background:#f5d316; color:#071c39; white-space:nowrap; }
@media (max-width:900px) { .sarool-teaser { grid-template-columns:170px 1fr; } .sarool-teaser>.button { grid-column:2; justify-self:start; } }
@media (max-width:620px) { .sarool-teaser { padding:50px 20px; grid-template-columns:1fr; } .sarool-wordmark { width:150px; } .sarool-teaser>.button { grid-column:auto; width:100%; } }

/* Médaillons visuels des parcours */
.course-icon.course-visual { width:96px; height:96px; overflow:hidden; padding:0; background:#fff; border:4px solid #071c39; box-shadow:0 8px 0 #075aa8; }
.course-icon.course-visual img { display:block; width:100%; height:100%; object-fit:cover; }
.course-icon.visual-auto { border-color:#fff; box-shadow:0 8px 0 #071c39; }
.course-icon.visual-aac { border-color:#071c39; box-shadow:0 8px 0 #f5d316; }
.course-icon.visual-moto { width:112px; height:112px; background:#f5d316; border-color:#f5d316; box-shadow:0 8px 0 #075aa8; }
.course-icon.visual-moto img { object-fit:contain; transform:scale(1.08); }
.course-icon.visual-code { border-color:#fff; box-shadow:0 8px 0 #071c39; }
@media(max-width:480px){.course-icon.course-visual{width:86px;height:86px}.course-icon.visual-moto{width:100px;height:100px}}

/* Présentation des simulateurs Oscar */
.simulator-feature { display:grid; grid-template-columns:.9fr 1.1fr; gap:34px; align-items:stretch; margin:0 0 34px; padding:30px; background:#071c39; color:#fff; border:3px solid #071c39; box-shadow:10px 10px 0 #f5d316; }
.simulator-gallery { position:relative; display:grid; grid-template-columns:1.08fr .92fr; gap:9px; min-height:370px; }
.simulator-gallery img { width:100%; height:100%; object-fit:cover; border:3px solid #fff; }
.simulator-gallery img:first-child { object-position:center 63%; }
.simulator-gallery span { position:absolute; left:16px; bottom:16px; padding:9px 12px; background:#f5d316; color:#071c39; border:2px solid #071c39; font:800 13px Manrope,sans-serif; letter-spacing:.1em; box-shadow:4px 4px 0 #075aa8; }
.simulator-copy { display:flex; flex-direction:column; justify-content:center; }
.simulator-feature .kicker { color:#f5d316; }
.simulator-feature h2 { font-size:clamp(30px,3.3vw,48px); line-height:1.02; margin:8px 0 14px; }
.simulator-copy>p { margin:0; color:#dce8f4; font-size:17px; }
.simulator-promise { margin-top:24px; padding:20px; background:#f5d316; color:#071c39; border:2px solid #fff; }
.simulator-promise>strong { display:block; font:800 19px Manrope,sans-serif; margin-bottom:6px; }
.simulator-promise p { margin:0; color:#071c39; font-size:14px; }
.simulator-promise b { text-decoration:underline; text-decoration-thickness:2px; }
.simulator-video { display:flex; justify-content:space-between; align-items:center; margin-top:16px; padding:13px 16px; border:2px solid #fff; color:#fff; font-weight:800; }
.simulator-video:hover { background:#fff; color:#071c39; }
.simulator-video span { color:#f5d316; }
@media (max-width:850px) { .simulator-feature { grid-template-columns:1fr; } .simulator-gallery { min-height:330px; } }
@media (max-width:520px) { .simulator-feature { padding:18px; } .simulator-gallery { grid-template-columns:1fr; min-height:0; } .simulator-gallery img { height:260px; } .simulator-gallery img:nth-child(2) { display:none; } }

.road-card { background: var(--teal); }
.road-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-label {
  position: absolute;
  left: -18px;
  bottom: 46px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  font: 700 14px Manrope, sans-serif;
}
.photo-label span { color: var(--lime); margin-left: 5px; }

.agency { padding: 0; overflow: hidden; }
.agency-photo {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #dfe5e3;
}
.agency-body { padding: 32px 38px 38px; }
.hours {
  margin: -3px 0 25px;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.hours summary { padding: 13px 0; cursor: pointer; font-weight: 700; font-size: 14px; }
.hours div { padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; }
.hours p { margin: 0; font-size: 13px; }
.hours b { color: #d9ff52; margin-right: 5px; }

.agency-socials { display:grid; grid-template-columns:1.05fr 1fr 1fr; align-items:center; gap:24px; margin:0 0 25px; padding:20px 24px; border:1px solid rgba(255,255,255,.22); background:rgba(0,0,0,.12); }
.social-heading { display:flex; flex-direction:column; min-width:150px; }
.social-heading span { color:#f5d316; text-transform:uppercase; letter-spacing:.14em; font-size:10px; font-weight:800; }
.social-heading strong { font:700 18px Manrope,sans-serif; }
.social-agency { display:grid; grid-template-columns:auto 1fr 1fr; align-items:center; gap:8px; }
.social-agency>b { font:800 14px Manrope,sans-serif; margin-right:8px; }
.social-pill { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; color:#fff; border:1px solid rgba(255,255,255,.4); font-size:12px; font-weight:800; }
.social-pill i { display:grid; place-items:center; width:20px; height:20px; border-radius:6px; color:#fff; font:800 18px/1 Arial,sans-serif; font-style:normal; }
.social-pill em { font-style:normal; opacity:.65; }
.social-pill.facebook i { background:#1877f2; }
.social-pill.instagram i { background:linear-gradient(140deg,#ffcf5a,#e1306c 55%,#7b2cff); }
.social-pill:hover { background:#f5d316; color:#071c39; border-color:#f5d316; }
@media (max-width:900px) { .agency-socials { grid-template-columns:1fr; gap:14px; } .social-agency { max-width:520px; } }
@media (max-width:480px) { .agency-socials { padding:18px; } .social-agency { grid-template-columns:1fr 1fr; } .social-agency>b { grid-column:1/-1; } .social-pill { justify-content:center; } }

.testimonials {
  background: #071c39;
  color: #fff;
  padding: 100px max(32px,calc((100vw - 1216px)/2));
  overflow: hidden;
}
.testimonials .section-head { position: relative; z-index: 1; }
.testimonials .section-head h2 { max-width: 760px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
}
.testimonial-card {
  background: #fff;
  color: #071c39;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 14px 14px 0 #0d66aa;
}
.testimonial-moto { box-shadow: 14px 14px 0 #f4cf00; }
.testimonial-visual { position: relative; background: #203853; overflow: hidden; }
.testimonial-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.permit-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f4cf00;
  color: #071c39;
  padding: 9px 13px;
  border: 2px solid #071c39;
  border-radius: 5px;
  font: 800 12px Manrope,sans-serif;
  letter-spacing: .1em;
}
.testimonial-copy { position: relative; padding: 30px 34px 32px; }
.quote-mark {
  position: absolute;
  right: 25px;
  top: 4px;
  color: #f4cf00;
  font: 800 88px/1 Georgia,serif;
}
.testimonial-copy blockquote {
  position: relative;
  margin: 0 50px 25px 0;
  max-width: 680px;
  font: 800 clamp(21px,2.3vw,32px)/1.2 Manrope,sans-serif;
  letter-spacing: -.03em;
}
.testimonial-copy p { display: flex; flex-direction: column; margin: 0; }
.testimonial-copy strong { font: 800 18px Manrope,sans-serif; }
.testimonial-copy span { color: #687587; font-size: 13px; }
.testimonial-note { margin: 34px 0 0; color: #9fb0c5; font-size: 12px; }
.testimonial-invite {
  padding: 82px max(32px,calc((100vw - 1216px)/2));
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 70px;
  align-items: center;
  background: #071c39;
  color: #fff;
}
.testimonial-invite .kicker { color: #f4cf00; }
.testimonial-invite h2 { color: #fff; font-size: clamp(38px,5vw,70px); line-height: 1; letter-spacing: -.05em; margin: 10px 0 20px; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.testimonial-invite p { color: #b8c5d5; font-size: 18px; max-width: 600px; margin-bottom: 28px; }
.testimonial-invite .yellow { background: #f4cf00; color: #071c39; }
.invite-photo { position: relative; display: block; overflow: hidden; border-radius: 28px; transform: rotate(2deg); box-shadow: 12px 12px 0 #f4cf00; }
.invite-photo img { display: block; width: 100%; height: 390px; object-fit: cover; object-position: center top; border-radius: inherit; }
.invite-photo span { position: absolute; left: 16px; bottom: 16px; background: #f4cf00; color: #071c39; padding: 8px 11px; border-radius: 9px; font: 800 11px Manrope,sans-serif; letter-spacing: .1em; }

/* Clin d'œil mécanique, limité au pied de page */
footer { position: relative; overflow: hidden; }
.footer-gears { position: absolute; right: 30px; top: 12px; display: flex; align-items: center; height: 70px; opacity: .22; pointer-events: none; }
.footer-gears .gear { display: block; font-family: Arial, "Segoe UI Symbol", sans-serif; line-height: 1; }
.footer-gears .gear-large { color: #075aa8; font-size: 62px; animation: footer-gear-turn 16s linear infinite; }
.footer-gears .gear-small { color: #f5d316; font-size: 38px; margin-left: -11px; margin-top: 22px; animation: footer-gear-turn-reverse 10s linear infinite; }
.footer-gears .gear-medium { color: #080b12; font-size: 48px; margin-left: -7px; margin-top: -11px; animation: footer-gear-turn 13s linear infinite; }
@keyframes footer-gear-turn { to { transform: rotate(360deg); } }
@keyframes footer-gear-turn-reverse { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .footer-gears .gear { animation: none; } }
/* Final brand audit pass: remove legacy green drift and keep Smart's palette unified. */
:root {
  --ink: #080b12;
  --cream: #f4f6f8;
  --paper: #ffffff;
  --lime: #f5d316;
  --teal: #075aa8;
  --line: rgba(7, 28, 57, .14);
  --smart-navy: #071c39;
  --smart-blue: #075aa8;
  --smart-yellow: #f5d316;
  --smart-white: #ffffff;
  --smart-light: #f4f6f8;
}

body { background: var(--smart-light); color: var(--smart-black, #080b12); }
.nav-wrap { background: rgba(255,255,255,.96); }
.nav-wrap:after { background: repeating-linear-gradient(90deg, var(--smart-black, #080b12) 0 18px, #fff 18px 36px); }
.road-card { background: linear-gradient(#cfe5f4 0 48%, #075aa8 48% 51%, #071c39 51%); }
.horizon { background: linear-gradient(15deg, #075aa8 50%, transparent 51%); }
.hero-copy > p { color: #536174; }
.section-head .kicker, .method .kicker { color: var(--smart-blue); }
.agency { background: #123b66; }
.agency.accent { background: var(--smart-blue); }
.inside { background: var(--smart-blue); }
.course.code { background: #e7f1fb; }
.callbar a:first-child { background: var(--smart-blue); color: #fff; }
.callbar a:last-child { background: var(--smart-yellow); color: var(--smart-navy); }

/* Clearer public wording on the home hero and agency section. */
.hero-copy > p { max-width: 580px; }
.trust-row { color: var(--smart-navy); }
.agency-hours-preview { color: #dce8f5; }

/* Make essential agency hours visible without removing the full details. */
.agency .hours { display: block; margin-top: 0; }
.agency .hours summary { color: var(--smart-yellow); }
.agency .hours > div { display: grid; gap: 3px; margin-top: 12px; }
.agency .hours > div p { margin: 0; color: #dce8f5; font-size: 13px; }
.agency .hours > .hours-title { display: block; margin: 0; padding: 13px 0 10px; color: var(--smart-yellow); font-weight: 700; font-size: 14px; }
.agency .hours > .hours-title + div { display: grid; gap: 3px; margin-top: 0; padding: 0 0 12px; }
.agency .hours > .hours-title + div p:last-child { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 2px solid rgba(245,211,22,.5); color: #fff; font-weight: 700; }
.agency .hours > .hours-title + div p:last-child b { display: block; margin: 0 0 4px; color: var(--smart-yellow); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* The visitor sees two clear actions; secondary links stay under Plus. */
.nav-links { gap: 16px; }
.nav-links > a[href="documents-v3.html"], .nav-links > a.nav-signup { background: var(--smart-blue); color: #fff; border-radius: 8px; padding: 11px 14px; font-weight: 800; }
.nav-links > a[href="recrutement.html"], .nav-links > a.nav-hire { background: var(--smart-yellow); color: var(--smart-navy); border: 2px solid var(--smart-navy); padding: 8px 11px; box-shadow: 3px 3px 0 var(--smart-navy); font-weight: 800; }
.nav-links > a.nav-call { background: var(--smart-navy); color: #fff; border-radius: 8px; padding: 11px 14px; }

/* Code page hierarchy: three primary methods, optional detail below. */
.code-method-grid article:nth-child(4), .code-method-grid article:nth-child(5) { opacity: .92; }
.code-framework, .code-theme-list { border-color: var(--smart-blue); }

/* Public demo state is unambiguous until a real student login exists. */
.student-user .preview { background: #fff5b5; color: #5e5000; }

@media (max-width: 850px) {
  .nav-links > a[href="documents-v3.html"], .nav-links > a.nav-signup,
  .nav-links > a[href="recrutement.html"], .nav-links > a.nav-hire,
  .nav-links > a.nav-call { text-align: center; }
  .agency .hours > div p { font-size: 12px; }
}

/* Hero dynamique validé : photo réelle, arrivée progressive et interactions sobres. */
.hero.hero-smart {
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(32px, 6vw, 82px);
  max-width: 1380px;
  padding: 78px clamp(20px, 5vw, 80px) 96px;
  background: var(--smart-white);
}

.hero-smart-copy { max-width: 650px; }
.hero-smart .eyebrow {
  color: var(--smart-navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-smart .hero-lead {
  max-width: 580px;
  color: #536174;
  font-size: 19px;
  line-height: 1.55;
}
.hero-smart .hero-visual {
  position: relative;
  overflow: visible;
  min-width: 0;
}
.hero-smart .road-card {
  height: auto;
  aspect-ratio: 1290 / 724;
  border: 3px solid var(--smart-navy);
  border-radius: 30px 30px 12px 12px;
  background: var(--smart-navy);
  box-shadow: 12px 12px 0 var(--smart-yellow);
}
.hero-smart .road-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 27px 27px 9px 9px;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.hero-smart .hero-visual:hover .road-card img { transform: scale(1.015); }
.hero-smart .road-card img { object-position: center 46%; }
.hero-quality-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 11px;
  background: var(--smart-yellow);
  color: var(--smart-navy);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-smart .hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.hero-smart .hero-reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-smart-copy .hero-reveal:nth-child(2) { transition-delay: 100ms; }
.hero-smart-copy .hero-reveal:nth-child(3) { transition-delay: 180ms; }
.hero-smart-copy .hero-reveal:nth-child(4) { transition-delay: 260ms; }
.hero-smart-copy .hero-reveal:nth-child(5) { transition-delay: 340ms; }
.hero-smart .button { transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease; }
.hero-smart .button:hover, .hero-smart .button:focus-visible { transform: scale(1.02) translateY(-2px); }

@media (max-width: 850px) {
  .hero.hero-smart { grid-template-columns: 1fr; padding: 58px 20px 72px; }
  .hero-smart .road-card { box-shadow: 7px 7px 0 var(--smart-yellow); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-smart .hero-reveal { opacity: 1; transform: none; transition: none; }
  .hero-smart .road-card img, .hero-smart .button { transition: none; }
}

/* Glassmorphism lumineux : une finition moderne qui conserve l'identité bleu/jaune. */
.hero.hero-smart {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(245, 211, 22, .18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(7, 90, 168, .12), transparent 30%),
    linear-gradient(135deg, #fbfdff 0%, #eef8ff 56%, #fffdf2 100%);
}
.hero.hero-smart::before,
.hero.hero-smart::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}
.hero.hero-smart::before { display: none; }
.hero.hero-smart::after { width: 230px; height: 230px; right: -90px; bottom: -80px; background: rgba(245,211,22,.12); }
.hero-smart .hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.48));
  box-shadow: 0 20px 52px rgba(7,90,168,.11), 0 1px 0 rgba(255,255,255,.9) inset;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.hero-smart .hero-lead { color: #455a73; }
.hero-smart .hero-actions .ghost {
  color: var(--smart-navy);
  border: 1px solid rgba(7,90,168,.18);
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 20px rgba(7,90,168,.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-smart .hero-actions .ghost:hover,
.hero-smart .hero-actions .ghost:focus-visible {
  background: rgba(255,255,255,.88);
  border-color: rgba(7,90,168,.34);
}
.hero-smart .trust-row { color: var(--smart-navy); }
.hero-smart .trust-row span {
  border: 1px solid rgba(7,90,168,.14);
  background: rgba(255,255,255,.5);
  box-shadow: 0 6px 16px rgba(7,90,168,.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-smart .road-card {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(205,232,249,.46));
  box-shadow: 0 24px 52px rgba(7,90,168,.18), 12px 12px 0 rgba(245,211,22,.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.hero-smart .road-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 22px;
  pointer-events: none;
}
.hero-smart .hero-quality-badge {
  top: 16px;
  left: 18px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 12px;
  background: rgba(255,255,255,.74);
  color: var(--smart-navy);
  box-shadow: 0 10px 24px rgba(7,90,168,.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (max-width: 850px) {
  .hero-smart .hero-copy { padding: 24px 20px; }
  .hero-smart .road-card { box-shadow: 7px 7px 0 rgba(245,211,22,.86); }
}

@media (max-width: 850px) { .footer-gears { right: 12px; top: 8px; opacity: .15; } .footer-gears .gear-large { font-size: 48px; } .footer-gears .gear-medium { font-size: 38px; } .footer-gears .gear-small { font-size: 30px; } }
.footer-vehicle { position: absolute; z-index: 2; pointer-events: none; }
.footer-vehicle { right: -290px; bottom: -8px; width: 280px; height: 187px; animation: footer-car-drive 18s linear infinite; }
.footer-car { display: block; width: 100%; height: auto; }
@keyframes footer-car-drive {
  0% { transform: translateX(0); opacity: 0; }
  7% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(-100vw - 360px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-vehicle { right: 18px; animation: none; }
}
@media (max-width: 850px) {
  footer { min-height: 132px; padding-bottom: 62px; }
  .footer-vehicle { right: -190px; bottom: -3px; width: 185px; height: 124px; animation-duration: 15s; }
}

@media (max-width: 480px) {
  .agency { padding: 0; }
  .agency-body { padding: 26px; }
  .agency-photo { height: 220px; }
  .hours div { grid-template-columns: 1fr; }
  .photo-label { left: 10px; bottom: 28px; }
}

@media (max-width: 850px) {
  .testimonials { padding: 72px 20px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 30px; }
  .testimonial-card { box-shadow: 8px 8px 0 #0d66aa; }
  .testimonial-moto { box-shadow: 8px 8px 0 #f4cf00; }
  .testimonial-copy { padding: 24px; }
  .testimonial-copy blockquote { margin-right: 35px; }
  .testimonial-invite { padding: 65px 20px; grid-template-columns: 1fr; gap: 38px; }
  .invite-photo { max-width: 430px; }
}

/* Cartes Smart : un même langage visuel pour les parcours Auto, Moto et Code. */
.program,
.program-compact,
.hub-secondary article,
.coming-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  border: 2px solid rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 18px 42px rgba(8,11,18,.14) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.program::before,
.program-compact::before,
.hub-secondary article::before,
.coming-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.26), transparent 42%);
  opacity: .8;
}

.program:hover,
.program-compact:hover,
.hub-secondary article:hover,
.coming-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245,211,22,.95) !important;
  box-shadow: 0 0 18px rgba(245,211,22,.32), 0 22px 52px rgba(8,11,18,.2) !important;
}

.coming-card.future {
  background: rgba(8,11,18,.86) !important;
  border-color: rgba(245,211,22,.82) !important;
}

.hub-card {
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(8,11,18,.22);
  transition: transform .3s ease, box-shadow .3s ease;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px rgba(245,211,22,.35), 0 24px 58px rgba(8,11,18,.28);
}

@media (max-width: 650px) {
  .program,
  .program-compact,
  .hub-secondary article,
  .coming-card {
    border-radius: 18px !important;
  }

  .program:hover,
  .program-compact:hover,
  .hub-secondary article:hover,
  .coming-card:hover,
  .hub-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program,
  .program-compact,
  .hub-secondary article,
  .coming-card,
  .hub-card {
    transition: none;
  }
}

/* Glassmorphism étendu : surfaces légères et translucides sur les pages du site. */
:root {
  --glass-surface: rgba(255, 255, 255, .62);
  --glass-surface-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .82);
  --glass-shadow: 0 16px 38px rgba(7, 90, 168, .10);
}

/* Le bloc du Hero reste compact pour laisser respirer l'image d'accueil. */
.hero.hero-smart {
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
}
.hero-smart .hero-copy {
  max-width: 560px;
  justify-self: start;
  padding: clamp(20px, 2.2vw, 30px);
}
.hero-smart .hero-copy h1 { max-width: 440px; }

/* Cartes claires : le verre remplace les aplats lourds sans perdre les accents Smart. */
:is(
  main .course:not(.dark),
  main .inside-grid figure,
  main .testimonial-card,
  main .quality-points > article,
  main .quality-badge,
  main .cpf-card,
  main .steps > li,
  main .code-method-grid > article,
  main .code-framework,
  main .code-theme-list,
  main .doc-card,
  main .formation-doc,
  main .fund-card,
  main .funding-help,
  main .funding-caution,
  main .team-card:not(.lead):not(.ops),
  main .team-note,
  main .faq-list > details,
  main .application-card,
  main .platform-card,
  main .parent-card,
  main .panel,
  main .mini-panel,
  main .note-card,
  main .lesson-grid > *,
  main .remc-grid > article,
  main .remc-follow > div,
  main .training-grid > div,
  main .facts > .fact,
  main .tariff-grid > article,
  main .unit-prices,
  main .cancellation-note,
  main .krys-card,
  main .hub-card,
  main .hub-secondary > article,
  main .coming-card:not(.future),
  main .code-spotlight-card
) {
  border: 1px solid var(--glass-border) !important;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--glass-surface-strong), var(--glass-surface)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), var(--glass-shadow) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

:is(
  main .course:not(.dark),
  main .testimonial-card,
  main .quality-points > article,
  main .cpf-card,
  main .doc-card,
  main .formation-doc,
  main .fund-card,
  main .team-card:not(.lead):not(.ops),
  main .faq-list > details,
  main .application-card,
  main .platform-card,
  main .parent-card,
  main .panel,
  main .mini-panel,
  main .note-card,
  main .tariff-grid > article,
  main .unit-prices,
  main .krys-card
) :is(p, li, dd, dt) {
  color: #526171;
}

/* Les surfaces foncées restent contrastées, avec un verre bleu profond. */
:is(
  main .course.dark,
  main .coming-card.future,
  main .agency,
  main .simulator-feature,
  main .booster-public,
  main .testimonial-moto
) {
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(7,28,57,.88), rgba(7,90,168,.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 42px rgba(7,28,57,.20) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Les petits éléments d'action adoptent le même effet, sans remplacer les boutons jaunes. */
:is(main .social-pill, main .code-official-link, main .text-link, main .map-link) {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.social-pill { border-radius: 12px; background: rgba(255,255,255,.10); }

/* Blocs immersifs Auto/Moto : photo forte, carte glass et profondeur légère. */
.immersive-training { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.immersive-card { position: relative; min-height: 480px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.84); border-radius: 28px; box-shadow: 0 22px 52px rgba(7,28,57,.16); }
.immersive-media, .immersive-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.immersive-media img { object-fit: cover; filter: saturate(.94) contrast(1.04) brightness(.9); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .45s ease; }
.immersive-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,28,57,.66), rgba(7,28,57,.28) 56%, rgba(7,28,57,.06)); pointer-events: none; }
.immersive-auto .immersive-media { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 76%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 76%, transparent 100%); }
.immersive-auto::after { background: linear-gradient(100deg, rgba(7,28,57,.72), rgba(7,28,57,.25) 58%, rgba(7,28,57,.02)); }
.immersive-glass-card { position: absolute; z-index: 2; left: 24px; bottom: 24px; width: min(410px, calc(100% - 48px)); padding: 24px; color: #10243b; border: 1px solid rgba(255,255,255,.84); border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 40px rgba(7,28,57,.18); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: background .4s ease, box-shadow .4s ease, transform .4s ease; }
.immersive-glass-card::before { content: ""; position: absolute; z-index: -1; inset: -28px; border-radius: 38px; background: rgba(16,139,220,.23); filter: blur(26px); opacity: .9; }
.immersive-auto .immersive-glass-card::before { background: rgba(245,211,22,.26); }
.immersive-glass-card h3 { margin: .55rem 0 .65rem; font-size: clamp(1.55rem, 2vw, 2.15rem); line-height: 1.04; letter-spacing: -.04em; }
.immersive-glass-card p { margin: 0; color: #526171; line-height: 1.55; }
.immersive-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.immersive-tags span { padding: 7px 10px; border: 1px solid rgba(7,90,168,.14); border-radius: 999px; color: #075aa8; background: rgba(255,255,255,.56); font-size: .82rem; font-weight: 700; }
.financing-badge { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; padding: 10px 12px; border: 1px solid rgba(7,90,168,.12); border-radius: 14px; background: rgba(255,255,255,.55); }
.financing-badge > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #10243b; background: var(--smart-yellow); font-weight: 900; }
.financing-badge strong, .financing-badge small { display: block; }
.financing-badge small { margin-top: 2px; color: #526171; }
.immersive-card:hover .immersive-media img { transform: scale(1.05); filter: saturate(1) contrast(1.05) brightness(.94); }
.immersive-card:hover .immersive-glass-card { background: rgba(255,255,255,.84); box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 20px 48px rgba(7,28,57,.23); transform: translateY(-4px); }
:is(main .inside-grid img, main .code-spotlight-card img, main .simulator-gallery img, main .universe-hero > img, main .hub-card > img) { filter: saturate(.95) contrast(1.02) brightness(1.03); }
@media (max-width: 760px) { .immersive-training { grid-template-columns: 1fr; } .immersive-card { min-height: 430px; } }
@media (prefers-reduced-motion: reduce) { .immersive-media img, .immersive-glass-card { transition: none; } }

/* Page d’orientation : les parcours restent lisibles avant le détail du Code. */
.formation-orientation-hero { background: #075aa8; }
.formation-orientation-hero h1 em { color: #f5d316; }
.formation-orientation-hero p { max-width: 720px; }
.orientation-hub { padding-top: 64px; }
.orientation-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 0 28px; }
.orientation-intro h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; }
.orientation-intro h2 em { color: var(--smart-blue); font-style: normal; }
.orientation-intro > p { max-width: 420px; color: #526171; line-height: 1.6; }
.orientation-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.orientation-choice { position: relative; padding: 26px; min-height: 250px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.92); border-radius: 22px; box-shadow: 0 16px 36px rgba(7,90,168,.10); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.orientation-choice::before { content: ''; display: block; width: 42px; height: 5px; margin-bottom: 22px; background: var(--smart-yellow); }
.orientation-choice:nth-child(2)::before { background: var(--smart-blue); }
.orientation-choice-code { background: linear-gradient(145deg, rgba(7,90,168,.94), rgba(7,28,57,.94)); color: #fff; }
.orientation-choice-code .kicker, .orientation-choice-code .text-link { color: var(--smart-yellow); }
.orientation-number { position: absolute; top: 22px; right: 24px; color: rgba(7,28,57,.2); font: 800 24px Manrope,sans-serif; }
.orientation-choice-code .orientation-number { color: rgba(255,255,255,.32); }
.orientation-choice h3 { margin: 8px 0; font-size: 25px; }
.orientation-choice p { color: #526171; line-height: 1.55; }
.orientation-choice-code p { color: #dce8f4; }
.orientation-choice .text-link { display: inline-block; margin-top: 9px; font-weight: 800; }
@media (max-width: 850px) { .orientation-intro { display: block; } .orientation-intro > p { margin-top: 18px; } .orientation-choices { grid-template-columns: 1fr; } .orientation-choice { min-height: 0; } }

/* Rendez-vous récurrent de la page Code : question du jour + carte pédagogique. */
.daily-code-section, .exam-guide-section { margin: 74px 0 0; }
.daily-code-widget { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.92); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: 0 22px 54px rgba(7,90,168,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.daily-code-visual { position: relative; min-height: 420px; background: #071c39; }
.daily-code-image-button { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #071c39; overflow: hidden; }
.daily-code-image-button img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; opacity: .88; transition: transform .55s ease, opacity .35s ease; }
.daily-code-learning { display:grid; gap:7px; margin:12px 0; }
.daily-code-learning span { display:block; padding:8px 10px; border-left:3px solid var(--smart-yellow,#f5d316); background:rgba(7,28,57,.06); color:#526171; font-size:12px; }
.daily-code-learning b { display:inline-block; min-width:52px; margin-right:7px; color:#075aa8; text-transform:uppercase; font-size:10px; letter-spacing:.08em; }
.daily-code-image-button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,28,57,.06), rgba(7,28,57,.66)); pointer-events: none; }
.daily-code-image-button:hover img, .daily-code-widget.is-observing .daily-code-image-button img { transform: scale(1.045); opacity: 1; }
.daily-code-image-hint { position: absolute; z-index: 1; left: 18px; bottom: 18px; padding: 9px 12px; color: #071c39; background: #f5d316; border: 2px solid #071c39; font: 800 12px Manrope,sans-serif; }
.daily-code-day { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 11px; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(7,28,57,.62); font-size: 12px; font-weight: 800; backdrop-filter: blur(10px); }
.daily-code-content { padding: clamp(26px, 4vw, 50px); }
.daily-code-content > .kicker { color: #075aa8; }
.daily-code-content h3 { max-width: 650px; margin: 10px 0 24px; color: #071c39; font: 800 clamp(27px, 3vw, 42px)/1.08 Manrope,sans-serif; }
.daily-code-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.daily-code-answer { display: flex; align-items: flex-start; gap: 11px; min-height: 76px; padding: 14px; text-align: left; color: #071c39; background: rgba(255,255,255,.84); border: 1px solid #c7d4e0; border-radius: 15px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.daily-code-answer:hover:not(:disabled), .daily-code-answer:focus-visible { transform: translateY(-3px); border-color: #075aa8; box-shadow: 0 8px 18px rgba(7,90,168,.14); outline: none; }
.daily-code-answer > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #075aa8; color: #fff; font: 800 13px Manrope,sans-serif; }
.daily-code-answer strong { font-size: 14px; line-height: 1.35; }
.daily-code-answer.is-correct { background: #e8f8ef; border-color: #2d9460; }
.daily-code-answer.is-correct > span { background: #2d9460; }
.daily-code-answer.is-wrong { background: #fff0ed; border-color: #ce5b4a; }
.daily-code-answer.is-wrong > span { background: #ce5b4a; }
.daily-code-feedback { margin-top: 18px; padding: 16px; border-left: 5px solid #f5d316; background: #071c39; color: #fff; animation: dailyFeedbackIn .42s ease both; }
.daily-code-feedback[hidden] { display: none; }
.daily-code-charlie { display: flex; align-items: center; gap: 13px; }
.daily-code-charlie img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.daily-code-charlie strong { color: #f5d316; font: 800 17px Manrope,sans-serif; }
.daily-code-charlie p { margin: 4px 0; color: #e5eef8; font-size: 14px; line-height: 1.45; }
.daily-code-charlie span { color: #b9d5ef; font-size: 13px; }
.daily-code-note { margin: 17px 0 0; color: #657385; font-size: 12px; }
@keyframes dailyFeedbackIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.exam-guide-widget { display: grid; grid-template-columns: 1.18fr .82fr; gap: 20px; align-items: stretch; }
.exam-map { position: relative; min-height: 430px; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background-color: #e8f3ff; background-image: linear-gradient(28deg, transparent 47%, rgba(7,90,168,.10) 48%, rgba(7,90,168,.10) 51%, transparent 52%), linear-gradient(112deg, transparent 44%, rgba(7,90,168,.08) 45%, rgba(7,90,168,.08) 48%, transparent 49%), radial-gradient(circle at 22% 28%, rgba(245,211,22,.36) 0 7%, transparent 7.5%), radial-gradient(circle at 80% 72%, rgba(7,90,168,.13) 0 11%, transparent 11.5%); box-shadow: 0 18px 42px rgba(7,90,168,.12); }
.exam-map::before { content: ''; position: absolute; inset: 28px; border: 1px dashed rgba(7,90,168,.24); border-radius: 50% 42% 56% 35%; transform: rotate(-10deg); }
.exam-map-road { position: absolute; z-index: 1; height: 14px; border: 4px solid #fff; border-radius: 999px; background: #9ec4e4; box-shadow: 0 0 0 1px rgba(7,90,168,.2); transform-origin: left center; }
.exam-map-road-one { width: 58%; top: 49%; left: 18%; transform: rotate(-18deg); }
.exam-map-road-two { width: 48%; top: 33%; left: 35%; transform: rotate(63deg); }
.exam-map-road-three { width: 45%; top: 68%; left: 38%; transform: rotate(10deg); }
.exam-map-label { position: absolute; z-index: 2; color: rgba(7,28,57,.58); font: 800 12px Manrope,sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.exam-map-label-town { left: 11%; top: 17%; }
.exam-map-label-north { right: 12%; top: 24%; }
.exam-map-dot { position: absolute; z-index: 3; display: grid; place-items: center; width: 74px; height: 74px; padding: 0; border: 3px solid #071c39; border-radius: 50%; background: #f5d316; color: #071c39; cursor: pointer; box-shadow: 5px 5px 0 rgba(7,28,57,.24); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.exam-map-dot:hover, .exam-map-dot:focus-visible, .exam-map-dot.is-active { transform: scale(1.08); background: #075aa8; color: #fff; outline: none; box-shadow: 6px 6px 0 rgba(7,28,57,.28); }
.exam-map-dot span { font: 800 18px Manrope,sans-serif; }
.exam-map-dot small { font-size: 10px; font-weight: 800; }
.exam-map-dot[data-guide-point="town"] { left: 15%; top: 39%; }
.exam-map-dot[data-guide-point="priority"] { left: 55%; top: 18%; }
.exam-map-dot[data-guide-point="roundabout"] { right: 13%; top: 52%; }
.exam-map-dot[data-guide-point="outskirts"] { left: 45%; bottom: 11%; }
.exam-map-disclaimer { position: absolute; z-index: 4; left: 18px; right: 18px; bottom: 15px; color: #526171; font-size: 11px; }
.exam-guide-detail { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.78); box-shadow: 0 18px 42px rgba(7,90,168,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.exam-guide-detail .kicker { color: #075aa8; }
.exam-guide-detail h3 { margin: 10px 0; color: #071c39; font: 800 clamp(25px, 3vw, 38px)/1.08 Manrope,sans-serif; }
.exam-guide-detail p { color: #526171; line-height: 1.62; }
.exam-guide-tip { display: grid; gap: 4px; margin-top: 18px; padding: 15px 17px; border-left: 5px solid #f5d316; background: #071c39; color: #fff; }
.exam-guide-tip strong { color: #f5d316; font: 800 15px Manrope,sans-serif; }
.exam-guide-tip span { color: #e5eef8; font-size: 14px; }
@media (max-width: 850px) { .daily-code-widget, .exam-guide-widget { grid-template-columns: 1fr; } .daily-code-visual { min-height: 330px; } .exam-map { min-height: 390px; } }
@media (max-width: 520px) { .daily-code-answers { grid-template-columns: 1fr; } .daily-code-content { padding: 24px 20px; } .daily-code-visual { min-height: 290px; } .exam-map { min-height: 360px; border-radius: 20px; } .exam-guide-detail { padding: 24px 20px; border-radius: 20px; } .exam-map-dot { width: 64px; height: 64px; } .exam-map-dot[data-guide-point="priority"] { left: 50%; } .exam-map-dot[data-guide-point="roundabout"] { right: 7%; } }

/* Boucle de retour hebdomadaire : le site devient un réflexe utile. */
.hero-weekly-loop { display:flex; align-items:center; gap:12px; max-width:580px; margin-top:24px; padding:12px 13px; border:1px solid rgba(255,255,255,.78); border-radius:16px; background:rgba(255,255,255,.58); color:var(--smart-navy); box-shadow:0 14px 30px rgba(7,90,168,.10); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.hero-loop-dot { width:10px; height:10px; flex:0 0 10px; border-radius:50%; background:#2d9460; box-shadow:0 0 0 5px rgba(45,148,96,.15); }
.hero-weekly-loop div { display:grid; gap:1px; min-width:0; }
.hero-weekly-loop strong { font:800 13px Manrope,sans-serif; }
.hero-weekly-loop div span { color:#526171; font-size:12px; }
.hero-weekly-loop a { margin-left:auto; white-space:nowrap; color:var(--smart-blue); font-size:12px; font-weight:900; }
.hero-weekly-loop a span { margin-left:3px; }
.weekly-safety-hub { padding:clamp(64px,8vw,110px) max(24px,calc((100vw - 1216px)/2)); background:linear-gradient(135deg,rgba(229,244,255,.76),rgba(255,255,255,.34)); }
.weekly-safety-hub .section-head { margin-bottom:28px; }
.weekly-safety-hub .section-head h2 { margin:8px 0 0; font-size:clamp(32px,4.5vw,62px); line-height:1; letter-spacing:-.055em; }
.weekly-safety-hub .section-head h2 em { color:var(--smart-blue); font-style:normal; }
.weekly-safety-hub .section-head > p { max-width:430px; color:#526171; line-height:1.6; }
.weekly-safety-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.weekly-safety-card { position:relative; min-height:300px; display:flex; flex-direction:column; padding:27px; overflow:hidden; border:1px solid rgba(255,255,255,.9); border-radius:24px; color:var(--smart-navy); box-shadow:0 18px 42px rgba(7,90,168,.12); transition:transform .25s ease,box-shadow .25s ease; }
.weekly-safety-card::after { content:''; position:absolute; width:190px; height:190px; right:-82px; bottom:-88px; border:28px solid rgba(255,255,255,.23); border-radius:50%; }
.weekly-safety-card:hover,.weekly-safety-card:focus-visible { transform:translateY(-6px); box-shadow:0 26px 54px rgba(7,90,168,.18); outline:none; }
.weekly-card-code { background:linear-gradient(145deg,#f5d316,#ffed75); }
.weekly-card-student { background:linear-gradient(145deg,#075aa8,#0b3f78); color:#fff; }
.weekly-card-family { background:linear-gradient(145deg,#071c39,#164977); color:#fff; }
.weekly-safety-card .kicker { color:var(--smart-blue); }
.weekly-card-student .kicker,.weekly-card-family .kicker { color:var(--smart-yellow); }
.weekly-card-index { position:absolute; top:20px; right:22px; font:800 21px Manrope,sans-serif; opacity:.42; }
.weekly-safety-card h3 { position:relative; z-index:1; margin:10px 0 10px; font:800 clamp(24px,2.5vw,34px)/1.05 Manrope,sans-serif; letter-spacing:-.035em; }
.weekly-safety-card p { position:relative; z-index:1; margin:0; max-width:340px; color:#526171; line-height:1.55; }
.weekly-card-student p,.weekly-card-family p { color:#dce8f4; }
.weekly-card-link { position:relative; z-index:1; margin-top:auto; padding-top:24px; font-weight:900; }
.weekly-card-link b { margin-left:8px; font-size:18px; }
@media (max-width:850px) { .weekly-safety-grid { grid-template-columns:1fr; } .weekly-safety-card { min-height:230px; } }
@media (max-width:520px) { .hero-weekly-loop { align-items:flex-start; flex-wrap:wrap; } .hero-weekly-loop a { margin-left:22px; width:100%; } .weekly-safety-hub { padding-left:18px; padding-right:18px; } }
@media (prefers-reduced-motion:reduce) { .weekly-safety-card { transition:none; } .weekly-safety-card:hover { transform:none; } }

/* Priorité recrutement : visible dès l'accueil, sans prendre le dessus sur les formations. */
.recruitment-home-banner { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:22px; align-items:center; margin:0 max(24px,calc((100vw - 1216px)/2)) 34px; padding:24px 28px; color:#071c39; background:linear-gradient(110deg,#f5d316 0%,#ffe979 52%,#fff6b6 100%); border:2px solid #071c39; border-radius:20px; box-shadow:8px 8px 0 #075aa8; overflow:hidden; }
.recruitment-home-banner::after { content:'REJOIGNEZ L’ÉQUIPE'; position:absolute; right:-36px; top:12px; padding:7px 42px; color:#fff; background:#075aa8; font:800 10px Manrope,sans-serif; letter-spacing:.12em; transform:rotate(9deg); }
.recruitment-home-mark { display:grid; place-items:center; width:54px; height:54px; border-radius:50%; color:#f5d316; background:#071c39; font:800 32px/1 Manrope,sans-serif; }
.recruitment-home-banner .kicker { display:block; margin-bottom:4px; color:#075aa8; }
.recruitment-home-banner h2 { margin:0; font:800 clamp(22px,3vw,34px)/1.05 Manrope,sans-serif; letter-spacing:-.035em; }
.recruitment-home-banner p { margin:7px 0 0; max-width:680px; color:#31445a; line-height:1.45; }
.recruitment-home-cta { position:relative; z-index:1; white-space:nowrap; color:#fff; background:#071c39; }
.recruitment-home-cta span { color:#f5d316; font-size:20px; }
@media (max-width:850px) { .recruitment-home-banner { grid-template-columns:auto minmax(0,1fr); margin-left:20px; margin-right:20px; padding:21px; } .recruitment-home-cta { grid-column:2; justify-self:start; } }
@media (max-width:520px) { .recruitment-home-banner { grid-template-columns:1fr; margin-left:18px; margin-right:18px; padding:20px; } .recruitment-home-mark { width:46px; height:46px; } .recruitment-home-cta { grid-column:auto; width:100%; } .recruitment-home-banner::after { right:-46px; top:12px; font-size:9px; } }

/* Accueil : hiérarchie plus directe, sans perdre le verre lumineux. */
.nav-links > a.nav-hire {
  background: rgba(255,255,255,.76);
  color: var(--smart-blue);
  border: 1px solid rgba(7,90,168,.24);
  padding: 10px 12px;
  box-shadow: none;
  font-weight: 800;
}
.nav-links > a.nav-hire:hover,
.nav-links > a.nav-hire:focus-visible {
  background: #e7f1fb;
  border-color: var(--smart-blue);
  box-shadow: 3px 3px 0 rgba(7,28,57,.18);
}
.hero.hero-smart {
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 4vw, 58px);
  min-height: 0;
  padding-top: 56px;
  padding-bottom: 68px;
}
.hero-smart .hero-copy {
  max-width: 620px;
  padding: clamp(24px, 2.6vw, 34px);
}
.hero-smart .hero-copy h1 {
  font-size: clamp(52px, 5vw, 86px);
  line-height: .93;
  max-width: 640px;
}
.hero-smart .hero-lead {
  max-width: 540px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.48;
}
.hero-smart .hero-visual {
  max-width: 720px;
  justify-self: end;
}
.hero-smart .road-card {
  aspect-ratio: 4 / 3;
  max-height: 520px;
}
.hero-smart .road-card img {
  object-position: 58% 44%;
}
.hero-smart .hero-quality-badge {
  top: 20px;
  left: 20px;
}
.hero-smart .hero-weekly-loop {
  margin-top: 20px;
}
@media (max-width: 1080px) and (min-width: 851px) {
  .hero.hero-smart { padding-left: 36px; padding-right: 36px; }
  .hero-smart .hero-copy h1 { font-size: clamp(48px, 5.4vw, 68px); }
  .hero-smart .hero-lead { font-size: 17px; }
  .hero-smart .trust-row { flex-direction: column; gap: 6px; }
}
@media (max-width: 850px) {
  .hero.hero-smart { padding-top: 42px; padding-bottom: 58px; }
  .hero-smart .hero-copy { padding: 24px 20px; }
  .hero-smart .hero-copy h1 { font-size: clamp(50px, 14vw, 72px); }
  .hero-smart .hero-lead { font-size: 17px; }
  .hero-smart .hero-visual { max-width: none; }
  .hero-smart .road-card { aspect-ratio: 4 / 3; max-height: none; }
}
@media (max-width: 520px) {
  .hero-smart .hero-copy h1 { font-size: 52px; }
  .hero-smart .hero-actions { gap: 9px; }
  .hero-smart .hero-actions .button { width: 100%; }
  .hero-smart .hero-weekly-loop { margin-top: 18px; }
}

/* Une seule action d’appel par agence, sans barre flottante concurrente. */
.callbar { display: none !important; }

@media (max-width: 850px) {
  .hero.hero-smart { grid-template-columns: 1fr; }
  .hero-smart .hero-copy { max-width: none; }
}

@media (max-width: 520px) {
  :is(
    main .course:not(.dark),
    main .inside-grid figure,
    main .testimonial-card,
    main .quality-points > article,
    main .cpf-card,
    main .doc-card,
    main .formation-doc,
    main .fund-card,
    main .team-card:not(.lead):not(.ops),
    main .faq-list > details,
    main .panel,
    main .note-card,
    main .hub-card,
    main .hub-secondary > article,
    main .coming-card:not(.future),
    main .course.dark,
    main .coming-card.future,
    main .agency,
    main .simulator-feature,
    main .booster-public,
    main .testimonial-moto
  ) { border-radius: 18px; }
}

/* Galerie éditoriale des photos fournies par Smart Conduite 76. */
.universe-gallery-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 7vw, 92px) 0 clamp(26px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.universe-gallery-hero h1 { margin: .55rem 0 1.2rem; font-size: clamp(2.8rem, 6vw, 6.2rem); line-height: .94; letter-spacing: -.065em; }
.universe-gallery-hero h1 em, .universe-gallery h2 em { color: var(--smart-blue); font-style: normal; }
.universe-gallery-hero > div > p { max-width: 540px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #526171; line-height: 1.65; }
.universe-hero-photo { position: relative; min-height: 390px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 30px; background: rgba(255,255,255,.55); box-shadow: 0 24px 58px rgba(7,90,168,.15); }
.universe-hero-photo img { width: 100%; height: 100%; min-height: 390px; display: block; object-fit: cover; }
.universe-hero-photo figcaption, .universe-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; padding: 14px 16px; color: #10243b; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.86); border-radius: 16px; box-shadow: 0 12px 26px rgba(7,28,57,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.universe-hero-photo figcaption span, .universe-photo figcaption span { color: #526171; font-size: .94rem; line-height: 1.4; }
.universe-gallery { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: clamp(48px, 7vw, 86px) 0; }
.universe-gallery-blue { width: 100%; max-width: none; padding-left: max(18px, calc((100% - 1180px) / 2)); padding-right: max(18px, calc((100% - 1180px) / 2)); background: linear-gradient(135deg, rgba(229,244,255,.72), rgba(255,255,255,.25)); }
.universe-gallery .section-head { margin-bottom: 28px; }
.universe-gallery .section-head h2 { margin: .5rem 0 0; font-size: clamp(2.1rem, 4vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.universe-gallery .section-head > p { max-width: 430px; color: #526171; line-height: 1.6; }
.universe-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.universe-photo { position: relative; min-height: 300px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(255,255,255,.62); box-shadow: 0 16px 38px rgba(7,90,168,.10); }
.universe-photo img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .45s ease; }
.universe-photo:hover img { transform: scale(1.035); }
.universe-photo-wide { grid-column: span 2; }
.universe-photo-tall { min-height: 450px; }
.universe-photo-tall img { min-height: 450px; }
.universe-gallery-note { width: min(880px, calc(100% - 36px)); margin: 0 auto clamp(52px, 8vw, 100px); padding: clamp(24px, 4vw, 42px); text-align: center; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(225,244,255,.72)); box-shadow: 0 18px 42px rgba(7,90,168,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.universe-gallery-note strong { display: block; color: var(--smart-blue); font-size: 1.15rem; }
.universe-gallery-note p { max-width: 650px; margin: 10px auto 22px; color: #526171; line-height: 1.6; }
@media (max-width: 850px) {
  .universe-gallery-hero { grid-template-columns: 1fr; }
  .universe-hero-photo { min-height: 300px; }
  .universe-hero-photo img { min-height: 300px; }
  .universe-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .universe-gallery-hero, .universe-gallery { width: min(100% - 24px, 1180px); }
  .universe-gallery-blue { width: 100%; padding-left: 12px; padding-right: 12px; }
  .universe-photo-grid { grid-template-columns: 1fr; }
  .universe-photo-wide { grid-column: span 1; }
  .universe-photo, .universe-photo img, .universe-photo-tall, .universe-photo-tall img { min-height: 330px; }
}
