/* -------------------- RESET GÉNÉRAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------- STYLE GLOBAL -------------------- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
}

/* -------------------- CONTAINER PRINCIPAL -------------------- */
.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    padding-top: 100px;
}


/* -------------------- TOP BANNER NOIR AU DESSUS DE LA NAVBAR MODERNE -------------------- */
.top-banner {
    position: absolute;
    top: -26px; /* ajuste pour bien coller au-dessus de la navbar */
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    height: 24px; /* hauteur fixe pour une ligne */
    padding: 4px 0;
    overflow: hidden;
    z-index: 1200;
    white-space: nowrap;
    letter-spacing: 0.05em; /* espacement entre les lettres */
}

.banner-wrapper {
    display: flex;
    flex-direction: column;
    animation: scrollText 6s infinite;
}

.banner-wrapper span {
    height: 24px;
    line-height: 24px;
}

@keyframes scrollText {
    0% { transform: translateY(0); }
    40% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
    90% { transform: translateY(-24px); }
    100% { transform: translateY(0); }
}


/* -------------------- NAVBAR MODERNE -------------------- */
.navbar {
    width: 100%;
    padding: 20px 50px;
    min-height: 85px;  /* laisse respirer */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff, #f5f5f5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease;
    height: 85px; /* fixe la hauteur de la navbar */
    overflow: visible; /* permet au logo de dépasser si besoin */
    border-top: 23px solid black; /* crée une bande noire fine */
}

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center; /* centrer dans la navbar */
    padding: 10px 20px;
}

.navbar .logo h1 {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em; /* un peu moins pour garder la lisibilité */
    font-size: clamp(22px, 3vw, 34px); /* responsive : min 22px, max 34px */
    background: linear-gradient(90deg, #000, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* effet dégradé dans le texte */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15); /* ombre subtile */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.navbar .logo h1:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.25);
}


.highlight {
    color: black;
    font-weight: bold;
}


/* -------------------- NAV LINKS -------------------- */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 50px; /* augmente l’espace entre les éléments du menu */
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    position: relative;
    padding: 5px 10px; /* petit padding interne pour "souffler" autour du texte */
    transition: color 0.4s ease;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.1em; /* léger espacement entre lettres */
}


.navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 0;
    background: black;
    transition: width 0.4s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

.navbar ul li a:hover {
    color: black;
}


/* Cache complètement la case à cocher du hamburger */
#menu-toggle {
  display: none !important;
}


/* ---------------- HAMBURGER ---------------- */
.hamburger {
  display: none; /* caché par défaut (desktop) */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Menu par défaut en desktop */
.nav-links {
  display: flex;
  gap: 20px;
}

/* -------------------- BOUTONS DE CONNEXION -------------------- */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-buttons a {
    text-decoration: none;
}

.auth-buttons button {
    padding: 10px 20px;
    border: 2px solid black;
    background: transparent;
    color: black;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: black;
    z-index: -1;
    transition: left 0.3s ease-in-out;
}

.auth-buttons button:hover::before {
    left: 0;
}

.auth-buttons button:hover {
    color: #fff;
}

/* -------------------- TITRE DE SECTION -------------------- */
.T2 {
    font-size: 32px;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.1em; /* léger espacement entre lettres */
    text-align: center; /* centré pour mobile et desktop */
    line-height: 1.2;
    padding: 0 20px; /* marge sur les côtés pour mobile */
}


/* -------------------- CAROUSEL -------------------- */
.carousel {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* Inner track */
.carousel-inner {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

/* Carousel items */
.carousel-item {
    min-width: 100%;
    height: 60vh; /* prend 60% de la hauteur de l’écran */
    min-height: 250px; /* garde un minimum */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* évite le flash blanc pendant le chargement */
    transition: opacity 0.5s ease;
}

/* Images */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.carousel-item img:hover {
    filter: brightness(1.05);
    transform: scale(1.01);
}

/* Navigation arrows */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    color: black;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 14px;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: black;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Positioning */
.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

/* -------------------- CONTENEUR DE CONTENU -------------------- */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
    margin: 50px auto;
    max-width: 1400px;
    transition: all 0.3s ease-in-out;
}

.content-wrapper > div {
    flex: 1 1 calc(25% - 20px); /* 4 boxes = 25% chacune moins le gap */
    max-width: calc(25% - 20px);
    min-width: 200px; /* ajuste selon ton besoin */
}

/* Style commun aux blocs enfants */
.content-wrapper > * {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    border-radius: 12px;
}

/* Effet scale au survol */
.content-wrapper > *:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}


/* -------------------- FORMULAIRES D’AUTHENTIFICATION -------------------- */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 100px auto 50px auto;
    background-color: #fdfdfd;
    padding: 30px;
    box-shadow: 0 4px 6px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f5f7fa;
    transition: border-color 0.3s ease-in-out;
}

.auth-button {
    padding: 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.auth-button:hover {
    transform: scale(1.02);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-link a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.auth-link a:hover {
    transform: scale(1.02);
}

/* -------------------- FIELDSET / FORMULAIRE AVANCÉ -------------------- */
fieldset {
    box-shadow: 0 4px 6px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 2px solid black;
    background-color: #fdfdfd;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    padding: 20px;
}

legend {
    font-style: italic;
    color: #333;
    font-weight: bold;
    padding: 0 10px;
}

fieldset:hover {
    transform: scale(1.02);
    background-color: #fafafa;
    box-shadow: 0 8px 12px 10px rgba(0, 0, 0, 0.08);
}

input[type="radio"] {
    margin-right: 10px;
}

label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

label:hover {
    font-weight: bold;  /* texte en gras */
}

/* -------------------- SECTIONS DE SERVICE -------------------- */
.services, .advantages, .extras, .opening-hours, .transport-info {
    width: 100%;
    max-width: 400px;
    background-color: #fdfdfd;
    padding: 20px;
    box-shadow: 0 4px 6px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.opening-hours {
    text-align: center;
}

.extras-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.extras-content img {
    max-width: 100px;
    height: auto;
}

/* --------------------- FOOTER --------------------- */
.footer {
    background: linear-gradient(135deg, grey, black, black, grey);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* colonnes aux extrémités */
    flex-wrap: wrap;                 /* permet de passer à l’empilement sur petits écrans */
    gap: 40px;                       /* espace entre colonnes */
    max-width: 1200px;               /* largeur max du footer */
    margin: 0 auto;                  /* centre le footer sur grand écran */
}

.footer-column {
    flex: 1 1 45%;     /* chaque colonne prend 45% de la largeur, flexible */
    min-width: 280px;  /* empêche que ça devienne trop petit */
    box-sizing: border-box; /* inclut le padding dans la largeur */
}


.footer-column h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-column p,
.footer-column a {
    margin: 10px 0;
    color: #ddd;
    text-decoration: none;
}

.footer-column a:hover {
    color: gold;
}

.footer-bottom {
    margin-top: 20px;
}

.liens-footer {
    text-decoration: none;
}


/* -------------------- CONTENU DE PAGE (HOME) -------------------- */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px auto;
    max-width: 1200px;
}

/* -------------------- BOX (CARTES) -------------------- */
.box {
    background-color: #fdfdfd;
    padding: 20px;
    box-shadow: 0 4px 6px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    flex: 1 1 30%;
    margin: 10px;
    min-width: 300px;
    flex: 1 1 300px; /* plus flexible */
    max-width: 100%;
    backface-visibility: hidden;
    transform: translateZ(0); /* force le rendu GPU */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.box p {
    margin-bottom: 10px;
}

.box a {
    color: #333;
    text-decoration: none;
}

.box a:hover {
    color: black;
}

/* -------------------- IMAGE MARQUE -------------------- */
.image-marque img {
    width: var(--image-width, 540%);
    height: auto;
    width: 100%;
    max-width: 900px;
    right: 30px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03)
}

/* -------------------- SÉPARATEUR -------------------- */
hr {
    width: 100%;  /* au lieu de 980px */
    max-width: 980px;
    border-top: 3px solid #666;
}

/* -------------------- TITRE MARQUE -------------------- */
.titre-marque {
    font-family: 'Times New Roman', Times, serif;
}

.Essilor-Novacel {
    margin-left: 40px;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;  /* Empêche le retour à la ligne */
}


/* -------------------- CATÉGORIES -------------------- */
.categories {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category, .category2 {
    flex: 1;
    padding: 0 20px;
}

.category h4 {
    text-align: center;
    font-style: italic;
    font-size: 18px;
}

.category ul,
.category2 ul {
    list-style: none;
    padding: 0;
}

.category ul {
    margin-left: 40px;
}

.category ul li,
.category2 ul li {
    margin-bottom: 10px;
}

.category ul li a,
.category2 ul li a {
    color: inherit;          /* garde la même couleur que le texte environnant */
    text-decoration: none;   /* enlève le soulignement */
    font-weight: inherit;    /* garde le poids de police du parent */
    font-size: inherit;      /* garde la taille de police */
    cursor: pointer;         /* montre que c’est cliquable */
    transition: color 0.2s ease;
}

.category ul li a:hover,
.category2 ul li a:hover {
    color: #c59d5f; /* exemple : doré au survol (tu peux changer la couleur) */
}


.verres ul {
    list-style-position: inside; /* met la puce à l’intérieur du padding */
    padding-left: 40px;          /* décale puce + texte ensemble */
}

.verres li a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.verres ul li a:hover {
    color: #c59d5f;
}

/* -------------------- CSS DE LA PAGE HTML "RENDEZ-VOUS" -------------------- */
.rdv-container {
    max-width: 800px;
    margin: 120px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rdv-container h2 {
    text-align: center;
    color: black;
    margin-bottom: 30px;
}

.rdv-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rdv-form input,
.rdv-form select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.rdv-form input:focus,
.rdv-form select:focus {
    background-color: whitesmoke;
    outline: none;
}

.rdv-form button {
    background-color: #333;
    color: white;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.rdv-form button:hover {
    transform: scale(1.02); /* augmente de 10% */
}


.hidden {
    display: none;
}

/* -------------------- BOUTON PRENDRE RDV PAGE OFFRES -------------------- */
.btn-rdv {
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    background: #333;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-rdv:hover {
    background: #555; /* change légèrement la couleur au survol */
    transform: scale(1.05); /* effet zoom léger */
}
