/* =========================
   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;
}

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

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

/* =========================
   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.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

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

.nav-list a {
    color: #f3f3f3;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

/* =========================
   PAGE INSCRIPTION
========================= */
.register-page {
    padding: 3rem 0;
}

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

/* =========================
   ZONE VISUELLE
========================= */
.register-visual {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 350px;
}

.register-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(45%);
}

.register-visual-content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

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

.register-visual-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.register-visual-content p {
    font-size: 1rem;
    max-width: 500px;
}

/* =========================
   FORMULAIRE
========================= */
.register-form-section {
    background-color: #f5f4f2;
}

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

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

.register-intro {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 2rem;
}

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

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

.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 {
    padding: 0.9rem 0;
    border: none;
    border-bottom: 1px solid #d6d6d6;
    background-color: transparent;
    font-size: 1rem;
    color: #1f2430;
    outline: none;
}

.form-group input::placeholder {
    color: #bbbbbb;
}

.form-group input:focus {
    border-bottom: 1px solid #c47a1c;
}

/* =========================
   RGPD
========================= */
.required {
    color: #c0392b;
    margin-left: 4px;
    font-weight: bold;
}

.form-rgpd {
    padding: 1rem;
    background-color: #faf7f2;
    border: 1px solid #eadfce;
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

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

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

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

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

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

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

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.4;
}

.error-message,
.success-message {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

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

/* =========================
   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: background-color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0d255c;
}

/* =========================
   TEXTE CONNEXION
========================= */
.login-text {
    margin-top: 2rem;
    text-align: center;
    color: #666666;
    font-size: 1rem;
}

.login-text a {
    color: #c47a1c;
    font-weight: bold;
}

.login-text a:hover {
    text-decoration: underline;
}

/* =========================
   CARTE
========================= */
.register-card {
    margin-top: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111111;
}

.register-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.register-card-content {
    padding: 1.5rem;
    background-color: #ffffff;
}

.register-card-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: #1f2430;
    text-align: center;
}

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

.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 screen and (min-width: 768px) {
    .burger {
        display: none;
    }

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

    .nav-list {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0;
    }

    .register-page {
        padding: 4rem 0;
    }

    .register-form-wrapper {
        padding: 2.5rem;
    }

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

    .form-row {
        flex-direction: row;
        gap: 1.5rem;
    }

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

    .register-card img {
        height: 300px;
    }

    .footer-bottom {
        text-align: left;
    }

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

/* =========================
   DESKTOP
========================= */
@media screen and (min-width: 1024px) {
    .register-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: 3rem;
    }

    .register-visual {
        min-height: 700px;
    }

    .register-visual-content {
        padding: 3rem;
    }

    .register-visual-content h1 {
        font-size: 3.5rem;
        max-width: 500px;
    }

    .register-form-section {
        display: flex;
        align-items: center;
    }

    .register-form-wrapper {
        width: 100%;
        padding: 3rem;
        box-shadow: none;
        background-color: transparent;
    }

    .register-form-wrapper h2 {
        font-size: 3rem;
    }

    .register-intro {
        max-width: 500px;
    }

    .register-card {
        max-width: 420px;
    }

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

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