/* 
   1. VARIABLES & RESET GLOBAL

Couleurs du Barça : Bleu (#004d98), Grenat (#a50044), Or (#edbb00) */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

a {
    text-decoration: none;
    color: inherit;
}


 /*  2. HEADER & NAVIGATION */

header {
    width: 100%;
    background-color: #004d98;
    color: #edbb00;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #edbb00;
}

.logo-titre h1 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

nav {
    background-color: #a50044;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end; 
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #edbb00;
    border-bottom: 2px solid #edbb00;
    padding-bottom: 3px;
}

/*3. STRUCTURE PRINCIPALE (MAIN)*/
main {
    flex: 1;
    width: 100%;
    max-width: 1080px; 
    margin: 20px auto;
    background-color: white;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

/* Titres H1 et H2 globaux */
main h1, main h2 {
    color: #004d98;
    border-bottom: 2px solid #a50044;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 4. PAGE ACCUEIL (INDEX.PHP) */

/* --- BANNIÈRE & INTRO --- */
.banner-accueil {
    width: 100%;
    height: 400px;
    background-image: url("../images/camp-nou-2.jpg"); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-principal {
    color: #edbb00;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    border: none !important;
}

.hero-text, .devise-barca, .histoire-section, .palmares-section {
    text-align: center;
    margin: 60px 0;
}

.separateur-or {
    height: 3px;
    width: 100px;
    background-color: #edbb00;
    margin: 10px auto;
}

/* --- SECTION HISTOIRE (FRISE) --- */
.titre-histoire {
    font-size: 2.2rem;
    color: #004d98;
    text-transform: uppercase;
    margin-bottom: 10px;
    border: none !important;
}

.frise-chronologique {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.date-cle {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    padding: 30px 20px;
    border-radius: 15px;
    border-top: 5px solid #a50044;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.date-cle:hover {
    transform: translateY(-10px);
    background-color: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.annee {
    font-size: 3rem;
    font-weight: 900;
    color: #edbb00;
    opacity: 0.8;
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 10px;
}

.date-cle h3 {
    color: #004d98;
    margin: 10px 0;
    text-transform: uppercase;
    font-size: 1.2rem;
    border: none;
}

.date-cle p {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* --- SECTION PALMARÈS --- */
.titre-palmares {
    font-size: 2.2rem;
    color: #a50044; 
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: none !important;
}

.palmares-intro {
    max-width: 800px;
    margin: 20px auto 40px auto;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.liste-trophees {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.trophee-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    overflow: hidden;
}

.trophee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #edbb00;
}

.trophee-icon {
    width: 120px;       
    height: 90px;       
    margin-right: 20px;
    flex-shrink: 0;     
    border-radius: 8px; 
    overflow: hidden; 
    background-color: #eee;
}

.trophee-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.trophee-info h3 {
    margin: 0 0 5px 0;
    color: #004d98;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
}

.trophee-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
}

.photo-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.photo-card {
    flex: 1;
    background: #004d98;
    padding: 12px;
    border-radius: 15px;
    border-bottom: 5px solid #edbb00;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.photo-card:hover { transform: translateY(-5px); }
.photo-card p { color: white; font-weight: bold; margin-top: 10px; text-transform: uppercase; }

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    filter: grayscale(100%);
    transition: all 0.5s ease; 
}

.photo-card:hover .photo-wrapper img {
    filter: grayscale(0%);     
    transform: scale(1.05);   
}
.photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.piliers-grille {
    display: flex;
    gap: 25px;
    margin: 50px 0;
    flex-wrap: wrap; 
}

.carte-sport {
    flex: 1;
    min-width: 250px; 
    background: #ffffff;
    border: 2px solid #edbb00;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 6px 6px 0px #004d98;
    transition: all 0.3s ease;
}
.carte-sport:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #a50044;
}
.carte-sport h3 { color: #004d98; margin-bottom: 15px; border: none; }
.barre-grenat { height: 6px; width: 50px; background: #a50044; margin: 20px auto 0; border-radius: 3px; }

/* --- BOUTON CTA --- */
.zone-bouton { text-align: center; margin-top: 40px; }
.bouton-moderne {
    display: inline-block;
    background-color: #004d98;
    color: white;
    padding: 15px 40px;
    font-weight: 900;
    border-radius: 8px;
    border-bottom: 5px solid #002d5a; 
    transition: all 0.2s;
}
.bouton-moderne:hover { 
    background-color: #a50044; 
    border-bottom-color: #7b0032; 
    transform: translateY(2px); 
}
/*5. PAGE GALERIE (GALERIE.PHP) */
.titre-galerie {
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 4px solid #edbb00;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.upload-box {
    background-color: #f8f9fa;
    border: 2px solid #004d98;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 50px auto;
    text-align: center;
}
.upload-box h3 { color: #a50044; border: none; }
.input-file { padding: 10px; border: 1px dashed #ccc; background: white; width: 80%; margin-bottom: 15px; }
.btn-upload {
    background-color: #004d98; color: #edbb00; border: none; padding: 10px 20px; 
    font-weight: bold; border-radius: 5px; cursor: pointer; text-transform: uppercase;
}
.btn-upload:hover { background-color: #a50044; color: white; }

.galerie-grille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.galerie-grille h3 { width: 100%; text-align: center; border-bottom: 3px solid #edbb00; color: #004d98; }

.galerie-grille img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    filter: grayscale(100%);
    transition: all 0.5s ease;
    cursor: pointer;
}
.galerie-grille img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 2px solid #a50044;
}

img[src*="image4.jpg"] {
    object-position: top center;
}


img[src*="image7.jpg"] {
    object-position: 20% 10%; /
}


img[src*="image8.jpg"] {
    object-position: center 20%; 
}

/*6. PAGE CONTACT (CONTACT.PHP)*/
.contact-section {
    width: 100%;
    margin: 0 auto;
}

.form-contact {
    width: 300px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { font-weight: bold; color: #004d98; font-size: 0.85rem; margin-bottom: 5px; }

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
textarea#message { resize: none; }

.radio-item { display: flex; align-items: center; margin-bottom: 5px; }
.radio-item input { width: auto !important; margin-right: 10px; accent-color: #a50044; }

.message-erreur, .message-success { padding: 10px; border-radius: 5px; margin: 10px 0; font-size: 0.9rem; }
.message-erreur { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.message-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.btn-submit {
    background-color: #a50044; color: white; padding: 12px; border: none; 
    border-radius: 5px; font-weight: bold; text-transform: uppercase; 
    cursor: pointer; transition: 0.3s; width: 100%;
}
.btn-submit:hover { background-color: #004d98; }

.infos-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #edbb00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.infos-texte { flex: 1; min-width: 250px; }

.bloc-info h3 { 
    color: #a50044; 
    margin: 15px 0 5px 0; 
    text-transform: uppercase; 
    font-size: 1rem; 
    border: none;
}
.bloc-info p { margin: 0; color: #555; }

.bloc-map {
    flex: 1;
    min-width: 300px;
    height: 250px;
    border: 2px solid #004d98;
    border-radius: 8px;
    overflow: hidden;
}

.bloc-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.social-links { 
    width: 100%; 
    text-align: center; 
    margin-top: 30px; 
    padding-top: 15px; 
    border-top: 1px solid #eee; }
.social-icons { display: flex; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 10px; }
.btn-social {
    background: #004d98; 
    color: #edbb00; 
    padding: 8px 15px; 
    border-radius: 5px; 
    font-weight: bold; 
    font-size: 0.8rem;
}
.btn-social:hover { 
    background: #a50044; 
    color: white; }

/*7. PAGE DONNÉES (DATATABLES)*/
table.dataTable thead th { 
    background-color: #004d98; 
    color: white; }
.dataTables_paginate { 
    margin-top: 15px; 
    display: flex; 
    justify-content: center; }

.paginate_button {
    padding: 5px 12px !important; 
    margin: 0 5px !important;
    border: 1px solid #ddd !important; 
    background: #f8f9fa !important;
    color: #333 !important; 
    border-radius: 4px;
}
.paginate_button.current { background: #004d98 !important; 
    color: white !important; 
    border-color: #004d98 !important; }
.paginate_button:hover:not(.current) { 
    background: #a50044 !important; 
    color: white !important; }

/* 8. FOOTER & CREDITS*/
footer {
    width: 100%;
    background-color: #a50044;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 2px solid #edbb00;
    flex-shrink: 0;
}

.credits-liste li { 
    margin-bottom: 10px; 
    color: #333; line-height: 1.5; }
.credits-liste h3 { 
    border-left: 5px solid #edbb00; 
    padding-left: 10px; 
    color: #a50044; 
    margin-top: 20px; }
.lien-credits {
    color: #edbb00;            
    text-decoration: underline;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.3s;
}


.lien-credits:hover {
    color: white;
    text-decoration: none;
}

/* 9. PAGE PARTENAIRES (NOUVEAU)*/

.agence-intro {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #edbb00;
}

.agence-intro h2 {
    font-size: 2.5rem;
    color: #004d98;
    margin-bottom: 5px;
    border-bottom: none;
}

.agence-intro h3 {
    color: #a50044;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.agence-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333;
}

.docs-section {
    margin-bottom: 60px;
    text-align: center;
}

.titre-docs {
    font-size: 1.8rem;
    color: #004d98;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 2px solid #edbb00;
    display: inline-block;
    padding-bottom: 10px;
}

.docs-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.doc-card {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 2px solid #004d98;
    border-radius: 10px;
    padding: 15px 20px;
    width: 240px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.icon-doc { 
    font-size: 2rem; 
    margin-right: 15px; }

.info-doc { text-align: left; }
.info-doc h4 { 
    color: #004d98;
    margin: 0; font-size: 0.95rem; 
    font-weight: bold; }
.info-doc p { margin: 5px 0 0 0; 
    color: #666; 
    font-size: 0.75rem; 
    text-transform: uppercase; }

.doc-card:hover {
    background-color: #004d98;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.doc-card:hover .info-doc h4, .doc-card:hover .info-doc p { color: white; }

.card-risk { border-color: #a50044; }
.card-risk .info-doc h4 { color: #a50044; }
.card-risk:hover { background-color: #a50044; border-color: #a50044; }


.titre-equipe {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.info-membre {
    margin-top: 15px;
}

.nom-membre {
    font-size: 1.3rem !important;
    margin-bottom: 5px !important;
}

.role-membre {
    color: #edbb00;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 15px;
}

.btn-partenaire {
    display: inline-block;
    background-color: #edbb00;
    color: #004d98;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 5px;
    border-bottom: 4px solid #c69c00;
    transition: all 0.2s ease;
}

.btn-partenaire:hover {
    background-color: white;
    color: #a50044;
    transform: translateY(2px);
    border-bottom: 4px solid #ddd;
}

/* 10. PAGE CRÉDITS */

.credits-liste {
    margin-top: 30px;
}

.credits-liste h3 {
    color: #a50044; 
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #edbb00; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credits-liste ul {
    list-style-type: none; 
    padding-left: 0;
    margin: 0;
}

.credits-liste li {
    background-color: #f9f9f9; 
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #004d98; 
    border-radius: 0 8px 8px 0;    
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.5;
    transition: all 0.3s ease;
}

.credits-liste li:hover {
    transform: translateX(10px); 
    background-color: #fff;     
    border-left-color: #a50044; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.credits-liste strong {
    color: #004d98; 
    display: block; 
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.credits-liste li {
    color: #555;
}

.credits-liste a {
    color: #a50044;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted #a50044;
    transition: color 0.3s;
}

.credits-liste a:hover {
    color: #edbb00; 
    border-bottom: 1px solid #edbb00;
}

