/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
    .hero {
        max-width: 120rem;
    }

    .h1 {
        font-size: 4.4rem;
    }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
    html {
        /* 9px / 16px  */
        font-size: 56.25%;
    }


    .h2 {
        font-size: 3.6rem;
    }

    .h3 {
        font-size: 2.4rem;
    }

    .header {
        padding: 0 3.2rem;
    }

    .nav-list {
        gap: 2.4rem;
    }

    .hero {
        gap: 4.8rem;
    }

    .btn,
    .btn:link,
    .btn:visited {
        font-size: 1.8rem;
    }
}

/**************************/
/* non fait BELOW 1080px  */
/**************************/
@media (max-width: 68em) {
    .hero {
        gap: 4.8rem;
    }

}

/**************************/
/* prop BELOW 1008px soit 63 em(Tablets) (de 1008px à 816px)*/
/**************************/

@media (max-width: 63em) {

    html {
        /* 8px / 16px = 0.5 = 50% */
        font-size: 50%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 0 8rem;
        gap: 6.4rem;
    }

    .hero-text-box,
    .hero-img-box {
        text-align: center;
    }

    .hero-img {
        width: 60%;
        height: auto;
    }


    /* MOBILE NAVIGATION */
    .btn-mobile-nav {
        display: block;
        z-index: 9999;
    }

    .nav {
        background-color: rgba(10, 10, 10, 0.95);
        /*background-color: rgba(0, 42, 48, 0.95)*/
        /* -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(10px); */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);

        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease-in;

        /* Hide navigation */
        /* Allows NO transitions at all */
        /* display: none; */
        /*les 3 étapes ci-dessous montrent comment cacher un élément sans utiliser display:none*/

        /* 1) Hide it visually */
        opacity: 0;

        /* 2) Make it unaccessible to mouse and keyboard */
        pointer-events: none;

        /* 3) Hide it from screen readers */
        visibility: hidden;
    }

    .nav-open .nav {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }


    .nav-open .icon-mobile-nav[name="close-outline"] {
        display: block;
    }

    .nav-open .icon-mobile-nav[name="menu-outline"] {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 4.8rem;
    }

    .nav-link:link,
    .nav-link:visited {
        font-size: 2.5rem;
    }

}


/**************************/
/* BELOW 768px (Smaller tablets)
/**************************/

@media (max-width: 48em) {

    /*
      html {
         6px / 16px = 0.5 = 50%
        font-size: 38%;
      }
    */
    .h2 {
        margin-bottom: 4.8rem;
    }


    /* How*/
    .timeline {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .timeline::before {
        width: 2px;
        height: 95%;
        left: 50%;
    }

    .timeline-step {
        width: 75%;
        padding: 2rem;
        align-items: flex-start;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .timeline-number {
        position: absolute;
        left: calc(50% - 2.5rem);
        top: -2.5rem;
    }

    timeline-tag {
        margin-bottom: 1rem;

    }

    /* Expert */
    .logo-col,
    .address-col {
        align-self: center;
    }

    .nav-col {
        grid-row: 1;
        margin-bottom: 3.2rem;
    }


    .valeur-icon {
        position: relative;
    }

    .valeur-icon::before {
        top: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 4rem;
        height: 0.2rem;
    }

    .valeur-column:hover .valeur-icon::before {
        top: -3rem;
        width: 5rem;
        height: 0.3rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .valeur-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .valeur-title {
        font-size: 2.2rem;
    }

    /* Supprimé le padding-left car nous centrons maintenant */
    .valeur-column {
        padding-left: 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .h2 {
        font-size: 3.2rem;
        text-align: center;
    }

    .h3 {
        font-size: 2rem;
        padding: 0 2rem;
    }

    .section-location .grid {
        grid-template-columns: 1fr;
        max-width: 50rem;
        margin: 0 auto;
    }

    .location-icon {
        width: 8rem;
        height: 8rem;
    }

    /* LEGACY */
    .section-legal {
        padding: 6rem 2rem;
    }

    .legal-content {
        padding: 2rem;
    }

    .h1-legacy {
        font-size: 3.2rem;
    }

    .h2-legacy {
        font-size: 2rem;
    }

    .legal-block p {
        font-size: 1.4rem;
    }


    /* Footer Legacy - Version simplifiée */
    .footer {
        padding: 3.2rem 2.4rem 2rem 2.4rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3.2rem;
        padding-bottom: 2.4rem;
    }

    /* Centrer tous les éléments sur mobile */
    .footer-col {
        text-align: center;
        align-items: center;
    }

    .footer-item {
        justify-content: center;
    }

    .footer-social-link {
        justify-content: center;
    }

    .copyright {
        padding-top: 2rem;
    }

    .footer--legacy {
        padding: 2.4rem 2.4rem 2rem 2.4rem;
    }

    .footer-container--legacy {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-legacy-brand {
        align-items: center;
    }

    .footer-legacy-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-tagline {
        margin-top: 0.5rem;
    }

    .footer-col {
        gap: 0;
    }

}

/**************************/
/* BELOW 544px (till 395px) */
/**************************/

@media (max-width: 34em) {


    .h1 {
        font-size: 3.6rem;
    }

    .nav-link:link,
    .nav-link:visited {
        font-size: 2rem;
    }

    .btn,
    .btn:link,
    .btn:visited {
        padding: 1.2rem 2.4rem;
    }

    .section-hero {
        padding: 2.4rem 0 6.4rem 0;
    }

    .hero {
        padding: 0 3.2rem;
    }

    .hero-img {
        width: 80%;
        height: auto;
    }

    .section-timeline,
    .section-expert,
    .section-valeur,
    .section-contact,
    .section-location {
        padding: 7rem 0;
    }

    .section-location .grid {
        max-width: 100%;
    }

    .location-icon {
        width: 7rem;
        height: 7rem;
    }

    /* LEGACY */
    .h2-legacy {
        text-align: center;
    }


    /* FOOTER */
    .footer {
        padding: 2.4rem 1.6rem 1.6rem 1.6rem;
    }

    .footer-col {
        gap: 0;
    }

    .footer-container {
        gap: 2.4rem;
        padding-bottom: 2rem;
    }

    .footer-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .footer-company-name {
        font-size: 2rem;
    }

    .copyright {
        font-size: 1rem;
        padding-top: 1.6rem;
    }

    /* Footer Legacy - Version simplifiée */
    .footer--legacy {
        padding: 2rem 1.6rem 1.6rem 1.6rem;
    }

    .footer-link {
        font-size: 1.6rem;
    }

    .footer-link ion-icon {
        font-size: 1.8rem;
    }

}


/**************************/
/* BELOW 375px            */
/**************************/


/*
- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

/**************************/
/* Fixing Safari flexbox gap */
/**************************/

/* .no-flexbox-gap .nav-list li:not(:last-child) {
  margin-right: 3.2rem;
}

.no-flexbox-gap .how-img {
  margin-right: 1.6rem;
}

.no-flexbox-gap .service-tag .tag:not(:last-child) {
  margin-right: 0.4rem;
}

.no-flexbox-gap .attributes li:not(:last-child) {
  margin-bottom: 1.2rem;
}

.no-flexbox-gap .attribute .service-icon {
  margin-right: 1.6rem;
}

.no-flexbox-gap .valeur-entete .valeur-img:not(:last-child) {
  margin-bottom: 1.2rem;
}

.no-flexbox-gap .valeur-entete p:not(:last-child) {
  margin-bottom: 1.2rem;
}

.no-flexbox-gap .realisation-attributes li:not(:last-child) {
  margin-bottom: 1.2rem;
}

.no-flexbox-gap .footer-nav li:not(:last-child) {
  margin-bottom: 1.2rem;
}

@media (max-width: 75em) {
  .no-flexbox-gap .nav-list li:not(:last-child) {
    margin-right: 2.4rem;
  }
}

@media (max-width: 63em) {
  .no-flexbox-gap .nav-list li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 4.8rem;
  }
} */
