* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2a2a2a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* ENLEVÉ: max-width: 1080px; */
    /* ENLEVÉ: margin: 0 auto; */
}

header {
    width: 100%;
    height: 100px;
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 3px solid #c4302b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

nav {
    width: 100%;
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;
}

nav ul li {
    display: inline;
}

nav a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

nav a:hover {
    color: black;
    background-color: white;
    border-radius: 5px;
}

nav a.active {
    color: white;
    text-decoration: underline;
    text-decoration-color: red;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

main {
    width: 100%;
    max-width: 1080px;  /* ← ICI : main limité à 1080px */
    margin: 100px auto 0 auto;  /* ← Centré avec margin auto */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.content-section {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
}

/* BANNIÈRE EN PLEINE LARGEUR */
.banniere-container {
    position: relative;
    width: 100vw;  /* ← Pleine largeur de l'écran */
    margin-left: calc(-50vw + 50%);  /* ← Sortir du conteneur 1080px */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 60px;
}

.youtube,
.banniere {
    width: 100%;
    height: 800px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

@keyframes apparitionEnDouceur {
    0% {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.texte-sur-image {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 10;
    color: white;
    animation: apparitionEnDouceur 1.5s ease-out forwards;
}

.texte-sur-image h1 {
    font-size: 5vw;
    font-weight: 900;
    margin: 0 auto;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    color: #ffffff;
    width: 80%;
}

.texte-sur-image p {
    font-size: 1.1em;
    font-weight: 300;
    font-style: italic;
    margin-top: 10px;
    width: 60%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    color: #bebebe;
}

.section-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c4302b, transparent);
}

p {
    width: 100%;
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.8;
    color: #e8e8e8;
    font-family: 'Segoe UI', sans-serif;
    hyphens: auto;
    margin-bottom: 20px;
}

main p:last-child {
    margin-bottom: 0;
}

.youtube2 {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
}

.youtube2 img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube2 img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.youtube2 img.glow {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 8, 0, 0.3);
}

.dataTables_wrapper {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto 50px auto;
    color: #bbb;
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    background-color: #252525;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

table.dataTable thead th {
    background-color: #000;
    color: #c4302b;
    padding: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #c4302b;
    text-align: center !important;
}

table.dataTable tbody td {
    padding: 12px;
    color: #ddd;
    text-align: center !important;
    border-bottom: 1px solid #333;
}

table.dataTable tbody td:nth-child(1) {
    font-weight: bold;
    color: #666;
}

table.dataTable tbody td:nth-child(2) {
    font-weight: 700;
    color: #fff;
}

table.dataTable tbody td:nth-child(6) {
    color: #c4302b;
    font-weight: 600;
}

table.dataTable tbody td:nth-child(7) {
    font-family: monospace;
    background: #121212;
    padding: 4px 8px;
    border-radius: 4px;
    color: #aaa;
    display: inline-block;
}

table.dataTable tbody td:nth-child(8) {
    text-align: left !important;
    font-size: 0.9rem;
}

table tr:nth-of-type(even) {
    background-color: #1e1e1e;
}

table.dataTable tbody tr:hover {
    background-color: #444 !important;
    color: #fff;
    cursor: default;
}

.dataTables_wrapper input,
.dataTables_wrapper select {
    background-color: #121212;
    color: #fff;
    padding: 5px;
    border: 1px solid #444;
    border-radius: 4px;
    text-align: center;
}

.dataTables_wrapper .paginate_button.current {
    background: #c4302b !important;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    background: #252525;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

label span {
    color: #c4302b;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #121212;
    color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #c4302b;
    background-color: #1a1a1a;
}

input::placeholder,
textarea::placeholder {
    color: #666;
}

textarea {
    resize: vertical;
    min-height: 180px;
}

input[type="submit"] {
    background-color: #c4302b;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}

input[type="submit"]:hover {
    background-color: #a02722;
    transform: translateY(-2px);
}

input[type="submit"]:active {
    background-color: #7f1a0f;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 30px 20px;
    }
}
/* === FIN FORMULAIRE === */

footer {
    width: 100%;
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 3px solid #c4302b;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

footer a {
    color: #c4302b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer p:first-child {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
}

footer p:nth-child(2) {
    color: #b0b0b0;
    font-size: 13px;
}

.credits-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.credits-section:last-of-type {
    border-bottom: none;
}

.credits-subtitle {
    color: #c4302b;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.credits-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.credits-list li {
    color: #e8e8e8;
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
    line-height: 1.8;
}

.credits-list li::before {
    content: "▸";
    color: #c4302b;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.credits-list a {
    color: #c4302b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.credits-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.credits-signature {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #666;
    font-style: italic;
}

.credits-signature p {
    text-align: center;
    margin: 10px 0;
}


/* === GALERIE === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    background-color: #121212;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(196, 48, 43, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style pour l'input file */
input[type="file"] {
    padding: 12px 16px;
    border: 2px dashed #444;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #121212;
    color: #fff;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #c4302b;
    background-color: #1a1a1a;
}

input[type="file"]:focus {
    outline: none;
    border-color: #c4302b;
    background-color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* === GALERIE - Cartes === */
.ligne1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.carte1 {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte1:hover {
    transform: translateY(-8px);
}

.wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.carte1:hover .cover-image {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* === PAGE PARTENAIRES === */

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.team-card {
    background-color: #252525;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-12px);
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #121212;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.15);
    filter: grayscale(0%);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay .team-role {
    color: #c4302b;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-name {
    color: #ffffff;
    font-size: 1.6em;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-role-subtitle {
    color: #c4302b;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.team-description {
    color: #b8b8b8;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0 0 25px 0;
    text-align: left;
    flex: 1;
}

.team-link {
    display: inline-flex;
    align-items: center;
    color: #c4302b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border: 2px solid #c4302b;
    border-radius: 6px;
    align-self: flex-start;
}

.team-link:hover {
    background-color: #c4302b;
    color: #ffffff;
    transform: translateX(5px);
}

/* === SECTION DOCUMENTS === */
.doc {
    background-color: #252525;
    border-radius: 12px;
    padding: 50px 40px;
    margin: 60px auto;
    max-width: 900px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.doc h1.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.doc h1.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.doc-item {
    background: #232323;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.doc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #c4302b;
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.doc-item:hover::before {
    transform: scaleY(1);
}

.doc-item:hover {
    border-color: #c4302b;
    box-shadow: 0 8px 24px rgba(196, 48, 43, 0.3);
    transform: translateY(-5px);
}

.doc-title {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
}

.doc-description {
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 20px;
    display: block;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    color: #c4302b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border: 2px solid #c4302b;
    border-radius: 6px;
    margin-top: auto;
}

.doc-link:hover {
    background-color: #c4302b;
    color: #ffffff;
    transform: translateX(5px);
}

.doc-link::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.doc-link:hover::after {
    margin-left: 12px;
}
