/* Contact page standalone CSS
   - Contient les variables et styles nécessaires (navbar, animations)
   - Conçu pour être indépendant de Acceuil.css
*/

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ============================================
   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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px; /* gutter to avoid content touching edges */
}

.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;
}

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

/* Hamburger menu button */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.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);
}

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

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

.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%;
}

/* keep rest of contact-specific rules below */

body.contact-page {
    position: relative;
    min-height: 100vh;
    background-color: var(--light-gray);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Global background image (cover) */
body.contact-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/Events/Photos/Fete_Halloween_2025 14.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.40; /* increased opacity per request (+15%) */
    z-index: 0;
    filter: saturate(0.9) blur(0.3px);
}

body.contact-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.85));
    z-index: 1;
}

.contact-wrapper {
    position: relative;
    z-index: 2; /* au-dessus du background */
    max-width: 1200px;
    margin: 6rem auto 3rem;
    padding: 2rem;
    flex: 1 1 auto;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 420px;
}

.contact-form-area {
    padding: 2.5rem;
    text-align: left; /* left-align form texts on desktop */
}

.contact-info-area {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    text-align: center; /* center right column content */
}

/* center info items horizontally */
.contact-info-area .info-item { justify-content: center; }

/* make footer appear above the background overlay */
.footer { position: relative; z-index: 3; }

.contact-info-image {
    width: 100%;
    height: 240px;
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.contact-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.section-title-small {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

form.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group.full { grid-column: 1 / -1; }

label { font-size: 0.9rem; color: #333; font-weight: 600; }

.contact-form input, .contact-form textarea {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.18s ease, transform 0.12s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 8px 25px rgba(190,22,34,0.12);
    transform: translateY(-2px);
    border-color: var(--primary-red);
}

textarea { min-height: 160px; resize: vertical; }

.contact-actions { display:flex; gap:1rem; align-items:center; margin-top:0.5rem; }

.btn-send {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    border: none;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(214,45,56,0.2);
}

.btn-send:active { transform: translateY(1px); }

.note-small { font-size: 0.9rem; color: #666; text-align: center; }

.contact-info-area .info-item { display:flex; gap:0.75rem; align-items:center; }
.contact-info-area .info-item p { margin:0; font-size:0.95rem;  }

/* Instagram link icon */
.insta-link-icon { 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    transition:transform .25s ease, background-color .25s ease; 
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background-color: transparent;
    padding: 6px;
}
.insta-link-icon:hover { 
    transform: scale(1.12); 
    background-color: white;
}
.insta-link-icon img { 
    display:block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* logo link hover: white bg + scale */
.logo a { display: inline-flex; align-items: center; padding: 6px; border-radius: 8px; transition: background 180ms ease; }
.logo a:hover { background: white; }
.logo a:hover img { transform: scale(1.06); }

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

/* popup instagram */
.insta-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    min-width: 260px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 260ms ease, transform 260ms ease;
}

.insta-popup.show { opacity: 1; transform: translateY(0); }
.insta-popup img { width:40px; height:40px; border-radius:50%; object-fit:contain; }
.insta-popup .insta-text { font-size:0.95rem; color:#222; }
.insta-popup .insta-actions { margin-left:auto; display:flex; gap:8px; }
.insta-popup .link-btn { background: var(--primary-red); color:white; padding:8px 10px; border-radius:8px; font-weight:700; text-decoration:none; }
.insta-popup .close-btn { background: transparent; border: none; color:#666; font-weight:700; cursor:pointer; }

/* toast */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 200ms ease, bottom 200ms ease;
}
.toast.show { opacity: 1; bottom: 40px; }

/* responsive */
@media (max-width: 900px) {
    .contact-card { grid-template-columns: 1fr; }
    form.contact-form { grid-template-columns: 1fr; }
}

/* Mobile tuning: navbar responsive + menu burger */
@media (max-width: 768px) {
    body { padding-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-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 { padding-top: 68px; }
    .navbar { padding: 0.6rem 0; }
    .logo img { height: 40px; }
    .nav-right { top: 60px; }
}




/* ============================================
   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; }
}

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


/* 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); } }
@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); } }