:root {
    --bg-dark: #070312;
    --violet-main: #7c3aed;
    --violet-dark: #3b0764;
    --cyan-light: #38bdf8;
    --yellow-bright: #facc15;
    --white: #ffffff;
    --text-gray: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    background: rgba(7, 3, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--violet-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
}

.brand .highlight {
    color: var(--cyan-light);
    text-shadow: 0 0 10px var(--cyan-light);
}

.world-icon {
    display: inline-block;
    animation: rotateIcon 10s linear infinite;
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: var(--yellow-bright);
    text-shadow: 0 0 8px var(--yellow-bright);
}

/* Hero Section & Globe Terrestre */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 5%;
}

.globe-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 2rem;
}

#globe-3d {
    width: 100%;
    height: 100%;
}

/* Texte qui tourne autour du globe */
.globe-orbit-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    animation: spinOrbit 15s linear infinite;
    pointer-events: none;
}

.globe-orbit-text span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--yellow-bright);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px var(--yellow-bright);
}

@keyframes spinOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Titres & Badges */
.badge-pulse {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--violet-dark);
    border: 2px solid var(--cyan-light);
    color: var(--cyan-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 0 15px var(--cyan-light);
    animation: badgeGlow 2s infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 0 10px var(--cyan-light); }
    100% { box-shadow: 0 0 25px var(--yellow-bright), 0 0 15px var(--violet-main); }
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0 0.5rem;
    background: linear-gradient(90deg, var(--white), var(--cyan-light), var(--yellow-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yellow-text {
    color: var(--yellow-bright);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.origin-flag {
    color: var(--cyan-light);
    font-weight: 700;
    margin: 0.5rem 0 1.5rem;
}

.bio-text {
    max-width: 700px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Boutons Animés Dynamiques */
.btn-animated {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, var(--violet-main), var(--violet-dark));
    border: 2px solid var(--yellow-bright);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 0 20px var(--violet-main);
    animation: btnBounce 3s ease-in-out infinite;
}

.btn-animated:hover {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 0 35px var(--yellow-bright);
}

@keyframes btnBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Marquee Défilant */
.marquee-container {
    background: var(--violet-dark);
    border-y: 2px solid var(--yellow-bright);
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    margin: 2rem 0;
}

.marquee-content {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--yellow-bright);
    font-size: 1.1rem;
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Galerie & Cards Photos Animées */
.gallery-section, .services-section, .contact-section {
    padding: 4rem 6%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--cyan-light);
    margin-bottom: 3rem;
    text-shadow: 0 0 10px var(--cyan-light);
}

.photo-cards-container, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.photo-card {
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid var(--cyan-light);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.4s ease;
}

/* Animations de flottaison distinctes */
.float-1 { animation: floatAnim 4s ease-in-out infinite; }
.float-2 { animation: floatAnim 4s ease-in-out infinite 1.3s; }
.float-3 { animation: floatAnim 4s ease-in-out infinite 2.6s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

.photo-placeholder {
    position: relative;
    height: 300px;
    background: var(--bg-dark);
    border: 2px dashed var(--yellow-bright);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cyan-light);
    box-shadow: 0 0 15px var(--cyan-light);
    animation: scan 2.5s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.photo-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.photo-tag { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--yellow-bright); }

/* Services Cards */
.service-card {
    background: rgba(59, 7, 100, 0.4);
    border: 2px solid var(--violet-main);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--yellow-bright);
    box-shadow: 0 0 30px var(--violet-main);
}

.service-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--cyan-light);
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.service-badge.yellow { background: var(--yellow-bright); }

/* Contact Buttons */
.contact-buttons-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-whatsapp-active, .btn-facebook-active {
    padding: 1.2rem 2.2rem;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-decoration: none;
    color: var(--white);
    transition: 0.3s;
    animation: btnPulseGlow 2s infinite alternate;
}

.btn-whatsapp-active {
    background: #059669;
    border: 2px solid #34d399;
}

.btn-facebook-active {
    background: #1d4ed8;
    border: 2px solid var(--cyan-light);
}

@keyframes btnPulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255,255,255,0.2); }
    100% { transform: scale(1.05); box-shadow: 0 0 25px var(--yellow-bright); }
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--violet-main);
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* --- Mise en ordre claire des Rôles & Compétences --- */

.alias-list {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.alias-tag {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid var(--yellow-bright);
    color: var(--yellow-bright);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.roles-container {
    background: rgba(59, 7, 100, 0.3);
    border: 1px solid var(--violet-main);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 680px;
}

.roles-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--cyan-light);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.role-item {
    background: var(--bg-dark);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s ease;
}

.role-item:hover {
    border-color: var(--yellow-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

/* Langues sous forme de badges aérés */
.languages-box {
    margin: 1.5rem 0 2rem;
}

.lang-title {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.lang-tags {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.lang-badge {
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid var(--violet-main);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-tags-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.lang-tags-mini span {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--cyan-light);
    color: var(--cyan-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Bouton Email Animé */
.btn-email-active {
    padding: 1.2rem 2.2rem;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-decoration: none;
    color: var(--bg-dark);
    background: var(--yellow-bright);
    border: 2px solid var(--white);
    transition: 0.3s;
    animation: btnPulseGlow 2s infinite alternate;
}

.btn-email-active:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--yellow-bright);
}

/* Style pour les images importées */
.user-photo {
    width: 100%;
    height: 300px;
    object-fit: cover; /* Ajuste et cadre automatiquement l'image sans la déformer */
    border-radius: 12px;
    border: 2px solid var(--yellow-bright);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--cyan-light);
}

/* Style corrigé pour afficher l'image en entier sans aucune coupe */
.user-photo {
    width: 100%;
    height: 320px;
    object-fit: contain; /* Affiche l'image en entier dans son format d'origine sans couper */
    background-color: var(--bg-dark); /* Remplit proprement les espaces vides avec la couleur de fond */
    border-radius: 12px;
    border: 2px solid var(--yellow-bright);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--cyan-light);
}

/* Container de la photo ajusté au format portrait parfait */
.photo-placeholder {
    position: relative;
    height: 400px; /* Hauteur idéale pour des portraits */
    background: var(--bg-dark);
    border: 2px dashed var(--yellow-bright);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0; /* L'image épouse parfaitement les bords du cadre */
}

/* Image parfaitement cadrée : remplit tout l'espace sans couper la tête ni laisser de vides */
.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre de manière fluide */
    object-position: center 20%; /* Priorise le haut de l'image pour garder la tête bien en vue */
    border-radius: 10px;
    border: 2px solid var(--yellow-bright);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.user-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--cyan-light);
}