/* ============================================
   OPESTRAT - Corporate Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --color-navy: #1a2744;
    --color-navy-dark: #0f1829;
    --color-navy-light: #2d3e5f;
    --color-red: #c8102e;
    --color-red-dark: #a00d24;
    --color-white: #ffffff;
    --color-gray-light: #f7f8fa;
    --color-gray: #e5e7eb;
    --color-gray-dark: #6b7280;
    --color-text: #1f2937;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: 0.05em;
}

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

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-navy);
    transition: all var(--transition-base);
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(200, 16, 46, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    margin: 0 auto 2.5rem;
}

.hero-slogan {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-baseline {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-red);
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hero-cta:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-red);
}

/* ============================================
   Mission Section
   ============================================ */
.mission {
    background: var(--color-gray-light);
}

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

.mission-intro {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-navy);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mission-text strong {
    color: var(--color-navy);
    font-weight: 500;
}

/* ============================================
   Domaines Section
   ============================================ */
.domaines {
    background: var(--color-white);
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.domaine-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--color-gray);
    text-align: center;
    transition: all var(--transition-base);
}

.domaine-card:hover {
    border-color: var(--color-navy-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.domaine-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domaine-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-navy);
    transition: stroke var(--transition-base);
}

.domaine-card:hover .domaine-icon svg {
    stroke: var(--color-red);
}

.domaine-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.domaine-card p {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--color-gray-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    margin-bottom: 2.5rem;
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    background: var(--color-white);
}

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

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: var(--color-navy);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-submit:hover {
    background: var(--color-red);
    transform: translateY(-1px);
}

.contact-direct {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray);
}

.contact-direct p {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
}

.contact-direct a {
    color: var(--color-navy);
    font-weight: 500;
    border-bottom: 1px solid var(--color-navy);
}

.contact-direct a:hover {
    color: var(--color-red);
    border-color: var(--color-red);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-navy-dark);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer-legal p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.domaine-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.domaine-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.domaine-card.reveal:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--color-gray);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero-logo {
        max-width: 150px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-slogan {
        font-size: 1.75rem;
    }

    .hero-baseline {
        letter-spacing: 0.1em;
        font-size: 0.95rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }

    .mission-intro {
        font-size: 1.1rem;
    }

    .mission-text {
        font-size: 1rem;
    }

    .domaine-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        padding: 0 1rem;
    }
}
