/* ---------------- VERSION MOBILE ---------------- */
@media (max-width: 1024px) {
  .hamburger {
    display: flex; /* montrer le hamburger */
  }

  .nav-links {
    display: none; /* caché par défaut */
    flex-direction: column;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex; /* affichage quand actif */
  }

  .nav-links ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* on garde les liens à gauche */
    padding-left: 25px; 
  }
}


/* Pour écrans moyens (tablettes) */
@media screen and (max-width: 768px) {
    .T2 {
        font-size: 26px;
        padding: 0 15px;
        line-height: 1.25;
    }
}

/* Pour écrans petits (téléphones) */
/* Si tu veux seulement ajuster le titre */
@media screen and (max-width: 480px) {
    .T2 {
        margin-top: 120px; /* espace pour que le titre ne soit pas derrière la navbar */
        font-size: 20px;
        padding: 0 10px;
        line-height: 1.3;
        letter-spacing: 0.05em;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;  /* empile les colonnes */
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-column {
        width: 100%; /* chaque colonne prend toute la largeur */
    }
}


/* -------------------- RESPONSIVE DESIGN -------------------- */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-control-prev, .carousel-control-next {
        top: 90%;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .box {
        min-width: 100%;
    }
}

/* -------------------- RESPONSIVE COMPLET -------------------- */

/* Petits téléphones (max 480px) */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        height: auto;
    }

    .navbar .logo img {
        height: 120px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .carousel-item {
        height: 250px;
    }

    .box {
        flex: 1 1 100%;
        min-width: auto;
    }

    hr {
        width: 90%;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }

    .category, .category2 {
        width: 100%;
        padding: 10px 0;
    }
}

/* Tablettes (481px à 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        padding: 15px 30px;
    }

    .navbar ul {
        gap: 20px;
    }

    .carousel-item {
        height: 350px;
    }

    .box {
        flex: 1 1 45%;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }

    .category, .category2 {
        width: 80%;
    }
}

/* Tablettes larges / petits laptops (769px à 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 20px 40px;
    }

    .carousel-item {
        height: 400px;
    }

    .box {
        flex: 1 1 100%;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }

    .category, .category2 {
        width: 100%;
        padding: 10px 0;
    }
}


/* Grands écrans (supérieur à 1400px) */
@media (min-width: 1400px) {
    .main, .content-wrapper, .categories {
        max-width: 1400px;
        margin: auto;
    }

    .carousel {
        max-width: 1400px;
    }
}

/* Séparation hamburger <-> bouton Nos offres uniquement en mobile */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between; /* espace auto entre les blocs */
    align-items: center;
  }

  .auth-buttons {
    margin-right: auto; /* pousse le bouton Nos offres à gauche */
  }

  .hamburger {
    margin-right: 315px; /* petit espace avec le bord */
  }
}

/* Forcer le footer en bas uniquement pour rdv.html sur iPad (tablettes) */
@media (min-width: 769px) and (max-width: 1024px) {
    .rdv-container {
        min-height: calc(100vh - 85px - 50px); /* 85px = navbar, 50px = footer approximatif */
    }
}
