/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif, 'Helvetica Neue';
    line-height: 1.6;
    background-color: #000000;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}



/* Header Styles */
header {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modern Menu Styles */
.modern-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.modern-menu li {
    margin: 0 20px;
}

.modern-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.modern-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.modern-menu li a:hover::before {
    transform: scaleX(1);
}

.modern-menu li a.current {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}


header h1 {
    float: left;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px; /* Réduisez cette valeur pour rapprocher les éléments */
}


nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* Style pour le menu actif */
nav ul li.current a {
    color: #6a11cb;
}


nav ul li a:hover {
    transform: translateY(-3px);
    color: #6a11cb;
}





h1 {
    text-align: center;
}

/* Hero Section Styles */
.hero {
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Services Section Styles */
.services {
    padding: 40px 0;
}

.services h2 {
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}


#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    display: none;
}

/* Style du bouton */
#accept-cookies {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

#refuse-cookies {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

video#background-video {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px;
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

.portfolio {
    position: relative;
    background: #345469; /* Fond noir pour correspondre à l'image */
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portfolio:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    overflow: hidden; /* Assure que l'image ne dépasse pas */
    border-radius: 10px 10px 0 0;
}

.portfolio-image img {
    width: 100%;
    height: auto; /* Conserve les proportions de l'image */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio:hover .portfolio-image img {
    transform: scale(1.03);
}

.portfolio-info {
    padding: 20px;
    text-align: left;
    background: #345469; /* Fond noir pour correspondre à l'image */
    border-radius: 0 0 10px 10px;
    color: #fff; /* Texte blanc pour contraster avec le fond noir */
}

.portfolio-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.portfolio-info p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.4;
}

.portfolio a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff4747); /* Couleurs rouges pour le bouton */
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    color: #fff; /* Texte blanc pour contraster avec le bouton rouge */
}

.portfolio a:hover {
    background: linear-gradient(45deg, #ff4747, #ff2e2e);
    transform: translateY(-2px);
}




.header-container {
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #3498db;
}

.tagline {
    font-size: 1.2em;
    color: #3498db;
}

.warning {
    font-size: 1em;
    color: #e74c3c;
}

#search-container {
    padding: 20px 0; /* Ajoute de l'espace au-dessus et en dessous */
    text-align: center; /* Centre le contenu */
}

#search-input {
    padding: 12px;
    width: 60%; /* Ajustez la largeur selon vos besoins */
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-input:focus {
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

#search-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(to right, #ff7e5f, #fb1e83);
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin-left: 10px; /* Espace entre le champ de recherche et le bouton */
}

#search-button:hover {
    background: linear-gradient(to right, #ff4b2b, #ff7e5f);
    transform: translateY(-2px);
}


/* Animation néon */
@keyframes neon {
    0% {
        border-color: rgb(0, 204, 255);
        box-shadow: 0 0 10px rgb(0, 195, 255);
    }
    25% {
        border-color: rgb(0, 183, 255);
        box-shadow: 0 0 10px rgb(255, 255, 255);
    }
    50% {
        border-color: rgb(255, 255, 255);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    75% {
        border-color: rgb(255, 0, 0);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    }
    100% {
        border-color: rgb(255, 0, 0);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    }
}

body,
html {
    height: 100%;
    margin: 0;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


/* Style the button that triggers the popup */
#myBtn {
    background-color: #00b7ff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
  }
  
  /* Style the popup */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Style the popup content */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* Style the close button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }


  #portfolio {
    padding: 20px;
}

.category-title {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    animation: glow 1.5s infinite alternate;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacement entre les catégories */
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(109, 121, 122, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    color: rgb(255, 255, 255);
    width: 160px; /* Ajustez la largeur selon vos besoins */
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.5));
    transition: transform 0.3s;
    z-index: -1;
    border-radius: 50%;
}

.category:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgb(255, 255, 255);
}

.category:hover::before {
    transform: translate(-5%, -5%) scale(1.1);
}

.category img {
    width: 70px; /* Ajustez la taille de l'image selon vos besoins */
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgb(255, 255, 255));
}

.category-name {
    font-weight: bold;
    font-size: 1.3em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 20px rgba(0, 188, 212, 0.5), 0 0 30px rgba(0, 188, 212, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 188, 212, 0.8), 0 0 30px rgba(0, 188, 212, 0.8), 0 0 40px rgba(0, 188, 212, 0.8);
    }
}





/* styles.css */

/* Style pour le formulaire */
.avis {
    margin: 20px auto; /* Auto-centrer horizontalement */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 50%; /* Largeur du formulaire */
}

/* Centrer les éléments à l'intérieur du formulaire */
.avis label,
.avis input[type="text"],
.avis textarea,
.avis input[type="submit"] {
    display: block;
    margin: 10px auto; /* Auto-centrer horizontalement */
    width: 80%; /* Largeur des éléments à l'intérieur du formulaire */
}
