/* -------------------------------------------------------------------------- */
/*  SNOUSSI STUDIO - MASTER STYLESHEET (FINAL 2025)                           */
/* -------------------------------------------------------------------------- */

/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    /* --- Couleurs --- */
    --bg-deep: #05020a;
    --text-white: #ffffff;
    --accent-mauve: #7c3aed;
    --accent-light: #a78bfa;
    --border-dim: rgba(255, 255, 255, 0.1);

    /* --- Typographies --- */
    --font-titles: 'termina', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;

    /* --- Système --- */
    color-scheme: dark;
}

/* PROTECTION IMAGES */
img {
    -webkit-user-select: none;  /* Chrome/Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
    user-select: none;          /* Standard */
    -webkit-user-drag: none;    /* Désactive le drag sur Webkit */
    pointer-events: auto;       /* On garde les clics possibles (pour les liens) */
}

/* Optionnel : Empêcher le clic droit sur les images de fond aussi */
.hero-bg, .hero-bg-image, .strip-bg {
    -webkit-user-select: none;
    user-select: none;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-tech);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-mauve);
    color: #fff;
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

/* Overlay Grain */
.noise-overlay {
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 200;
}

/* ==========================================================================
   3. ANIMATIONS GLOBALES (@Keyframes)
   ========================================================================== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animation Flèche du bouton Hero */
@keyframes dropArrow {
    0% { transform: translateY(-2px); opacity: 0.8; }
    50% { transform: translateY(3px); opacity: 1; }
    100% { transform: translateY(-2px); opacity: 0.8; }
}

/* ==========================================================================
   4. UI ELEMENTS (Curseur, Boutons, ScrollTop)
   ========================================================================== */

/* --- Custom Cursor (Desktop Only) --- */
@media (hover: hover) and (pointer: fine) {
    body, a, button, input, textarea, .portal-strip { cursor: none !important; }

    .cursor-dot {
        width: 4px; height: 4px;
        background: white;
        position: fixed; top: 0; left: 0;
        border-radius: 50%;
        pointer-events: none; z-index: 10000;
    }

    .cursor-follower {
        width: 30px; height: 30px;
        border: 1px solid rgba(124, 58, 237, 0.5);
        position: fixed; top: -13px; left: -13px;
        border-radius: 2px;
        pointer-events: none; z-index: 9999;
        transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
                    width 0.3s, height 0.3s, border-radius 0.3s, background 0.3s;
    }

    .cursor-active .cursor-follower {
        width: 80px; height: 80px;
        top: -38px; left: -38px;
        background: rgba(124, 58, 237, 0.15);
        border: 1px solid var(--accent-mauve);
        border-radius: 50%;
        backdrop-filter: blur(2px);
    }
}

/* --- Bouton "Scroll Top" (Flèche remontée) --- */
.scroll-top-btn {
    position: fixed; bottom: 40px; right: 40px;
    width: 50px; height: 50px;
    background: var(--accent-mauve);
    color: white;
    border: none; border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.scroll-top-btn:hover {
    background: white; color: black;
    transform: translateY(-5px);
}

.scroll-top-btn.visible {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

/* --- Boutons Génériques --- */
.btn-architecture {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 20px 60px;
    font-family: var(--font-titles);
    font-weight: 700;
    transition: 0.4s;
    text-transform: uppercase;
}

.btn-architecture:hover {
    background: white; color: black;
}

.btn-select {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: var(--font-titles);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-select:hover {
    background: white; color: black;
}

/* ==========================================================================
   5. NAVIGATION & HEADER
   ========================================================================== */
.nav-back {
    position: fixed; top: 40px; left: 5vw;
    z-index: 1000;
    display: flex; align-items: center; gap: 10px;
    mix-blend-mode: difference;
    text-decoration: none;
}

.nav-dot {
    width: 6px; height: 6px;
    background: var(--accent-mauve);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-mauve);
}

.nav-text {
    color: white;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.header-logo {
    position: absolute; top: 40px;
    width: 100%;
    display: flex; justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.brand-badge {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    border: 1px solid var(--border-dim);
    border-radius: 4px;
}

.brand-text-h1 {
    font-family: var(--font-titles);
    font-weight: 700; font-size: 0.7rem;
    letter-spacing: 2px; text-transform: uppercase;
    color: white;
    display: flex; align-items: center; gap: 15px;
}

.brand-dot {
    width: 4px; height: 4px;
    background-color: var(--accent-mauve);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-mauve);
}

/* ==========================================================================
   6. MODULE : HERO SECTIONS (Master Template)
   ========================================================================== */

/* --- Base Immersive Hero --- */
.immersive-hero {
    position: relative;
    width: 100%; height: 100vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 1;
}

.hero-bg-image {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.6) contrast(1.1);
    z-index: -1;
    will-change: transform;
}

/* --- Master Template Hero (Gros Titre) --- */
.hero-content-block {
    text-align: center;
    position: relative; z-index: 10;
    margin-bottom: 40px;
    padding: 0 20px;
}

.hero-master-title {
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0 0 30px 0;
    opacity: 0; transform: translateY(30px); /* JS Anim */
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
    display: block;
}

.hero-master-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px; margin: 0 auto;
    line-height: 1.6;
    opacity: 0; transform: translateY(20px); /* JS Anim */
}

/* --- Nouveau Bouton Scroll (Cercle + Flèche) --- */
.scroll-down-container {
    margin-top: 50px;
    display: flex; flex-direction: column; align-items: center;
    gap: 15px; cursor: pointer;
    opacity: 0; /* Animé par JS */
    transition: opacity 0.5s ease;
}

.scroll-text {
    font-family: var(--font-tech); font-size: 0.8rem;
    letter-spacing: 3px; text-transform: uppercase;
    color: white; transition: all 0.3s ease;
}
.scroll-down-container:hover .scroll-text {
    letter-spacing: 6px; color: var(--accent-mauve);
}

.scroll-circle {
    width: 60px; height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
}
.scroll-down-container:hover .scroll-circle {
    background: white; color: black;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.scroll-circle svg {
    animation: dropArrow 2s infinite;
}

/* --- Indicateur Scroll pour la Page Accueil (Ancien) --- */
.scroll-cta {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    color: rgba(255, 255, 255, 0.5);
    background: none; border: none; z-index: 50;
    font-family: var(--font-titles); text-transform: uppercase;
}
.scroll-cta:hover { color: var(--accent-mauve); }
.arrow-container { margin-top: 10px; animation: bounce 2s infinite; }
.arrow-icon {
    width: 15px; height: 15px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ==========================================================================
   7. MODULE : HOME PORTALS
   ========================================================================== */
.portal-container {
    display: flex; width: 100%; height: 100vh;
    position: relative;
}

.portal-strip {
    position: relative; flex: 1;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; text-decoration: none;
}
.portal-strip:last-child { border-right: none; }
.portal-strip:hover { flex: 3; }

.strip-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.4;
    filter: grayscale(100%) blur(4px);
    transform: scale(1.1);
    transition: all 0.8s ease;
    z-index: 1;
}
.portal-strip:hover .strip-bg {
    opacity: 0.95; filter: grayscale(0%) blur(0px); transform: scale(1);
}

.strip-content {
    position: relative; z-index: 10;
    text-align: center;
    transform: rotate(-90deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.portal-strip:hover .strip-content { transform: rotate(0deg); }

.strip-title {
    font-family: var(--font-titles);
    font-weight: 900; font-size: 4.5vw;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    text-transform: uppercase; letter-spacing: -2px;
    transition: all 0.4s ease;
}
.portal-strip:hover .strip-title {
    color: white; text-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
    -webkit-text-stroke: 0px transparent;
}

.strip-subtitle {
    font-family: var(--font-tech); font-size: 0.9rem;
    letter-spacing: 4px; margin-top: 25px;
    opacity: 0; transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    color: var(--accent-light);
    text-transform: uppercase; font-weight: 600;
}
.portal-strip:hover .strip-subtitle { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   8. MODULE : GALERIE & GRID
   ========================================================================== */
.gallery-wrapper {
    position: relative; z-index: 5;
    background-color: var(--bg-deep);
    width: 100%; padding-top: 100px;
    box-shadow: 0 -50px 100px var(--bg-deep);
}

.gallery-container {
    padding: 0 5vw 100px 5vw;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    width: 100%;
}

.gallery-item, .photo-item {
    position: relative; overflow: hidden;
    display: block; background: #111;
    text-decoration: none;
    opacity: 0; /* JS Anim */
}

/* Tailles de grille */
.g-large, .photo-item:not(.full-width) { grid-column: span 8; height: 600px; }
.g-tall  { grid-column: span 4; height: 600px; }
.g-wide  { grid-column: span 6; height: 450px; }
.g-full, .photo-item.full-width { grid-column: span 12; height: 550px; }

/* Images */
.gallery-item img, .photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(100%);
}
.gallery-item:hover img, .photo-item:hover img {
    transform: scale(1.05); filter: grayscale(0%);
}

/* --- Hover Overlay Effects --- */

/* 1. Style Classique (Overlay Dégradé - Ex: Pages Détails) */
.img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0; transition: opacity 0.4s;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px;
}
.gallery-item:hover .img-overlay { opacity: 1; }

.tech-id {
    font-family: var(--font-titles); font-weight: 700;
    font-size: 1.5rem; text-transform: uppercase;
    color: white; margin-bottom: 5px;
}
.tech-data {
    font-family: var(--font-tech); font-size: 0.8rem;
    color: var(--accent-light); letter-spacing: 1px;
}

/* 2. Style Master Template (Centre + Corners - Page Photos) */
.hover-content {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0; transition: opacity 0.4s ease;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 30px;
}
.gallery-item:hover .hover-content { opacity: 1; }

.hover-title {
    position: absolute; top: 30px; left: 30px;
    font-family: var(--font-titles); font-weight: 900;
    font-size: 2rem; color: transparent;
    -webkit-text-stroke: 1px #fff;
    text-transform: uppercase; margin: 0; letter-spacing: 2px;
}

.hover-btn {
    background: white; color: black;
    padding: 20px 40px;
    font-family: var(--font-titles); font-weight: 700;
    font-size: 1rem; text-transform: uppercase; letter-spacing: 2px;
    transform: translateY(20px); transition: transform 0.4s ease;
}
.gallery-item:hover .hover-btn { transform: translateY(0); }

.hover-tags {
    position: absolute; bottom: 30px; left: 30px;
    font-family: var(--font-tech);
    color: var(--accent-mauve);
    font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
}

/* ==========================================================================
   9. MODULE : PRICING & MARQUEE
   ========================================================================== */
.pricing-section {
    padding: 100px 5vw;
    border-top: 1px solid var(--border-dim);
}

.section-label {
    font-family: var(--font-tech); color: var(--accent-mauve);
    margin-bottom: 40px; display: block; letter-spacing: 2px;
}

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

.price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    padding: 50px 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background 0.3s, transform 0.3s;
}
.pricing-item, .price-card { opacity: 0; } /* JS Anim */

.price-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-title {
    font-family: var(--font-titles); font-size: 1.2rem;
    text-transform: uppercase; margin-bottom: 10px;
}

.card-price {
    font-family: var(--font-titles); font-weight: 900;
    font-size: 2.5rem; color: white; margin-bottom: 30px;
}
.card-price span {
    font-size: 0.9rem; font-weight: 400; color: #888; margin-left: 5px;
}

.features-list { list-style: none; padding: 0; margin-bottom: 40px; }
.features-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0; font-family: var(--font-body);
    font-size: 0.9rem; color: #ccc;
    display: flex; align-items: center;
}
.features-list li::before {
    content: '+'; color: var(--accent-mauve);
    margin-right: 10px; font-weight: bold;
}

.custom-service-block {
    margin-top: 80px; padding: 60px;
    border: 1px dashed var(--border-dim);
    text-align: center; background: rgba(124, 58, 237, 0.03);
    border-radius: 4px;
}

/* Marquee & Ticker */
.marquee-section, .brand-ticker-section {
    width: 100%; background: var(--bg-deep);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    padding: 50px 0; overflow: hidden; white-space: nowrap;
    display: flex; align-items: center;
}
.brand-ticker-section { background: #000; padding: 60px 0; }

.marquee-track, .ticker-track {
    display: flex; width: max-content;
}
.marquee-track { animation: marquee 25s linear infinite; }
.ticker-track { animation: scrollText 40s linear infinite; }

.marquee-item {
    font-family: var(--font-titles); font-weight: 900;
    font-size: 6vw; margin: 0 40px; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-transform: uppercase; letter-spacing: -2px;
}
.marquee-item.highlight { color: var(--accent-mauve); -webkit-text-stroke: 0; }

.brand-logo-img {
    height: 80px; width: auto; margin: 0 40px;
    filter: grayscale(100%) brightness(0.6); opacity: 0.5;
    transition: all 0.4s ease;
}
.brand-logo-img:hover { opacity: 1; filter: grayscale(0%); }

/* ==========================================================================
   10. MODULE : CONTACT FORM
   ========================================================================== */
.section-modern-contact {
    min-height: 100vh; background-color: #080808;
    padding: 100px 5vw;
    display: flex; flex-direction: column; justify-content: center;
    border-top: 1px solid var(--border-dim);
}

.contact-headline {
    font-family: var(--font-titles); font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase; text-align: center;
}

.architectural-form {
    width: 100%; border-top: 1px solid var(--border-dim);
}

.form-row {
    display: grid; grid-template-columns: 1fr 3fr;
    border-bottom: 1px solid var(--border-dim);
    transition: background 0.3s;
}
.form-row:hover { background: rgba(255, 255, 255, 0.02); }

.row-label {
    padding: 30px 0; font-size: 0.8rem;
    text-transform: uppercase; color: #555;
    font-family: var(--font-tech);
}

.row-input {
    width: 100%; background: transparent; border: none;
    padding: 20px 0; font-family: var(--font-body);
    font-weight: 300; font-size: 1.2rem;
    color: white; outline: none;
}

/* Honeypot hidden field */
.website-field {
    position: absolute; top: 0; left: 0;
    width: 0; height: 0; opacity: 0;
    z-index: -1; pointer-events: none; visibility: hidden;
}

/* Alignement Droite du Bouton */
.submit-container {
    display: flex; justify-content: flex-end;
    align-items: center; padding-top: 60px;
    position: relative; width: 100%;
}

.status-msg {
    position: absolute; left: 0; top: 70px;
    font-family: var(--font-tech);
}
.status-msg .success { color: #4ade80; }
.status-msg .error { color: #ef4444; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer-container {
    padding: 40px 5vw;
    border-top: 1px solid var(--border-dim);
    display: flex; flex-direction: column;
    align-items: center; gap: 15px;
    font-family: var(--font-tech); text-align: center;
    background: var(--bg-deep);
}

.footer-copy {
    font-size: 1rem; color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px; text-transform: uppercase;
}

.footer-credits {
    font-size: 0.9rem; color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px; text-transform: uppercase;
}

.credits-link {
    color: var(--accent-mauve); text-decoration: none;
    font-weight: 600; transition: all 0.3s;
}
.credits-link:hover {
    color: white; text-shadow: 0 0 15px var(--accent-mauve);
}

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
    .g-large, .g-tall, .g-wide, .g-full { grid-column: span 12; height: 350px; }
    .cta-scroll-hero { margin-top: 5vh; padding: 15px 30px; }
}

@media (max-width: 768px) {
    body { cursor: auto !important; }
    .cursor-dot, .cursor-follower { display: none; }

    /* Portal Home */
    .portal-container { flex-direction: column; }
    .portal-strip:hover { flex: 1.5; }
    .strip-content { transform: rotate(0deg); }
    .strip-title { font-size: 10vw; }

    /* Hero */
    .hero-master-subtitle { display: none; }
    .outline-text { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9); }
    
    /* Scroll Button Mobile Adjust */
    .scroll-down-container { margin-top: 30px; }
    .scroll-circle { width: 50px; height: 50px; }

    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .row-label { padding-top: 20px; padding-bottom: 0; }
    .row-input { padding: 10px 0 30px 0; }
    .submit-container { justify-content: center; }

    /* Marquee */
    .marquee-item { font-size: 12vw; }
}