/* ============================================
   VARIABLES ET COULEURS ROYALISTES
   ============================================ */
:root {
    --primary-blue: #1E3A8A;
    --primary-gold: #D4AF37;
    --secondary-blue: #3B5998;
    --light-blue: #EFF6FF;
    --dark-blue: #0F172A;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET ET STYLES GLOBAUX
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.fleur-de-lis-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.logo-text {
    color: var(--white);
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Mobile */
.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
}

.nav-menu-mobile.active {
    display: flex;
}

.nav-menu-mobile li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu-mobile a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu-mobile a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-gold);
}

/* Ajustement du padding du body pour la navbar fixe */
body.navbar-fixed {
    padding-top: 60px;
}

/* ============================================
   SECTION HÉROS
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 4rem 2rem;
    border-bottom: 3px solid var(--primary-gold);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    text-align: center;
}

.portrait {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-gold);
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   CONTENEUR ET SECTIONS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   SECTION HISTOIRE
   ============================================ */
.histoire {
    padding: 4rem 2rem;
    background: var(--white);
}

.histoire-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.histoire-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.histoire-decorative {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fleur-de-lis-large {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fleur-de-lis-large svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
}

/* ============================================
   SECTION VALEURS
   ============================================ */
.valeurs {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.valeur-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-gold);
    transition: all 0.3s ease;
    text-align: center;
}

.valeur-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-blue);
}

.valeur-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.valeur-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.valeur-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.apports-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.apports-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.apports-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.apport-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    border-radius: 8px;
    border-top: 3px solid var(--primary-gold);
}

.apport-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.apport-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* ============================================
   SECTION DOLÉANCES
   ============================================ */
.doleances {
    padding: 4rem 2rem;
    background: var(--white);
}

.doleance-form {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 3rem;
    border: 2px solid var(--primary-gold);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.char-count {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.captcha-container {
    background: var(--white);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--light-blue);
    border-radius: 5px;
    text-align: center;
}

.captcha-group input[type="number"] {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.form-message.error {
    display: block;
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.doleances-list {
    margin-top: 3rem;
}

.doleances-list h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.doleances-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.doleance-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.doleance-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.doleance-author {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.doleance-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.doleance-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* ============================================
   SECTION MENTIONS LÉGALES
   ============================================ */
.mentions {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.mentions-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.mentions-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.mentions-section:last-child {
    border-bottom: none;
}

.mentions-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mentions-section p {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.mentions-section ul {
    margin-left: 1.5rem;
    color: var(--text-dark);
}

.mentions-section li {
    margin-bottom: 0.5rem;
}

.mentions-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--primary-gold);
}

.mentions-section a:hover {
    color: var(--primary-gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-logo {
        font-size: 0.95rem;
    }

    .logo-text {
        display: none;
    }

    .fleur-de-lis-logo {
        width: 28px;
        height: 28px;
    }
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .histoire-content {
        grid-template-columns: 1fr;
    }

    .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .apports-list {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .valeur-card {
        padding: 1.5rem;
    }

    .doleance-form {
        padding: 1.5rem;
    }

    .nav-menu-mobile {
        top: 60px;
    }
}

