/* ---------------------- GLOBAL ---------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background: #111;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1 {
    margin: 0;
    display: inline-block;
    font-size: 2em;
    color: #8c1998;
}

h3 {
    text-align: center;
    font-size: 2.5em;
    /* margin-top: 20px; */
    margin-bottom: 60px;
    text-shadow: 1px 0px 9px #000000;
}

.container, .containerh {
    width: 90%;
    max-width: 1800px;
    margin: auto;
    box-sizing: border-box;
}

.containerh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.logo img {
    width: 100px;
    border-radius: 20px;
}


/* ---------------------- HEADER ---------------------- */
header {
    background: #2c1e3574;
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Pour qu’il passe au-dessus des autres éléments */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Optionnel pour un petit effet d’ombre */
}


nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

/* ---------------------- GALERIE ---------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-grid img,
.gallery-grid iframe {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


#load-more-btn {
  display: block;
  margin: 40px auto;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #8c1998, #ff0055);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#load-more-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



/* ---------------------- HERO SECTION ---------------------- */
.hero {
    margin-top: 140px;
    background-image: url('../img/Banner.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 150px 20px;
    height: auto;
}

.hero h2 {
    margin-top: 200px;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 0px 9px #000000;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #8c1998, #ff0055);
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
   transition: transform 0.2s, opacity 0.3s;
}

.hero .btn:hover {
     transform: scale(1.05);
}

/* ---------------------- SECTION ---------------------- */
.section {
    max-width: 1800px;
    margin: auto;
    width: 70%;
    padding-top: 80px;
    display: flex;
    gap: 200px;
    /* flex-wrap: wrap; */
    justify-content: center;
    box-sizing: border-box;
}

.section img {
    width: 400px;
    max-width: 400px;
    height: 400px;
}
#mesuivre {
    max-width: 50%;
    margin: 120px auto ;
}
/* ---------------------- SERVICES ---------------------- */
.services-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 30px 20px;
    width: 300px;
    flex: 1 1 300px;
    max-width: 90vw;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    cursor: grab;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
}

.icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #272525;
}

.card .info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.card:hover .info {
    opacity: 1;
}

/* ---------------------- FORMULAIRE ---------------------- */
form {
    max-width: 600px;
    width: 100%;
    margin: 50px auto;
    padding: 20px;
    background: #1c1c1c;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
    color: #ddd;
    margin: 0;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff0055;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background: linear-gradient(135deg, #8c1998, #ff0055);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.3s;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

button:hover {
     transform: scale(1.05);
}

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

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

form .form-group:last-child {
    text-align: center;
}

/* ---------------------- FOOTER ---------------------- */
footer {
    background: #000;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #fff;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 1024px) {
    .section {
        flex-direction: column;
        gap: 60px;
        width: 90%;
        padding-top: 60px;
    }

    .hero h2 {
        font-size: 2.2em;
        margin-top: 120px;
    }
}

@media (max-width: 768px) {
    .container, .containerh {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav a {
        margin-left: 10px;
    }
    .gallery-section{
        margin-top: 400px;
    }
    header h1 {
        font-size: 1.5em;
    }

    .cards {
        gap: 20px;
        /* flex-direction: column; */
        align-items: center;
        height: 250px;
    }

    .info {
        padding: 0;
        width: 100%;
    }
    form{
        margin-top: 320px;
    }

}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8em;
        margin-top: 100px;
    }

    .hero .btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .card {
        width: 100%;
    }

    h3 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .section {
        margin: 0;
        width: 100%;
        padding: 0;
    }

    form {
        padding: 10px;
        margin: 0 auto;
        margin-top: 420px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    textarea,
    select,
    button {
        font-size: 0.95em;
    }
}
  /* Style bandeau */
  #cookie-banner {
    height: 150px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #030003e3;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    z-index: 9999;
  }
  .buttonmesage {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 10px;
  }
  .cookietitle{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;

}
#cookie-form hr{width: 70%;}

  #cookie-banner p {
    margin: 0;
    font-size: 1em;
    max-width: 100%;
  }
  #cookie-banner button {
    background: white;
    width: 350px;
    color: #8c1998;
    border: none;
    font-weight: bold;
    padding: 10px 20px;
    margin: 10px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
  }

  /* Bouton gérer cookies toujours visible */
  #manage-cookies-btn {
    background: white;
    color: #8c1998;
    border: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
  }

  /* Popup gestion cookies */
  #cookie-manager {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    max-width: 400px;
    font-family: 'Segoe UI', sans-serif;
    z-index: 10000;
  }
  #cookie-manager h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ff0055;
  }
  #cookie-manager label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1em;
    cursor: pointer;
  }
  #cookie-manager input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  #cookie-manager .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  #cookie-manager button {
    background: #ffffff;
    color: #8c1998;
    border: none;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
  }


  /* Bouton gérer cookies fixe visible en bas droite */
  #manage-cookies-fixed-btn {
    position: fixed;
    width: 60px;
    bottom: 15px;
    right: 50px;
    background: #8b199800;
    color: white;
    border: none;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 9999;
    display: none;
    transition: transform 0.2s, opacity 0.3s;
  }
