/* Reset & Base */
* { margin: 0; padding: 0; box-box-sizing: border-box; }
body, html { height: 100%; font-family: 'Georgia', serif; color: white; -webkit-overflow-scrolling: touch;}

:root {
    --gold-text: #d4c8af; /* La couleur dorée du nom */
    --white: #ffffff;
    --overlay-bg: rgba(255, 255, 255, 0.1);
}
html, body {
    -webkit-overflow-scrolling: touch;
}
main {
    padding-top: 120px; /* Espace réservé pour la navbar fixe */
}

/* Sur la page d'accueil uniquement, on peut annuler ce padding si on veut centrer verticalement */
.home main {
    padding-top: 0;
}

/* Sur l'accueil on garde le blocage si vous voulez */

/* Par défaut (Desktop), on cache ce logo */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('Accueil.png') no-repeat center center fixed;
    background-image: url('Accueil.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

body.home {
    /*overflow: hidden;*/
}

/* Sur la page réalisations, on force l'autorisation du défilement */
body.page-real {
    overflow-y: auto !important; /* Autorise le scroll vertical */
    overflow-x: hidden;         /* Empêche le scroll horizontal parasite */
    height: auto;               /* Permet au body de grandir avec le contenu */
    min-height: 100vh;
}
@keyframes fadeInHeader {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------- Navigation -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* On définit une hauteur fixe pour plus de contrôle */
    display: flex;
    align-items: center;
    padding: 0 60px; /* Marges à gauche et à droite */
    z-index: 1000;
    box-sizing: border-box;
    /* On enlève tout justify-content global pour laisser les éléments respirer */
    justify-content: flex-start; 

    /* Optionnel : un léger dégradé pour garantir la lisibilité du menu sur des fonds variés */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
	animation: fadeInHeader 1.2s ease-out forwards;
	
    /* On change 'space-between' pour un alignement à gauche par défaut */
    
}
.logo-link {
    display: flex;
    align-items: center;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    /* LE CORRECTIF : Pousse TOUT le bloc menu vers la droite */
    margin-left: 355%; 
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    letter-spacing: 2.5px;
    
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* -------------------------------------La ligne invisible au départ------------------ */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--gold-text);
    transition: width 0.4s ease;
}

/* -------------------------------------La ligne s'étire au survol----------------------- */
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold-text);
}

.mobile-character {
	display: block;
	position: fixed;
	bottom: 0;     /* Distance du bas */
    right: 25%;
    height: 100vh; /* 70% de la hauteur de l'écran */
    width: auto;    
	z-index: 50;
    /*    opacity: 0.8;      /* Un peu de transparence pour la discrétion */
    }

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.site-logo {
    height: 65px; /* Ajustez selon la finesse de votre logo */
    width: auto;
    object-fit: contain;
    /* Un léger effet de lueur pour rappeler le côté onirique */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.logo-link:hover {
    transform: scale(1.05); /* Petit zoom très discret au survol */
}

/* ------------------------------------ Bloc Identité (Gauche) -------------------- */
.hero-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
}

.name-card {
	span { color: #8b3a3a; } /* Le '&' rouge */
    transition: transform 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
	/* Fond blanc très léger (10% d'opacité) */
    background: rgba(255, 255, 255, 0.1); 
    
    /* L'effet de flou - Augmentez le chiffre pour plus de "dépoli" */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Pour la compatibilité Safari */
    
    /* Une bordure très fine pour délimiter le verre */
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Une ombre portée légère pour donner de la profondeur */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    padding: 25px 45px;
    border-radius: 20px;
	
	width: fit-content;      /* Le bloc s'ajuste à la taille du texte */
    max-width: 90%;          /* Sécurité pour les petits écrans */
    display: block;          /* Assure un bon comportement du bloc */
    margin-top: 5%;
	
    /* Si vous voulez que le bloc reste aligné à gauche : */
    margin-left: 2%; 
    margin-right: auto;
}

 .name-card h1 {
    font-size: 2rem; /* Réduit par rapport au précédent */
    letter-spacing: 5px;
    margin: 0;
    line-height: 1.1;
    color: var(--gold-text);
}

.name-card p {
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-top: 5px;
    font-weight: 300;
}


.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; /* Taille plus discrète */
    max-width: 450px;
    margin-top: 65px;
    margin-left: 15%;
	font-style: italic;
    line-height: 1.2;
    text-transform: uppercase;
}

/* --------------------------------------------- Bouton Reel (Droite) ----------------------------------------------- */
.video-trigger {
    transition: opacity 0.3s ease;
}

.circle-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	margin-top: 8%;
	margin-left: 5%;
}

/* Au survol du lien complet */
.video-trigger:hover .circle-btn {
    background-color: var(--white);
    border-color: var(--white);
    transform: scale(1.15); /* Légère croissance */
}

.video-trigger:hover .circle-btn span {
    color: #1a1a1a; /* La flèche devient sombre sur fond blanc */
}

.video-trigger .label {
    transition: letter-spacing 0.4s ease, opacity 0.3s ease;
	list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
	margin-left: 8%;
	margin-top: -2%;
}

.video-trigger:hover .label {
    letter-spacing: 4px; /* Le texte s'espace légèrement */
    opacity: 0.8;
}

/* Fenêtre modale */
.modal {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Sur desktop */
    max-width: 1000px;
}
/* Ratio 16:9 pour la vidéo */
.modal-content div {
    padding: 56.25% 0 0 0;
    position: relative;
}
.modal-content iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.modal-content iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.close-btn:hover { color: #b04c4c; } /* Un rappel du rouge de la bio */

.vimeo-container {
    padding: 56.25% 0 0 0; /* Ratio 16:9 */
    position: relative;
}

.vimeo-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
/* --- La base de la page Réalisations --- */
.page-real {
    background-color: #2e4a3f;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Le panneau dépoli --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Utilisation de % pour la fluidité */
    width: 90%; 
    max-width: 1100px; 
    
    /* Padding proportionnel */
    padding: 40px;
    margin: 120px auto 40px auto; /* 120px en haut pour laisser la place au menu */
    box-sizing: border-box; /* IMPORTANT : pour que le padding ne dépasse pas */
	height: auto;       /* IMPORTANT : ne pas mettre 100% ou 100vh ici */
    min-height: 200px;  /* Optionnel */
    margin-bottom: 50px; /* Laisse un peu d'espace en bas de page pour respirer */
}


/* --- La Grille --- */
.grid-container {
    display: flex;
    flex-wrap: wrap; /* Autorise l'empilement */
    gap: 30px;
    width: 100%;
}

/* --- Chaque bloc Vidéo --- */
.video-item {
    /* Desktop : 2 colonnes (50% moins l'espace du gap) */
    flex: 1 1 calc(50% - 30px); 
    box-sizing: border-box;
}

.thumbnail img {
    width: 100%; /* L'image remplit son conteneur */
    height: auto;
    display: block;
}
.thumbnail img:hover {
    transform: translateY(-5px);
    border-color: white;
}
.thumbnail { overflow: hidden; cursor: pointer; }

/* ------------------------------Le conteneur avec l'image de fond spécifique à la Bio---------------------------- */
.bio-panel {
    background: #0d1b31 url('fond-etoile.png') no-repeat center center;
    background-size: cover;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.bio-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
	margin-top: 0;
}

.bio-photo img {
    width: 300px; /* Taille fidèle à la maquette */
    height: auto;
    display: block;
}

.bio-title {
    color: #e60000; /* Le rouge vif de "BIO" */
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}

.bio-description p {
    color: #b0c4de; /* Bleu très clair/gris pour la lisibilité */
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}


/*----------------------------------------------------------Page infos--------------------------------*/
.infos-panel {
    /* 1. Utilise les mêmes dimensions que .bio-panel */
    width: 90%;
    max-width: 1100px;
    
    /* 2. FORCE LA HAUTEUR À AUTO (comme la Bio) */
    height: 597px; 
    
    /* 3. UTILISE LE MÊME PADDING QUE LA BIO */
    padding: 60px; 
    
    /* 4. MARGE IDENTIQUE POUR LE POSITIONNEMENT */
    margin: 0 auto; 
    
    /* Le reste ne change pas */
    background: #1a2a44 url('fond-nuages.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    /* Aligne le contenu vers le haut */
    justify-content: flex-start; 
    /* Centre le contenu horizontalement */
    align-items: center; 
    
    /* On ajoute un padding-top pour décoller le texte du bord haut du cadre */
    padding-top: 80px; 
    
    text-align: center;
    /* ... tes autres styles (background, width, min-height) ... */
}
    border-radius: 4px;
}
.infos-content {
    /* Largeur fixe pour le bloc de texte si besoin, ou auto */
    width: 100%;
    max-width: 400px;
}
.infos-content h3 {
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}
.contact-group, .social-group {
    margin-bottom: 40px; /* Espace entre la section mail et la section icônes */
}
.mail-link, .insta-tag {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
	margin-top: 30%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* L'écart entre les logos */
    margin: 15px 0;
}
.social-icons a {
    color: white;
    font-size: 1.5rem; /* Taille des icônes */
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}


/* ------------------------------------------------Media Queries pour le Mobile--------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: 70px;
    }
    .nav-links {
        /* Sur mobile, on annule le 'auto' pour qu'il se rapproche du logo */
        margin-left: 100px; 
        gap: 15px;
    }
    .hero-main { padding-left: 20px; align-items: center; text-align: center; }
    
    .video-trigger { 
        position: relative; 
        right: 15%; 
        bottom: 5%; 
        margin: 10% 20%; 
    }
	.video-trigger .label {
    transition: letter-spacing 0.4s ease, opacity 0.3s ease;
	list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
	margin-left: 28%;
	margin-top: -14%;
}
	.site-logo {
        height: 40px; /* On réduit la taille du logo sur mobile */
    }

   
    .nav-links a {
        font-size: 11px; /* Texte plus petit pour que tout tienne */
        letter-spacing: 1px;
    }
	.name-card {
        padding: 12px 20px; /* Bloc moins massif */
		margin-top: -5%;
    }

    .name-card h1 {
        font-size: 1.5rem; /* Réduction nette du nom */
        letter-spacing: 3px;
    }

    .name-card p {
        font-size: 0.85rem;
	}

    .tagline {
        font-size: 1.1rem; /* La phrase devient plus fine */
        max-width: 85%;    /* Prend moins de place en largeur */
        margin-top: 40px;
		margin-left: 5%;
		
    }
	.mobile-character {
        display: block;
        position: fixed;
        bottom: -60%;     /* Distance du bas */
        right: 20px;      /* Distance de la droite */
        z-index: 50;
        opacity: 0.8;      /* Un peu de transparence pour la discrétion */
    }

    .mobile-character img {
        width: 420px;      /* Taille réduite du personnage */
        height: auto;
        filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
	}
	.video-item {
        /* Mobile : 1 seule colonne (100%) */
        flex: 1 1 100%; 
    }

    .glass-panel {
        padding: 20px;
        margin-top: 80px; /* On réduit l'espace haut sur mobile */
    }
	
	.bio-content {
        flex-direction: column; /* On empile photo et texte */
        align-items: center;
        text-align: center;
		
    }

    .bio-photo img {
        width: 100%; /* La photo prend plus de place sur mobile */
        max-width: 250px;
		margin-top: 0;
    }

    .bio-panel {
	    /* On charge une image au format portrait, optimisée pour mobile */
        background-image: url('fond-bio-mobile.png'); 
        background-position: top center; /* Ajuste le cadrage si besoin */
        padding: 30px 20px;
        margin-top: 1%;
    }
    
    .walking-man {
        right: 10px; /* On le colle un peu plus au bord */
        width: 30px;
    }

    .infos-panel {
        height: auto;
        min-height: 400px;
        padding-bottom: 50px;
    }
	.infos-panel {
	    /* On charge une image au format portrait, optimisée pour mobile */
        background-image: url('fond-nuages-mobile.png'); 
        background-position: top center; /* Ajuste le cadrage si besoin */
        padding: 30px 20px;
        margin-top: 1%;
		height: 597px;
    }
}
/* S'applique aux téléphones quand on les tourne à l'horizontale */
@media screen and (orientation: landscape) and (max-height: 500px) {
    
    /* 1. On réduit la marge du haut pour remonter le panneau */
    .bio-panel, .infos-panel, .glass-panel {
        /*margin: 40px auto 20px auto !important;*/
		margin-top: 25%;
        /*padding: 20px 40px !important;*/
        width: 95% !important;
        /*min-height: auto !important; /* On laisse le panneau s'adapter à la faible hauteur */
    }

    /* 2. On réduit la taille des textes et titres */
    .bio-title {
        font-size: 1.8rem !important;
    }
    
    .bio-description p, .mail-link, .insta-tag {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    /* 3. On force la disposition côte à côte (comme sur desktop) */
    .bio-content {
        flex-direction: row !important; /* Empêche l'empilement */
        gap: 20px !important;
    }

    .bio-photo img {
        width: 150px !important; /* Photo plus petite pour tenir en hauteur */
    }

    /* 4. Pour la page Réalisations : on repasse en 2 colonnes mais petites */
    .grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* 5. On réduit la Navbar qui prend trop de place */
    .navbar {
        height: 50px !important;
        padding: 0 20px !important;
        display: flex !important;
        justify-content: space-between !important; /* Force logo à gauche, menu à droite */
        align-items: center !important;
        /*background: rgba(0, 0, 0, 0.7) !important; /* Fond sombre pour bien voir le texte */
    }
    .navbar .logo-link img {
        height: 35px !important; /* Logo miniature */
    }

    .nav-links {
        display: flex !important;
        position: static !important; /* Sécurité si un ancien style le mettait en absolute */
        margin-left: 0 !important; /* On enlève le auto qui peut le pousser trop loin */
        gap: 15px !important; /* Espace réduit entre les liens */
        padding: 0 !important;
    }

    .nav-links a {
        font-size: 10px !important;
    }
	.nav-links li {
        display: block !important;
    }

    .nav-links a {
        font-size: 11px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .logo-link img {
        height: 30px !important;
        width: auto !important;
    }
	/* --- FIX ACCUEIL --- */
    /* On suppose que votre accueil a une classe .home-wrapper ou similaire */
    .home-container {
        display: flex !important;
        flex-direction: row !important; /* Texte à gauche, perso à droite */
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 60px !important; /* Espace pour la navbar */
        overflow-y: auto !important; /* Permet de scroller si ça dépasse quand même */
    }

    .home-text {
        width: 50% !important;
        font-size: 0.8rem !important;
    }

    .home-character {
        width: 40% !important;
        max-height: 80vh !important; /* Le perso ne doit pas dépasser l'écran */
    }

    /* --- PANNEAUX (Bio, Infos, Real) --- */
    .bio-panel, .infos-panel, .glass-panel {
        margin-top: 60px !important; 
        z-index: 1;
    }
	/* On réinitialise le conteneur principal */
    .hero-main {
        padding-left: 20px !important; /* On réduit le gros décalage de 80px */
        justify-content: center;
    }

    /* Le bloc Nom & Prénom */
    .name-card {
        padding: 15px 25px !important; /* Plus compact */
        margin-top: -5% !important; /* Laisse la place à la navbar */
        margin-left: 5% !important;
    }

    .name-card h1 {
        font-size: 1.2rem !important; /* Plus petit */
        letter-spacing: 2px !important;
    }

    /* La tagline (phrase d'accroche) */
    .tagline {
        font-size: 0.8rem !important;
        margin-top: 15px !important;
        margin-left: 40% !important; /* On annule le 15% qui pousse le texte trop loin */
        max-width: 300px !important;
    }

    /* Le bouton PLAY */
    .circle-btn {
        width: 35px !important; /* On réduit le cercle */
        height: 35px !important;
        margin-top: 6% !important;
        margin-left: 35% !important;
    }

    .video-trigger .label {
        margin-left: 40% !important; /* On l'aligne proprement à côté du petit cercle */
        margin-top: -2% !important;
        font-size: 10px !important;
    }

    /* Le personnage mobile (logo-personnage.png) */
    .mobile-character {
        position: fixed !important;
        right: 0 !important;
        bottom: -15% !important;
        width: auto !important;
        z-index: 0;
    }

    .mobile-character img {
        height: 85vh !important; /* Le perso prend presque toute la hauteur sans dépasser */
        width: auto;
    }

    /* Ajustement de la modale vidéo pour le paysage */
    .modal-content {
        width: 70% !important; /* On réduit la largeur pour ne pas toucher les bords */
    }
}
}

