/* 1. Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Styles généraux du body */

.main-header {
    background-color: #000000;
    color: white;
    padding: 20px 40px;
    position: relative;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-owner {
    font-size: 1.5em;
    font-weight: bold;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    color: #fff;
}

.typing-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40vh;
    background-color: #f2f2f2;
}

.svg-container {
    width: 100%;
    height: 100px;
}

@font-face {
    font-family: 'DeterminationMono';
    src: url('fonts/determinationmonoweb-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.typing-text {
    fill: white;
    font-family: 'DeterminationMono', monospace;
    font-size: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

@keyframes blink-caret {
    from, to { stroke: transparent; }
    50% { stroke: black; }
}

.typing-container {
    font-size: 2em;
    font-weight: bold;
    color: white;
    background: transparent; /* enlève tout cadre blanc */
    display: inline-block;
    padding: 0;
    margin: 0;
  }
  
  .cursor {
    display: inline-block;
    width: 1ch;
    color: white;
    animation: blink 1s steps(2, start) infinite;
  }
  
  @keyframes blink {
    to {
      visibility: hidden;
    }
  }

  /* Supprimer le fond blanc autour de la bannière SVG */
.banner.clean-banner {
    background-color: transparent;
}

/* S'assurer que le SVG n'affiche pas de fond */
.svg-container.no-bg {
    background: none !important;
}

/* Forcer le texte à être rétro sans fond parasite */
.typing-banner {
    background: transparent !important;
}

/* 3. Hero Section (Haut de la page avec fond d'écran) */
.banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* envoie la vidéo derrière le contenu */
}

.banner-content {
    position: relative;
    z-index: 1; /* s'assure que le texte passe devant la vidéo */
    color: white;
    text-align: center;
}

.banner-text h1 {
    font-size: 3em;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
}

/* 4. Bannière (section suivante sous le hero) */
.hero {
    background-color: #222;
    padding: 50px 20px;
    animation: fadeInUp 1s ease-in-out;
}

/* 5. Grille d'images (Grid) */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    justify-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}

#img1 {
    justify-content: center;
    align-items: center;

}

#img2 {
    justify-content: center;
    align-items: center;

}

#img3 {
    justify-content: center;
    align-items: center;

}

#img4 {
    justify-content: center;
    align-items: center;

}

#img5 {
    justify-content: center;
    align-items: center;

}

#img6 {
    justify-content: center;
    align-items: center;

}

#img7 {
    justify-content: center;
    align-items: center;

}

#img8 {
    justify-content: center;
    align-items: center;

}

#img9 {
    justify-content: center;
    align-items: center;

}

#img10 {
    justify-content: center;
    align-items: center;

}

#img11 {
    justify-content: center;
    align-items: center;

}

#img12 {
    justify-content: center;
    align-items: center;

}

#img13 {
    justify-content: center;
    align-items: center;

}

#img14 {
    justify-content: center;
    align-items: center;

}

.titrerea {
text-align: center;
}

/* Pseudo-élément pour l'assombrissement */
.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
    pointer-events: none;
}

/* Lors du survol de l'image-container */
.image-container:hover::after {
    opacity: 1;
}

/* Images en noir et blanc par défaut */
.grid img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(100%);
}

/* Lors du survol, images en couleur + zoom */
.image-container:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* 6. Bouton "Ouvrir" au centre de l'image */
.open-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: #f39c12;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* 7. Rendre le bouton visible au survol */
.image-container:hover .open-btn {
    opacity: 1;
    visibility: visible;
}

/* 8. Changement de couleur du bouton au survol */
.open-btn:hover {
    background-color: #e67e22;
}

/* 9. Fenêtre modale */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 80%;
    max-width: 1000px;
    overflow: hidden;
}

.modal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content img {
    width: 45%;
    height: auto;
    object-fit: contain;
}

.modal-description {
    width: 50%;
    padding: 20px;
    color: #fff;
}

.modal-description h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.modal-description p {
    font-size: 1.2em;
}

/* 10. Fermeture de la modale */
.modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0f0f5; /* Couleur claire, ressemblant au style macOS */
    color: #333; /* Couleur sombre pour le texte '×' */
    border: 2px solid #d1d1d6; /* Bordure grise claire pour ressembler à macOS */
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    padding: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1001; /* Assurer qu'il soit au-dessus de tout le contenu */
}

/* Lors du survol de la souris */
.modal .close-btn:hover {
    background-color: #e74c3c; /* Rouge vif pour le survol */
    color: white; /* Le texte devient blanc pour contraster */
    transform: scale(1.1); /* Agrandir légèrement au survol */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ajouter une ombre douce */
}

/* Lors du clic */
.modal .close-btn:active {
    background-color: #c0392b; /* Couleur encore plus foncée lors du clic */
}

/* Lors du focus (ex: tabulation) */
.modal .close-btn:focus {
    outline: none; /* Retirer le contour par défaut au focus */
}

/* 11. Responsive Styles */

/* Pour les tablettes (larges et petites) */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5em;
        padding: 15px 30px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid img {
        width: 250px;
        height: 250px;
    }

    .open-btn {
        font-size: 1em;
        padding: 8px 15px;
    }

    .footer a {
        font-size: 1em;
    }
}

/* Pour les petits écrans (mobiles) */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2em;
        padding: 10px 20px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid img {
        width: 200px;
        height: 200px;
    }

    .open-btn {
        font-size: 0.9em;
        padding: 7px 12px;
    }

    .footer a {
        font-size: 0.9em;
        margin: 0 10px;
    }
}

/* Pour les très petits écrans (mobiles très petits) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8em;
        padding: 10px 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid img {
        width: 100%;
        height: auto;
    }

    .open-btn {
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .footer a {
        font-size: 0.8em;
        margin: 0 5px;
    }
}

/* Section À propos */
.about {
    background-color: #1a1a1a;
    padding: 60px 20px;
    text-align: center;
}

.about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
    background-color: #222;
    gap: 40px;
    flex-wrap: wrap;
}

.about-photo {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #333;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #555;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.photo-frame:hover {
    background-color: #444;
}

.about-text {
    flex: 2;
    color: white;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Section Contact */
.contact {
    background-color: #2a2a2a;
    padding: 60px 20px;
}

.contact h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact label {
    font-size: 1.1em;
    text-align: left;
}

.contact input,
.contact textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #444;
    color: white;
    font-size: 1em;
    resize: vertical;
}

.contact button {
    padding: 12px;
    font-size: 1.1em;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #e67e22;
}

.contact input,
.contact textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #444;
    color: white;
    font-size: 1em;
    resize: vertical;
    transition: box-shadow 0.3s, outline 0.3s; /* Transition douce */
}

/* Ajout de l'effet focus */
.contact input:focus,
.contact textarea:focus {
    outline: none; /* Supprime le contour par défaut */
    box-shadow: 0 0 8px 2px #f39c12; /* Effet lumineux orange */
}

.footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f39c12;
}

.footer p {
    font-size: 0.9em;
    opacity: 0.8;
}

.secondary-gallery {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.secondary-gallery img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}

.hidden {
    display: none;
}

#toggle-gallery-btn {
    margin-top: 10px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

.softwares {
    background-color: #111;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.softwares-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Press Start 2P', sans-serif;
}

/* Conteneur global du carrousel */
.independent-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* Fenêtre visible du carrousel */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}

/* Piste de logos */
.independent-carousel {
    display: flex;
    flex-wrap: nowrap; /* ✅ Plus de wrap */
    transition: transform 0.5s ease-in-out;
}

/* Chaque logo visible prend 1/3 du viewport */
.logo-item {
    flex: 0 0 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Apparence des logos */
.logo-item img {
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: transform 0.3s, filter 0.3s;
    animation: spinLogo 4s linear infinite;
}

.logo-item img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Animation 3D */
@keyframes spinLogo {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Boutons de navigation */
.carousel-nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-nav-btn.left {
    left: 10px;
}

.carousel-nav-btn.right {
    right: 10px;
}

.carousel-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive spacing */
@media (max-width: 768px) {
    .logo-item {
        flex: 0 0 100%; /* 1 à la fois sur mobile si tu veux */
    }
}
