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

html {
    font-size: 16px;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: #f5f4f2;
    color: #1f2430;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    background-color: #2f3446;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.logo {
    font-size: 1.6rem;
    font-style: italic;
    color: #c47a1c;
    font-weight: bold;
    white-space: nowrap;
}

/* =========================
   BURGER
========================= */
.burger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #f3f3f3;
    cursor: pointer;
    line-height: 1;
}

/* =========================
   NAVIGATION MOBILE
========================= */
.main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2f3446;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.main-nav.active {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.nav-list a {
    color: #f3f3f3;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: #c47a1c;
}

/* =========================
   INTRO
========================= */
.contact-intro {
    padding: 3rem 0 2rem;
    text-align: center;
}

.contact-intro h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #1f2430;
}

.contact-intro p {
    max-width: 700px;
    margin: 0 auto;
    color: #666666;
    font-size: 1rem;
}

/* =========================
   LAYOUT
========================= */
.contact-main {
    padding: 1rem 0 3rem;
}

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

/* =========================
   FORMULAIRE
========================= */
.contact-form-wrapper {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2430;
}

.contact-form-intro {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1.2rem;
}

.required-note {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666666;
}

.required {
    color: #d62828;
    font-weight: bold;
    margin-left: 0.15rem;
}

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

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background-color: #fafafa;
    font-size: 1rem;
    color: #1f2430;
    font-family: inherit;
    transition: all 0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c47a1c;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(196, 122, 28, 0.1);
    outline: none;
}

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

/* Petit rappel visuel sur les champs requis */
.form-group input:required,
.form-group textarea:required {
    border-left: 3px solid #d62828;
}

/* =========================
   RGPD
========================= */
.rgpd-group,
.form-rgpd {
    padding: 1rem;
    background-color: #faf7f2;
    border: 1px solid #eadfce;
    border-radius: 10px;
    margin-top: 1rem;
}

.rgpd-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    line-height: 1.5;
}

.rgpd-label input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.25rem;
    accent-color: #c47a1c;
    cursor: pointer;
}

.rgpd-label span,
.checkbox-label span {
    font-size: 0.9rem;
    color: #444444;
    text-transform: none;
    letter-spacing: normal;
}

.rgpd-label small,
.checkbox-label small {
    display: block;
    margin-top: 0.5rem;
    color: #666666;
    font-size: 0.82rem;
    line-height: 1.5;
}

.rgpd-label a,
.checkbox-label a {
    color: #c47a1c;
    font-weight: bold;
    text-decoration: underline;
}

.rgpd-label a:hover,
.checkbox-label a:hover {
    color: #9d5f12;
}

/* =========================
   BOUTON
========================= */
.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #00143d;
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0d255c;
    transform: translateY(-1px);
}

/* =========================
   MESSAGES
========================= */
.form-messages {
    margin-bottom: 1rem;
}

.error-message,
.success-message {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.error-message {
    background: #fce8e6;
    color: #9b2c2c;
    border: 1px solid #f5c2c0;
}

.success-message {
    background: #e7f6ea;
    color: #256c3d;
    border: 1px solid #b8e0c2;
}

/* =========================
   INFOS
========================= */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-visual-card,
.contact-details-card,
.contact-quote-card,
.extra-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-visual-card img,
.contact-quote-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.contact-visual-content,
.contact-quote-content {
    padding: 1.5rem;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c47a1c;
    margin-bottom: 0.8rem;
}

.contact-visual-content h2,
.contact-details-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2430;
}

.contact-visual-content p,
.contact-details-card li,
.contact-quote-content p {
    color: #666666;
    font-size: 1rem;
}

.contact-details-card {
    padding: 1.5rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details-list strong {
    color: #1f2430;
}

.contact-details-list a:hover {
    color: #c47a1c;
}

.contact-quote-content p {
    font-style: italic;
    text-align: center;
    color: #1f2430;
}

/* =========================
   INFORMATIONS UTILES
========================= */
.contact-extra {
    padding: 3rem 0;
}

.contact-extra h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-extra-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.extra-card {
    padding: 1.5rem;
}

.extra-card h3 {
    color: #1f2430;
    margin-bottom: 0.8rem;
}

.extra-card p {
    color: #666666;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #00143d;
    color: #d7d7d7;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links-inline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-inline a:hover {
    color: #c47a1c;
}

/* =========================
   TABLETTE
========================= */
@media (min-width: 768px) {
    .burger {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        width: auto;
        background: transparent;
        border-top: none;
        box-shadow: none;
        margin-left: auto;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 1.2rem;
        padding: 0;
    }

    .contact-intro {
        padding: 4rem 0 2.5rem;
    }

    .contact-intro h1 {
        font-size: 3.5rem;
    }

    .form-row {
        flex-direction: row;
    }

    .form-row .form-group {
        flex: 1;
    }

    .contact-extra-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links-inline {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1024px) {
    .contact-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .contact-form-wrapper {
        padding: 3rem;
    }

    .contact-form-wrapper h2 {
        font-size: 2.4rem;
    }

    .contact-intro h1 {
        font-size: 4rem;
    }

    .contact-intro p {
        font-size: 1.05rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-links-inline {
        justify-content: flex-end;
    }
}