@font-face {
    font-family: 'marianne';
    src        : url('../webfonts/Marianne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style : normal;
}

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

body {
    font-family     : system-ui, -apple-system, sans-serif;
    background-color: #edf5fd;
    line-height     : 1.6;
    color           : #333;
}

:root {
    --primary-color: #3b82f6;
    --accent-color : #8b5cf6;
    --gray-600     : #4b5563;
    --gray-800     : #1f2937;
    --news-color   : #f59e0b;
    /* Couleur orange pour les news */
    --purple-500   : #8b5cf6;
    /* Violet */
    --white        : #ffffff;
    --gray-50      : #f9fafb;
    --gray-500     : #6b7280;

}

a {
    color: yellow;
}

/* Header principal */
header {
    background-color: rgb(255, 255, 255);
    box-shadow      : 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1280px;
    margin   : 0 auto;
    padding  : 0 16px;
    flex     : 1;
}

.header-content {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    position       : relative;
    min-height: 72px;
}

.header-content h1 {
    font-family: 'marianne';
    font-size  : 5rem;
}

/* Logo et titre */
.logo-section {
   flex: 0 0 auto;
}

#mainnav {
    position: absolute;
    left: 50%;
transform: translateX(-50%);
}

/* .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.site-title {
    font-size  : 1.5rem;
    font-weight: bold;
    color      : var(--gray-800);
}

/* Navigation */
.main-navigation {
    display: none;
    gap    : 40px;
}

#mainnav a,
#mainnav li a {
    color          : var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight    : 500;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    transition      : color 0.2s ease;
    border-bottom: 2px solid transparent;
}

#mainnav a:hover,
#mainnav li a:hover {
    color: var(--primary-color);
    border-bottom: transparent;
}

#mainnav a.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
}

#mainnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mainnav li {
    display: inline-block;
    padding: 0 10px;
}

/* #mainnav {
    position      : fixed;
    left          : 0;
    top           : 0;
    width         : 100%;
    height        : 100%;
    background    : rgba(255, 255, 255, .9);
    z-index       : 1000;
    text-align    : center;
    display       : none;
    opacity       : 0;
    transition    : opacity 1s ease;
    text-transform: uppercase;
    font-weight   : bold;
} */

#nav-toggle {
    display: none;
}

.d-md-none {
    display: none !important;
}

#nav,
#openmenu,
#mainnav-secondary {
    display: none !important;
}

.mobile-menu-button,
.closemenu {
    display: none;
    background: none;
    border: none;
    color: var(--gray-800);
    cursor: pointer;
    font-size: 1.5rem;
}

#mainnav {
    display: flex;
    align-items: center;
    gap: 10px;
}



@media (max-width: 767px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.65rem;
        padding: 0.5rem;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 40;
        background: rgba(255,255,255,0.9);
        border-radius: 0.75rem;
    }

    .mobile-menu-icon {
        display: inline-block;
        font-size: 1.4rem;
        line-height: 1;
    }

    #mainnav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        z-index: 30;
    }

    #mainnav ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #mainnav li {
        display: block;
        padding: 0;
        list-style: none;
    }

    .closemenu {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 1rem;
    }

    #nav-toggle:checked ~ #mainnav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    #mainnav li a {
        padding: 10px 16px;
        display: block;
        font-weight: 600;
        font-size: 1rem;
        color: var(--gray-800);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    #nav,
    #openmenu,
    #mainnav-secondary {
        display: none !important;
    }
}

.nav-link {
    color          : var(--gray-600);
    padding-left   : 20px;
    text-decoration: none;
    transition     : color 0.2s ease;
}

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

/* Menu mobile */
.mobile-menu-button {
    display   : block;
    background: none;
    border    : none;
    color     : var(--gray-600);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* Variables CSS pour les couleurs des cycles */
:root {
    --cycle1-color: #ef4444;
    /* Rouge */
    --cycle2-color: #3b82f6;
    /* Bleu */
    --cycle3-color: #10b981;
    /* Vert */
}

/* Container principal */
.container {
    max-width: 1280px;
    margin   : 0 auto;
    padding  : 0 16px;
}

/* === MAIN CONTENT === */
.main-content {
    padding: 32px 0;
}

/* En-tête */
.header-section {
    text-align   : center;
    margin-bottom: 48px;
}

.main-title {
    font-size    : 1.875rem;
    font-weight  : bold;
    color        : #1f2937;
    margin-bottom: 16px;
}

.main-description {
    color    : #4b5563;
    max-width: 512px;
    margin   : 0 auto;
}

.news-header {
    background             : linear-gradient(to right, var(--news-color), var(--purple-500));
    padding                : 12px 24px;
    border-top-left-radius : 8px;
    border-top-right-radius: 8px;
}

.news-content {
    border-bottom-left-radius : 8px;
    border-bottom-right-radius: 8px;
    background                : white;
}

.news-title {
    color      : white;
    font-weight: bold;
    display    : flex;
    align-items: center;
}

.news-date {
    font-size  : 0.75rem;
    line-height: 1rem;
    color      : rgb(107 114 128);
}

/* Grille responsive */
.news-grid {
    display              : grid;
    grid-template-columns: 1fr;
    gap                  : 16px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Items avec effet hover */
.news-item {
    background-color: white;
    border-radius   : 8px;
    padding         : 16px;
    border-left     : 4px solid var(--news-color);
    transition      : all 0.3s ease;
    margin          : 16px;
}

.news-item img {
    width        : 100%;
    border-radius: 8px;
    margin-top   : 12px;
}

.news-item-title {
    padding: 5px 0;
}

.news-button {
    margin-top: 15px;
}

.news-section {
    border-radius : 16px;
    padding-bottom: 20px;
}

.news-item:hover {
    transform : translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tags et métadonnées */
.news-tag {
    background-color: rgba(245, 158, 11, 0.2);
    color           : var(--news-color);
    padding         : 4px 8px;
    border-radius   : 4px;
    font-size       : 0.75rem;
}

/* Boutons d'action */
.news-button {
    background: none;
    border    : none;
    color     : var(--news-color);
    cursor    : pointer;
    transition: color 0.2s ease;
}

.news-button:hover {
    color: rgba(245, 158, 11, 0.8);
}

/* Grille des cycles */
.cycles-grid {
    display              : grid;
    grid-template-columns: 1fr;
    gap                  : 24px;
}

.cycles-grid a {
    word-break: break-all;
    color     : var(--cycle2-color);
}

@media (min-width: 768px) {
    .cycles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Colonnes de cycle */
.cycle-column {
    border-radius: 8px;
    padding      : 16px;
}

.cycle-column img {
    width        : 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cycle1-bg {
    background-color: rgba(239, 68, 68, 0.1);
}

.cycle2-bg {
    background-color: rgba(59, 130, 246, 0.1);
}

.cycle3-bg {
    background-color: rgba(16, 185, 129, 0.1);
}

/* En-têtes des cycles */
.cycle-header {
    color        : white;
    border-radius: 8px;
    padding      : 16px;
    margin-bottom: 16px;
    text-align   : center;
}

.cycle1-header {
    background-color: var(--cycle1-color);
}

.cycle2-header {
    background-color: var(--cycle2-color);
}

.cycle3-header {
    background-color: var(--cycle3-color);
}

.cycle-title {
    font-size    : 1.25rem;
    font-weight  : bold;
    margin-bottom: 4px;
}

.cycle-subtitle {
    font-size: 0.875rem;
    opacity  : 0.9;
}

/* Container des ressources */
.resources-container {
    display       : flex;
    flex-direction: column;
    gap           : 16px;
}

/* Cartes de ressources */
.note {
    background-color: white;
    border-radius   : 8px;
    padding         : 16px;
    box-shadow      : 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition      : all 0.3s ease;
}

.note:hover {
    transform : translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.note-header {
    display        : flex;
    align-items    : flex-start;
    justify-content: space-between;
    margin-bottom  : 12px;
}

.note-title {
    font-weight: 600;
    color      : #1f2937;
}

.note-tag {
    font-size    : 0.75rem;
    padding      : 4px 8px;
    border-radius: 4px;
}

.cycle1-tag {
    background-color: rgba(239, 68, 68, 0.2);
    color           : var(--cycle1-color);
}

.cycle2-tag {
    background-color: rgba(59, 130, 246, 0.2);
    color           : var(--cycle2-color);
}

.cycle3-tag {
    background-color: rgba(16, 185, 129, 0.2);
    color           : var(--cycle3-color);
}

.note-description {
    font-size    : 0.875rem;
    color        : #4b5563;
    margin-bottom: 12px;
}

.note-footer {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    font-size      : 0.75rem;
    color          : #6b7280;
}

.view-button {
    background: none;
    border    : none;
    cursor    : pointer;
    transition: color 0.2s ease;
}

.cycle1 .view-button {
    color: var(--cycle1-color);
}

.cycle1 .view-button:hover {
    color: rgba(239, 68, 68, 0.8);
}

.cycle2 .view-button {
    color: var(--cycle2-color);
}

.cycle2 .view-button:hover {
    color: rgba(59, 130, 246, 0.8);
}

.cycle3 .view-button {
    color: var(--cycle3-color);
}

.cycle3 .view-button:hover {
    color: rgba(16, 185, 129, 0.8);
}

/* Boutons d'ajout */
.add-button {
    width        : 100%;
    color        : white;
    padding      : 8px;
    border-radius: 8px;
    border       : none;
    cursor       : pointer;
    transition   : background-color 0.2s ease;
    font-size    : 0.875rem;
}

.cycle1-button {
    background-color: var(--cycle1-color);
}

.cycle1-button:hover {
    background-color: rgba(239, 68, 68, 0.9);
}

.cycle2-button {
    background-color: var(--cycle2-color);
}

.cycle2-button:hover {
    background-color: rgba(59, 130, 246, 0.9);
}

.cycle3-button {
    background-color: var(--cycle3-color);
}

.cycle3-button:hover {
    background-color: rgba(16, 185, 129, 0.9);
}

.add-icon {
    margin-right: 8px;
}

.principal {
    background   : white;
    margin-top   : 30px;
    border-radius: 10px;
    padding      : 20px;
    flex         : 1;
}

/* === FOOTER === */
.footer {
    background-color: #1f2937;
    color           : white;
    margin-top      : 64px;
}

.footer-content {
    padding: 32px 0;
}

.footer-grid {
    display              : grid;
    grid-template-columns: 1fr;
    gap                  : 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h4 {
    font-size    : 1.125rem;
    font-weight  : 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: #d1d5db;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color          : #d1d5db;
    text-decoration: none;
    transition     : color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display   : flex;
    gap       : 16px;
    margin-top: 16px;
}

.social-links a {
    color          : #d1d5db;
    text-decoration: none;
    transition     : color 0.2s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top : 1px solid #374151;
    margin-top : 32px;
    padding-top: 24px;
    text-align : center;
    color      : #d1d5db;
}

/* === CODE DEMO SECTION === */
.demo-section {
    background: #f1f5f9;
    border-top: 3px solid #3b82f6;
    margin-top: 40px;
    padding   : 40px 20px;
}

.demo-title {
    text-align   : center;
    font-size    : 1.5rem;
    color        : #1f2937;
    margin-bottom: 30px;
}

.code-showcase {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 30px;
    max-width            : 1400px;
    margin               : 0 auto;
}

@media (max-width: 1024px) {
    .code-showcase {
        grid-template-columns: 1fr;
    }
}

.code-panel {
    background   : #0f172a;
    border-radius: 12px;
    overflow     : hidden;
    box-shadow   : 0 10px 25px rgba(0, 0, 0, 0.2);
}

.code-panel-header {
    background   : #1e293b;
    color        : #60a5fa;
    padding      : 15px 20px;
    font-weight  : bold;
    border-bottom: 1px solid #334155;
}

.code-panel-content {
    color      : #e2e8f0;
    padding    : 20px;
    overflow-x : auto;
    font-family: 'Courier New', monospace;
    font-size  : 13px;
    line-height: 1.6;
    max-height : 500px;
    overflow-y : auto;
}

.top_logo_title img {
    width: 200px;
}

img {
    width: 150px;
}

/* ============================================
   PAGE À PROPOS — CRESTE 41
   À ajouter dans /site/assets/css/cs41.css
   ============================================ */

/* Titre principal */
.principal h2 {
    font-size    : 1.5rem;
    font-weight  : 700;
    margin-bottom: 2rem;
    line-height  : 1.35;
    color        : #1a1a2e;
}

/* Titres de section */
.principal h3 {
    font-size     : 0.72rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color         : #9ca3af;
    margin        : 2rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom : 1px solid #f0f0f0;
}

/* --- Bloc adresse --- */
.bloc-adresse {
    display      : inline-flex;
    align-items  : center;
    gap          : 10px;
    background   : #f0f4ff;
    border       : 1px solid #c7d2fe;
    border-radius: 10px;
    padding      : 0.7rem 1rem;
    font-size    : 0.9rem;
    margin-bottom: 0.5rem;
}

.bloc-adresse span {
    font-size: 20px;
}

.bloc-adresse strong {
    display: block;
    color  : #1a1a2e;
}

.bloc-adresse small {
    color: #6b7280;
}

/* --- Grille équipe --- */
.equipe-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap                  : 10px;
    margin-bottom        : 0.5rem;
}

.equipe-card {
    background   : #fff;
    border       : 1px solid #e5e7eb;
    border-radius: 12px;
    padding      : 1rem 0.75rem;
    text-align   : center;
}

/* Avatar initiales */
.equipe-avatar {
    width          : 44px;
    height         : 44px;
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-weight    : 700;
    font-size      : 13px;
    margin         : 0 auto 0.5rem;
    /* couleur par défaut */
    background     : #dbeafe;
    color          : #1d4ed8;
}

.equipe-avatar.bg-blue {
    background: #dbeafe;
    color     : #1d4ed8;
}

.equipe-avatar.bg-green {
    background: #dcfce7;
    color     : #15803d;
}

.equipe-avatar.bg-pink {
    background: #fce7f3;
    color     : #9d174d;
}

.equipe-avatar.bg-amber {
    background: #fef3c7;
    color     : #92400e;
}

.equipe-avatar.bg-teal {
    background: #ccfbf1;
    color     : #0f766e;
}

.equipe-card .nom {
    font-size  : 0.82rem;
    font-weight: 600;
    color      : #1a1a2e;
}

.equipe-card .role {
    font-size : 0.75rem;
    color     : #6b7280;
    margin-top: 2px;
}

/* Badge "Pilote" */
.badge-pilote {
    display      : inline-block;
    margin-top   : 5px;
    font-size    : 0.68rem;
    padding      : 2px 8px;
    border-radius: 20px;
    background   : #dbeafe;
    color        : #1d4ed8;
}

/* --- Liste des permanences --- */
.permanences-liste {
    border       : 1px solid #e5e7eb;
    border-radius: 12px;
    overflow     : hidden;
    background   : #fff;
    max-width    : 520px;
}

.permanence-item {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 0.6rem 1.1rem;
    font-size      : 0.875rem;
    border-bottom  : 1px solid #f3f4f6;
}

.permanence-item:last-child {
    border-bottom: none;
}

/* Dates passées : grisées */
.permanence-item.past {
    opacity: 0.4;
}

/* Prochaine permanence : surlignée */
.permanence-item.prochaine {
    background: #eff6ff;
}

.permanence-item.prochaine .date {
    color      : #1d4ed8;
    font-weight: 600;
}

.permanence-item .date {
    font-weight: 500;
    color      : #1a1a2e;
    display    : flex;
    align-items: center;
    gap        : 8px;
}

.permanence-item .heure {
    color    : #9ca3af;
    font-size: 0.8rem;
}

/* Badge "Prochaine" */
.badge-prochain {
    font-size    : 0.67rem;
    padding      : 1px 7px;
    border-radius: 20px;
    background   : #dbeafe;
    color        : #1d4ed8;
}

/* === Filtres === */
.filtres {
    margin-bottom : 1.5rem;
    display       : flex;
    flex-direction: column;
    gap           : 0.75rem;
}

.filtres-groupe {
    display    : flex;
    align-items: center;
    gap        : 8px;
    flex-wrap  : wrap;
}

.filtres-label {
    font-size     : 0.72rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color         : #9ca3af;
    min-width     : 50px;
}

.filtre-btn {
    font-size      : 0.8rem;
    padding        : 4px 12px;
    border-radius  : 20px;
    border         : 1px solid #e5e7eb;
    background     : #fff;
    color          : #374151;
    text-decoration: none;
    transition     : all 0.15s;
}

.filtre-btn:hover {
    border-color: #6366f1;
    color       : #6366f1;
}

.filtre-btn.actif {
    background  : #6366f1;
    border-color: #6366f1;
    color       : #fff;
}

/* === Compteur === */
.objets-compteur {
    font-size    : 0.85rem;
    color        : #9ca3af;
    margin-bottom: 1rem;
}

/* === Grille objets === */
.objets-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap                  : 16px;
}

.objet-card {
    background     : #fff;
    border         : 1px solid #e5e7eb;
    border-radius  : 12px;
    overflow       : hidden;
    text-decoration: none;
    color          : inherit;
    transition     : box-shadow 0.15s, transform 0.15s;
}

.objet-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform : translateY(-2px);
}

.objet-card-img {
    overflow  : hidden;
    background: #f9fafb;
}

.objet-card-img img {
    width     : 100%;
    height    : auto;
}

.objet-card-nophoto {
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 2.5rem;
}

.objet-card-body {
    padding: 0.75rem;
}

.objet-card-title {
    font-size    : 0.9rem;
    font-weight  : 600;
    color        : #1a1a2e;
    margin-bottom: 6px;
}

.objet-card-meta {
    display  : flex;
    gap      : 6px;
    flex-wrap: wrap;
}

/* === Tags === */
.tag-cycle {
    font-size    : 0.68rem;
    padding      : 2px 8px;
    border-radius: 20px;
    background   : #ede9fe;
    color        : #6d28d9;
    font-weight  : 600;
}

.tag-theme {
    font-size    : 0.68rem;
    padding      : 2px 8px;
    border-radius: 20px;
    background   : #d1fae5;
    color        : #065f46;
    font-weight  : 600;
}

/* === Page objet === */
.retour-lien {
    font-size      : 0.85rem;
    color          : #6b7280;
    text-decoration: none;
    display        : inline-block;
    margin-bottom  : 1rem;
}

.retour-lien:hover {
    color: #6366f1;
}

.objet-badges {
    display      : flex;
    gap          : 8px;
    margin-bottom: 1.5rem;
}

.objet-galerie {
    display              : grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap                  : 12px;
    margin-bottom        : 2rem;
}

.objet-galerie img {
    width        : 100%;
    border-radius: 10px;
    border       : 1px solid #e5e7eb;
    object-fit   : cover;
}

.objet-description {
    line-height  : 1.7;
    margin-bottom: 2rem;
}

.objet-fichiers h3 {
    font-size     : 0.72rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color         : #9ca3af;
    margin-bottom : 0.75rem;
}

.fichier-lien {
    display        : flex;
    align-items    : center;
    gap            : 10px;
    padding        : 0.65rem 1rem;
    background     : #fff;
    border         : 1px solid #e5e7eb;
    border-radius  : 10px;
    text-decoration: none;
    color          : #1a1a2e;
    font-size      : 0.875rem;
    margin-bottom  : 8px;
    max-width      : 480px;
}

.fichier-lien:hover {
    border-color: #6366f1;
    color       : #6366f1;
}

.fichier-taille {
    margin-left: auto;
    color      : #9ca3af;
    font-size  : 0.75rem;
}