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

html {
    background: #000000;
}

body {
    font-family: "brother-1816", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: #000000;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "utile", "brother-1816", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Login & Register Forms */
.login-container,
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.login-form-wrapper,
.register-form-wrapper {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form-wrapper h1,
.register-form-wrapper h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #005a87;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1rem;
}

.register-link a,
.login-link a {
    color: #0073aa;
    text-decoration: none;
}

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

/* Navigation principale */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 32px;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

/* Masquer la navbar sur les pages de connexion, d'inscription et de questionnaire */
body.page-template-template-login .site-header,
body.page-template-template-register .site-header,
body.page-template-template-questionnaire .site-header,
.page-template-template-login .site-header,
.page-template-template-register .site-header,
.page-template-template-questionnaire .site-header,
.site-header.page-template-template-login,
.site-header.page-template-template-register,
.site-header.page-template-template-questionnaire {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Header sur page d'accueil avec hero */
body.home .site-header {
    background: transparent;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #f8fafc;
    text-decoration: none;
    background: transparent;
    border-radius: 4px;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brand-logo {
    width: 28px;
    height: 28px;
    display: block;
}

.nav-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #e9eef4;
}

.nav-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.nav-search svg {
    width: 16px;
    height: 16px;
}

.nav-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e9eef4;
    font-size: 14px;
}

.nav-search input::placeholder {
    color: #cdd3dc;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.nav-links a {
    color: #e9eef4;
    text-decoration: none;
    font-weight: 400;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-links .nav-account {
    padding: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.nav-links .nav-account svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

#main-content {
    padding-top: 96px;
    background: #000000;
    min-height: 100vh;
}

/* Pas de padding-top sur la page d'accueil car le hero commence en haut */
body.home #main-content,
body.template-accueil #main-content,
body.page-template-template-login #main-content,
body.page-template-template-register #main-content {
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 960px) {
    .navbar {
        flex-wrap: wrap;
        gap: 14px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-end;
    }
}

/* === Footer === */
.site-footer {
    background: #080808;
    color: #e5e5e5;
    padding: 60px 0 50px;
    font-family: "utile", "brother-1816", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-footer .container {
    max-width: 1200px;
}

.footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent; /* SVG already a sa couleur */
}
.footer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.footer-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.footer-description {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #cfcfcf;
}

.footer-links h3,
.footer-newsletter-block h3 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.footer-links ul {
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

.footer-newsletter .form-control {
    background: #d9d9d9;
    border: none;
    border-radius: 12.75px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111;
}

.footer-newsletter .form-control::placeholder {
    color: #6b6b6b;
}

.footer-newsletter .form-control:focus {
    background: #d9d9d9;
    border-color: transparent;
    box-shadow: none;
}

.footer-newsletter .btn {
    background: #f36818;
    color: #fff;
    border: none;
    border-radius: 24.34px;
    padding: 12px;
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-newsletter .btn:hover {
    background: #d55812;
    color: #fff;
    transform: translateY(-1px);
}

.footer-consent {
    font-size: 16px;
    font-weight: 400;
    color: #bfbfbf;
    line-height: 1.4;
}

.footer-consent .form-check-input {
    margin-top: 2px;
}

.footer-consent .form-check-label {
    padding-top: 2px;
}

@media (max-width: 720px) {
    .site-footer {
        padding: 50px 0 40px;
    }
}

/* Front Page User Status */
.front-page-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.front-page-content h1 {
    margin-bottom: 2rem;
}

.user-status {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.user-status.logged-in {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.user-status.logged-out {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.user-status p {
    margin-bottom: 1rem;
}

.user-status p:last-of-type {
    margin-bottom: 1.5rem;
}

.auth-links {
    display: flex;
    gap: 1rem;
}

.logout-btn,
.login-btn,
.register-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.logout-btn:hover,
.login-btn:hover,
.register-btn:hover {
    background: #005a87;
}
