/* Importation de la police Courier Prime depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* Styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier Prime', Courier, monospace, sans-serif;
}

body {
    background-color: #080808;
    color: #ffffff;
    overflow-x: hidden;
}

/* ================= 0. VIDÉO D'INTRO OVERLAY ================= */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.2s ease-in-out;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#skip-intro-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    z-index: 10000;
}

#skip-intro-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Gestion des pages (Single Page Application) */
.page {
    display: none;
    width: 100vw;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* ================= 1. LE HUB ================= */
.hub-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    text-align: center;
}

.header-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.header-social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-social {
    display: inline-block;
    text-decoration: none;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

#hub {
    height: 100vh;
    background: url('images/fond-hub.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hub-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.6));
}

.hub-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

/* ================= 1. LE HUB & SCINTILLEMENT ================= */

.hub-logo-container {
    position: relative;
    display: inline-block;
}

/* Animation et style du logo */
.hub-logo {
    max-width: 380px;
    width: 80vw;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.25));
    animation: hubLogoGlow 2.5s infinite ease-in-out;
}

@keyframes hubLogoGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.25)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 10px 45px rgba(255, 255, 255, 0.65)) brightness(1.15);
    }
}

/* Style des étoiles en forme de DIAMANT étincelant */
.sparkle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: #ffffff;
    /* Transformation en losange / diamant */
    transform: rotate(45deg) scale(0);
    pointer-events: none;
    opacity: 0;
    /* Éclat lumineux puissant autour du diamant */
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px rgba(255, 255, 255, 0.8);
    animation: diamondSparkle var(--duration) infinite ease-in-out;
    animation-delay: var(--delay);
    z-index: 3;
}

@keyframes diamondSparkle {
    0%, 100% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        /* Effet de zoom et rotation dynamique du diamant */
        transform: rotate(225deg) scale(1.2);
        opacity: 1;
    }
}

.hub-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons globaux */
.btn {
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Version grand format pour la page d'accueil */
.btn-large {
    padding: 20px 42px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    border-radius: 40px;
}

.btn-blue {
    background: #ffffff;
    color: #080808;
    border: 1px solid #ffffff;
}

.btn-blue:hover {
    background: #e2e8f0;
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-black {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-black:hover {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* ================= 2. DÉCOUVRIR LE STUDIO ================= */
.studio-banner {
    height: 60vh;
    background: url('images/fond-studio.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(8, 8, 8, 1));
}

.studio-banner h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Sous-boutons intégrés dans le Header du Studio */
.studio-sub-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.studio-content {
    padding: 60px 20px 80px 20px;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    background: radial-gradient(circle at center top, #141414 0%, #080808 100%);
}

.studio-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.studio-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d4d4d4;
    margin-bottom: 25px;
}

/* ================= 3. NOS PROJETS ================= */
#projects {
    padding: 60px 20px;
    min-height: 100vh;
    background: radial-gradient(circle at top, #121212 0%, #080808 100%);
}

.projects-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.projects-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.projects-header p {
    color: #a3a3a3;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #111;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.12);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.project-card:hover img {
    transform: scale(1.08);
    opacity: 1;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(8,8,8,0.95), rgba(8,8,8,0.5) 75%, transparent);
}

.project-overlay h3 {
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
}

/* ================= 4. DIGITAL-SERVICE ================= */
#digital-service {
    padding: 60px 20px;
    min-height: 100vh;
    background: radial-gradient(circle at top, #141414 0%, #080808 100%);
}

.ds-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.ds-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ds-header p {
    color: #a3a3a3;
    font-size: 1.1rem;
}

.ds-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.ds-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 35px;
    align-items: stretch;
}

.ds-box {
    background: rgba(22, 22, 22, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 50px 35px;
    min-height: 450px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ds-box:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.45);
}

.ds-box-logo {
    align-items: center;
    text-align: center;
}

.ds-logo {
    max-width: 270px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.25));
}

.ds-box-services h3, .ds-box-contact h3 {
    font-size: 2.1rem;
    color: #ffffff;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
}

.ds-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ds-services-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d4d4d4;
}

.ds-services-list strong {
    color: #ffffff;
}

.ds-box-contact p {
    color: #d4d4d4;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.ds-contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.ds-contact-details p {
    margin-bottom: 0;
}

.ds-action {
    text-align: center;
    margin-top: 10px;
}

.ds-realisations-content {
    max-width: 1000px;
    text-align: center;
}

.ds-realisations-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.realisations-intro {
    color: #a3a3a3;
    margin-bottom: 25px;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.realisation-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.realisation-item:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
}

.realisation-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.realisation-item span {
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: #111;
}

/* Modale globale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 30px;
}

.modal-content {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 35px;
    max-width: 1550px;
    width: 95%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-body {
    display: flex;
    gap: 30px;
    align-items: stretch;
    height: 100%;
}

.modal-image-container {
    flex: 0 0 340px;
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.modal-middle-box {
    flex: 0 0 380px;
    height: 520px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.middle-banner-container {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.middle-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.middle-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.badge-release {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #a3a3a3);
    color: #000000;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 0;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    text-align: center;
}

.info-text {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.4;
}

.info-credits {
    font-size: 0.85rem;
    color: #a3a3a3;
}

.info-credits span {
    color: #ffffff;
    font-weight: bold;
}

.modal-text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 520px;
    overflow: hidden;
}

.modal-text-box h3 {
    margin-bottom: 15px;
    font-size: 2.2rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    flex-shrink: 0;
}

.modal-desc {
    overflow-y: auto;
    padding-right: 15px;
    height: 100%;
}

.modal-desc p {
    color: #cccccc;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 15px;
    text-align: justify;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: #a3a3a3;
}

/* Responsive */
@media (max-width: 1100px) {
    .modal-content { max-height: 95vh; overflow-y: auto; }
    .modal-body { flex-direction: column; height: auto; }
    .modal-image-container, .modal-middle-box, .modal-text-box {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0 auto;
    }
    .ds-grid {
        grid-template-columns: 1fr;
    }
    .ds-box {
        min-height: auto;
        padding: 35px 25px;
    }
}

/* ================= 5. L'ÉQUIPE ================= */
#team {
    padding: 60px 20px;
    min-height: 100vh;
    background: radial-gradient(circle at top center, #161616 0%, #080808 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 60px 0;
}

.team-card {
    background: rgba(22, 22, 22, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.team-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.team-role {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.4;
    max-width: 100%;
}
