/* ============================================================
   FSRS — Contact Page CSS
   Refonte Design 2025
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

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

:root {
    --primary:       #2E8B57;
    --primary-dark:  #1a3a2f;
    --primary-mid:   #236b45;
    --primary-light: #f0f7f3;
    --gold:          #FFD700;
    --gold-dark:     #e6c200;
    --white:         #FFFFFF;
    --off-white:     #F9FAFB;
    --text-dark:     #1a1a2e;
    --text-body:     #374151;
    --text-muted:    #6B7280;
    --border-color:  #E5E7EB;

    --font-body:    'Montserrat', sans-serif;
    --font-display: 'Oswald', sans-serif;

    --radius-sm:   4px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 50px;
    --radius-full: 9999px;

    --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:    0 6px 24px rgba(0,0,0,0.08);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.12);
    --shadow-green: 0 10px 36px rgba(46,139,87,0.22);
    --shadow-gold:  0 8px 28px rgba(255,215,0,0.35);

    --ease:     all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(255,215,0,0); }
}

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

/* ══════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--off-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 0.75rem 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.18);
    transition: var(--ease);
}

header.scrolled {
    padding: 0.4rem 0;
    background: rgba(26,58,47,0.92);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,215,0,0.12);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: var(--radius-md);
    max-width: 100%;
    transition: var(--ease);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--ease);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
    background: rgba(255,215,0,0.08);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: calc(100% - 1.8rem);
}

/* ══════════════════════════════════════════════════════════
   HERO CONTACT
   ══════════════════════════════════════════════════════════ */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 60%, var(--primary) 100%);
    padding: 5rem 2rem 7rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    margin-bottom: -2rem;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255,215,0,0.10) 0%, transparent 65%);
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(46,139,87,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.25);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.2rem;
}

.contact-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   SECTION CONTACT PRINCIPALE
   ══════════════════════════════════════════════════════════ */
.contact-section {
    padding: 5rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Remplace l'ancien .page-header si présent */
.page-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    border-radius: var(--radius-full);
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── GRILLE CONTACT ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* ══════════════════════════════════════════════════════════
   FORMULAIRE
   ══════════════════════════════════════════════════════════ */
.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Décoration coin haut droit */
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(225deg, rgba(46,139,87,0.07) 0%, transparent 60%);
    border-radius: 0 var(--radius-xl) 0 0;
    pointer-events: none;
}

/* Barre dorée en haut */
.form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.form-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    border-radius: var(--radius-full);
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

/* Groupes de champs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.form-group:focus-within label {
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Focus ring doré */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: #fffef5;
    box-shadow: 0 0 0 4px rgba(255,215,0,0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #B0B8C4;
}

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

/* Grille 2 colonnes pour nom/email */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Bouton submit — gradient vert */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 1.05rem 1.5rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: var(--ease-out);
    box-shadow: var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

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

/* ══════════════════════════════════════════════════════════
   INFO CARDS — Icône dans cercle coloré
   ══════════════════════════════════════════════════════════ */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--ease-out);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--gold));
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-green);
}

/* En-tête de l'info card avec icône circulaire */
.info-card-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.2rem;
}

.info-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    transition: var(--ease);
    background: linear-gradient(135deg, rgba(46,139,87,0.12), rgba(255,215,0,0.10));
    border: 2px solid rgba(46,139,87,0.15);
}

.info-card:hover .info-icon-circle {
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    border-color: var(--primary);
    animation: floatY 2s ease-in-out infinite;
}

.info-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-section {
    margin-top: 0.8rem;
}

.info-section h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.info-section p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.8rem;
    font-size: 0.93rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   CARTE / MAP CARD
   ══════════════════════════════════════════════════════════ */
.map-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--ease-out);
    border: 1px solid rgba(0,0,0,0.04);
}

.map-card:hover {
    box-shadow: var(--shadow-green);
}

.map-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.map-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.map-placeholder {
    width: 100%;
    height: 260px;
    background: #e0e0e0;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    margin-bottom: 1.2rem;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=600&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.map-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,58,47,0.18);
    transition: var(--ease);
}

.map-card:hover .map-placeholder::after {
    background: rgba(26,58,47,0.08);
}

/* Bouton carte */
.map-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    color: var(--primary-dark);
    padding: 0.9rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--ease-out);
    text-align: center;
    display: block;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
}

.map-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #FFA500, var(--gold));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 2px solid rgba(255,255,255,0.18);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--ease-out);
}

.social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.footer-content p {
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* ── 1024px ── */
@media (max-width: 1024px) {
    .contact-grid { gap: 2rem; }
    .form-container { padding: 2.5rem 2rem; }
}

/* ── 768px ── */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    nav ul { justify-content: center; gap: 0.2rem; }
    nav ul li a { font-size: 0.85rem; padding: 0.4rem 0.7rem; }

    .contact-hero {
        padding: 4rem 1.5rem 6rem;
        clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
    }

    .contact-section {
        padding: 4rem 1.5rem 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .form-container,
    .info-card,
    .map-card { padding: 1.8rem; }

    .form-row { grid-template-columns: 1fr; }
}

/* ── 576px ── */
@media (max-width: 576px) {
    .logo img { height: 44px; }

    .contact-hero {
        padding: 3.5rem 1rem 5rem;
        clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
    }

    .contact-hero h1 { font-size: 1.8rem; }
    .contact-hero p  { font-size: 0.95rem; }

    .contact-section { padding: 3rem 1rem 2.5rem; }

    .form-container,
    .info-card,
    .map-card { padding: 1.4rem; }

    .form-title { font-size: 1.2rem; }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.8rem 0.95rem;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 0.95rem;
    }

    .info-icon-circle {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .map-placeholder { height: 210px; }

    .info-card h2,
    .map-card h2 { font-size: 1.1rem; }

    footer { padding: 1.8rem 1rem; }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* ── 360px ── */
@media (max-width: 360px) {
    .logo img { height: 38px; }
    .contact-hero h1 { font-size: 1.5rem; }
    .form-title,
    .info-card h2,
    .map-card h2 { font-size: 1rem; }
    .map-placeholder { height: 180px; }
}

/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .contact-hero { clip-path: none; }
}
