
 
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333; /* Assombri légèrement le texte général pour plus de contraste */
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}
.main-header {
    margin-bottom: 0;
    position: relative;
}

/* Banner Styles */
.cedric-banner {
    position: relative;
    background: #b81c2c;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
    text-align: center;
}
.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    width: 100%;
}
.logo-wrapper {
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 5px 10px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}
.banner-logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.cedric-banner h1 {
    color: #fff;
    font-size: 2.8em;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
    text-align: center;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 8px #a00, 0 0 1px #fff;
    padding: 0;
}
.cedric-banner .squares {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
    z-index: 1;
    pointer-events: none;
}
.cedric-banner .squares span {
    position: absolute;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    opacity: 0.7;
    animation: float 10s linear infinite;
}
.cedric-banner .squares span:nth-child(1) {
    width: 38px; height: 38px; left: 10%; top: 30px; animation-delay: 0s;
}
.cedric-banner .squares span:nth-child(2) {
    width: 18px; height: 18px; left: 30%; top: 80px; animation-delay: 2s;
}
.cedric-banner .squares span:nth-child(3) {
    width: 28px; height: 28px; left: 55%; top: 20px; animation-delay: 4s;
}
.cedric-banner .squares span:nth-child(4) {
    width: 14px; height: 14px; left: 70%; top: 60px; animation-delay: 1s;
}
.cedric-banner .squares span:nth-child(5) {
    width: 22px; height: 22px; left: 85%; top: 40px; animation-delay: 3s;
}
@keyframes float {
    0% { transform: translateY(0);}
    100% { transform: translateY(25px);}
}

/* Navigation Styles */
.main-nav {
    width: 100%;
    background: #bdbdbd;
    color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    height: 48px;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-nav li {
    margin: 0;
}
.main-nav a {
    display: block;
    color: #333; /* CHANGED: Assombri de #444 à #333 pour un meilleur contraste */
    text-decoration: none;
    font-weight: 600;
    padding: 0.8em 1.3em;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    font-size: 1.05em;
}
.main-nav a:hover,
.main-nav a:focus {
    background: #fff;
    color: #b81c2c;
    outline: 2px solid #b81c2c;
    outline-offset: -2px;
}
.main-nav .burger {
    display: none;
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .main-nav ul {
        position: absolute;
        top: 48px;
        right: 0;
        background: #bdbdbd;
        flex-direction: column;
        width: 200px;
        display: none;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        border-radius: 0 0 8px 8px;
    }
    .main-nav ul.active {
        display: flex;
    }
    .main-nav .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 40px;
        width: 40px;
        cursor: pointer;
        margin-left: 1em;
        background: none;
        border: none;
        z-index: 2001;
        padding: 0;
    }
    .main-nav .burger span {
        height: 4px;
        width: 28px;
        background: #b81c2c;
        margin: 4px 0;
        border-radius: 2px;
        transition: 0.3s;
        display: block;
    }
    .main-nav .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .main-nav .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .main-nav .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .main-nav .burger:focus {
        outline: 2px solid #b81c2c;
        outline-offset: 2px;
    }
    .stats-row {
        flex-direction: column;
        gap: 8px;
    }
    #présentation .content-wrapper {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    #présentation iframe {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }
    #présentation .content-wrapper p,
    #présentation iframe {
        min-width: unset;
    }
    #magemotion {
        flex-direction: column;
    }
    #magemotion .image {
        margin-left: 0;
        margin-top: 20px;
        max-width: 100%;
    }
    .equipe-capsules {
        flex-direction: column;
        gap: 10px;
    }
    .banner-logo {
        max-width: 150px;
    }
    .cedric-banner h1 {
        font-size: 2.2em;
    }
}
@media (min-width: 769px) {
    .banner-content {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 30px;
    }
    .cedric-banner h1 {
        font-size: 3.2em;
        text-align: left;
    }
    #présentation .content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    #présentation iframe {
        height: 315px;
    }
}

/* General Section & Container Styles */
.container {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
}
section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}
h2 {
    color: #b81c2c;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 1px;
}
#accueil h2 {
    text-align: center;
    font-size: 2.2em;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    transition: font-size 0.3s ease;
}
#accueil p {
    font-size: 1.1em;
    color: #333; /* CHANGED: Assombri de #444 à #333 */
    margin: 0;
    line-height: 1.6;
    text-align: center;
    background: #fff;
    border-left: 4px solid #b81c2c;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

/* Présentation Section */
#présentation .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}
#présentation .content-wrapper p,
#présentation iframe {
    flex: 1 1 48%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (min-width: 901px) {
    #présentation .content-wrapper p,
    #présentation iframe {
        min-width: 300px;
    }
}
#présentation iframe {
    margin-bottom: 0;
}

/* sr-only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 32px;
    margin: 30px 0 0 0;
    flex-wrap: wrap;
    justify-content: center;
}
.stats-block {
    flex: 1 1 180px;
    background: #f7f7f7;
    border-radius: 8px;
    text-align: center;
    padding: 18px 0 10px 0;
    margin: 0;
    box-sizing: border-box;
}
.stats-block .stat-number {
    font-size: 2.5em;
    color: #b81c2c;
    font-weight: bold;
    line-height: 1;
}
.stats-block .stat-label {
    color: #555; /* CHANGED: Assombri de #888 à #555 pour un meilleur contraste */
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Equipe Section */
.equipe-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
}
.equipe-capsule {
    background: #fff;
    border: 2px solid #b81c2c;
    border-radius: 32px;
    padding: 12px 28px;
    font-size: 1.1em;
    color: #b81c2c;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(184,28,44,0.07);
    transition: background 0.2s, color 0.2s;
    margin-bottom: 8px;
    white-space: nowrap;
}
.equipe-capsule:hover {
    background: #b81c2c;
    color: #fff;
}
/* Ajout d'un état de focus clair pour les capsules d'équipe */
.equipe-capsule:focus-visible {
    outline: 2px solid #007bff; /* Ou une autre couleur contrastante */
    outline-offset: 2px;
}


/* Contact Form Styles */
#contact form {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#contact form label {
    font-weight: 600;
    color: #b81c2c;
    margin-bottom: 4px;
    margin-top: 8px;
}
#contact form input:focus,
#contact form textarea:focus,
#contact form select:focus,
#contact button:focus {
    outline: 2px solid #007bff; /* CHANGED: Couleur de focus plus standard et contrastante */
    border-color: #007bff; /* CHANGED: Ajuster la bordure au focus */
    background: #e6f7ff; /* CHANGED: Légère couleur de fond pour le focus */
    outline-offset: 2px;
}
#contact form input[required],
#contact form textarea[required],
#contact form select[required] {
    border-left: 4px solid #b81c2c;
}
#contact form input,
#contact form textarea,
#contact form select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    resize: vertical;
    background-color: #fff;
    color: #444;
}
#contact button {
    background: #b81c2c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
#contact button:hover {
    background: #a00;
}

/* Flash Messages */
.flash-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    position: relative;
    role: "alert";
}
.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-message.warning { /* Nouveau style pour les avertissements */
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Footer */
footer {
    background-color: #b81c2c;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 20px;
    font-size: 1.1em;
}

/* Next Button */
.next-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #b81c2c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(184, 28, 44, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: background 0.2s;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.next-btn:hover {
    background: #a00;
}
.next-btn:focus {
    outline-color: #007bff;
    background: #a00;
}

/* Learn More Link */
.learn-more-link {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 5px;
    padding: 10px 15px;
    background-color: #b81c2c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.learn-more-link:hover {
    background-color: #a00;
}
.learn-more-link:focus {
    outline-color: #007bff;
    background: #a00;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.gallery-item {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Ajout d'un état de focus clair pour les éléments de la galerie */
.gallery-item:focus-visible {
    outline: 2px solid #007bff; /* Couleur de focus claire */
    outline-offset: 4px; /* Offset pour ne pas cacher la bordure */
}
.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #eee;
}
.gallery-item-title {
    padding: 10px;
    font-weight: bold;
    color: #b81c2c;
    font-size: 1.1em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    box-sizing: border-box;
    aria-modal: "true";
    role: "dialog";
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    min-height: 30px;
}
.magemotion-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.magemotion-images img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border: 2px solid #b81c2c;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}
/* Pour le skip link (ajouté via JS) */
.skip-link {
    position: absolute;
    left: -9999px; /* Hide off-screen */
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    background-color: #f7f7f7;
    color: #b81c2c;
    padding: 8px;
    border: 1px solid #b81c2c;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}