﻿/* =========================================
   CHAIR FEMMES THEME - CONTACT PAGE
   ========================================= */

/* --- Font Definition --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

/* --- Unified Global Variables --- */
:root {
    /* 1. Page Background: Warm Linen/Cream */
    --bg-beige: #FAF6F0; 
    
    /* 2. Text Color: Dark Warm Brown */
    --text-dark: #4A332A; 
    
    /* 3. Brand Primary (Buttons, Highlights, Icons): Rust Red / Terracotta */
    --brand-accent: #C47A65; 
    --brand-red: #d64d2e; /* Le fameux rouge vif demandé ! */
    
    /* 4. Dark Backgrounds (Footer, Banner): Deep Espresso */
    --bg-dark: #3A261F; 
    
    /* 5. Accents/Active States: Golden Sun */
    --brand-gold: #D4A373; 

    /* Glass Effects */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 248, 240, 0.2);
}

/* --- Base Body & Resets --- */
body, html {
    font-family: 'The Seasons', 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-beige);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Texture sensuelle en arrière-plan */
.sensual-texture-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Utility Classes */
.text-dark-brown { color: var(--text-dark) !important; }
.text-accent { color: var(--brand-accent) !important; }
.text-gold { color: var(--brand-gold) !important; }
.bg-espresso { background-color: var(--bg-dark) !important; }
.letter-spacing-tight { letter-spacing: -1px; }
.letter-spacing-1 { letter-spacing: 1px; }
.max-w-600 { max-width: 600px; }
.warm-card-shadow { box-shadow: 0 15px 40px rgba(74, 51, 42, 0.08); }

/* --- Breadcrumb --- */
.breadcrumb-section { 
    background-color: rgba(196, 122, 101, 0.05);
}
.breadcrumb-item a { 
    color: var(--text-dark); 
    text-decoration: none; 
    font-weight: 500; 
    opacity: 0.7;
    transition: opacity 0.3s;
    font-family: 'Manrope', sans-serif;
}
.breadcrumb-item a:hover { opacity: 1; color: var(--brand-accent); }
.breadcrumb-item.active { color: var(--brand-accent); font-family: 'Manrope', sans-serif;}
.breadcrumb-item + .breadcrumb-item::before { 
    content: ">>"; 
    font-size: 0.8rem; 
    padding-top: 4px; 
    opacity: 0.4;
}

/* --- Info Cards (Overlap Logic) --- */
.info-cards-section {
    position: relative;
    z-index: 10; 
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 51, 42, 0.05);
}

.contact-card:hover { 
    box-shadow: 0 20px 40px rgba(74, 51, 42, 0.05); /* very subtle hover shadow */
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-red) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

/* --- Map & Form Section --- */
.map-form-section {
    padding-top: 150px; 
    padding-bottom: 80px;
    background-color: var(--bg-beige);
    overflow: hidden;
    margin-top: -80px; 
}

/* Base custom input stylings */
.custom-input {
    border: 0 !important;
    border-bottom: 1px solid rgba(74, 51, 42, 0.2) !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 15px 5px !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.custom-input:focus {
    box-shadow: none !important;
    border-color: var(--brand-accent) !important;
}
.custom-textarea { resize: none; }

/* Responsive adjustments for phones to make forms less oversized */
@media (max-width: 575px) {
    .contact-form-wrapper {
        padding: 25px 20px !important;
    }
    .custom-input {
        font-size: 0.9rem;
        padding: 10px 5px !important;
    }
    .map-form-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .contact-card {
        padding: 30px 20px !important;
    }
    .col-6.col-md-6 {
        width: 100% !important; /* Stack inputs vertically on tiny screens */
        margin-bottom: 15px; /* Add slight spacing between vertically stacked inputs */
    }
    .form-col-responsive {
        width: 100% !important;
        margin-top: 10px !important;
    }
    .row.g-4 > [class*="col-"] {
        margin-top: 0 !important; 
        padding-top: 10px;
    }
}

/* The Map Background */
.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Utilise une des photos validées de Mégane */
    background: linear-gradient(rgba(58, 38, 31, 0.7), rgba(58, 38, 31, 0.7)), url('assets/images/img3.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
    z-index: 5;
}

.custom-input {
    border-radius: 50px;
    padding: 15px 25px;
    border: 1px solid #E5DFDA;
    background-color: #FCFAf8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
    outline: none !important;
}

.custom-input:focus,
.custom-input:hover {
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--brand-accent);
    background-color: #fff;
}

.custom-textarea {
    border-radius: 25px;
}

/* Bouton Envoyer le Message (Rouge) */
.btn-accent {
    background-color: var(--brand-red);
    color: white;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(214, 77, 46, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 10px 30px rgba(214, 77, 46, 0.4);
    background-color: #b83e22; 
    color: white;
}
/* =========================================
   CUSTOM DROPDOWN (Contact Form)
   ========================================= */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
}

/* Rotates the arrow icon when open */
.custom-dropdown-wrapper.open .dropdown-icon {
    transform: rotate(180deg);
}

/* The dropdown menu styling */
.dropdown-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #E5DFDA;
    z-index: 1000;
    padding: 10px 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Show the menu when the wrapper gets the 'open' class */
.custom-dropdown-wrapper.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual options */
.dropdown-option {
    padding: 12px 25px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
}

.dropdown-option:hover {
    background-color: var(--bg-beige);
    color: var(--brand-red);
    font-weight: 600;
}

/* --- Social Icons --- */
.social-circle-lg {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    margin: 0 8px;
    text-decoration: none;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.social-circle-lg:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

/* --- CTA Strip --- */
.cta-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-gold {
    background-color: var(--brand-gold);
    color: var(--text-dark);
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gold:hover {
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
    background-color: #e5b98a;
    color: var(--text-dark);
}


/* =========================================
   CONTACT PAGE RESPONSIVENESS (contact.css)
   ========================================= */

/* --- TABLETS & SMALL DESKTOPS (max-width: 991px) --- */
@media (max-width: 991px) {
    /* Adjust spacing so the form map background doesn't overlap weirdly */
    .map-form-section {
        padding-top: 100px;
        margin-top: -30px;
    }
    
    /* Make the CTA strip stack nicely */
    .cta-strip .row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cta-strip .col-md-8 {
        flex-direction: column !important;
        justify-content: center !important;
    }
    .cta-icon {
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
}

/* --- SMARTPHONES (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Shrink the big header text */
    .contact-intro h1 {
        font-size: 2.8rem;
    }
    .contact-intro p {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* Info Cards - Stack them with a bit more breathing room */
    .contact-card {
        padding: 30px !important;
    }
    
    /* Form Adjustments - Full width inputs */
    .contact-form-wrapper {
        padding: 30px 20px !important;
        margin: 0 10px; /* Slight margin so it doesn't touch screen edges */
    }
    .contact-form-wrapper h3 {
        font-size: 1.5rem;
    }
    
    /* CTA Strip Mobile Adjustments */
    .cta-strip h2 {
        font-size: 1.5rem;
    }
    .cta-strip .btn-gold {
        width: 100%; /* Full width button on phones */
    }
}

/* --- SMALL PHONES (max-width: 480px) --- */
@media (max-width: 480px) {
    .contact-intro h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .map-form-section {
        border-radius: 0 !important;
    }
    .map-background {
        border-radius: 0 !important;
    }
    .contact-form-wrapper {
        border-radius: 18px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
