:root {
  --ink: #15364d;
  --paper: #f4faff;
  --white: #ffffff;
  --blue: #159bd3;
  --blue-dark: #12364f;
  --blue-medium: #1d4b68;
  --blue-light: #d9f0fe;
  --yellow: #ffd184;
  --muted: #5d7180;
  --line: #cfe2ed;
}


/* ========================================
   RÉGLAGES GÉNÉRAUX
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--paper);
  color: var(--ink);

  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;

  font-family: "Oswald", sans-serif;
  line-height: 1.08;
  text-transform: uppercase;
}

p {
  overflow-wrap: break-word;
}

section {
  scroll-margin-top: 90px;
}


/* ========================================
   NAVIGATION
======================================== */

.site-header {
  position: fixed;
  z-index: 20;

  top: 0;
  right: 0;
  left: 0;

  display: flex;
  align-items: center;
  gap: 36px;

  height: 92px;
  padding: 0 4vw;

  background: rgba(244, 250, 255, 0.96);

  border-bottom:
    1px solid rgba(21, 54, 77, 0.12);

  backdrop-filter: blur(12px);
}

.brand {
  width: 218px;
  margin-right: auto;
}

.brand img {
  width: 100%;
  height: 70px;

  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: 28px;

  font-size: 0.86rem;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  position: absolute;

  right: 100%;
  bottom: -8px;
  left: 0;

  height: 2px;

  background: var(--blue);

  content: "";

  transition: right 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}


/* Bouton rendez-vous du header */

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 19px;

  background: var(--ink);
  color: var(--white);

  font-weight: 700;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.header-cta:hover {
  background: var(--blue);

  transform: translateY(-2px);
}


/* Menu mobile masqué sur ordinateur */

.menu-button,
.mobile-menu {
  display: none;
}


/* ========================================
   BOUTONS
======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  min-height: 54px;

  padding: 0 24px;

  border: 1px solid transparent;

  font-weight: 700;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

.button.primary:hover {
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.55);

  border-color:
    rgba(21, 54, 77, 0.45);

  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.button.dark:hover {
  background: var(--blue);
}


/* ========================================
   ACCUEIL
======================================== */

.hero {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 100vh;

  padding:
    160px
    7vw
    120px;

  overflow: hidden;

  color: var(--ink);
}


/* Image accueil */

.hero-photo {
  position: absolute;

  inset: 0;

  background-image:
    url("assets/accueil-voiture4.jpg");

  background-position:
    center right;

  background-size:
    cover;

  background-repeat:
    no-repeat;

  transform:
    scale(1.01);
}


/* Dégradé sur la photo */

.hero-shade {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,

      rgba(255, 255, 255, 0.97) 0%,

      rgba(255, 255, 255, 0.88) 39%,

      rgba(255, 255, 255, 0.2) 68%,

      transparent 84%
    );
}


/* Contenu accueil */

.hero-content {
  position: relative;

  z-index: 2;

  max-width: 830px;
}

.eyebrow,
.kicker {
  font-size: 0.76rem;
  font-weight: 700;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.eyebrow {
  display: flex;

  align-items: center;

  gap: 12px;
}

.eyebrow span {
  width: 28px;
  height: 4px;

  background: var(--blue);
}

h1 {
  font-size:
    clamp(4.6rem, 9vw, 9rem);

  letter-spacing:
    -0.045em;
}

h1 em {
  color: var(--blue);

  font-style: normal;
}

.hero-copy {
  max-width: 600px;

  margin:
    30px 0;

  color: #000000;

  font-size:
    clamp(
      1.05rem,
      1.6vw,
      1.28rem
    );
}

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}


/* Anciennes informations accueil */

.hero-facts {
  position: absolute;

  z-index: 2;

  right: 5vw;
  bottom: 42px;

  display: flex;

  background:
    rgba(20, 69, 99, 0.92);

  color: var(--white);

  backdrop-filter: blur(8px);
}

.hero-facts div {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 22px 25px;

  border-right:
    1px solid
    rgba(255, 255, 255, 0.15);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong {
  color: var(--yellow);

  font-family:
    "Oswald", sans-serif;

  font-size: 2.4rem;

  line-height: 1;
}

.hero-facts span {
  font-size: 0.72rem;

  line-height: 1.35;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}


/* Découvrir */

.scroll-cue {
  position: absolute;

  z-index: 2;

  bottom: 38px;
  left: 7vw;

  display: flex;

  gap: 20px;

  font-size: 0.78rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.scroll-cue span {
  color: var(--blue);
}


/* ========================================
   SECTIONS GÉNÉRALES
======================================== */

.section {
  padding:
    120px
    7vw;
}

.kicker {
  margin:
    0
    0
    20px;

  color: var(--blue);
}

.section-heading h2,
.about h2,
.contact h2,
.appointment h2 {
  font-size:
    clamp(
      3.1rem,
      6vw,
      6.4rem
    );

  letter-spacing:
    -0.035em;
}

.section-heading.compact {
  max-width: 760px;
}

.appointment.section {
  padding-top: 0;
  padding-bottom: 40px;
  margin: 0;
}

.appointment-calendar {
  margin-top: 0;
}


/* ========================================
   FORMATIONS
======================================== */

.intro {
  display: grid;

  grid-template-columns:
    1.2fr
    0.8fr;

  column-gap: 10vw;
}

.section-lead {
  max-width: 600px;

  margin:
    50px
    0
    0;

  color: var(--muted);

  font-size: 1.14rem;
}

.training-grid {
  grid-column:
    1 / -1;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  margin-top: 80px;

  border-top:
    1px solid var(--line);
}

.training-card {
  display: flex;

  flex-direction: column;

  justify-content:
    space-between;

  min-height: 430px;

  padding: 28px;

  border-right:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.training-card:first-child {
  border-left:
    1px solid var(--line);
}

.training-card:hover {
  background:
    var(--white);

  box-shadow:
    0 18px 50px
    rgba(21, 54, 77, 0.08);

  transform:
    translateY(-5px);
}

.training-card.featured {
  background:
    var(--blue);

  border-color:
    var(--blue);

  color:
    var(--white);
}

.training-card .number {
  font-family:
    "Oswald", sans-serif;

  font-size: 1rem;

  font-weight: 600;
}

.training-card .tag {
  align-self:
    flex-end;

  margin-top: -22px;

  padding:
    6px 10px;

  border:
    1px solid currentColor;

  border-radius:
    50px;

  font-size:
    0.7rem;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}

.training-card h3 {
  margin-bottom: 18px;

  font-size: 2.35rem;
}

.training-card p {
  color: var(--muted);
}

.training-card.featured p {
  color:
    rgba(
      255,
      255,
      255,
      0.86
    );
}

.training-card a,
.text-link {
  display: flex;

  justify-content:
    space-between;

  margin-top: 28px;

  padding-top: 15px;

  border-top:
    1px solid currentColor;

  font-weight: 700;
}


/* Paiement */

.payment-line {
  grid-column:
    1 / -1;

  display: grid;

  grid-template-columns:
    1fr
    1.5fr
    1fr;

  align-items: center;

  padding:
    24px 0;

  border-bottom:
    1px solid var(--line);
}

.payment-line span {
  font-family:
    "Oswald", sans-serif;

  font-size: 1rem;

  font-weight: 600;

  text-transform:
    uppercase;
}

.payment-line p,
.payment-line small {
  margin: 0;
}

.payment-line small {
  color: var(--muted);

  text-align: right;
}


/* ========================================
   AUTO-ÉCOLE
======================================== */

.about {
  display: grid;

  grid-template-columns:
    1.05fr
    0.95fr;

  min-height: 760px;

  background: #153f5b;

  color: var(--white);
}


/* ========================================
   DIAPORAMA AUTO-ÉCOLE
======================================== */

.about-slider {
  position: relative;

  min-width: 0;

  min-height: 620px;

  overflow: hidden;

  background: #0f3047;
}

.about-slider-track {
  display: flex;

  width: 100%;
  height: 100%;

  transition:
    transform
    0.8s
    cubic-bezier(
      0.65,
      0,
      0.35,
      1
    );

  will-change: transform;
}

.about-slide {
  flex:
    0 0 100%;

  width: 100%;

  min-width: 100%;

  height: 100%;
}

.about-slide img {
  width: 100%;

  height: 100%;

  min-height: 620px;

  object-fit: cover;
}


/* Informations slider */

.about-slider-information {
  position: absolute;

  right: 24px;
  bottom: 24px;
  left: 24px;

  display: flex;

  align-items: center;

  gap: 16px;
}

.about-slider-count {
  flex:
    0 0 auto;

  padding:
    8px 12px;

  background:
    rgba(
      18,
      54,
      79,
      0.88
    );

  color:
    var(--white);

  font-family:
    "Oswald", sans-serif;

  font-size: 0.75rem;

  font-weight: 600;

  letter-spacing: 0.12em;

  backdrop-filter:
    blur(8px);
}

.about-slider-progress {
  flex: 1;

  height: 3px;

  overflow: hidden;

  background:
    rgba(
      255,
      255,
      255,
      0.4
    );
}

.about-slider-progress span {
  display: block;

  width: 100%;

  height: 100%;

  background:
    var(--white);

  transform-origin: left;

  animation:
    about-slider-progress
    5s
    linear
    infinite;
}

.about-slider:hover
.about-slider-progress span {
  animation-play-state:
    paused;
}

@keyframes about-slider-progress {

  from {
    transform:
      scaleX(0);
  }

  to {
    transform:
      scaleX(1);
  }

}


/* Texte auto-école */

.about-copy {
  padding:
    100px
    8vw;
}

.kicker.light {
  color: #63c5ee;
}

.about h2 {
  font-size:
    clamp(
      3rem,
      5.2vw,
      5.8rem
    );
}

.about-copy > p:not(.kicker) {
  margin:
    32px 0;

  color: #d4e3eb;

  font-size: 1.06rem;
}

.about ul {
  margin:
    35px 0;

  padding: 0;

  list-style: none;
}

.about li {
  padding:
    17px 0;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.2
    );
}

.about li span {
  margin-right: 18px;

  color: #63c5ee;

  font-size: 0.72rem;
}


/* Programme REMC souligné */

.lien-souligne {
  text-decoration: underline;

  text-underline-offset: 4px;

  text-decoration-thickness:
    1px;
}

.lien-souligne:hover {
  color: #63c5ee;
}

.text-link.light {
  max-width: 250px;

  color: var(--white);
}


/* ========================================
   DOCUMENTS
======================================== */

.docs-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 48px;

  margin-top: 80px;
}

.doc-group h3 {
  padding-bottom: 20px;

  border-bottom:
    3px solid var(--ink);

  font-size: 1.8rem;
}

.doc-group h3 span {
  margin-right: 12px;

  color: var(--blue);
}

.doc-group a {
  display: flex;

  justify-content:
    space-between;

  gap: 15px;

  padding:
    17px 4px;

  border-bottom:
    1px solid var(--line);

  font-size: 0.92rem;

  transition:
    padding-left 0.2s ease,
    background-color 0.2s ease;
}

.doc-group a:hover {
  padding-left: 12px;

  background: var(--white);
}

.doc-group a span {
  color: var(--blue);
}


/* ========================================
   AVIS
======================================== */

.reviews {
  display: grid;

  grid-template-columns:
    0.8fr
    1.2fr;

  gap: 7vw;

  padding:
    110px
    7vw;

  background:
    var(--blue-dark);

  color:
    var(--white);
}

.review-carousel {
  min-width: 0;
}

.review-controls {
  display: flex;

  align-items: center;

  justify-content:
    flex-end;

  gap: 10px;

  margin-bottom: 18px;
}

.review-count {
  margin-right: auto;

  color: #a9c9db;

  font-family:
    "Oswald", sans-serif;

  font-size: 0.8rem;

  font-weight: 600;

  letter-spacing: 0.12em;
}

.review-arrow {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 54px;

  height: 54px;

  padding: 0;

  background: transparent;

  border:
    1px solid #4f7891;

  color:
    var(--white);

  font-size: 1.4rem;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.review-arrow:hover,
.review-arrow:focus-visible {
  background:
    var(--blue);

  border-color:
    var(--blue);
}

.review-arrow:active {
  transform:
    scale(0.96);
}

.review-viewport {
  overflow: hidden;
}

.review-track {
  display: flex;

  transition:
    transform
    0.45s
    cubic-bezier(
      0.65,
      0,
      0.35,
      1
    );

  will-change:
    transform;
}

.review-track blockquote {
  flex:
    0 0 100%;

  display: flex;

  flex-direction: column;

  min-height: 360px;

  margin: 0;

  padding: 44px;

  background:
    var(--blue-medium);

  border-top:
    4px solid
    var(--blue);
}

.stars {
  color:
    var(--yellow);

  letter-spacing:
    0.18em;
}

.review-track blockquote p {
  margin:
    26px
    0
    34px;

  font-size:
    1.08rem;

  line-height:
    1.65;
}

.review-track footer {
  margin-top: auto;

  font-size:
    0.78rem;

  font-weight:
    700;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}


/* ========================================
   PRISE DE RENDEZ-VOUS
======================================== */

.appointment {
  display: grid;

  grid-template-columns:
    0.65fr
    1.35fr;

  gap: 5vw;

  align-items: start;

  background:
    var(--white);

  scroll-margin-top:
    110px;
}


/* Partie gauche */

.appointment-heading {
  position: sticky;

  top: 125px;
}

.appointment-heading h2 {
  font-size:
    clamp(
      3.1rem,
      6vw,
      6.4rem
    );

  letter-spacing:
    -0.035em;
}

.appointment-text {
  max-width: 500px;

  margin:
    30px
    0
    25px;

  color:
    var(--muted);

  font-size:
    1.05rem;

  line-height:
    1.7;
}


/* Lien horaires */

.appointment-hours-link {
  display:
    inline-block;

  padding-bottom:
    4px;

  border-bottom:
    2px solid
    var(--blue);

  color:
    var(--ink);

  font-weight:
    700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.appointment-hours-link:hover {
  color:
    var(--blue);

  transform:
    translateY(-2px);
}


/* ========================================
   CALENDRIER HUBSPOT
======================================== */

.appointment-calendar {
  width: 100%;

  min-width: 0;

  padding: 18px;

  overflow: hidden;

  background:
    var(--white);

  border:
    1px solid
    var(--line);

  box-shadow:
    0 20px 60px
    rgba(
      21,
      54,
      77,
      0.10
    );
}

.appointment-calendar
.meetings-iframe-container {
  width: 100%;
  min-height: 700px;
}


/*
  HubSpot crée automatiquement
  l'iframe à l'intérieur du conteneur.
*/

.appointment-calendar
.meetings-iframe-container iframe {
  display: block;

  width: 100% !important;

  min-height: 700px;

  border: 0;
}


/* ========================================
   CONTACT
======================================== */

.contact {
  display: grid;

  grid-template-columns:
    0.8fr
    1.2fr;

  gap: 9vw;

  padding:
    110px
    7vw;

  background:
    var(--blue-light);
}

.contact .kicker {
  color:
    var(--ink);
}

.contact-title .button {
  margin-top:
    35px;
}

.contact-details {
  display: grid;

  grid-template-columns:
    1fr
    1fr;
}

.contact-details > div {
  padding:
    25px
    20px;

  border-top:
    1px solid
    rgba(
      21,
      54,
      77,
      0.35
    );
}

.contact-details > div > span {
  font-size:
    0.7rem;

  font-weight:
    700;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;
}

.contact-details p {
  font-size:
    1.05rem;
}

.contact-details a {
  text-decoration:
    underline;

  text-underline-offset:
    4px;
}


/* ========================================
   HORAIRES
======================================== */

.hours-section {
  grid-column:
    1 / -1;

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 24px;

  width: 100%;

  scroll-margin-top:
    110px;
}

.hours-title {
  display: flex;

  align-items: center;

  gap: 9px;
}


/* Bouton information */

.info-button {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding: 0;

  background:
    transparent;

  border: 0;

  color:
    var(--blue);

  font-size:
    1rem;

  cursor:
    pointer;

  transition:
    transform
    0.2s ease;
}

.info-button:hover,
.info-button:focus-visible {
  transform:
    scale(1.12);
}


/* Message horaires */

.hours-info {
  display: flex;

  align-items:
    flex-start;

  gap: 8px;

  margin:
    14px
    0
    18px;

  padding:
    12px
    14px;

  background:
    rgba(
      255,
      255,
      255,
      0.55
    );

  border-left:
    3px solid
    var(--blue);

  font-size:
    0.82rem;

  line-height:
    1.45;
}

.hours-info[hidden] {
  display: none;
}

.hours p {
  display: flex;

  justify-content:
    space-between;

  gap: 20px;

  margin:
    10px 0;
}


/* ========================================
   PIED DE PAGE
======================================== */

.footer {
  display: flex;

  align-items: center;

  gap: 40px;

  min-height: 145px;

  padding:
    28px
    7vw;

  background:
    var(--ink);

  color:
    #a9bdc9;

  font-size:
    0.75rem;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}

.footer img {
  width:
    180px;

  filter:
    invert(1)
    grayscale(1)
    brightness(2);
}

.footer p {
  margin-left:
    auto;
}

.footer a {
  color:
    var(--white);
}


/* ========================================
   TABLETTES
======================================== */

@media (max-width: 980px) {


  /* Navigation */

  .desktop-nav,
  .header-cta {
    display: none;
  }


  .site-header {
    height:
      76px;
  }


  .brand {
    width:
      180px;
  }


  .brand img {
    height:
      58px;
  }


  /* Bouton menu */

  .menu-button {
    display: flex;

    flex-direction:
      column;

    align-items:
      center;

    justify-content:
      center;

    gap: 7px;

    width:
      46px;

    height:
      46px;

    margin-left:
      auto;

    padding: 0;

    background:
      var(--ink);

    border: 0;

    cursor:
      pointer;
  }


  .menu-button span {
    display:
      block;

    width:
      20px;

    height:
      2px;

    background:
      var(--white);
  }


  /* Menu mobile */

  .mobile-menu {
    position:
      absolute;

    top:
      76px;

    right: 0;

    left: 0;

    padding:
      26px
      5vw
      34px;

    background:
      var(--paper);

    border-bottom:
      1px solid
      var(--line);
  }


  .mobile-menu:not([hidden]) {
    display: flex;

    flex-direction:
      column;

    gap: 19px;
  }


  .mobile-menu .button {
    margin-top:
      5px;
  }


  /* Accueil */

  .hero {
    padding:
      135px
      6vw
      150px;
  }


  .hero-facts {
    right:
      6vw;

    bottom:
      30px;

    left:
      6vw;

    overflow-x:
      auto;
  }


  .hero-facts div {
    flex: 1;

    min-width:
      185px;
  }


  .scroll-cue {
    display:
      none;
  }


  /* Formations */

  .intro {
    grid-template-columns:
      1fr;
  }


  .section-lead {
    margin-top:
      30px;
  }


  .training-grid {
    grid-template-columns:
      1fr;
  }


  .training-card {
    min-height:
      340px;

    border-left:
      1px solid
      var(--line);
  }


  .payment-line {
    grid-template-columns:
      1fr;

    gap:
      8px;
  }


  .payment-line small {
    text-align:
      left;
  }


  /* Auto-école */

  .about {
    grid-template-columns:
      1fr;
  }


  .about-slider,
  .about-slide img {
    min-height:
      460px;
  }


  /* Documents */

  .docs-grid {
    grid-template-columns:
      1fr;
  }


  /* Avis */

  .reviews {
    grid-template-columns:
      1fr;
  }


  .reviews .section-heading {
    margin-bottom:
      30px;
  }


  /* ====================================
     RENDEZ-VOUS TABLETTE
  ===================================== */

  .appointment {
    grid-template-columns:
      1fr;

    gap:
      45px;
  }


  .appointment-heading {
    position:
      static;
  }


  .appointment-calendar
  .meetings-iframe-container,
  .appointment-calendar
  .meetings-iframe-container iframe {
    min-height:
      760px;
  }


  /* Contact */

  .contact {
    grid-template-columns:
      1fr;
  }

}


/* ========================================
   TÉLÉPHONES
======================================== */

@media (max-width: 620px) {


  /* Header */

  .site-header {
    padding:
      0
      20px;
  }


  /* Accueil */

  .hero {
    min-height:
      820px;

    padding-right:
      22px;

    padding-left:
      22px;
  }


  .hero-photo {
    background-position:
      63%
      center;
  }


  .hero-shade {
    background:

      linear-gradient(
        90deg,

        rgba(
          255,
          255,
          255,
          0.97
        ),

        rgba(
          255,
          255,
          255,
          0.58
        )
      ),

      linear-gradient(
        0deg,

        rgba(
          255,
          255,
          255,
          0.82
        ),

        transparent
      );
  }


  h1 {
    font-size:
      4rem;
  }


  .hero-copy {
    font-size:
      1rem;
  }


  .hero-actions .button {
    width:
      100%;
  }


  .hero-facts {
    right:
      0;

    bottom:
      0;

    left:
      0;
  }


  .hero-facts div {
    min-width:
      156px;

    padding:
      15px;
  }


  .hero-facts strong {
    font-size:
      1.8rem;
  }


  /* Sections */

  .section {
    padding:
      80px
      22px;
  }


  .section-heading h2,
  .contact h2,
  .appointment h2 {
    font-size:
      3.15rem;
  }


  /* Formation */

  .training-grid {
    margin-top:
      50px;
  }


  /* Auto-école */

  .about-slider,
  .about-slide img {
    min-height:
      320px;
  }


  .about-slider-information {
    right:
      16px;

    bottom:
      16px;

    left:
      16px;
  }


  .about-copy {
    padding:
      70px
      22px;
  }


  .about-copy h2 {
    font-size:
      3.1rem;
  }


  /* Avis et contact */

  .reviews,
  .contact {
    padding:
      80px
      22px;
  }


  .review-track blockquote {
    min-height:
      330px;

    padding:
      28px;
  }


  /* ====================================
     RENDEZ-VOUS MOBILE
  ===================================== */

  .appointment {
    padding:
      80px
      0;
  }


  .appointment-heading {
    padding:
      0
      22px;
  }


  .appointment-heading h2 {
    font-size:
      3.15rem;
  }


  .appointment-text {
    font-size:
      1rem;
  }


  .appointment-calendar {
    width:
      100%;

    padding:
      0;

    border-right:
      0;

    border-left:
      0;

    box-shadow:
      none;
  }


  .appointment-calendar
  .meetings-iframe-container,
  .appointment-calendar
  .meetings-iframe-container iframe {
    width:
      100% !important;

    min-height:
      850px;
  }


  /* Contact */

  .contact-details {
    grid-template-columns:
      1fr;
  }


  /* Horaires */

  .hours-section {
    grid-template-columns:
      1fr;

    gap:
      0;
  }


  .hours {
    padding-bottom:
      20px;
  }


  /* Footer */

  .footer {
    flex-wrap:
      wrap;

    gap:
      18px;

    padding:
      30px
      22px;
  }


  .footer p {
    width:
      100%;

    margin-left:
      0;
  }

}


/* ========================================
   ACCESSIBILITÉ
======================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior:
      auto;
  }

  * {
    transition:
      none !important;
  }

  .about-slider-progress span {
    animation:
      none;
  }

}

/* ========================================
   AJUSTEMENTS FINAUX
   - Espacements verticaux plus compacts
   - Horaires plus lisibles sur téléphone
   - Vraie place pour l'illustration accueil-voiture4
======================================== */

/* Espacements verticaux généraux */
.section {
  padding-top: 85px;
  padding-bottom: 85px;
}

.training-grid,
.docs-grid {
  margin-top: 55px;
}

.reviews,
.contact {
  padding-top: 85px;
  padding-bottom: 85px;
}

.about-copy {
  padding-top: 75px;
  padding-bottom: 75px;
}

/* Horaires un peu plus compacts */
.hours p {
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ========================================
   ACCUEIL : ILLUSTRATION VOITURE
======================================== */

.hero {
  min-height: 88vh;
  padding: 140px 7vw 85px;
}

/* L'illustration occupe une vraie zone à droite */
.hero-photo {
  top: 92px;
  right: 0;
  bottom: 0;
  left: 46%;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  transform: none;
}

/* Dégradé plus léger pour laisser voir la voiture */
.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(244, 250, 255, 1) 0%,
      rgba(244, 250, 255, 1) 39%,
      rgba(244, 250, 255, 0.92) 45%,
      rgba(244, 250, 255, 0.35) 55%,
      transparent 68%
    );
}

.hero-content {
  width: 48%;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(4.3rem, 7.5vw, 8rem);
}

/* ========================================
   TABLETTE
======================================== */

@media (max-width: 980px) {
  .hero {
    min-height: 850px;
    padding-top: 120px;
  }

  .hero-content {
    width: 58%;
  }

  .hero-photo {
    top: 76px;
    left: 42%;

    background-size: contain;
    background-position: center right;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(244, 250, 255, 1) 0%,
        rgba(244, 250, 255, 0.96) 42%,
        rgba(244, 250, 255, 0.55) 57%,
        transparent 75%
      );
  }
}

/* ========================================
   TÉLÉPHONE
======================================== */

@media (max-width: 620px) {
  /* Moins d'espace vertical entre les grandes parties */
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .reviews,
  .contact {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .about-copy {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .training-grid,
  .docs-grid {
    margin-top: 40px;
  }

  /* Accueil : texte puis illustration dans sa propre zone */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    min-height: auto;

    padding: 105px 22px 40px;
  }

  .hero-content {
    position: relative;
    width: 100%;
    max-width: none;
    order: 1;
  }

  .hero-photo {
    position: relative;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    order: 2;

    width: calc(100% + 44px);
    height: 300px;

    margin: 28px -22px 0;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-shade {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 4.5rem);
  }

  .hero-copy {
    max-width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  /* Horaires : colonne du jour fixe, plus de place pour les créneaux */
  .hours p {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px;

    margin: 7px 0;

    font-size: 0.74rem;
    line-height: 1.3;
  }

  .hours p b {
    font-size: 0.78rem;
    flex-shrink: 0;
  }
}

/* ========================================
   AJUSTEMENTS TITRES + HERO FINAL
======================================== */

/* Titres globalement un peu plus petits */
.section-heading h2,
.about h2,
.contact h2,
.appointment h2 {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
}

.about h2 {
  font-size: clamp(2.7rem, 4.6vw, 5rem);
}

.hero h1 {
  font-size: clamp(3.8rem, 6.7vw, 7rem);
}

/* Le titre du hero reste maîtrisé en lignes */
.hero-title span,
.hero-title em {
  display: block;
}

/* ========================================
   TABLETTE
======================================== */

@media (max-width: 980px) {
  .section-heading h2,
  .about h2,
  .contact h2,
  .appointment h2 {
    font-size: clamp(2.8rem, 6vw, 4.7rem);
  }

  .hero h1 {
    font-size: clamp(3.7rem, 7.5vw, 5.8rem);
  }
}

/* ========================================
   TÉLÉPHONE : TITRE + VOITURE EN HAUT
======================================== */

@media (max-width: 620px) {

  /* Titres de sections moins imposants */
  .section-heading h2,
  .contact h2,
  .appointment h2,
  .about-copy h2 {
    font-size: 2.65rem;
  }

  /*
    Le hero devient une petite grille en haut :
    titre à gauche, voiture à droite, visible immédiatement.
  */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(135px, 0.95fr);
    grid-template-rows: auto auto auto;
    column-gap: 8px;
    align-items: center;

    min-height: auto;
    padding: 100px 14px 42px 22px;
  }

  .hero-content {
    display: contents;
  }

  .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;

    margin-bottom: 16px;
  }

  .hero-title {
    grid-column: 1;
    grid-row: 2;

    position: relative;
    z-index: 3;

    font-size: clamp(2.8rem, 13.2vw, 3.65rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  /* Exactement deux lignes */
  .hero-title span,
  .hero-title em {
    display: block;
    white-space: nowrap;
  }

  /*
    La voiture remonte au niveau du titre.
    Elle n'est plus placée sous tout le contenu.
  */
  .hero-photo {
    position: relative;

    grid-column: 2;
    grid-row: 2;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: calc(100% + 10px);
    height: 210px;

    margin: -18px -10px -18px 0;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    transform: none;
  }

  .hero-shade {
    display: none;
  }

  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 3;

    max-width: 100%;
    margin: 20px 0 22px;

    font-size: 0.96rem;
  }

  .hero-actions {
    grid-column: 1 / -1;
    grid-row: 4;

    display: flex;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }
}

/* Très petits téléphones */
@media (max-width: 390px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(120px, 0.92fr);
    padding-left: 18px;
    padding-right: 10px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 12.7vw, 3.15rem);
  }

  .hero-photo {
    height: 185px;
  }

  .section-heading h2,
  .contact h2,
  .appointment h2,
  .about-copy h2 {
    font-size: 2.4rem;
  }
}

/* ========================================
   CORRECTION HERO — GRANDE ILLUSTRATION
======================================== */

.section-heading h2,
.about h2,
.contact h2,
.appointment h2 {
  font-size: clamp(2.55rem, 4.6vw, 5rem);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 150px 7vw 95px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: block;
  width: auto;
  max-width: 690px;
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  line-height: 1;
}

.hero-title span,
.hero-title em {
  display: block;
}

.hero-photo {
  position: absolute;
  z-index: 1;
  inset: 92px 0 0 0;
  width: 100%;
  height: auto;
  margin: 0;
  background-image: url("assets/accueil-voiture4.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
}

.hero-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.90) 34%,
      rgba(255,255,255,0.48) 53%,
      rgba(255,255,255,0.08) 72%,
      rgba(255,255,255,0) 86%
    );
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 3;
}

@media (max-width: 620px) {
  .section-heading h2,
  .about-copy h2,
  .contact h2,
  .appointment h2 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    padding: 100px 20px 42px;
    overflow: hidden;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .hero-photo {
    position: absolute;
    z-index: 1;
    inset: 72px 0 0 0;
    width: 100%;
    height: auto;
    margin: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .hero-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.02) 0%,
        rgba(255,255,255,0.02) 38%,
        rgba(255,255,255,0.55) 64%,
        rgba(255,255,255,0.96) 84%,
        rgba(255,255,255,1) 100%
      );
  }

  .eyebrow {
    display: flex;
    margin: 0 0 12px;
  }

  .hero-title {
    margin: 0;
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .hero-title span,
  .hero-title em {
    display: block;
    white-space: nowrap;
  }

  .hero-copy {
    max-width: 520px;
    margin: 18px 0 20px;
    font-size: 0.93rem;
    line-height: 1.45;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 49px;
    padding: 10px 15px;
    font-size: 0.84rem;
  }

  .scroll-cue {
    display: none;
  }

  .hours p {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 6px;
    margin: 6px 0;
    font-size: 0.71rem;
    line-height: 1.28;
  }

  .hours p b {
    font-size: 0.75rem;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(2.15rem, 10.5vw, 2.75rem);
  }

  .section-heading h2,
  .about-copy h2,
  .contact h2,
  .appointment h2 {
    font-size: 2.1rem;
  }
}

/* ========================================
   MOBILE — ILLUSTRATION ENTIÈRE + PETIT TITRE
======================================== */

@media (max-width: 620px) {

  /*
    On affiche toute l'illustration sans la rogner,
    comme sur la capture de référence.
  */
  .hero-photo {
    position: absolute;
    z-index: 1;

    top: 72px;
    right: 0;
    bottom: auto;
    left: 0;

    width: 100%;
    height: 58vh;
    min-height: 390px;
    max-height: 520px;

    margin: 0;

    background-image: url("assets/accueil-voiture4.jpg");
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;

    transform: none;
  }

  /*
    Le hero garde assez de hauteur pour l'image
    puis le contenu texte en dessous.
  */
  .hero {
    position: relative;
    display: block;

    min-height: 100svh;

    padding:
      clamp(455px, 62vh, 575px)
      20px
      45px;

    overflow: hidden;
  }

  /*
    Dégradé très léger uniquement vers le bas.
    L'illustration reste entièrement visible.
  */
  .hero-shade {
    position: absolute;
    z-index: 2;
    inset: 0;

    display: block;

    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 43%,
        rgba(255,255,255,0.15) 51%,
        rgba(255,255,255,0.92) 64%,
        rgba(255,255,255,1) 72%
      );
  }

  .hero-content {
    position: relative;
    z-index: 3;

    display: block;

    width: 100%;
    max-width: 100%;
  }

  /*
    Titre environ deux fois plus petit que précédemment.
    Il reste volontairement sur exactement deux lignes.
  */
  .hero-title {
    margin: 0;

    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .hero-title span,
  .hero-title em {
    display: block;
    white-space: nowrap;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.65rem;
  }

  .hero-copy {
    margin: 16px 0 18px;

    font-size: 0.88rem;
    line-height: 1.45;
  }
}

/* Petits téléphones */
@media (max-width: 390px) {

  .hero-photo {
    height: 54vh;
    min-height: 350px;
  }

  .hero {
    padding-top: clamp(410px, 58vh, 510px);
  }

  .hero-title {
    font-size: clamp(1.4rem, 6.7vw, 1.75rem);
  }
}


@media (max-width: 620px) {

  .hero {
    min-height: auto;

    padding-top: 365px;
    padding-bottom: 40px;
  }

}

@media (max-width: 390px) {

  .hero {
    padding-top: 300px;
  }

}