/* =========================================================
   NUMBER AFTER TWELVE
   STYLE GLOBAL
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  background: #000;
}

body {
  min-height: 100dvh;

  background: #000;
  color: #fff;

  font-family: Arial, Helvetica, sans-serif;

  overflow-x: hidden;
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   STRUCTURE GÉNÉRALE
   ========================================================= */

.site-wrapper {
  min-height: 100dvh;

  display: flex;
  flex-direction: column;
}


/* =========================================================
   ACCUEIL
   ========================================================= */

.home {
  flex: 1;

  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 5px 20px;
}


/* =========================================================
   LOGO NAT
   ========================================================= */

.logo-container {
  width: min(82vw, 700px);

  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: block;

  width: 100%;
  height: auto;

  max-height: 76dvh;

  object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
  width: min(850px, 92vw);

  margin-top: 4px;

  display: flex;

  justify-content: center;
  align-items: center;

  gap: clamp(15px, 4vw, 60px);
}


/* =========================================================
   BOUTONS
   ========================================================= */

.main-nav a {
  flex: 1;

  max-width: 240px;

  padding: 13px 25px;

  border: 1px solid #555;

  background: transparent;

  color: #fff;

  text-decoration: none;
  text-align: center;

  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 700;

  letter-spacing: clamp(2px, 0.3vw, 4px);

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #e00000;

  border-color: #e00000;

  transform: translateY(-3px);

  box-shadow:
    0 5px 20px rgba(224, 0, 0, 0.18);

  outline: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  flex-shrink: 0;

  width: 100%;
  min-height: 50px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  align-items: center;

  gap: 20px;

  padding:
    8px
    clamp(15px, 2vw, 30px);

  background: #c40000;

  border-top: 1px solid #e00000;

  color: #fff;

  font-size: 13px;
}


/* =========================================================
   FOOTER GAUCHE
   ========================================================= */

.footer-left {
  justify-self: start;

  white-space: nowrap;
}


/* =========================================================
   FOOTER CENTRE
   ========================================================= */

.footer-center {
  justify-self: center;
}

.footer-center a {
  color: #fff;

  text-decoration: none;

  font-weight: 700;
}

.footer-center a:hover,
.footer-center a:focus-visible {
  text-decoration: underline;
}


/* =========================================================
   FOOTER RÉSEAUX
   ========================================================= */

.footer-socials {
  justify-self: end;

  display: flex;

  align-items: center;

  gap: 10px;
}

.social-link {
  width: 25px;
  height: 25px;

  display: inline-flex;

  justify-content: center;
  align-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  color: #fff;

  text-decoration: none;

  font-size: 8px;
  font-weight: 700;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


/* =========================================================
   ICÔNES RÉSEAUX
   ========================================================= */

.social-icon {
  display: block;

  width: 15px;
  height: 15px;

  flex-shrink: 0;

  color: currentColor;

  pointer-events: none;
}


.social-link:hover,
.social-link:focus-visible {
  background: rgba(255, 255, 255, 0.35);

  transform: translateY(-2px);

  outline: none;
}


/* =========================================================
   PC PORTABLE
   RÉFÉRENCE : 1366 × 768

   NE PAS MODIFIER :
   rendu desktop validé
   ========================================================= */

@media (max-height: 800px) and (min-width: 769px) {

  .home {
    padding-top: 0;
    padding-bottom: 3px;
  }

  .logo-container {
    width: min(76vw, 590px);
  }

  .logo {
    max-height: 76dvh;
  }

  .main-nav {
    margin-top: 0;

    width: min(850px, 90vw);
  }

  .main-nav a {
    padding-top: 11px;
    padding-bottom: 11px;
  }

}


/* =========================================================
   GRAND ÉCRAN
   ========================================================= */

@media (min-width: 1600px) and (min-height: 850px) {

  .logo-container {
    width: min(45vw, 720px);
  }

  .logo {
    max-height: 74dvh;
  }

  .main-nav {
    width: min(900px, 75vw);

    margin-top: 8px;
  }

  .main-nav a {
    max-width: 250px;

    padding-top: 15px;
    padding-bottom: 15px;
  }

}


/* =========================================================
   TABLETTE
   701 px → 1024 px
   ========================================================= */

@media (min-width: 701px) and (max-width: 1024px) {

  .home {
    padding: 15px 25px;
  }

  .logo-container {
    width: min(76vw, 600px);
  }

  .logo {
    max-height: 66dvh;
  }

  .main-nav {
    width: min(92vw, 780px);

    margin-top: 8px;

    gap: 18px;
  }

  .main-nav a {
    padding: 14px 18px;

    font-size: 15px;

    letter-spacing: 3px;
  }

}


/* =========================================================
   TÉLÉPHONE
   Jusqu'à 700 px
   ========================================================= */

@media (max-width: 700px) {

  /* -------------------------------------------------------
     STRUCTURE MOBILE
     ------------------------------------------------------- */

  .site-wrapper {
    min-height: 100dvh;
  }


  /* -------------------------------------------------------
     ACCUEIL MOBILE

     Contrairement au desktop :
     on ne centre plus le bloc verticalement.
     On utilise directement le haut de l'écran.
     ------------------------------------------------------- */

  .home {
    flex: 1;

    width: 100%;

    justify-content: flex-start;
    align-items: center;

    padding:
      max(12px, env(safe-area-inset-top))
      10px
      25px;
  }


  /* -------------------------------------------------------
     LOGO MOBILE

     Presque toute la largeur du téléphone.
     Sur 400 px : environ 376 px.
     ------------------------------------------------------- */

  .logo-container {
    width: 94vw;
    max-width: 470px;

    margin: 0 auto;
  }

  .logo {
    display: block;

    width: 100%;
    height: auto;

    max-height: none;

    object-fit: contain;
  }


  /* -------------------------------------------------------
     NAVIGATION MOBILE
     ------------------------------------------------------- */

  .main-nav {
    width: 100%;

    margin-top: 10px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    gap: 10px;
  }


  /* -------------------------------------------------------
     BOUTONS MOBILE
     ------------------------------------------------------- */

  .main-nav a {
    flex: none;

    width: 94vw;
    max-width: 380px;

    min-height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 13px 20px;

    border: 1px solid #555;

    font-size: 16px;
    font-weight: 700;

    letter-spacing: 3px;
  }


  /* Pas de déplacement du bouton au toucher */

  .main-nav a:hover {
    transform: none;
  }


  /* -------------------------------------------------------
     FOOTER MOBILE
     ------------------------------------------------------- */

  .site-footer {
    width: 100%;

    min-height: auto;

    grid-template-columns: 1fr;

    justify-items: center;

    gap: 8px;

    padding:
      12px
      15px
      max(12px, env(safe-area-inset-bottom));

    text-align: center;

    font-size: 12px;
  }


  /* COPYRIGHT */

  .footer-left {
    justify-self: center;

    white-space: normal;
  }


  /* MENTIONS LÉGALES */

  .footer-center {
    justify-self: center;
  }


  /* RÉSEAUX */

  .footer-socials {
    justify-self: center;

    gap: 12px;
  }

  .social-link {
    width: 30px;
    height: 30px;

    font-size: 9px;
  }

  .social-icon {
    width: 17px;
    height: 17px;
  }

}


/* =========================================================
   TÉLÉPHONE PEU HAUT / MODE PAYSAGE
   ========================================================= */

@media (max-width: 700px) and (max-height: 750px) {

  .home {
    padding-top: 8px;
    padding-bottom: 15px;
  }

  .logo-container {
    width: min(72vw, 330px);
  }

  .main-nav {
    margin-top: 6px;

    gap: 7px;
  }

  .main-nav a {
    min-height: 44px;

    padding-top: 9px;
    padding-bottom: 9px;
  }

}


/* =========================================================
   TRÈS PETITS TÉLÉPHONES
   Jusqu'à 380 px
   ========================================================= */

@media (max-width: 380px) {

  .home {
    padding-left: 8px;
    padding-right: 8px;
  }

  .logo-container {
    width: 96vw;
  }

  .main-nav a {
    width: 94vw;

    font-size: 14px;

    letter-spacing: 2px;
  }

  .site-footer {
    font-size: 11px;
  }

}