@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #333;
    padding: 0;
}

h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 2.5rem;
}


p {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
    line-height: 1.6;
    padding: 0 20px;
}

/* NAV HEADER */
body > nav {
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

body > nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

body > nav a:hover {
    color: #800020;
}

body > nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #800020;
    transition: width 0.3s;
}

body > nav a:hover::after {
    width: 100%;
}

/* menu burger */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Navigation mobile */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-mobile.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.nav-mobile a:hover {
    color: #800020;
}

/* Bouton fermer (croix) dans le menu mobile */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 32, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: rgba(128, 0, 32, 0.2);
    transform: scale(1.1);
}

.close-menu::before,
.close-menu::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #800020;
    border-radius: 1px;
}

.close-menu::before {
    transform: rotate(45deg);
}

.close-menu::after {
    transform: rotate(-45deg);
}

/* section accueil */

 .accueil-section {
            height: 90vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            color: white;
            text-align: center;
            overflow: hidden;
            background: linear-gradient(-45deg, #800020, #5e0018, #a0002a, #660015);
            background-size: 400% 400%;
            animation: gradientShift 8s ease infinite;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .accueil-content {
            position: relative;
            z-index: 10;
            max-width: 800px;
            padding: 0 20px;
        }

        .accueil-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: fadeInUp 1s ease-out;
        }

        .accueil-content p {
            font-size: 1.2rem;
            line-height: 1.6;
            margin: 0;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }




/* APROPOS */


.apropos-container {
   display: flex;
   align-items: center;
   margin-top: -75px;
}

.texte-apropos {
   flex: 1;
   margin-right: 200px;
}

.texte-apropos h1 {
   text-align: CENTER;
   padding: 0;
   margin-left: 90px;
}

.texte-apropos p {
   text-align: CENTER;
   margin-left: 90px;
   padding: 0;
   max-width: none;
   font-size: 18px;
}

/* ia animation DU PERSO 3D */

.perso3d  {
    width: 320px;
    height: auto;
    flex-shrink: 0;
    margin-right: 200px;
    position: relative;
    transform: translateY(80px); /* Fait descendre le personnage pour qu'il dépasse */
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 10; /* S'assure qu'il passe au-dessus des autres éléments */
    opacity: 0;
 }

 .perso3d.visible {
  opacity: 1;
  transform: translateY(0);
}



button {
    display: block;
    margin: 30px auto;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #800020;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #5e0018;
}

/* propriétés section */
section {
    padding: 60px 20px;
    background-color: #f8f8f8;
    margin: 40px 0;
    border-top: 1px solid #eee;
}

#competences {
    padding: 50px 20px;
    text-align: center;
}

#competences h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.bloc {
    position: relative;
    margin: 50px auto;
    max-width: 700px;
    padding: 50px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.texte h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.texte p {
    font-size: 1rem;
    color: #333;
}

.mac {
    width: 550PX;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

/* animation ia mac */

    .mac-gauche {
        left: -450px;
        width: 650px;
        height: auto;
        /* Animation unique au chargement de la page */
        animation: entreeGauche 1.5s ease-out 1s forwards;
        /* Commence invisible et hors écran */
        opacity: 0;
        transform: translateY(-50%) translateX(-300px);
    }

    .mac-droite {
        right: -450px;
        width: 650px;
        height: auto;
        /* Animation unique au chargement de la page */
        animation: entreeDroite 1.5s ease-out 1.5s forwards;
        /* Commence invisible et hors écran */
        opacity: 0;
        transform: translateY(-50%) translateX(300px);
    }

    /* Animation pour le Mac de gauche */
    @keyframes entreeGauche {
        from {
            opacity: 0;
            transform: translateY(-50%) translateX(-300px);
        }
        to {
            opacity: 0.9;
            transform: translateY(-50%) translateX(0);
        }
    }

    /* Animation pour le Mac de droite */
    @keyframes entreeDroite {
        from {
            opacity: 0;
            transform: translateY(-50%) translateX(300px);
        }
        to {
            opacity: 0.9;
            transform: translateY(-50%) translateX(0);
        }
    }


.maquette-taille {
  width: 100%;
  height: 200px;
  object-fit: cover; 
  display: block;
}

.affiche-lighthouse {
     width: 100%;
  height: 200px;
  object-fit: cover; 
  display: block;
}

.post-fc {
     width: 100%;
  height: 200px;
  object-fit: cover; 
  display: block;
}

/* container pour centrer cards */
.total-projet {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
}

.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease;
    text-align: center;
    display: inline-flex;   
    flex-direction: column;
    vertical-align: top;
    margin: 20px 15px;
    height: 480px;          
}

  
 .card:hover {
    transform: scale(1.03);
}
  
  
  
.card-video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}
  
.card-content {
    padding: 10px;
    flex-grow: 1; /* occupe tt l’espace entre image et bouton */
    display: flex;
    flex-direction: column;
}
  
.card-content h3 {
    margin: 10px 0 10px;
    font-size: 1.3rem;
    color: #333;
}
  
.card-content p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
}
  
.card-button {
    padding: 10px 20px;
    background-color: #800020;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    align-self: center;
    transition: background-color 0.3s;
}

.card-button:hover {
    background-color: #5e0018;
}

.card img, .card iframe {
    width: 100%;
    height: 180px;
    object-fit: cover; /* pour bien recadrer images */
    border: none;
}

/* projets détaillés */

#projets-detailles {
    display: block;
}

.projet-detail {
    display: block;
    padding: 40px 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
}

.projet-detail.active {
    display: block;
}

.projet-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.projet-images {
    text-align: center;
}

.projet-image-principale {
    width: 100%;
    max-width: 650px;
    height: 750px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.projet-video-principale {
    width: 100%;
    max-width: 650px;
    height: 750px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}


.projet-info h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

.projet-tags {
    margin-bottom: 25px;
}

.tag {
    display: inline-block;
    background-color: #800020;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 8px;
}

.projet-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

.projet-info h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.projet-info ul {
    text-align: left;
    margin-bottom: 30px;
}

.projet-info li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Container pour la maquette avec molette IA */
.maquette-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 750px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #fff;
    margin: 20px auto;
}

/* scroller maquette IA */

.maquette-scrollable {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.maquette-scrollable::-webkit-scrollbar {
    width: 8px;
}

.maquette-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.maquette-scrollable::-webkit-scrollbar-thumb {
    background: #800020;
    border-radius: 4px;
}

.maquette-scrollable::-webkit-scrollbar-thumb:hover {
    background: #5e0018;
}

.maquette-image {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(128, 0, 32, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.maquette-container:hover .scroll-indicator {
    opacity: 1;
}

/* Galerie d'images pour France Challenges IA*/
.galerie-container {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
}

.galerie-principale {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.galerie-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.galerie-image.active {
    opacity: 1;
}

.galerie-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.galerie-navigation:hover {
    background: rgba(128, 0, 32, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
}

.galerie-navigation:active {
    transform: translateY(-50%) scale(0.95);
}

.galerie-navigation.bounce {
    animation: bounce 0.4s ease-out;
}

.nav-precedent {
    left: 15px;
}

.nav-suivant {
    right: 15px;
}


.galerie-miniatures {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.miniature {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.miniature.active {
    border-color: #800020;
    opacity: 1;
    transform: scale(1.05);
}

.miniature:hover {
    opacity: 1;
    transform: scale(1.05);
}

.galerie-compteur {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}


@keyframes bounce {
    0% {
        transform: translateY(-50%) scale(1);
    }
    40% {
        transform: translateY(-50%) scale(1.15);
    }
    80% {
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}


.photo-contact {
      width: 350px;
      height: 470px;
     border-radius: 40px;
     display: left;
}

.texte-contact {
  text-align: left;
  flex: 1;
  font-size: 18px;
  font-weight: bold
}

.contact-container {
  display: flex;
  align-items: flex-start; /* aligne verticalement en haut */
  gap: 80px;              /* espace entre image et texte */
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}


.contact-info {
     margin-top: 30px;
     margin-left: 20px;
  }

 .contact-item {
        display: flex;
        margin-bottom: 20px;
        font-size: 18px;
        font-weight: bold;
 }


.contact-icon {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        fill: #800020;
}

.contact-link {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
}

.contact-link:hover {
        color: #800020;
}

.contact-info .contact-link {
         color: #800020; /* rouge bordeaux */
        font-weight: 600;
        text-decoration: none;
}

.contact-info .contact-link:hover {
        color: #5e0018; /* rouge foncé au survol */
}
.contact-info .contact-icon {
        fill: #800020;
        width: 24px;
        height: 24px;
        margin-right: 10px;
        vertical-align: middle;
}


/*footer */

.pied-page {
        background: linear-gradient(135deg, #800020 0%, #5e0018 50%, #800020 100%);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        color: white;
        padding: 30px 20px 30px;
        text-align: center;
        position: relative;
        overflow: hidden;
        }

.pied-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
        pointer-events: none;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .contenu-pied {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        z-index: 10;
        }

/* Structure du footer en grid moderne */

.footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
        text-align: left;
        align-items: start;
        }

/* NAVIGATION FOOTER - Styles spécifiques */
.nav-footer {
        background-color: transparent !important; /* Force la transparence */
        box-shadow: none !important;
        position: static !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 15px;
}

.nav-footer h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.nav-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.3));
    border-radius: 2px;
}

.nav-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
}

.nav-footer a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.nav-footer a:hover::before {
    left: 100%;
}

.nav-footer a:hover {
    color: #ffffff;
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Pour être sûr, on peut aussi ajouter une règle encore plus spécifique */
footer .nav-footer {
    background: none !important;
    background-color: transparent !important;
}

/* Informations de contact au centre */
.info-contact {
            text-align: center;
 }

 .info-contact h3 {
        color: white;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 10px;
 }

.info-contact h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.3));
        border-radius: 2px
}

.footer-content .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 8px 15px;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
}

.footer-content .contact-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-content .contact-item svg {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        fill: #ffffff;
}

.footer-content .contact-item a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: color 0.3s ease;
}

.footer-content .contact-item:hover a {
        color: #ffffff;
}

 /* Boutons à droite */

.boutons-droite {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
}

.boutons-droite h3 {
        color: white;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
        width: 100%;
}

.boutons-droite h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, rgba(255,255,255,0.3), #ffffff);
        border-radius: 2px;
}

.lien-linkedin, .bouton-retour {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 15px 25px;
        border-radius: 30px;
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        transition: all 0.4s ease;
        border: 2px solid rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
        min-width: 200px;
}

.lien-linkedin::before, .bouton-retour::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s;
}

.lien-linkedin:hover::before, .bouton-retour:hover::before {
        left: 100%;
}

.lien-linkedin:hover, .bouton-retour:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.lien-linkedin svg, .bouton-retour svg {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        fill: currentColor;
}

/* Ligne de séparation moderne */
.ligne-separation {
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.6), rgba(255,255,255,0.3), transparent);
        margin: 40px 0 30px;
        border-radius: 1px;
}

/* Copyright moderne */
.copyright {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 500;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
}


/* RESPONSIVE */

/* accueil grand */
@media screen and (max-width: 768px) {
        .accueil-content h1 {
                font-size: 2.5rem;
        }
            
        .accueil-content p {
                font-size: 1rem;
        }
}

/* footer grand */
@media screen and (max-width: 768px) {
        .footer-content {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
        }
            
        .nav-footer h3::after, .info-contact h3::after {
                left: 50%;
                transform: translateX(-50%);
        }
            
        .boutons-droite h3::after {
                left: 50%;
                transform: translateX(-50%);
        }
            
        .nav-footer a:hover {
                transform: translateY(-2px);
        }
            
        .lien-linkedin, .bouton-retour {
                width: 100%;
                max-width: 250px;
        }

}

/* footer petit*/

@media screen and (max-width: 480px) {
        .pied-page {
                padding: 40px 15px 20px;
        }
            
        .footer-content {
                gap: 30px;
        }
}

/* a propos grand*/
@media screen and (max-width: 768px) {
    .apropos-container {
        flex-direction: column;
        text-align: center;
        margin-top: 0;
    }
    
    .texte-apropos {
        margin-right: 0;
        order: 2;
    }
    
    .texte-apropos h1 {
        margin-left: 0;
        font-size: 2rem;
    }
    
    .texte-apropos p {
        margin-left: 0;
        font-size: 16px;
        padding: 0 20px;
    }
    
    .perso3d {
        width: 250px;
        margin-right: 0;
        margin: 0 auto 20px;
        transform: translateY(0);
        order: 1;
    }
}


/* a propos petit*/

@media screen and (max-width: 480px) {
    .texte-apropos h1 {
        font-size: 1.8rem;
    }
    
    .texte-apropos p {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .perso3d {
        width: 200px;
    }
}

/* section contact responsive grand */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .photo-contact {
        width: 280px;
        height: 350px;
        margin: 0 auto;
    }
    
    .contact-text-section {
        order: 2;
    }
    
    .texte-contact {
        text-align: center;
        font-size: 16px;
        padding: 0 20px;
    }
    
    .contact-info {
        margin-left: 0;
        margin-top: 25px;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 16px;
    }
}

/* section contact petit*/
@media screen and (max-width: 480px) {
    .photo-contact {
        width: 220px;
        height: 280px;
    }
    
    .texte-contact {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .contact-item {
        font-size: 15px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
}

/* AMÉLIORATIONS GÉNÉRALES TRÈS PETITS ÉCRANS */
@media screen and (max-width: 480px) {
    /* Navigation plus compacte */
    body > nav {
        padding: 15px 10px;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    body > nav a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Titres plus petits */
    h1 {
        font-size: 1.8rem;
        margin-top: 30px;
    }

}
    
/* Sections + compactes */
    section {
        padding: 40px 15px;
        margin: 20px 0;
    }
    
/* Cards projets encore plus compactes */
    .total-projet {
        padding: 15px 0;
    }
    
    .card {
        width: 95%;
        margin: 15px auto;
        height: auto;
        min-height: 420px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    

/* Projets détaillés plus compacts */
/* Responsive : Projets détaillés */
@media screen and (max-width: 768px) {
  .projet-container {
    grid-template-columns: 1fr; /* passe à une seule colonne */
    gap: 30px;
  }

  .projet-image-principale,
  .projet-video-principale,
  .maquette-container {
    height: auto;
    max-height: 500px;
  }

  .projet-info h2 {
    font-size: 1.6rem;
  }

  .projet-info p {
    font-size: 1rem;
  }

  .tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .projet-info ul {
    padding-left: 20px;
  }

  .galerie-container {
    max-width: 100%;
  }

.galerie-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
  margin: auto;
}

.galerie-principale {
  width: 100%;
  max-height: 60vh; /* moins haut que 80vh */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}


.galerie-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
  margin: auto;
}

.galerie-image.active {
  display: block;
}


  .galerie-navigation {
    font-size: 1.5rem;
    padding: 8px;
  }

  .scroll-indicator {
    font-size: 0.9rem;
  }

  .fleche {
  font-size: 2rem; /* avant c’était sûrement 3rem ou + */
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.fleche.gauche {
  left: 1rem;
}

.fleche.droite {
  right: 1rem;
}


}

@media screen and (max-width: 480px) {
  .projet-info h2 {
    font-size: 1.3rem;
  }

  .projet-info p,
  .projet-info li {
    font-size: 0.95rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}


/* responsive tablettes */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .apropos-container {
        margin-top: -50px;
    }
    
    .texte-apropos {
        margin-right: 100px;
    }
    
    .texte-apropos h1 {
        margin-left: 50px;
    }
    
    .texte-apropos p {
        margin-left: 50px;
    }
    
    .perso3d {
        width: 280px;
        margin-right: 100px;
    }
    
    .contact-container {
        gap: 60px;
    }
    
    .photo-contact {
        width: 300px;
        height: 400px;
    }
}


/* Responsive grand 768PX */
@media screen and (max-width: 768px) {
    body > nav {
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    body > nav a {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mac {
        display: none;
    }

    .bloc {
        padding: 20px;
    }

    .total-projet {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 350px;
        margin: 20px 0;
        display: flex;
        flex-direction: column;
    }
}


/*cards petit*/

@media screen and (max-width: 480px) {
    .card {
        width: 95%;
        max-width: 300px;
        margin: 15px 0;
    }
}
