/* ===========================
   ANIMATIONS (niveau racine)
   =========================== */

@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


@layer components {

  /* ===========================
     HEADER — COMMUN
     =========================== */

  .header__logo--mobile {
    max-width: 310px;
  }

  .header__logo-img--mobile {
    width: 100%;
    object-fit: contain;
  }

  /* ===========================
     HEADER — MOBILE
     =========================== */

  .header--mobile {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 80%;
      right: 0;
      width: 100vw;
      min-height: 130vh;
      background: var(--color-secondary);
      /* clip-path géré par les variables CSS hors @layer */
      z-index: -1;
    }

    &::after {
      content: "";
      position: absolute;
      right: 0;
      width: 100vw;
      min-height: 100vh;
      background: var(--color-secondary);
      /* clip-path et top gérés par les variables CSS hors @layer */
      z-index: -1;
      transform: translateX(5%);
    }
  }

  /* ===========================
     HEADER — DESKTOP
     =========================== */

  .header__logo--desktop {
    width: 804px;
    height: 342px;
    display: flex;
    justify-content: start;

    & img {
      width: 100%;
      height: auto;
      object-fit: contain;
    }
  }

  .header__button--desktop {
    background-color: var(--color-secondary);
    padding: 0.25rem;
    color: white;
    font-family: var(--font-title);
  }

  .header__wrapper-hero {
    position: relative;
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;

    & a {
      text-shadow: var(--boxShadow-titleServices);
    }
  }

  .hero__title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    width: 65vw;
    right: 0;
    top: calc(60% - 1rem);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: bold;
    letter-spacing: 0;
    text-shadow: var(--textShadow-titleHero);
    line-height: 1;
    padding-left: 2rem;
  }

  /* ===========================
     HEADER — PRÉSENTATION
     =========================== */

  .header--presentation {
    height: 150px;
  }

  .header__logo--presentation {
    width: 400px;

    & img {
      width: 100%;
    }
  }

  .header__contact--presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem 2rem 0;
    gap: 1rem;
  }


  /* ===========================
     BUTTONS
     =========================== */

  .button {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 4px solid white;
    background-color: var(--color-cta);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: var(--boxShadow-titleSection);
    text-shadow: var(--boxShadow-ctaText);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
  }

  .contact__button,
  .recruitment__button {
    width: 200px;
  }

  .contact__button--call {
    cursor: default;
    background-color: var(--color-secondary);
  }

  .presentation__button--recruitment {
    align-self: center;
    width: 150px;
  }


  /* ===========================
     SCROLL TO TOP
     =========================== */

  .scroll-top {
    position: fixed;
    right: 1em;
    bottom: clamp(4rem, 12dvh, 6rem);
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
    border-radius: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;

    & img {
      width: 60%;
      height: 60%;
      object-fit: contain;
    }
  }

  .scroll-top--visible {
    opacity: 1;
    visibility: visible;
  }


  /* ===========================
     CONTACT BAR (bandeau bas)
     =========================== */

  .contact {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    margin-bottom: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  .contact--visible {
    opacity: 1;
    visibility: visible;
  }


  /* ===========================
     FORM POPUP — BASE PARTAGÉE
     =========================== */

  .form-popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .form-popup__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-popup__title {
    color: var(--color-secondary);
    text-align: center;
    font-size: 1rem;
  }

  .form-popup__label {
    align-self: start;
  }

  .form-popup__files {
    align-self: start;
  }

  .form-popup__hint {
    font-size: 0.75rem;
  }

  .form-popup--active {
    display: flex;
  }

  .form-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }

  .form-popup__modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--backgroundColor-primary);
    padding: 1rem;
    border-radius: 1rem;
    border: 8px solid var(--color-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popup 0.3s ease-out;
    transition: border-color 0.1s ease, height 0.2s ease-out;
    z-index: 2;
  }

  .form-popup__modal--success {
    padding: 0.5rem;
  }

  .form-popup__modal--error {
    padding: 0.5rem;
    border-color: var(--color-error);
  }

  .form-popup__form--hidden {
    display: none;
  }

  .form-popup__input,
  .form-popup__textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--color-secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--color-primary);
  }

  .form-popup__textarea {
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
  }

  .form-popup__button {
    width: 200px;
    align-self: center;
  }

  .form-popup__close {
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
  }

  .form-popup__feedback {
    display: block;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    font-size: 1rem;
    text-align: center;
    text-shadow: var(--textShadow-form);
    max-width: 100%;
    padding: 0;
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  .form-popup__feedback--success {
    display: block;
    color: var(--color-secondary);
  }

  .form-popup__feedback--error {
    display: block;
    color: var(--color-error);
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }


  /* ===========================
     PRÉSENTATION — TITRES & LISTES
     =========================== */

  .presentation__title {
    width: fit-content;
    background-color: var(--backgroundColor-titlesPresentation);
    font-size: 1.25rem;
    color: var(--color-white);
    box-shadow: var(--boxShadow-titleServices);
    padding: 0.5rem 0;
  }

  .presentation__title--left {
    border-radius: 0 0.5rem 0.5rem 0;
    padding-left: 1.5rem;
    padding-right: 1rem;
  }

  .presentation__title--right {
    align-self: end;
    text-align: end;
    padding-right: 1.5rem;
    padding-left: 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .presentation__subtitle {
    width: 100%;
    background-color: var(--color-secondary);
    color: white;
    text-align: center;
    box-shadow: var(--boxShadow-titleSection);
  }

  .presentation__list {
    padding-left: 1rem;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;

    & li:active a {
      transform: scale(0.96);
      opacity: 0.8;
    }
  }

  .presentation__list-item a {
    color: var(--color-primary);
    text-shadow: var(--textShadow-titleServices);
  }

  .presentation__about {
    & p {
      justify-self: center;
      padding: 1rem;
    }
  }

  /* ===========================
     PRÉSENTATION — ICÔNES
     =========================== */

  .presentation__icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .presentation__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .presentation__icon--opening {
    width: 55vw;
    max-width: 198px;
    max-height: 146px;
    align-self: center;
    margin-top: 1rem;
    margin-left: 7vw;
  }

  .presentation__icon--actions {
    max-width: 125px;
    max-height: 84px;
  }

  .presentation__icon--chrono {
    max-width: 120px;
    max-height: 62px;
    align-self: center;
  }

  .presentation__icon--stockage {
    max-width: 99px;
    max-height: 67px;
    align-self: center;
  }

  .presentation__icon--electric,
  .presentation__icon--fuel {
    width: clamp(50px, 5vw, 120px);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* ===========================
     PRÉSENTATION — VÉHICULES (mobile)
     =========================== */

  .presentation__car--kangoo {
    align-self: start;
    max-width: 80px;
    justify-content: end;
  }

  .presentation__car--not-hayon {
    max-width: 139px;
  }

  .presentation__car--with-hayon {
    max-width: 138px;
  }

  .presentation__car--kangoo img,
  .presentation__car--not-hayon img,
  .presentation__car--with-hayon img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* ===========================
     PRÉSENTATION — ZONES D'ACTIONS
     =========================== */

  .presentation__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .presentation__actions h2 {
    grid-column: 2 / 4;
    place-self: end;
  }

  .presentation__icon--actions {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    margin-left: 1rem;
  }

  .presentation__text--right {
    grid-column: 2 / 4;
    grid-row: 2;
    align-self: end;
    text-align: end;
  }

  /* ===========================
     PRÉSENTATION — FLOTTE (mobile)
     =========================== */

  .presentation__fleet {
    align-items: center;
  }

  .presentation__fleet-icons--mobile {
    width: 95%;
    max-height: 300px;
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    grid-auto-rows: repeat(2, minmax(80px, auto));
    column-gap: 0.5rem;
  }

  .presentation__fleet-size {
    width: 100%;
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    border-top: 6px solid var(--color-secondary);
    border-left: 6px solid var(--color-secondary);
  }

  .presentation__fleet-size p {
    align-items: center;
    row-gap: 0.25rem;
    padding: 0;
    margin-top: 1rem;
  }

  .presentation__fleet-size p span:first-child {
    font-size: 1rem;
    font-weight: var(--fontWeight-semibold);
    padding: 0;
  }

  .presentation__fleet-size p span:last-child {
    font-size: 0.5rem;
    font-weight: var(--fontWeight-semibold);
    padding: 0;
  }

  .presentation__fleet-engine {
    width: 100%;
    height: auto;
    place-self: center;
    grid-column: 1 / 3;
    grid-row: 2 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .presentation__fleet-engine p {
    font-weight: bold;
    text-indent: 0;
  }

  .presentation__fleet-cars {
    width: 100%;
    place-self: center;
    grid-column: 3 / 5;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 1rem;
    padding-right: 0.5rem;
  }

  /* ===========================
     RECRUTEMENT — MOBILE
     =========================== */

  .presentation__recruitment {
    margin-top: 5vh;
    justify-content: space-evenly;
    row-gap: 1rem;
  }

  .presentation__recruitment-title {
    position: relative;
    width: fit-content;
    justify-self: center;
    align-self: end;
    font-size: 0.75rem;
    font-weight: var(--fontWeight-semibold);
  }

  .presentation__recruitment-bg {
    position: absolute;
    width: 225px;
    height: 0;
    bottom: 0;
    right: 0;
    border-left: 50px solid transparent;
    border-bottom: 2.5rem solid var(--color-secondary);
    z-index: -1;
  }

  .presentation__recruitment-heading {
    color: white;
    width: fit-content;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: end;
    z-index: 2;
  }

  .presentation__recruitment-subtitle {
    align-self: start;
    width: fit-content;
    text-decoration: underline var(--color-secondary);
    text-underline-offset: 4px;
    text-decoration-thickness: 4px;
    font-weight: var(--fontWeight-semibold);
  }

  .presentation__recruitment-list {
    padding-left: 2rem;
  }

  .presentation__recruitment-list li {
    list-style-type: disc;
    margin-bottom: 0.25rem;

    &::marker {
      color: var(--color-secondary);
    }
  }

  .presentation__button--recruitment {
    margin-top: 2rem;
  }

  /* ===========================
     RECRUTEMENT — DESKTOP
     =========================== */

  .section__recruitment__wrapper--desktop {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
    gap: 0.5rem;
  }

  .logo__recruitment--desktop {
    position: absolute;
    top: 1rem;
    left: 0;
  }

  .section__recruitment__presentation--desktop {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    width: 55%;
    height: 100%;
    gap: 0.5rem;
  }

  .section__recruitment-subtitle {
    text-decoration: underline var(--color-secondary);
    text-underline-offset: 4px;
    text-decoration-thickness: 4px;
  }

  .section__recruitment__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;

    & span {
      max-width: 100%;
    }
  }

  .section__recruitment__form--desktop {
    width: 40%;
    height: 100%;
    border-radius: 1rem;
    border: 8px solid var(--color-secondary);
    box-shadow: var(--boxShadow-titleServices);
    padding: 1rem;
  }

  .recruitment__form__title {
    color: var(--color-secondary);
    font-size: 1.25rem;
  }

  .recruitment__form__element--desktop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;

    & textarea {
      height: 70%;
    }
  }

  /* ===========================
     MAIN DESKTOP — ACCUEIL
     =========================== */

  .main__container--desktop {
    width: 100%;
    height: 95%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
  }

  .nav__presentation--desktop {
    width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    padding: 0 2rem;

    &>a {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 2rem;
      width: 323px;
      height: 55px;
      background-color: var(--color-primary);
      color: white;
    }

    &>a:nth-child(even) {
      background-color: var(--color-secondary);
    }
  }

  .nav__presentation--row {
    flex-direction: row;
    height: auto;
    width: 100%;
    font-size: 1rem;

    & a {
      box-shadow: var(--boxShadow-titleServices);
    }

    & a:hover {
      opacity: 0.9;
    }
  }

  .main__container__presentation--desktop {
    width: 70%;
    max-width: 900px;
    height: 90%;
    max-height: 443px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    grid-template-rows: repeat(2, minmax(90px, 1fr));
    padding: 1rem;
    row-gap: 0.5rem;

    &::before {
      position: absolute;
      content: "";
      top: 0;
      left: 0;
      width: 50%;
      height: 50%;
      border: 18px solid var(--color-secondary);
      border-bottom: none;
      border-right: none;
      z-index: 2;
    }

    &::after {
      position: absolute;
      content: "";
      bottom: 0;
      right: 0;
      width: 50%;
      height: 50%;
      border: 18px solid var(--color-secondary);
      border-top: none;
      border-left: none;
      z-index: 2;
    }
  }

  .presentation__actions--desktop {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;

    & p {
      font-size: 1.25rem;
      font-weight: var(--fontWeight-semibold);
      text-indent: 0;
    }
  }

  .presentation__icon__desktop--actions {
    width: 170px;
    height: auto;
    align-self: center;
  }

  .presentation__opening--desktop {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .presentation__icon__opening--desktop {
    width: 60%;
  }

  .presentation__fleet--desktop {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;

    & p {
      padding: 0;
      text-indent: 0;
      font-weight: var(--fontWeight-semibold);
      font-size: 1.25rem;
      align-self: center;
    }
  }

  .presentation__fleet-icon__wrapper--desktop {
    width: 261px;
    height: 123px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .presentation__icon__desktop--fleet {
    align-self: end;
    width: 220px;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    &::before {
      content: "";
      position: absolute;
      left: 4px;
      top: -26px;
      width: 72%;
      height: 25px;
      background: url('/assets/img/length.svg') no-repeat center/contain;
    }

    &::after {
      content: "";
      background: url('/assets/img/height.svg') no-repeat center/contain;
      width: 25px;
      height: 80%;
      position: absolute;
      left: -24px;
      bottom: 15px;
    }
  }

  .main__container__contact--desktop {
    height: 100%;
    width: 30%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 2rem;
  }

  /* ===========================
     PAGE PRÉSENTATION — DESKTOP
     =========================== */

  .presentation__container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    grid-template-rows: repeat(2, minmax(200px, 1fr));
    justify-content: center;
    padding: 0 2rem;
  }

  .presentation--desktop {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 4rem;
    padding: 0 2rem;

    & a {
      width: 323px;
      height: 55px;
      color: white;
      background-color: var(--color-primary);
      display: flex;
      justify-content: center;
      align-items: center;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  .presentation--desktop--before {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .presentation--desktop--after {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .presentation__actived--desktop {
    width: 100%;
    max-width: 500px;
    height: fit-content;
    padding-bottom: 1rem;
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background-color: white;
    box-shadow: var(--boxShadow-titleSection);

    & p {
      font-size: clamp(1rem, 1.2vw, 1.5rem);
    }
  }

  .presentation__title--desktop {
    width: 423px;
    height: 55px;
    padding: 0.5rem;
    color: white;
    background-color: var(--color-secondary);
    text-align: center;
    box-shadow: var(--boxShadow-titleServices);
    transform: translateY(-2rem);
  }

  /* ===========================
     PAGE FLOTTE — DESKTOP
     =========================== */

  .fleet__container--desktop {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    grid-template-rows: repeat(4, minmax(100px, 1fr));
    align-items: center;
    justify-items: center;

    & nav {
      grid-area: 4 / 1 / 5 / 5;
    }
  }

  .presentation__fleet__container--desktop {
    width: fit-content;
    grid-area: 1 / 1 / 4 / 3;
    background-color: white;
  }

  .presentation__content--desktop {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
    border-radius: 1rem;
    border-bottom: 4px solid var(--color-secondary);

    & p {
      font-weight: normal;
    }
  }

  .presentation__fleet-icons--desktop {
    grid-area: 1 / 3 / 4 / 5;
    width: 90%;
    height: 100%;
    max-height: 369px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    place-items: center;
    position: relative;

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      content: "";
      display: block;
      width: 50%;
      height: 30%;
      border: 0.5rem solid var(--color-secondary);
      border-bottom: none;
      border-right: none;
    }
  }

  .fleet__sizeAndEngine__wrapper--desktop {
    grid-area: 1 / 1 / 4 / 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .fleet__size__wrapper--desktop {
    display: flex;
    flex-direction: column;
    align-items: center;

    & p {
      font-weight: bold;
      text-indent: 0;
      padding: 0;
    }

    & p:first-child {
      font-size: 1.5rem;
    }

    & p:last-child {
      font-weight: normal;
    }
  }

  .fleet-engine--desktop {
    width: 100%;
    height: fit-content;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
    padding: 0.5rem;

    & p {
      width: fit-content;
      padding: 0;
      text-indent: 0;
      font-size: 1.5rem;
      font-weight: var(--fontWeight-semibold);
      text-align: center;
    }
  }

  .presentation__icons-cars--desktop {
    grid-area: 1 / 2 / 4 / 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: start;
    padding-left: 30%;
  }

  /* ===========================
     PAGE QUI SOMMES-NOUS — DESKTOP
     =========================== */

  .aboutUs__container--desktop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
  }

  .presentation__aboutUs--desktop {
    width: 80%;
    min-height: 400px;
    /* min-height : s'adapte si le contenu dépasse */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    border-bottom: 4px solid var(--color-secondary);
    padding-bottom: 2rem;
    row-gap: 0.5rem;

    & p {
      font-size: 1rem;
      max-width: 1000px;
    }
  }

  .presentation__map--desktop {
    width: 50%;
    height: 275px;
  }

  /* ===========================
     PAGES LÉGALES
     =========================== */

  .legal,
  .privacy {
    width: 100%;
    max-width: 900px;
    min-height: 400px;
    /* min-height : ne bloque pas si le contenu est long */
    justify-self: center;
    font-family: system-ui, sans-serif;
    color: #222;
    overflow: auto;
    gap: 0;
    margin: 0;
    background-color: white;
  }

  .legal--desktop,
  .privacy--desktop {
    height: 400px;
  }

  .legal--mobile,
  .privacy--mobile {
    height: 100%;
    overflow: hidden;
    margin-top: 0;
  }

  .legal h1,
  .privacy h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d47a1;
  }

  .legal h2,
  .privacy h2 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 10px;
    color: #1565c0;
  }

  .legal h3,
  .privacy h3 {
    font-size: 1.15rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #1e88e5;
  }

  .legal p,
  .privacy p {
    margin-bottom: 15px;
  }

  .legal ul,
  .privacy ul {
    margin: 10px 0 20px 20px;
  }

  .legal a,
  .privacy a {
    color: #0d47a1;
    text-decoration: underline;
    align-self: center;
  }

  .legal a:hover,
  .privacy a:hover {
    text-decoration: none;
  }

  .legal em,
  .privacy em {
    color: #555;
    font-size: 0.95rem;
  }

  /* ===========================
     COOKIE BANNER
     =========================== */

  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(17, 17, 17);
    color: #fff;
    padding: 20px;
    display: none;
    z-index: 9999;
    font-size: 15px;
  }

  .cookie-banner__container {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-banner__text {
    line-height: 1.4;
  }

  .cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .cookie-banner__button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
  }

  .cookie-banner__button--accept {
    background: #4caf50;
  }

  .cookie-banner__button--refuse {
    background: #f44336;
  }

  .cookie-banner__button--customize {
    background: #555;
  }

  .cookie-banner__button--save {
    background: #2196f3;
    margin-top: 10px;
  }

  .cookie-banner__options {
    display: none;
    margin-top: 10px;
  }

  .cookie-banner__option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  .cookie-banner--footer {
    display: block;
  }

 
  /* ===========================
     RESPONSIVE
     =========================== */

  @media (max-width: 280px) {
    .presentation__title {
      font-size: 1rem;
    }

    .presentation__title--left,
    .presentation__title--right {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .form-popup__modal {
      padding: 1.5rem;
    }

    .form-popup__input,
    .form-popup__textarea {
      font-size: 0.75rem;
      padding: 0.125rem;
    }
  }

  @media (max-width: 320px) {
    .presentation__title {
      font-size: 1rem;
    }

    .presentation__title--left,
    .presentation__title--right {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .presentation__subtitle {
      font-size: 1.25rem;
    }

    .presentation__text {
      font-size: 0.875rem;
    }

    .presentation__fleet-size p span:first-child {
      font-size: 1rem;
    }

    .presentation__icon--opening {
      transform: translateX(15vw);
    }

    .presentation__recruitment-subtitle {
      font-size: 0.875rem;
    }

    .scroll-top {
      width: 35px;
      height: 35px;
      right: 0.5em;
      bottom: 15.5dvh;

      & img {
        width: 50%;
        height: 50%;
      }
    }
  }

  @media (max-width: 600px) {

    .legal h1,
    .privacy h1 {
      font-size: 1.7rem;
    }

    .legal h2,
    .privacy h2 {
      font-size: 1.25rem;
    }
  }

  @media (min-width: 600px) {
    .presentation_list {
      align-items: center;

      & p {
        font-size: 1.25rem;
      }
    }
  }

  @media (min-width: 760px) and (max-width: 1279px) {
    .body--desktop {
      min-height: 100svh;
      justify-content: space-between;
    }

    .header--desktop {
      height: 30dvh;
    }

    .hero__title {
      font-size: 24px;
      top: calc(65% - 1rem);
    }

    .main--desktop {
      align-items: start;
      margin-top: 2rem;
    }

    .main__container--desktop {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
      align-items: start;
      height: 100%;
      max-height: 800px;
      max-width: 750px;
    }

    .nav__presentation--desktop {
      grid-area: 1 / 1 / 2 / 2;
      width: 70%;
    }

    .main__container__presentation--desktop {
      grid-area: 1 / 2 / 2 / 3;
      width: 100%;
      height: 100%;
      max-height: 800px;
      display: flex;
      flex-direction: column;
      align-items: center;
      row-gap: 2rem;
      padding: 3rem 0;
    }

    .presentation__fleet--desktop p {
      width: fit-content;
      align-self: start;
      margin-left: 1vw;
    }

    .presentation__fleet-icon__wrapper--desktop {
      width: 200px;
      height: auto;

      & a {
        width: 100%;
      }
    }

    .main__container__contact--desktop {
      grid-area: 2 / 1 / 3 / 3;
      width: 100%;
      max-width: 100vw;
      height: fit-content;
      flex-direction: row;
      justify-content: space-evenly;
      margin-top: 2vh;
    }

    .header--presentation {
      width: 100%;
      padding: 0;
    }

    .header__contact--presentation {
      gap: 0.5rem;
    }

    .fleet__container--desktop {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .presentation__fleet__container--desktop {
      width: 70%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .presentation__content--desktop {
      padding: 0;
      align-items: center;

      & p {
        max-width: 800px;
      }
    }

    .presentation__container {
      gap: 2rem;
    }

    .presentation--desktop {
      padding: 0 0 2rem 0;
      align-self: end;
    }

    .presentation--desktop--before {
      grid-area: 2 / 1 / 3 / 3;
      margin-right: 0.5rem;
    }

    .presentation--desktop--after {
      grid-area: 2 / 2 / 3 / 4;
      margin-left: 0.5rem;
    }

    .nav__presentation--row {
      width: 100%;
      gap: 0.5rem;
      padding: 0 0.5rem;

      & a {
        width: 300px;
        margin-left: 0;

        & span {
          width: auto;
          text-align: center;
        }
      }
    }
  }

  @media (max-width: 768px) {
    .form-popup__modal {
      max-height: 95vh;
      overflow-y: auto;
      padding: 0.5rem;
    }
  }

  @media (min-width: 1440px) {
    .hero__title {
      align-items: start;
    }

    .main__container__contact--desktop {
      row-gap: 4rem;
    }

    .presentation__actions--desktop {
      & p {
        font-size: 1.5rem;
      }
    }

    .presentation__icon__desktop--actions {
      width: 250px;
    }

    .presentation__icon__opening--desktop {
      width: 250px;
    }

    .main__container__presentation--desktop {
      height: 90%;
      max-height: 700px;
    }

    .presentation__fleet--desktop {
      row-gap: 2rem;

      & p {
        font-size: 1.5rem;
      }
    }

    .presentation__fleet-icon__wrapper--desktop {
      & a {
        width: 270px;
      }
    }

    .presentation__fleet-icons--desktop {
      max-height: 550px;

      &::before {
        border: 0.75rem solid var(--color-secondary);
        border-bottom: none;
        border-right: none;
      }
    }

    .presentation__icon-car--desktop:nth-child(1) {
      width: 150px;
    }

    .presentation__icon-car--desktop {
      width: 200px;
    }

    .section__recruitment__presentation--desktop {
      font-size: 1.25rem;

      & p span {
        text-indent: 0;
      }
    }

    .section__recruitment__form--desktop {
      height: 80%;
    }

    .recruitment__form__element--desktop {
      gap: 1rem;
    }

    .presentation__actived--desktop {
      max-width: 1300px;

      & p {
        max-width: 700px;
      }
    }

    .presentation__aboutUs--desktop {
      min-height: 550px;

      & p {
        font-size: 1.5rem;
        max-width: 1000px;
      }
    }

    .presentation__map--desktop {
      height: 300px;
    }
  }

  @media (min-width: 1536px) {
    .presentation__fleet--desktop {
      & p {
        font-size: 1.5rem;
        margin-right: 4.5rem;
      }
    }

    .section__recruitment__form--desktop {
      height: 90%;
    }

    .recruitment__form__element--desktop {
      gap: 0.5rem;
    }
  }

  @media (min-width: 1920px) {
    .main__container--desktop {
      justify-content: center;
      gap: 2rem;
      padding: 0 5rem;
    }

    .presentation__aboutUs--desktop {
      min-height: 650px;

      & p {
        font-size: 1.5rem;
        max-width: 100%;
        text-align: center;
      }
    }

    .presentation__map--desktop {
      height: 400px;
    }

    .nav__presentation--row {
      font-size: 1.5rem;
    }

    .recruitment__form__element--desktop {
      gap: 1.5rem;
    }
  }

 
}


/* ===========================
   CLIP-PATH HEADER MOBILE
   Variables CSS + breakpoints consolidés
   (hors @layer pour priorité maximale)
   =========================== */

.header--mobile {
  --clip-before: polygon(86% 0%, 88% 0%, 0% 65%, 0% 55%);
  --clip-after: polygon(-10% 20%, 0% 20%, 100% 50%, 100% 55%);
  --clip-after-top: 70vh;
}

.header--mobile::before {
  clip-path: var(--clip-before);
}

.header--mobile::after {
  top: var(--clip-after-top);
  clip-path: var(--clip-after);
}

@media (min-width: 360px) {
  .header--mobile {
    --clip-before: polygon(85% 0%, 87% 0%, 0% 50%, 0% 40%);
    --clip-after: polygon(-50% -10%, -45% -10%, 100% 30%, 100% 40%);
    --clip-after-top: 65vh;
  }
}

/* Absorbe 384px / 390px / 393px */
@media (min-width: 384px) {
  .header--mobile {
    --clip-before: polygon(83% 0%, 84% 0%, 0% 43%, 0% 33%);
    --clip-after: polygon(-10% 0%, 0% 0%, 100% 30%, 100% 35%);
    --clip-after-top: 62vh;
  }
}

@media (min-width: 412px) {
  .header--mobile {
    --clip-before: polygon(81.5% 0%, 83% 0%, 0% 40%, 0% 30%);
    --clip-after: polygon(-10% 0%, 0% 0%, 100% 25%, 100% 30%);
    --clip-after-top: 55vh;
  }
}

@media (min-width: 600px) {
  .header--mobile {
    --clip-before: polygon(74% 0%, 75% 0%, 0% 40%, 0% 30%);
    --clip-after: polygon(-10% 0%, 0% 0%, 100% 40%, 100% 50%);
    --clip-after-top: 55vh;
  }

  .presentation__icon--opening {
    transform: translateX(15vw);
  }

  .presentation__text {
    max-width: 600px;

    &:has(span) {
      align-items: center;
    }
  }

  .presentation__fleet-cars {
    align-items: start;
    padding-left: 2vw;
  }
}