/* Variables CSS */
:root {
    --primary-dark: #1a2744;
    --primary-blue: #2d4a7c;
    --accent-light: #A1D6FF;
    --text-light: #ffffff;
    --text-muted: #b8c5d6;
    --triangle-color: rgba(45, 74, 124, 0.6);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Blinker", 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    min-height: 100vh;
}

/* Container principal - Layout scindé */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Section gauche - Image */
.left-section {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Triangle décoratif */
.triangle-decoration {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 26rem;
    height: 26rem;
    z-index: 10;
    opacity: 0.1;
    pointer-events: none;
}

/* Section droite - Contenu */
.right-section {
    flex: 1;
    background-color: var(--primary-dark);
    overflow-y: auto;
    position: relative;

}

.content-wrapper {
    padding: 40px 60px;
    max-width: 900px;
    z-index: 11;
    position: relative;
}

/* Logo */
.logo {
    margin-bottom: 30px;
}

.logo img {
    height: 60px;
    width: auto;
    filter: invert(1);
}

/* En-tête */
.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-light);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Introduction */
.intro {
    margin-bottom: 35px;
}

.intro p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: justify;
}

.intro strong {
    color: var(--text-light);
    font-weight: 600;
}

.intro .zone {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.9;
}

/* Section CTA */
.cta-section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--accent-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.cta-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.contact-link .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Formulaire de contact */
.contact-form {
    background: rgb(37, 50, 77);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-light);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select option {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

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

.submit-btn {
    width: 100%;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--accent-light), #7ba3e0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(91, 141, 217, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Messages de statut du formulaire */
.form-status {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    background-color: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* Cloudflare Turnstile */
.turnstile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.turnstile-error {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
}

/* Liens sociaux */
.social-links {
    text-align: center;
    padding-top: 10px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #0077b5;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.linkedin-link:hover {
    background-color: #005885;
    transform: translateY(-2px);
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        padding: 35px 40px;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .left-section {
        flex: 0 0 auto;
        height: 40vh;
        min-height: 300px;
    }

    .triangle-decoration {
        top: auto;
        bottom: -30px;
        left: 50%;
    }

    .right-section {
        flex: 1;
    }

    .content-wrapper {
        padding: 40px 30px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .cta-section {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .triangle-decoration {
        border-bottom-width: 100px;
        border-left-width: 70px;
        border-right-width: 70px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .logo img {
        height: 45px;
    }

    .intro p {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.1rem;
    }

    .linkedin-link {
        width: 100%;
        justify-content: center;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper > * {
    animation: fadeInUp 0.6s ease forwards;
}

.content-wrapper > *:nth-child(1) { animation-delay: 0.1s; }
.content-wrapper > *:nth-child(2) { animation-delay: 0.2s; }
.content-wrapper > *:nth-child(3) { animation-delay: 0.3s; }
.content-wrapper > *:nth-child(4) { animation-delay: 0.4s; }
.content-wrapper > *:nth-child(5) { animation-delay: 0.5s; }
.content-wrapper > *:nth-child(6) { animation-delay: 0.6s; }
