/* ========================================
   SYNDICAT CONVERGENCE - CSS Principal
   Police Municipale Paris
   ======================================== */

/* Variables CSS - Mode Clair */
:root {
    color-scheme: light dark;
    --color-primary: #1B75B3;
    --color-primary-dark: #085696;
    --color-primary-light: #4A9ED4;
    --color-secondary: #0A4A7A;
    --color-accent: #00699E;
    --color-light: #e8f4fc;
    --color-white: #ffffff;
    --color-text: #2C3E50;
    --color-text-light: #5A6C7D;
    --color-border: #c5dbe8;
    --color-bg: #ffffff;
    --color-bg-alt: #f0f7fc;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* Variables CSS - Mode Sombre */
[data-theme="dark"] {
    --color-primary: #4A9ED4;
    --color-primary-dark: #1B75B3;
    --color-primary-light: #6BB8E8;
    --color-secondary: #0A3A5C;
    --color-accent: #4A9ED4;
    --color-light: #0f2638;
    --color-white: #091520;
    --color-text: #E8F1F8;
    --color-text-light: #9BB5C9;
    --color-border: #1E4A6A;
    --color-bg: #091520;
    --color-bg-alt: #0f2638;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: linear-gradient(135deg, #0A3A5C 0%, #062840 100%);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 92px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #4A9ED4;
}

.btn-adhesion {
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-adhesion::after {
    display: none !important;
}

.btn-adhesion:hover {
    background: var(--color-primary-light);
    color: #062840 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Recherche */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-container {
    background: var(--color-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
}

.search-container input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: var(--color-bg);
    color: var(--color-text);
}

.search-container input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--color-bg-alt);
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(160deg, var(--color-secondary) 0%, #041c2c 100%);
    color: #ffffff;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(74,158,212,0.12) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 span {
    background: linear-gradient(90deg, #ffffff 0%, #a8d4f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--color-accent);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Bouton outline blanc pour sections sombres */
.hero .btn-outline,
.gallery .btn-outline,
.cta .btn-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .btn-outline:hover,
.gallery .btn-outline:hover,
.cta .btn-outline:hover {
    background: #ffffff;
    color: var(--color-secondary);
}

/* ========================================
   SECTIONS GÉNÉRALES
   ======================================== */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PRÉSENTATION / À PROPOS
   ======================================== */
.about {
    background: var(--color-bg-alt);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(27,117,179,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-content h3 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.leaders {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.leader {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leader-info strong {
    display: block;
    color: var(--color-text);
}

.leader-info span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ========================================
   SERVICES / AVANTAGES
   ======================================== */
.services {
    background: var(--color-bg);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(27,117,179,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 30%, rgba(0,105,158,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: stretch;
}

.services-grid .service-card {
    width: 100%;
    max-width: 280px;
    flex: 0 1 280px;
}

.service-card {
    background: var(--color-bg);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.service-card h3 {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    width: 100%;
}

/* ========================================
   GALERIE PHOTOS
   ======================================== */
.gallery {
    background: linear-gradient(160deg, var(--color-secondary) 0%, #041c2c 100%);
    color: #ffffff;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(74,158,212,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.gallery .section-title h2 {
    color: #ffffff;
}

.gallery .section-title p {
    color: rgba(255,255,255,0.7);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   CATÉGORIES PROFESSIONNELLES
   ======================================== */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
}

.category-card {
    background: var(--color-bg);
    padding: 20px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    flex: 0 1 180px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.category-card h4 {
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    width: 100%;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #062840 100%);
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta > .container > p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}

.adhesion-price {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 20px 35px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.adhesion-price .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.adhesion-price .period {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.adhesion-price .credit {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
}

.cta-subtext {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    font-style: italic;
}

/* ========================================
   FORMULAIRES
   ======================================== */
.form-section {
    background: var(--color-bg-alt);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.form-group .required {
    color: #e74c3c;
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--color-primary);
}

.password-toggle svg {
    pointer-events: none;
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    display: grid;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.contact-info-item h4 {
    color: var(--color-text);
    margin-bottom: 5px;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--color-text-light);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(180deg, #062840 0%, #041a2a 100%);
    color: #ffffff;
    padding: 50px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 10% 20%, rgba(74,158,212,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-brand .logo-text span {
    color: rgba(255,255,255,0.6);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-column ul {
    display: grid;
    gap: 10px;
}

.footer-column a,
.footer-column li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-accent);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* ========================================
   PAGES SPÉCIFIQUES
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #062840 100%);
    color: #ffffff;
    padding: 130px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Content pages */
.content-section {
    padding: 50px 0;
    background: var(--color-bg);
}

.content-section h2 {
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 18px;
}

.content-section h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 25px 0 12px;
}

.content-section p {
    margin-bottom: 15px;
    color: var(--color-text);
}

.content-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-section ol {
    margin: 15px 0;
    padding-left: 35px;
    list-style-position: outside;
}

.content-section ol li {
    margin-bottom: 10px;
    padding-left: 5px;
    color: var(--color-text);
}

/* Boutons côte à côte responsive */
.btn-group-center {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .btn-group-center {
        flex-direction: column;
        align-items: center;
    }

    .btn-group-center .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 280px;
    }
}

.content-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
    color: var(--color-text);
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Section Dirigeants */
.dirigeants-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    position: relative;
}

.dirigeants-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(27,117,179,0.08) 0%, transparent 60%);
    pointer-events: none;
    border-radius: var(--border-radius);
}

.dirigeants-section img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.dirigeants-section p {
    font-size: 1.15rem;
    color: var(--color-text);
    max-width: 400px;
    margin: 0;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 900px) {
    .dirigeants-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .dirigeants-section img {
        max-width: 400px;
    }

    .dirigeants-section p {
        text-align: center;
        font-size: 1rem;
    }
}

/* Accordion for documents */
.accordion {
    display: grid;
    gap: 10px;
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-bg);
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg);
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--color-bg-alt);
}

.accordion-header svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text-light);
    transition: var(--transition);
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 15px 20px 20px;
    background: var(--color-bg);
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Documents list */
.documents-list {
    display: grid;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-alt);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    color: var(--color-text);
}

.document-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.document-icon {
    width: 40px;
    height: 40px;
    background: var(--color-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.document-info {
    flex: 1;
}

.document-info h4 {
    color: var(--color-text);
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.document-info span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-box {
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 10px;
    color: var(--color-text);
}

.login-box p {
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.login-error {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: none;
}

.login-help {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.login-help p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.login-help a {
    color: var(--color-primary);
    font-weight: 500;
}

/* Séparateur "ou" pour login */
.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.login-separator span {
    padding: 0 15px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bouton Google SSO */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-google:hover {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-google svg {
    flex-shrink: 0;
}

/* Dark mode ajustements Google button */
[data-theme="dark"] .btn-google {
    background: var(--color-bg);
    border-color: var(--color-border);
}

[data-theme="dark"] .btn-google:hover {
    background: var(--color-white);
}

/* Espace adherent */
.adherent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.adherent-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
}

.adherent-card:hover {
    box-shadow: var(--shadow-md);
}

.adherent-card h3 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adherent-card h3 svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

.adherent-card ul {
    margin: 0;
    padding: 0;
}

.adherent-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.adherent-card li:last-child {
    border-bottom: none;
}

.adherent-card a {
    color: var(--color-text);
    font-size: 0.9rem;
}

.adherent-card a:hover {
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1100px) {
    .services-grid {
        gap: 20px;
    }

    .services-grid .service-card {
        flex: 0 1 260px;
        max-width: 260px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        flex: 0 1 160px;
        max-width: 180px;
    }

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

@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        gap: 15px;
    }

    .services-grid .service-card {
        flex: 0 1 240px;
        max-width: 280px;
        padding: 20px 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-card {
        flex: 0 1 140px;
        max-width: 160px;
        padding: 15px 10px;
    }

    .category-card h4 {
        font-size: 0.95rem;
    }

    .category-card p {
        font-size: 0.75rem;
    }

    .gallery-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .gallery-grid .gallery-item {
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand h4 {
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Header mobile - logo plus petit */
    .logo img {
        height: 63px;
        max-width: 280px;
    }

    .leaders {
        flex-direction: column;
        gap: 15px;
    }

    .form-container {
        padding: 25px;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .adhesion-price .price {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 110px 0 40px;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 12px 24px;
    }

    .services-grid {
        gap: 12px;
    }

    .services-grid .service-card {
        flex: 1 1 100%;
        max-width: 300px;
    }

    .categories-grid {
        gap: 8px;
    }

    .category-card {
        flex: 0 1 calc(50% - 4px);
        max-width: none;
        min-width: 0;
    }

    .gallery-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .gallery-grid .gallery-item {
        flex: 0 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    .adhesion-price {
        padding: 15px 20px;
    }

    .adhesion-price .price {
        font-size: 1.6rem;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.bg-light {
    background: var(--color-bg-alt);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HEADER - Binôme Connexion + Adhérer
   ======================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-actions .btn-connexion {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-actions .btn-connexion:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-actions .btn-connexion::after {
    display: none;
}

/* ========================================
   ADHESION PAGE - Benefits Dark Mode Fix
   ======================================== */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.benefit-item .check {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-item .check svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.benefit-item h4 {
    color: var(--color-text);
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ========================================
   FEATURED IMAGE SECTION
   ======================================== */
.featured-image-section {
    background: var(--color-bg-alt);
    padding: 50px 0;
    position: relative;
}

.featured-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(27,117,179,0.07) 0%, transparent 50%);
    pointer-events: none;
}

.featured-image-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.featured-image-container img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.featured-image-caption {
    margin-top: 20px;
    color: var(--color-text-light);
    font-style: italic;
}

@media (max-width: 768px) {
    .nav-actions {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-actions .btn-connexion,
    .nav-actions .btn-adhesion {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   COOKIE CONSENT BANNER - RGPD
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.cookie-btn-refuse {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.cookie-btn-refuse:hover {
    background: var(--color-bg-alt);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 16px;
}

.cookie-btn-settings:hover {
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    line-height: 1;
}

.cookie-modal-close:hover {
    color: var(--color-text);
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-option {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-header h4 {
    margin: 0;
    font-size: 1rem;
}

.cookie-option p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--color-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}
