/* ====================================
   TRADITIONS & ASSOCIÉS - CSS GLOBAL
   Version Multi-Page
   ==================================== */

:root {
    --accent-red: #a90000;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border-gray: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-red);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.05rem;
    color: var(--medium-gray);
    font-weight: 300;
}

/* ============= NAVIGATION ============= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
    transition: transform 0.3s ease;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

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

nav .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 90px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

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

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-gray);
    transition: all 0.3s ease;
}

/* ============= CONTAINER & LAYOUT ============= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ============= HERO SECTION ============= */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: center center / cover no-repeat fixed;
    padding: calc(138px + 6rem) 3rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.hero h1 {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    color: rgba(255, 255, 255, 0.9);
}

.hero .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-primary {
    background: #8e0303;
    color: white;
    border-color: #8e0303;
}

.cta-primary:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(169, 0, 0, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-secondary:hover {
    background: white;
    color: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ============= CARDS ============= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--border-gray);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-red);
}

.card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.card p {
    line-height: 1.8;
}

/* ============= VALUES GRID ============= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 3rem 2.5rem;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    display: block;
    margin-bottom: 1.5rem;
}

/* ============= EXPERTISE GRID ============= */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-item {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-item:hover {
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.expertise-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* ============= STATS ============= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    margin: 4rem 0;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent-red);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* ============= CONTACT FORM ============= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-gray);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

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

.submit-button {
    padding: 0.9rem 2.5rem;
    background: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    align-self: flex-start;
}

.submit-button:hover {
    background: transparent;
    color: var(--accent-red);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 1rem;
}

.info-content a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============= FOOTER ============= */
footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer .container {
    max-width: 1200px;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-red);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 968px) {
    nav .container {
        padding: 1.5rem 2rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .container {
        padding: 0 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: calc(138px + 5rem) 2rem 5rem;
        min-height: 45vh;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .card-grid,
    .card-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 640px) {
    nav .container {
        padding: 1rem 1.5rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border-gray);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    nav .logo img {
        height: 64px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: calc(96px + 4rem) 1.5rem 4rem;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    h2 {
        font-size: 2rem;
    }

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

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

/* ============= UTILITY CLASSES ============= */
.text-center {
    text-align: center;
}

.mb-small {
    margin-bottom: 1rem;
}

.mb-medium {
    margin-bottom: 2rem;
}

.mb-large {
    margin-bottom: 3rem;
}

.bg-light {
    background: var(--light-gray);
}

.bg-white {
    background: white;
}
