/* ============================================================
   VIRILACCESSORIES — contact.css (fusionné)
   Header · Hero · Formulaire · FAQ · CTA · Footer
   Palette : #292a29 (dark) · #906543 (gold) · #FF9E6D (accent) · #1A2238 (navy)
   ============================================================ */

/* ── VARIABLES ── */
:root {
    --dark:    #292a29;
    --gold:    #906543;
    --gold2:   #a07654;
    --accent:  #FF9E6D;
    --navy:    #1A2238;
    --light:   #f7f5f2;
    --white:   #ffffff;
    --text:    #444;
    --border:  #e8e0d5;
    --error:   #e74c3c;
    --success: #27ae60;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Georgia', serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ============================================================
   HEADER & NAV
   ============================================================ */

header {
    background: var(--dark);
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255,158,109,0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-img { height: 44px; width: auto; }

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 1.8vw, 1.15rem);
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    transition: color 0.25s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,34,56,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--dark);
    z-index: 999;
    padding: 80px 2rem 2rem;
    transition: right 0.35s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,158,109,0.15);
}

.mobile-menu.active {
    display: block;
    right: 0;
}

.mobile-nav-links { list-style: none; }

.mobile-nav-links li { margin-bottom: 0; }

.mobile-nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.25s, padding-left 0.25s;
    text-align: center;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent);
    padding-left: 0.5rem;
}

/* ============================================================
   HERO CONTACT
   ============================================================ */

.hero-contact {
    height: 60vh;
    min-height: 420px;
    background:
        linear-gradient(160deg, rgba(26,34,56,0.75) 0%, rgba(41,42,41,0.6) 60%, rgba(144,101,67,0.22) 100%),
        url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1600') center / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

/* Ligne déco bas */
.hero-contact::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--gold), transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-content p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.88;
    font-style: italic;
    letter-spacing: 1px;
}

/* Animations hero */
.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInAnim { to { opacity: 1; } }

/* ── ANIMATIONS SCROLL ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SECTION DIVIDER ── */
.section-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    margin: 0.8rem auto 3rem;
}

/* ============================================================
   SECTION CONTACT PRINCIPALE
   ============================================================ */

.contact-section {
    padding: 6rem 5%;
    background: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: start;
}

/* ── INFOS CONTACT (colonne gauche) ── */
.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--gold);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.intro-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.4rem;
    background: var(--light);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.info-item:hover {
    background: #f0ece6;
    transform: translateX(5px);
    border-left-color: var(--accent);
    box-shadow: 0 3px 12px rgba(26,34,56,0.07);
}

.info-item .icon {
    color: var(--gold);
    min-width: 36px;
    display: flex;
    align-items: center;
}

.info-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 0.45rem;
}

.info-content p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-content a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.25s;
}

.info-content a:hover { color: var(--accent); }

/* ── RÉSEAUX SOCIAUX ── */
.social-contact {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.social-contact h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.3rem;
    background: var(--dark);
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: all 0.28s ease;
    border-left: 3px solid transparent;
}

.social-link:hover {
    background: var(--navy);
    border-left-color: var(--accent);
    transform: translateX(4px);
    color: white;
}

.social-link svg { flex-shrink: 0; transition: color 0.25s; }

.social-link span {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── FORMULAIRE (colonne droite) ── */
.contact-form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact-form {
    background: var(--light);
    padding: 2.5rem;
    border-top: 3px solid var(--accent);
}

.form-group { margin-bottom: 1.6rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--dark);
    font-weight: 600;
}

.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    color: var(--dark);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23906543' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,158,109,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    min-height: 1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
    background: #fef5f4;
}

/* ── BOUTON SUBMIT ── */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.28s;
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity 0.28s;
}

.btn-submit:hover:not(:disabled)::after { opacity: 1; }
.btn-submit .btn-text { position: relative; z-index: 1; }

.btn-submit:hover:not(:disabled) { transform: none; }

.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-loader {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
}

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── MESSAGE FORMULAIRE ── */
.form-message {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.7;
    display: none;
    border-left: 3px solid;
}

.form-message.success {
    background: #edfaf3;
    color: #145a32;
    border-left-color: var(--success);
    display: block;
}

.form-message.error {
    background: #fdf0ee;
    color: #922b21;
    border-left-color: var(--error);
    display: block;
}

/* ============================================================
   SECTION FAQ
   ============================================================ */

.faq-section {
    padding: 6rem 5%;
    background: var(--light);
}

.faq-section h2 {
    font-family: 'Cinzel', serif;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.6rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
    border-bottom: 3px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 5px 22px rgba(26,34,56,0.08);
}

.faq-item.active {
    border-bottom-color: var(--accent);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.6rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}

.faq-icon {
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    font-family: 'Cinzel', serif;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 1.6rem 1.6rem;
}

.faq-answer p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.9;
    padding-top: 0.2rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.faq-answer strong { color: var(--gold); }

/* ============================================================
   CTA CONTACT
   ============================================================ */

.cta-contact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 50%, #3a2a1a 100%);
    padding: 7rem 5%;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,158,109,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(144,101,67,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-contact .cta-content { position: relative; z-index: 1; }

.cta-contact .cta-content h2 {
    font-family: 'Cinzel', serif;
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.6rem;
}

.cta-contact .section-divider {
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.cta-contact .cta-content p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    opacity: 0.75;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gold);
    color: white;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.32s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--gold2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-cta:hover::before { opacity: 1; }

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,158,109,0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: #111312;
    color: rgba(255,255,255,0.75);
    padding: 4rem 5% 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-section p {
    font-size: 0.88rem;
    line-height: 1.9;
    opacity: 0.65;
    margin-bottom: 0.4rem;
}

.footer-tagline { font-style: italic; }

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 0.55rem; }

.footer-section a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.25s;
}

.footer-section a:hover { color: var(--accent); }

/* Icônes sociales footer */
.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.social-icon {
    color: var(--gold);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-icon svg { width: 24px; height: 24px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0.4rem 0;
    font-size: 0.78rem;
    opacity: 0.45;
}

.footer-bottom a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}

.footer-bottom a:hover { color: var(--accent); }

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

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .social-links-contact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }

    .hero-contact { background-attachment: scroll; }
    .hero-content h1 { font-size: 1.8rem; letter-spacing: 3px; }

    .contact-section,
    .faq-section,
    .cta-contact { padding: 4rem 5%; }

    .social-links-contact { flex-direction: column; }

    .contact-form { padding: 1.6rem; }

    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .social-link { justify-content: center; }

    .logo-text { font-size: 0.8rem; }
    .logo-img { height: 36px; }

    header { padding: 0 4%; }
}

/* ── ACCESSIBILITÉ ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
