/* ============================================
   SONOPULSE - ACCUEIL CSS
   Styles professionnels pour entreprise événementielle
   ============================================ */

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

:root {
    --primary-black: #1a1a1a;
    --primary-red: #be1622;
    --secondary-red: #be1622;
    --primary-white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #2a2a2a;
    --accent-yellow: #FFD700;
    /* animation system */
    --ani-duration: 700ms;
    --ani-ease: cubic-bezier(0.22, 0.12, 0.08, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: var(--primary-white);
    overflow-x: hidden;
    margin-top: 88px;
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDownNavbar 0.8s ease-out;
}

@keyframes slideDownNavbar {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    margin-left: 12px;
    margin-right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo img {
    height: 56px;
    width: auto;
    margin-right: 0;
    transition: transform 180ms ease;
}

.logo:hover {
    transform: scale(1.03);
}

/* Hamburger menu button (hidden by default, shown on mobile) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 8px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: all 0.35s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #fff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #fff;
}

/* ensure cross remains visible on very small screens */
@media (max-width: 478px) {
    .hamburger span { background: var(--primary-red); }
    .hamburger.active span:nth-child(1), .hamburger.active span:nth-child(3) { background: #fff; }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

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

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   INTRO OVERLAY (logo + animated background)
   ============================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: auto;
    background: transparent;
}
.intro-overlay .intro-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(190,22,34,0.95), rgba(255,215,0,0.95) 55%, rgba(26,26,26,0.95));
    mix-blend-mode: screen;
    filter: saturate(1.05) blur(2px);
    animation: gradientShift 6s linear infinite;
    transform-origin: center;
}

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

.intro-overlay::before, .intro-overlay::after {
    content: '';
    position: absolute;
    width: 160vmax; height: 160vmax;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}
.intro-overlay::before { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 20%); transform: translate(-20%, -10%); }
.intro-overlay::after { background: radial-gradient(circle at 70% 70%, rgba(0,0,0,0.06), transparent 20%); transform: translate(10%, 20%); }

.intro-content {
    position: relative;
    z-index: 3100;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.intro-logo {
    width: 220px;
    max-width: 45vw;
    transform-origin: center;
    animation: logoPop 1400ms var(--ani-ease) forwards;
    opacity: 0;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.5));
}

.intro-tag {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    transform: translateY(10px);
    opacity: 0;
    animation: tagIn 1000ms calc(var(--ani-duration) - 200ms) var(--ani-ease) forwards;
}

@keyframes logoPop {
    0% { transform: scale(0.7) rotate(-6deg); opacity: 0; filter: blur(6px) drop-shadow(0 8px 20px rgba(0,0,0,0.25)); }
    60% { transform: scale(1.05) rotate(1deg); opacity: 1; filter: blur(0px) drop-shadow(0 18px 40px rgba(0,0,0,0.45)); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes tagIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.intro-overlay.hide {
    transition: opacity 420ms ease, transform 420ms ease;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
}

/* small accessibility: hide overlay content when removed */
.intro-overlay[aria-hidden="true"] { display: none; }


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem;
    margin-top: 60px;
    overflow: hidden; /* empêche le fond de dépasser */
}

/* Arrière-plan fixe (placeholder jaune) pour la section hero. Remplacez par une image en modifiant background-image ci-dessous */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/Events/Photos/Fete_Halloween_2025 8.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

/* légère couche sombre pour lisibilité du texte */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.45), rgba(26,26,26,0.55));
    z-index: 1;
}

.hero {
    position: relative;
    overflow: hidden; /* empêche la hero-image de dépasser et de se superposer aux sections suivantes */
}

.hero-content {
    padding: 2rem;
    animation: fadeInLeft var(--ani-duration) var(--ani-ease) both;
    animation-play-state: paused;
    will-change: transform, opacity;
    position: relative;
    z-index: 2; /* au-dessus du background */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--primary-white);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, #be1622 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #ddd;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: white;
    border: none;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(214, 45, 56, 0.3);
    font-family: 'Oswald', sans-serif;
    

}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(214, 45, 56, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Hero image is handled via .hero::before pseudo-element (background fixed). */

/* ============================================
   PLACEHOLDER YELLOW BOXES (À REMPLACER)
   ============================================ */


/* transition pour la disparition de l'indicateur de scroll */
.scroll-indicator {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
    z-index: 100;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator span {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-red);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 2px;
    animation: wheelScroll 1.5s infinite;
}

@keyframes wheelScroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 6rem 2rem;
    background: var(--light-gray);
    position: relative;
    z-index: 3; /* pour passer au-dessus du background hero pendant le scroll */
    animation: slideInUp var(--ani-duration) var(--ani-ease) both;
    animation-play-state: paused;
    will-change: transform, opacity;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    animation: slideInImage var(--ani-duration) var(--ani-ease) both;
    animation-play-state: paused;
    will-change: transform, opacity;
}

@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-image-placeholder {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    animation: zoomIn var(--ani-duration) var(--ani-ease) both;
    animation-play-state: paused;
    will-change: transform, opacity;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

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

.about-content {
    padding: 2rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: left;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-red));
    border-radius: 2px;
    margin-bottom: 2rem;
}

.about-text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-align: justify;
}

/* Features Section */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-red);
    animation: slideUp var(--ani-duration) var(--ani-ease) both;
    animation-play-state: paused;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(214, 45, 56, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-item p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   FADE IN ANIMATION ON SCROLL
   ============================================ */

.fade-in-section {
    opacity: 0;
    animation: fadeInUp var(--ani-duration) var(--ani-ease) forwards;
    animation-play-state: paused;
    will-change: transform, opacity;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInScale var(--ani-duration) var(--ani-ease) both;
    animation-play-state: paused;
    will-change: transform, opacity;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button-secondary {
    background: white;
    color: var(--primary-red);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.cta-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* ============================================
   FOOTER (Ajusté)
   ============================================ */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 1.25rem 2rem;
    border-top: 2px solid var(--primary-red);
    animation: slideInUp 0.6s ease-out;
    
    /* AJOUT : Sécurité supplémentaire si le flex du body échoue ou change */
    margin-top: auto; 
    width: 100%; /* Assure que le footer prend toute la largeur */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-left, .footer-right {
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-left { text-align: left; }
.footer-right { text-align: right; }


.about-image {
    max-width: 500px;
    width: 100%;
    display: block;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 0.25rem; }
    .footer-right { text-align: center; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 8rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        height: 300px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Mobile tuning: navbar responsive + menu burger */
@media (max-width: 768px) {
    body { margin-top: 78px; }
    
    .navbar { padding: 0.75rem 0; }
    .nav-container { margin-left: 10px; margin-right: 10px; }
    .logo img { height: 48px; }
    
    .hamburger { display: flex; }
    
    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-red);
        flex-direction: column;
        padding: 2rem 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 999;
    }

    .nav-right.active { transform: translateX(0); }
    .nav-right.active { opacity: 1; }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-link {
        color: white;
        font-size: 18px;
        display: block;
        text-align: center;
        padding: 10px 0;
    }

    .nav-link::after { display: none; }
    .nav-link:hover { color: #fff; }
}

@media (max-width: 600px) {
    body { margin-top: 68px; }
    .navbar { padding: 0.6rem 0; }
    .logo img { height: 40px; }
    .nav-right { top: 60px; }
}

/* logo hover: white bg + scale (desktop and mobile) */
.logo a { display:inline-flex; padding:6px; border-radius:8px; transition: background 180ms ease; }
.logo a:hover { background: white; }
.logo a:hover img { transform: scale(1.08); }

/* restore fixed insta hover */
.fixed-insta:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 40px rgba(0,0,0,0.22); }

/* Ensure hamburger cross remains visible on very small screens and when menu open */
.hamburger.active { background: var(--primary-red); border-radius: 8px; padding: 8px; }
.hamburger.active span { background: #fff; }

@media (max-width: 478px) {
    .hamburger span { width: 28px; height: 4px; }
    .hamburger.active { background: var(--primary-red); }
    .hamburger.active span { background: #fff; }
}

/* ============================================
   Fixed Instagram Button (global)
   ============================================ */
.navbar .social-icon { display: none; }

.fixed-insta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    z-index: 2200;
    cursor: pointer;
    transition: transform 160ms ease;
    animation: floatBounce 3.2s ease-in-out infinite, occasionalShake 10s ease-in-out infinite;
}

.fixed-insta img { width: 40px; height: 40px; object-fit: contain; display: block; }

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

/* small intermittent shake to attract attention */
@keyframes occasionalShake {
    0% { transform: translateY(0) rotate(0); }
    2% { transform: translateY(-2px) rotate(6deg); }
    4% { transform: translateY(0) rotate(-6deg); }
    6% { transform: translateY(-1px) rotate(3deg); }
    8% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(0) rotate(0); }
}

/* Footer links: force white */
.footer a { color: var(--primary-white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
