/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Typographie fluide : s’adapte à la taille de l’écran */
    --font-base: clamp(14px, 1.5vw, 18px);
    --font-title: clamp(1.8rem, 3vw, 2.5rem);
    --section-padding: clamp(2rem, 5vw, 10rem);
}

/* =========================================================
   RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    font-size: var(--font-base);
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   HEADER
========================================================= */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.logo {
    flex: 1;
    text-align: left;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* =========================================================
   SECTION CONTACT
========================================================= */
.contact-section {
    padding: var(--section-padding) 10%;
    max-width: 1500px;
    margin: 0 auto;
}

.contact-section h1 {
    text-align: center;
    font-size: var(--font-title);
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.contact-section h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0.5rem auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-info {
    background: rgb(16, 16, 16);
    color: white;
}

.contact-form {
    background: rgb(249, 244, 244);
}

.contact-info:hover,
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 17, 17, 0.921);
}

/* =========================================================
   FORMULAIRE
========================================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

/* Tablettes */
@media (max-width: 992px) {
    header {
        padding: 1rem 3%;
    }

    nav ul {
        justify-content: center;
    }

    .contact-section {
        padding: 4rem 5%;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section h1 {
        font-size: 2rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1.2rem;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}

/* Très grands écrans (TV, moniteurs ultra-wide) */
@media (min-width: 1600px) {
    body {
        font-size: clamp(16px, 1vw, 20px);
    }

    .contact-section {
        max-width: 1800px;
    }
}
