/* ================================
   CSS POUR CONSERVATOIRE DE MUSIQUE
   Fichier: public/css/style.css
   Version optimisée avec variables CSS
   ================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs principale */
    --primary: #7689b4;
    --secondary: #f5a14a;
    --accent: #f1aba9;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray: #4a5568;
    --white: #ffffff;
    --burgundy: #8b1538;
    --gold: #d4af37;
    --titre: #f2744e;
    --surligne_titre: #f5a14a;
    
    /* Couleurs additionnelles */
    --blue: #007bff;
    --blue-dark: #0056b3;
    --green: #28a745;
    --green-dark: #218838;
    --yellow: #ffc107;
    --yellow-dark: #856404;
    --cyan: #17a2b8;
    
    /* Couleurs de fond et bordures */
    --bg-light: #f8f9fa;
    --fond: #c9ceb2;
    --interieure-fenetre: #faf4e5;
    
    /* Couleurs de texte */
    --text-dark: #000000;
    
    /* Couleurs de fond spéciales */
    --nav-bg: #faf4e5;
    --nav-hover: #c9ceb2;
    --footer-bg: #2c3e50;
    
    
    /* Ombres */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 10px 20px rgba(0,0,0,0.15);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    
    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}

body {
    font-family: 'Avenir Next', Avenir, Helvetica, Arial, sans-serif;
    background: var(--fond);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.8;
}

/* titre */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial Rounded MT Bold', 'Arial Rounded MT', Arial, sans-serif;
    color: var(--titre) !important;
}
/* === NAVIGATION === */
nav {
    background-color: var(--nav-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    text-align: left;
    
}

/* Container centré */
.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 12.5%;
    
}

/* Header flex */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

/* Logo */
.logo {
    font-size: 500%;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Menu principal */
.nav-menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 100%;
     margin-bottom: 10px;
}


/* Chaque item */
.nav-menu li {
    position: relative;
}

/* Liens */
.nav-menu > li > a {
    display: block;
    padding: 20px 30px; /* padding équilibré */
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 200%;
}

/* Hover / actif */
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: var(--nav-hover);
    border-bottom-color: var(--surligne_titre);
    font-size: 220%;
}

/* === DROPDOWN === */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--nav-hover);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 0;
    border-radius: 6px;
    overflow: hidden;
}

/* Liens dropdown */
.dropdown-content a {
    color: var(--text-nav);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

/* Hover dropdown */
.dropdown-content a:hover {
    background-color: var(--nav-bg);
    padding-left: 25px;
}

/* Affichage dropdown */
.nav-menu li:hover .dropdown-content {
    display: block;
}


/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HERO SECTION === */
.hero {
    background: var(--interieure-fenetre);
    color: var(--text-dark);
    padding: 80px 20px;
    text-align: center;

    min-height: 350px; /* Hauteur identique sur toutes les pages */

    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center; /* Centre horizontalement */
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem; /* Plus propre que 200% */
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    color: var(--text-dark);
}


/* === MAIN === */
main {
    padding: 0 0;
}

/* === CARDS === */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border-left: 4px solid var(--primary);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--gold);
}

.card h2 {
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.card h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 500;
}

.card p {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.card code {
    background: var(--border-light);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9rem;
}

/* === META === */
.meta {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta::before {
    content: '📅';
    font-style: normal;
}

/* === GRID === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* === BOUTONS === */
.button,
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.button, .btn-primary, .btn {
    background: var(--text-dark) !important;
    color: var(--white);
}

.button:hover,
.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-secondary:hover ,.btn:hover, boutton:hover {
    background: var(--primary);
    color: var(--primary);
}
.btn:hover {
    background: var(--primary);
    color: var(--primary);
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
}

.btn-back:hover {
    background: var(--border-light);
    transform: translateX(-5px);
}

.btn-deposit {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.btn-deposit:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-contact {
    width: 100%;
    padding: 12px;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 15px;
}

.btn-small {
    display: inline-block;
    padding: 8px 15px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    margin-top: 10px;
    transition: background var(--transition-base);
}

.btn-small:hover {
    background: var(--blue-dark);
}

/* === FOOTER === */
footer {
    background-color: var(--interieure-fenetre);
    color: var(--text-nav);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--blue);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-nav);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--nav-hover);
    color: #95a5a6;
}

/* === CALENDRIER === */
.calendar-section {
    margin-top: 60px;
    padding: 50px 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold);
}

.calendar-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 2px;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.calendar-controls button {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-base);
    letter-spacing: 0.5px;
}

.calendar-controls button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.calendar-month {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.calendar-grid {
    background: var(--light);
    border-radius: 6px;
    padding: 25px;
    border: 1px solid var(--border-light);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    padding: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.calendar-day:hover {
    background: var(--light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.15);
}

.calendar-day.other-month {
    color: #cbd5e0;
    background: transparent;
    border-color: transparent;
}

.calendar-day.today {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-color: var(--primary);
}

.calendar-day.has-event::after {
    content: '♪';
    position: absolute;
    bottom: 3px;
    font-size: 12px;
    color: var(--gold);
}

.calendar-day.today.has-event::after {
    color: var(--white);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding: 20px;
    background: var(--light);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.legend-dot.today {
    background: var(--primary);
    border-color: var(--primary);
}

.legend-dot.event {
    background: var(--gold);
    border-color: var(--gold);
}

/* === FORMULAIRES === */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition-base);
    font-family: 'Calibri', 'Arial', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.contact-form input[type="checkbox"] {
    margin-right: 10px;
}

/* === ARTICLES & CONTENT === */
.intro-section {
    background: var(--interieure-fenetre);
    padding: 30px;
    margin: 30px 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
}

.article-content {
    padding: 25px;
}

.article-date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.article-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.read-more:hover {
    color: var(--blue-dark);
}

/* === CATEGORIES === */
.categories-section {
    margin: 50px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-bubble {
    position: relative;
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 3px solid transparent;
}

.category-bubble:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.category-bubble:hover:before {
    opacity: 1;
}

.category-bubble:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-bubble > * {
    position: relative;
    z-index: 1;
}

.vente-bubble {
    border-color: var(--green);
}

.vente-bubble:hover {
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
}

.recherche-bubble {
    border-color: var(--blue);
}

.recherche-bubble:hover {
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
}

.covoiturage-bubble {
    border-color: var(--yellow);
}

.covoiturage-bubble:hover {
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
}

.bubble-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-bubble h3 {
    font-size: 1.8em;
    margin: 15px 0 10px 0;
    color: var(--text-muted);
}

.category-bubble p {
    color: var(--text-dark);
    font-size: 1em;
    margin-bottom: 20px;
}

.bubble-stats {
    margin: 20px 0;
}

.stat-badge {
    display: inline-block;
    background: var(--bg-light);
    color: #495057;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.9em;
    font-weight: 600;
}

.vente-bubble .stat-badge {
    background: #d4edda;
    color: #155724;
}

.recherche-bubble .stat-badge {
    background: #d1ecf1;
    color: #0c5460;
}

.covoiturage-bubble .stat-badge {
    background: #fff3cd;
    color: var(--yellow-dark);
}

.bubble-arrow {
    font-size: 2em;
    color: var(--text-lighter);
    margin-top: 15px;
    transition: transform var(--transition-base);
}

.category-bubble:hover .bubble-arrow {
    transform: translateX(10px);
    color: var(--text-muted);
}

/* === ANNONCES === */
.annonces-section {
    margin: 40px 0;
}

.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.annonce-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all var(--transition-base);
}

.annonce-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.recherche-card {
    border-left: 4px solid var(--blue);
}

.annonce-image {
    padding: 40px;
    text-align: center;
    font-size: 5em;
}

.recherche-image {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.annonce-content {
    padding: 20px;
}

.annonce-content h3 {
    color: var(--text-muted);
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.annonce-price {
    color: var(--green);
    font-size: 1.8em;
    font-weight: bold;
    margin: 10px 0;
}

.annonce-budget {
    color: var(--blue);
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.annonce-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 15px 0;
    font-size: 0.95em;
}

.annonce-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.9em;
    color: var(--text-lighter);
}

.annonce-date, .annonce-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recherche-btn {
    background: var(--blue);
}

.recherche-btn:hover {
    background: var(--blue-dark);
    transform: scale(1.02);
}

/* === INFO BOXES === */
.info-box {
    background: var(--bg-light);
    padding: 40px;
    margin: 50px 0;
    border-radius: var(--radius-lg);
}

.info-box.highlight-box {
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
}

.info-box.highlight-box .price {
    font-size: 2.5em;
    margin: 20px 0;
}

.info-box a {
    color: var(--blue);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--blue);
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

.info-card p {
    color: var(--text-dark);
    font-size: 0.95em;
    line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 50px;
    margin: 50px 0;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-section.info-box {
    background: var(--blue);
}

.cta-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-item {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.contact-item h3 {
    color: var(--blue);
    margin-top: 0;
}

.contact-item a {
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}

.small-text {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 5px;
}

.specific-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    border-top: 4px solid var(--blue);
}

.contact-card h3 {
    color: var(--blue);
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.social-btn {
    padding: 10px 20px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base);
}

.social-btn:hover {
    background: var(--blue-dark);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

/* === DOCUMENTS === */
.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.doc-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.doc-card h3 {
    color: var(--blue);
    margin: 10px 0;
}

.doc-date {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 10px;
}

.next-ag {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.next-ag strong {
    color: var(--white);
}

.ag-archives {
    margin-top: 30px;
}

.archive-item {
    background: var(--bg-light);
    padding: 20px;
    margin: 15px 0;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--blue);
}

.archive-item h4 {
    margin-top: 0;
    color: var(--blue);
}

.archive-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.archive-links a {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9em;
}

.archive-links a:hover {
    text-decoration: underline;
}

.cr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cr-table th {
    background: var(--blue);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

.cr-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-gray);
}

.cr-table tr:hover {
    background: var(--bg-light);
}

.cr-table a {
    color: var(--blue);
    text-decoration: none;
}

/* === FINANCE & STATS === */
.finance-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.finance-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border-top: 4px solid var(--green);
}

.finance-card h3 {
    color: var(--green);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* === ADMIN === */
.admin-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.tool-card h3 {
    color: var(--blue);
    margin-top: 0;
}

.tool-card ul {
    list-style: none;
    padding-left: 0;
}

.tool-card ul li {
    margin: 8px 0;
}

.tool-card ul li a {
    color: var(--blue);
    text-decoration: none;
}

.tool-card ul li a:hover {
    text-decoration: underline;
}

.insurance-info {
    background: var(--bg-light);
    padding: 20px;
    margin: 15px 0;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--yellow);
}

.insurance-info h3 {
    color: var(--yellow);
    margin-top: 0;
}

.contacts-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-admin-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--cyan);
}

.contact-admin-card h3 {
    color: var(--cyan);
    margin-top: 0;
}

/* === ADVANTAGES === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.advantage-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--blue);
}

.advantage-item h3 {
    margin-top: 0;
    color: var(--blue);
}

/* === RESOURCES === */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.resource-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.resource-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.resource-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* === CONTENT BOX === */
.content-box {
    background: var(--interieure-fenetre);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.content-box h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 28px;
}

.content-box h3 {
    color: var(--text-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 22px;
}

.content-box p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-box ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.section-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--surligne_titre);
    display: inline-block;
}

/* === SIDEBAR NAVIGATION === */
.container.with-sidebar {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

.sidebar-nav {
    width: 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #667eea;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: var(--gradient-hero);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: var(--gradient-hero);
    color: var(--white);
    font-weight: 600;
    
}

.sidebar-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sidebar-text {
    font-weight: 500;
    color: var(--text-dark);
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* === BOUTON RETOUR EN HAUT === */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all var(--transition-base);
    z-index: 1000;
}

#backToTop:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* === UTILITAIRES === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 220px;
        padding: 1.25rem;
    }
    
    .sidebar-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
        color: var(--text-dark);
    }

    .grid,
    .articles-grid,
    .categories-grid,
    .annonces-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        padding: 1.8rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .calendar-header h2 {
        font-size: 1.5rem;
    }

    .calendar-month {
        font-size: 1.2rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .calendar-weekday {
        font-size: 0.85rem;
        padding: 8px 5px;
    }

    .calendar-legend {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .calendar-controls {
        flex-direction: column;
        gap: 15px;
    }

    .category-bubble {
        padding: 30px 20px;
    }

    .bubble-icon {
        font-size: 3em;
    }

    .category-bubble h3 {
        font-size: 1.5em;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-content h2 {
        font-size: 1.5em;
    }

    .cta-content p {
        color: var(--text-dark);
        font-size: 1em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .annonce-image {
        font-size: 4em;
        padding: 30px;
    }

    .container.with-sidebar {
        flex-direction: column;
    }
    
    .sidebar-nav {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .sidebar-link {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .calendar-container {
        padding: 0 10px;
    }

    .calendar-grid {
        padding: 15px;
    }

    .calendar-days {
        gap: 5px;
    }

    .calendar-weekdays {
        gap: 5px;
    }
    
    .calendar-section {
        padding: 30px 0;
    }

    .sidebar-menu {
        grid-template-columns: 1fr;
    }
}
/* Container global */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Navbar admin */
.admin-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e2f;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.welcome {
    font-size: 16px;
}

/* Boutons */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-logout {
    background: #ff9800;
    color: white;
}

.btn-danger {
    background: #e53935;
    color: white;
}

/* Panel */
.admin-panel {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.admin-panel h2 {
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

/* 
Tableau de l'admin - simple, épuré, avec des badges pour les catégories et une description limitée en largeur
*/
.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f5f6fa;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

/* Description */
.description-cell {
    white-space: normal;        /* autorise les retours à la ligne */
    word-break: break-word;     /* évite que ça déborde */
    max-width: 400px;           /* largeur maîtrisée */
    line-height: 1.5;
}


/* Badges catégorie */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge.vente {
    background: #4caf50;
}

.badge.recherche {
    background: #2196f3;
}

.badge.covoiturage {
    background: #9c27b0;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-nav {
    position: sticky;
    top: 100px; /* ajuste selon la hauteur de ton header */
    width: 260px;
    height: fit-content;
    background: var(--interieure-fenetre);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-left: -25%;

}

/* Titre */
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
}


/* Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}

/* Lien */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: auto auto;
    border-radius: 8px;
    text-decoration: none;
    color:white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
}

/* Icône */
.sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Hover */
.sidebar-link:hover {
    background: #f0f6ff;
    color: #2c3e50;
    transform: translateX(4px);
}

/* Lien actif (scroll) */
.sidebar-link.active {
    background: white;
    color: #2c3e50;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.35);
}

/* Icône active */
.sidebar-link.active .sidebar-icon {
    filter: brightness(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .sidebar-nav {
        position: relative;
        width: 100%;
        margin-bottom: 30px;
        top: 0;
        margin-left: 0;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-link {
        flex: 1 1 45%;
        justify-content: center;
    }
}
p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}