:root {
  --bg: #050505;
  --panel: #0f0f0f;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #c4a47c; /* Or sablé / Champagne */
  --accent-hover: #e2cfb4;
  --border: rgba(255, 255, 255, 0.1);
  --serif: 'Playfair Display', serif;
  --sans: 'Inter', sans-serif;
}

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

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
}

.logo span {
    color: var(--accent);
}

.logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 300;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--accent);
}

/* Icône de connexion */
.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white; 
    transition: all 0.3s ease;
    margin-left: 10px; 
    cursor: pointer;
}

.login-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
    opacity: 0.8;
}

.login-icon:active {
    transform: scale(0.95);
}

/* --- HERO SECTION --- */
.hero {
  padding: 180px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  background: rgba(196, 164, 124, 0.1);
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-media {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
}

.hero-media::before {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
}

.hero-pill-list {
    margin-top: 30px;
    list-style: none;
}

/* --- PAGE À PROPOS --- */
.about-wrapper { 
    padding: 180px 0 100px; 
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-content { 
    animation: fadeIn 1s ease-out; 
}

.about-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 40px;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 25px;
    max-width: 600px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.feature-item strong {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-visual {
    background-image: url('camera.png'); 
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 600px;
    min-height: 400px;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--accent);
    z-index: -1;
    opacity: 0.3;
}

.visual-label {
    font-family: var(--serif);
    color: var(--accent);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
}

/* --- BOUTONS & COMPOSANTS --- */
.btn-primary {
  display: inline-block;
  padding: 18px 35px;
  background: var(--accent);
  color: #000;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 164, 124, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  padding: 18px 35px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text);
}

.stat-number {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
}

/* --- FOOTER --- */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-inner, .about-grid { 
        grid-template-columns: 1fr; 
        gap: 60px; 
    }
    .about-visual { 
        height: 400px; 
        order: -1; 
    }
    .hero, .about-wrapper { 
        padding-top: 140px; 
    }
}


.login-icon {
    display: inline-flex; /* Donne une structure physique au lien */
    align-items: center;
    justify-content: center;
    padding: 10px; /* Agrandit la zone de clic autour du logo */
    color: var(--text); /* Utilise le blanc défini dans ton root */
    transition: all 0.3s ease;
    cursor: pointer; /* Force l'apparition de la main au survol */
    text-decoration: none;
}

.login-icon svg {
    display: block; /* Évite les décalages d'alignement */
}

.login-icon:hover {
    color: var(--accent) !important; /* Force le passage au doré */
    transform: translateY(-2px);
}


.share-floating-zone {
        position: fixed;
        top: 100px; /* Ajusté pour être sous votre header */
        right: 40px;
        z-index: 1000;
    }

    .btn-share-profile {
        background: var(--panel);
        border: 1px solid var(--accent);
        color: var(--accent);
        padding: 12px 20px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        position: relative;
    }

    .btn-share-profile:hover {
        background: var(--accent);
        color: #000;
        box-shadow: 0 0 15px rgba(196, 164, 124, 0.3);
    }

    /* L'infobulle (Tooltip) au survol */
    .btn-share-profile::after {
        content: "Cliquez pour copier : " attr(data-url);
        position: absolute;
        top: 120%;
        right: 0;
        background: #1a1a1a;
        color: #fff;
        padding: 8px 12px;
        font-size: 0.7rem;
        white-space: nowrap;
        border: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        pointer-events: none;
        text-transform: none;
    }

    .btn-share-profile:hover::after {
        opacity: 1;
        visibility: visible;
    }

    @media (max-width: 768px) {
        .share-floating-zone { top: auto; bottom: 20px; right: 20px; }
    }
    
    /* Empêche les liens d'icônes de devenir bleus */
.main-nav a, .logo, .nav-link {
    text-decoration: none;
    color: inherit; /* Utilise la couleur du parent */
}

/* Force la couleur de l'icône de profil */
.profile-icon {
    color: white; /* Ou #C4A47C pour l'or */
    stroke: currentColor;
    fill: none;
}

/* Si tu utilises un SVG directement */
svg.user-icon {
    color: white !important;
    filter: none !important; /* Retire les filtres de couleur système */
}

/* --- RESPONSIVE BURGER --- */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.menu-burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

@media (max-width: 992px) {
    .menu-burger { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Caché à droite */
        width: 80%;
        height: 100vh;
        background: #000;
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1050;
    }

    .main-nav.active { right: 0; } /* Affiché */

    .nav-link { font-size: 1.2rem; margin: 15px 0; }

    /* Animation Burger en "X" */
    .menu-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-burger.active span:nth-child(2) { opacity: 0; }
    .menu-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* Fix pour Casting+ (Mobile) */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr !important; /* Une seule colonne */
        height: auto !important;
    }
    .editor-side { height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .preview-side { padding: 20px; }
}