/* --- CSS DE BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+Pinstripe:ital@0;1&family=Ballet:opsz@16..72&family=Figtree:wght@300;400;600&display=swap');

:root {
           /* Palette Chromatique */
            --bleu-pale: #D3E0ED;
            --vert-pale: #EAEDD3;
            --rose-pale: #EDD5D3;
            --rose-fonce: #985C58;
            --bleu-fonce: #2D4D6E;
            --vert-fonce: #666E2D;

            /* Neutres Harmonisés */
            --brand-white: #FAFAF8;
            --brand-black: #1A1A1A;

            /* Tes Choix de Polices */
            --font-brand-title: 'Alumni Sans Pinstripe', sans-serif;
            --font-fancy: 'Ballet', cursive;
            --font-body: 'Figtree', sans-serif;
}

/* Empêche le navigateur de dézoomer sur mobile à cause du menu caché sur le côté */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--brand-white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }
h2 {
    font-family: var(--font-fancy);
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--rose-fonce);
    letter-spacing: 1px;
    font-weight: normal;
}
h3 {
    margin: 0 0 3rem 0; 
    font-family: var(--font-brand-title);
    text-align: center;
    font-size: 2rem;
    color: var(--brand-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}
p{
            font-family: var(--font-body);
            font-size: 1rem;
            line-height: 1.7;
            font-weight: 300;
            color: var(--brand-black);
            margin-bottom: 3rem;
}

/* --- TEXTES ORPHELINS (Sous les H2, Mentions Légales...) --- */
section > p, section > ul, section > h3 {
    max-width: 1200px; /* Aligné sur la largeur de la section À Propos */
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem; /* Marge de respiration interne */
    box-sizing: border-box;
}

/* Fusion des styles partagés par tous les boutons du site */
.btn, button[type="submit"] {
    font-family: var(--font-body);
    background: none;
    border: 1px solid var(--brand-black);
    color: var(--brand-black);
    padding: 12px 35px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 20px;
}
.btn {
    display: inline-block;
    width: fit-content;
}
.btn:hover, button:hover {
    background: var(--vert-fonce);
    color: var(--brand-white);
    border: none;
}
        
/* --- NAVIGATION --- */
header {
    font-family: var(--font-brand-title);
    font-size:x-large;
    color: var(--brand-black);
    background: var(--brand-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    color: var(--brand-black);
}

.logo { 
    font-family: var(--font-brand-title); 
    font-size: xx-large; 
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--brand-black);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--vert-fonce); transition: 0.3s; }

/* Burger Menu (Caché sur ordinateur) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--brand-black);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
#accueil {
    height: clamp(60vh, 80vw, 100vh); /* Transition fluide entre la taille mobile et pc */
    /* On remet l'image simple, sans le filtre noir */
    background: url('photos/costume-18-1.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin-bottom: 3rem;
}

/* Le fameux cadre effet verre dépoli */
.boite-texte {
    background: rgba(0, 0, 0, 0.1); /* Fond noir transparent */
    backdrop-filter: blur(4px); /* Flou moderne */
    -webkit-backdrop-filter: blur(4px); /* Flou pour Safari/Apple */
    padding: 1rem 1rem; 
    border-radius: 15px; 
    text-align: center;
    color: white; /* On force le texte en blanc à l'intérieur */
}

#accueil h1 { font-family: var(--font-brand-title); font-size: 3rem; margin-bottom: 0.5rem; margin-top: 0;}
#accueil p {font-family: var(--font-body); font-size: 1.2rem; margin-bottom: 2rem; color: var(--brand-white);}

/* Et ton bouton */
#accueil .btn {
    border-color: var(--brand-white);
    color: var(--brand-white);
}
/* --- PORTFOLIO --- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--vert-pale);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 20px;
    transition: 0.3s;
}
.project-card:hover { transform: translateY(-5px); }
.project-img {
    width: 100%;
    height: clamp(280px, 40vw, 500px); /* Hauteur 100% fluide selon l'écran */
    object-fit: cover;
    background-color: #ddd;
}

.project-info { padding: 1.5rem; }
.project-info h3 {
    color: var(--vert-fonce);
    text-transform: none;
}
.project-info p{
            max-width: 550px;
            text-align: center;
            margin: 0 auto; /* Centre le bloc de texte au milieu de la carte */
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.service-item {
    background-color: var(--vert-pale);
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 20px;
    box-sizing: border-box; /* Empêche la carte d'être plus large que l'écran */
}

.service-item h3 {
    color: var(--vert-fonce);
}
.service-item p{
            max-width: 550px;
            margin: 0 auto; /* Centre le bloc de texte au milieu de la carte */
}
            

/* --- CONTACT --- */
form {
    max-width: 600px;
    width: 90%; /* Laisse une marge respirante sur mobile */
    margin: 0 auto 4rem auto; /* 0 en haut, auto sur les côtés, 4rem en bas */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
input, textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    box-sizing: border-box; /* Force le padding à rester à l'intérieur */
    width: 100%; /* Empêche les champs de déborder de l'écran */
}

/* --- SECTION À PROPOS --- */
#about > div > div:first-child > div {
    width: clamp(180px, 45vw, 320px) !important; /* Taille fluide sans aucune rupture */
    max-width: 85% !important; /* Empêche la photo de déborder sur le texte sur un écran moyen */
    margin: 0 auto !important; /* Centre l'image horizontalement */
}

/* --- FOOTER --- */
/* Style global du footer */
footer {
  background:var(--rose-fonce); /* Gris foncé élégant */
  padding: 40px 20px 10px;
  font-size: 0.7rem;
}

/* Conteneur principal (les 3 colonnes) */
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Pour passer à la ligne sur mobile */
  margin: 0 auto;
  max-width: 1200px;
  gap: 30px;
}

/* Style de chaque colonne */
.footer-column {
  flex: 1;
  min-width: 250px; /* Largeur minimum pour pas être trop écrasé */
  margin-bottom: 20px;
  text-align: center;
}

/* Titres des colonnes */
.footer-column h3 {
  color: var(--brand-white);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--brand-white); /* Petite ligne sous le titre */
  padding-bottom: 10px;
  display: inline-block;
}

/* Liens (général) */
footer a {
  font-size: 0.8rem;
  color: var(--brand-white);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--rose-pale); /* Une couleur dorée/beige au survol */
}

footer p {
  font-size: 0.8rem;
  color: var(--brand-white);
}



/* Réseaux sociaux */
.social-links a {
  display: inline-block;
  margin-right: 15px;
}

/* Mentions légales (plus petit) */
.legal-links {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--brand-white);
}

.legal-links a {
  color: var(--brand-white);
}

/* Barre de copyright en bas */
.footer-bottom {
  text-align: center;
  font-size: 0.6rem;
  color: var(--rose-pale);
}


/* --- CARROUSEL ACCUEIL (Boutons cachés sur ordi) --- */
.home-carousel-wrapper {
    position: relative;
}
.home-carousel-btn {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    /* Ajustement de la largeur globale des carrousels */
    .home-carousel-wrapper {
        padding: 0 50px; /* Laisse de la place sur les côtés pour les flèches */
        max-width: 600px; /* Empêche les cartes d'être immenses sur tablette */
        margin: 0 auto; /* Centre le conteneur automatiquement */
        box-sizing: border-box;
    }

    /* Affichage des flèches */
    .home-carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(234, 237, 211, 0.9); /* Vert-pale transparent */
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        font-size: 1.5rem;
        color: var(--vert-fonce);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .home-carousel-btn.prev { left: 5px; }
    .home-carousel-btn.next { right: 5px; }

    /* On transforme la grille en vrai carrousel (sans barre de défilement) */
    .gallery, .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: hidden; /* Cache la barre de défilement */
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Cache la barre sur Firefox */
    }
    .gallery::-webkit-scrollbar, .services-grid::-webkit-scrollbar {
        display: none; /* Cache la barre sur Chrome/Safari */
    }
    .project-card, .service-item {
        flex: 0 0 100%; /* Prend 100% de la place, 1 par 1 */
        scroll-snap-align: start; /* S'aligne parfaitement au bord */
    }
}

@media (max-width: 768px) {
    /* Affichage du bouton burger */
    .burger { display: block; z-index: 1001; }
    
    /* Le menu caché sur le côté (ou en plein écran) */
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--brand-white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%; /* Prend tout l'écran */
        transform: translateX(100%); /* Caché à droite par défaut */
        transition: transform 0.5s ease-in-out;
        z-index: 999;
        padding-top: 0;
        gap: 2rem;
        font-size: 1.2rem; /* Taille de police réduite pour les liens du menu */
    }

    /* Classe ajoutée en JS pour afficher le menu */
    .nav-active {
        transform: translateX(0%);
    }

    /* Animation du Burger en Croix */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Ajustements généraux */
    h2 { font-size: 2.5rem; padding: 0 1rem; box-sizing: border-box; }
    h3, .project-info h3, .service-item h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
    p, .project-info p, .service-item p, .project-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .project-title { font-size: 1.8rem; }
    .logo { font-size: x-large; }
    
    /* Ajout de marges pour les textes orphelins (paragraphes sous les H2, mentions légales) */
    section > p, section > ul, section > h3 {
        padding: 0 1.5rem;
        box-sizing: border-box;
    }
    .project-content > p {
        padding: 0; /* Évite de doubler la marge dans les pages projets qui l'ont déjà */
    }

    /* --- SECTION À PROPOS (MOBILE UNIQUEMENT) --- */
    #about > div {
        flex-direction: column !important; /* Empile l'image et le texte */
        align-items: center !important;
        padding: 0 1rem !important;
    }
    #about > div > div:first-child {
        min-width: 0 !important; /* Annule la largeur forcée de l'ordinateur */
        width: 100%;
        margin-bottom: 2rem; /* Bel espace entre la photo et le texte */
    }

    #accueil h1 { font-size: 2rem; }
    #accueil p { font-size: 1rem; margin-bottom: 1.5rem; }
    .footer-container {
    flex-direction: column;
    text-align: center;
  }

    /* Ajustement des carrousels pour réduire la taille des cartes sur mobile */
    .home-carousel-wrapper, .carousel-container {
        width: 100%;
        padding: 0 3.5rem; /* Force un grand espace de chaque côté (la place des boutons) */
        box-sizing: border-box;
    }
}

/* --- PAGES DÉTAILS PROJET --- */
.project-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.project-header h1 {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 5px;
}
.project-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1rem;
    font-size: 1.1rem;
}
/* --- 4. NAVIGATION --- */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: var(--vert-pale);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            font-size: 1.5rem;
            color: var(--vert-fonce);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.2s, background 0.3s;
        }
        .nav-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-50%) scale(1.1);
        }
        .prev-btn { left: -25px; }
        .next-btn { right: -25px; }

        .dots-container {
            text-align: center;
            margin-top: 20px;
        }
        .dot {
            height: 10px;
            width: 10px;
            margin: 0 5px;
            background-color: var(--vert-pale);
            border-radius: 50%;
            display: inline-block;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .dot.active {
            background-color: var(--vert-fonce);
        }

                /* --- 2. LE CONTENEUR DU CARROUSEL --- */
        .carousel-container {
            position: relative;
            max-width: 1000px;
            margin: 0 auto 0rem;
            padding: 0 20px;
            min-height: 500px; 
        }

        .carousel-track {
            position: relative;
            width: 100%;
            height: 100%;
        }

        /* --- 3. SLIDE (PROJET) --- */
        .project-slide {
            display: none; /* Caché par défaut */
            animation: fadeVisibility 0.8s ease-in-out; /* Animation douce */
            background: var(--vert-pale);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            align-items: stretch;
            min-height: 500px;
        }

        .project-slide.active {
            display: flex; /* Visible si classe active */
        }

        @keyframes fadeVisibility {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        .slide-image-container {
            flex: 1;
            overflow: hidden;
        }

        .slide-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .slide-content {
            flex: 1;
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left;
        }

        .project-era {
            font-size: 0.9rem;
            color: var(--brand-black);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            font-family: var(--font-brand-title);


        }

        .project-title {
            font-family: var(--font-brand-title);
            font-size: 2.2rem;
            margin: 0 0 1.5rem 0;
            color: var(--vert-fonce);
            line-height: 1.1;
        }

        .project-desc {
            color: var(--brand-black);
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        

        /* --- 5. RESPONSIVE --- */
        @media (max-width: 768px) {
            .project-slide.active { flex-direction: column; }
            .slide-image-container { height: 300px; }
            .slide-content { padding: 2rem; text-align: center; }
            .project-link { margin: 0 auto; }
        .prev-btn { left: 5px; }
        .next-btn { right: 5px; }
        }