/* Vitrine Q1C1 - effets non exprimables en Tailwind */

/* Empêcher le débordement horizontal causé par les sections 100vw */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Masquer la scrollbar verticale tout en gardant le scroll fonctionnel */
html {
    scrollbar-width: none;           /* Firefox */
}
html::-webkit-scrollbar {
    display: none;                   /* Chrome, Edge, Safari */
}

/* Hero section pleine largeur avec fond sombre */
.hero-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -1rem;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    color: #fff;
}
@media (min-width: 768px) {
    .hero-section { margin-top: -2rem; }
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(107, 114, 128, 0.15) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(107, 114, 128, 0.15) 0%, transparent 70%);
    animation: heroFloat 25s ease-in-out infinite reverse;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

/* Logo hero avec animation slide down */
.hero-logo {
    filter: brightness(0) invert(1) drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: slideDown 1s ease-out;
    object-fit: contain;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animations d'apparition hero */
.hero-title {
    position: relative;
    z-index: 1;
    animation: heroFadeInUp 1s ease-out 0.2s both;
}
.hero-subtitle {
    position: relative;
    z-index: 1;
    animation: heroFadeInUp 1s ease-out 0.4s both;
}
@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA bandeau pleine largeur */
.cta-banner {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: -1rem;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
}
@media (min-width: 768px) {
    .cta-banner { margin-bottom: -2rem; }
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 114, 128, 0.1) 0%, transparent 70%);
    animation: ctaGlow 30s linear infinite;
}
@keyframes ctaGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Texte gradient anime */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* fade-in-up : desormais gere par vitrine-extra.css + main-extra.js (IntersectionObserver) */

/* Elements decoratifs flottants */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

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

/* ============================================================
   Section Datacenters
   ============================================================ */

/* Conteneur pleine largeur avec fond anime */
.dc-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #111827 0%, #1f2937 40%, #374151 100%);
}

/* Orbes decoratifs flottants */
.dc-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 114, 128, 0.12) 0%, transparent 70%);
    animation: dcOrb 18s ease-in-out infinite;
}
.dc-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 114, 128, 0.12) 0%, transparent 70%);
    animation: dcOrb 22s ease-in-out infinite reverse;
}
@keyframes dcOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.15); }
}

/* Carte datacenter avec bordure gradient */
.dc-card {
    position: relative;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.05));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.dc-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.15);
}
.dc-card-inner {
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9));
    backdrop-filter: blur(20px);
}

/* Pastille status : point vert pulsant */
.dc-status-dot {
    animation: dcPulse 2s ease-in-out infinite;
}
@keyframes dcPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* Badge inter-sites avec lueur subtile */
.dc-pulse-link {
    animation: dcLinkGlow 3s ease-in-out infinite;
}
@keyframes dcLinkGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
}
