/*====================STYLE GENERAL=============*/
* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
    padding: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fdfdf8;
    color: #222;
}

section {
    margin-left: 3%;
    margin-right: 3%;
}

main {
    margin: 25px;
    padding-bottom: 20px;
    border-radius: 20px;
    padding: 20px;
}

/*==============Bannière des sponsors====================*/
.sponsor-banner {
    overflow: hidden;
    background-color: #fff;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
}

.sponsor-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

.sponsor-logo {
    flex: 0 0 auto;
    margin: 0 40px;
}

.sponsor-logo img {
    height: 60px;
    vertical-align: middle;
}

.sponsor-logo.carpole {
    background-color: #ed602d;
    padding: 10px;
    border-radius: 8px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/*==============Barre de navigation====================*/
.navbar {
    background-color: #4b2e83; /* violet foncé */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
}

.navbar ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 20px;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
}

.navbar a:hover {
    background-color: #7a56a0; /* violet clair */
}

/* Logo */
.navbar li:first-child img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }
}

/*==============Footer====================*/
.footer {
    background-color: #4b2e83;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
}

.social-links img {
    height: 24px;
    width: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2);
}

/*==============Image Homepage====================*/
.figure {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.figure > img {
    width: 100vw;
    height: 50vw;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.figure > img:hover {
    transform: scale(1.05);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    backdrop-filter: blur(6px);
    background-color: rgba(75, 46, 131, 0.6); /* violet semi-transparent */
    padding: 20px 30px;
    border-radius: 8px;
    color: white;
    max-width: 90%;
    box-sizing: border-box;
}

/* Logo du club */
.club-logo {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Texte secondaire */
.era {
    font-size: 1.5rem;
    margin: 5px 0 0;
    color: #fff;
}

/*==============Présentation du club====================*/
.club-presentation {
    background-color: #fff;
    padding: 40px;
    margin: 30px auto;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.club-title {
    text-align: center;
    font-size: 2em;
    color: #4b2e83;
    margin-bottom: 20px;
}

.club-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    margin-bottom: 30px;
}

.charte-button {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 1em;
    background-color: #ed602d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.charte-button:hover {
    background-color: #c74e22;
}
/*=============intervenant================*/

.intervenants-section {
    background-color: #fff;
    padding: 50px 30px;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.intervenants-title {
    color: #4b2e83;
    font-size: 2rem;
    margin-bottom: 20px;
}

.intervenants-text {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.intervenants-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ed602d;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.intervenants-button:hover {
    background-color: #c74e22;
}
/*========affichage crew===============*/
.intervenants {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}

.titre-section {
    color: #ed602d;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #800080;
    padding-bottom: 10px;
}

.liste-dirigeants {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.liste-dirigeants li {
    padding: 8px 0;
    font-size: 1.1em;
    color: #333;
}

.grid-coachs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.coach-card {
    background-color: #fff;
    border: 2px solid #ed602d;
    border-radius: 12px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.coach-card:hover {
    transform: translateY(-5px);
}

.coach-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.coach-card h3 {
    margin: 10px 0 5px;
    color: #800080;
}

.coach-card p {
    font-size: 0.95em;
    color: #333;
}

/*==============FORMULAIRE RÉINSCRIPTION====================*/
h1 {
    color: #4b2e83;
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4b2e83;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #7a56a0;
    box-shadow: 0 0 0 3px rgba(122, 86, 160, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button[type="submit"] {
    background-color: #ed602d;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: #c74e22;
}

.erreur {
    background-color: #ffebee;
    color: #b71c1c;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c74e22;
    border-radius: 4px;
}

.succes {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/*==============CARD BOX====================*/
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.card-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 2.5rem;
    margin: 1.5rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eeeef5;
}

.card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f5f8;
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .card-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .main-container {
        padding: 0 10px;
    }
}

/* Adaptation des éléments existants */
.form-group {
    margin-bottom: 1.8rem;
}

label {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

input[type="date"] {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234b2e83" viewBox="0 0 16 16"><path d="M14 0a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h12zM2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2z"/><path d="M10.793 10.5H11a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5h-.5a.5.5 0 0 1-.5-.5V11a.5.5 0 0 1 .5-.5zM3.5 4a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5z"/></svg>') no-repeat 95% 50%;
    background-size: 18px;
}

/*==========Contact==========*/

.captcha-container {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.captcha-display {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 10px;
    margin: 10px 0;
    background: #fff;
    display: inline-block;
    border: 1px solid #ddd;
}
/*============Affichage equipes=================*/
.title-pres {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ed602d; 
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #ed602d;
    padding-bottom: 0.5rem;
  }
  
  .txt-pres {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: justify;
  }
  
  .title-eff {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1E1E1E;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 1rem;
    border-left: 5px solid #F29E4C;
  }
  
.equipes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .equipe-card {
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    width: calc(33% - 20px);
    box-sizing: border-box;
    transition: transform 0.2s;
  }
  
  .equipe-card:hover {
    transform: scale(1.02);
  }
  
  .equipe-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  
  @media screen and (max-width: 900px) {
    .equipe-card {
      width: calc(50% - 20px);
    }
  }
  
  @media screen and (max-width: 600px) {
    .equipe-card {
      width: 100%;
    }
  }

  .planning {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
/*===============section article==============*/
.articles-section {
    background-color: #fff;
    padding: 40px;
    margin: 30px auto;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.articles-title {
    text-align: center;
    font-size: 2em;
    color: #4b2e83;
    margin-bottom: 20px;
}

.articles-section h2 {
    font-size: 1.6em;
    color: #222;
    margin-bottom: 10px;
}

.articles-section p {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.articles-section em {
    color: #777;
}

.articles-section img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, object-fit 0.3s ease;
    cursor: zoom-in;
}

.articles-section div {
    margin-top: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333;
}

.article-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    background-color: #ed602d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.article-button:hover {
    background-color: #c74e22;
    transform: translateY(-2px);
}

.article-button:active {
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .articles-section img:hover {
        object-fit: contain;
        height: auto;
        max-height: 80vh;
        transform: scale(1.02);
        background-color: #fff;
        z-index: 10;
    }
}

/*====================Boutton admin=========================*/
.admin-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    background-color: #4b2e83; /* Violet foncé */
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    margin: 20px 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-button:hover {
    background-color: #3a2367;
    transform: translateY(-2px);
}

.admin-button:active {
    transform: translateY(0);
}
section > .admin-button {
    display: block;
    margin: 20px auto;
}
/*======================Login=========================*/
.connexion {
    text-align: center;
    font-size: 2.2em;
    color: #4b2e83;
    margin: 40px 0 30px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-form {
    max-width: 400px;
    margin: 0 auto 50px;
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.login-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: 1em;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #4b2e83;
    outline: none;
}

.connect {
    width: 100%;
    padding: 12px 0;
    background-color: #4b2e83;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.connect:hover {
    background-color: #3a2361;
}

p.error {
    color: red;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}
/*========================Ajouter Articles========================*/
/* Style général de la page */
.page-title {
    font-size: 2em;
    color: #4b2e83;
    text-align: center;
    margin-bottom: 30px;
}

/* Formulaire */
.article-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Labels */
.article-form label {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #333;
}

/* Inputs texte */
.input-titre,
.textarea-contenu,
.input-image {
    padding: 10px 12px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-titre:focus,
.textarea-contenu:focus,
.input-image:focus {
    border-color: #4b2e83;
    outline: none;
}

/* Textarea */
.textarea-contenu {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Bouton de soumission */
.btn-submit {
    margin-top: 25px;
    padding: 12px;
    background-color: #ed602d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #c74e22;
    outline: none;
}

/* Message succès */
.success-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

/* Lien déconnexion */
.logout-link {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #ed602d;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.3s ease;
}

.logout-link:hover,
.logout-link:focus {
    color: #c74e22;
    text-decoration: underline;
}
/*=======================Video=================*/
.video-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.video-block {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.video-frame {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.photo-block {
    text-align: center;
    width: 250px;
}

.photo-item {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}
/*====================Calendar=======================*/
/* calendar.css */

.calendar-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.calendar-title {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    border-left: 6px solid #E34E4E;
    padding-left: 12px;
}

.team-card {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-left: 6px solid #E34E4E;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.team-short {
    font-size: 0.95rem;
    color: #666;
}

.team-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.team-link {
    text-decoration: none;
    background-color: #E34E4E;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.team-link:hover {
    background-color: #c73030;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .team-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .team-link {
        width: 100%;
        text-align: center;
    }
}
.team-card.feminin {
    border-left-color: #9A57C4;
}

.team-card.masculin {
    border-left-color: #4E80E3;
}
/*==============Ressources Coach============*/
.coach-container { max-width: 800px; margin: auto; padding: 2em; }
.coach-title { font-size: 2em; margin-bottom: 1em; }
.coach-info { background: #f5f5f5; padding: 1em; border-left: 4px solid #444; }

.coach-message.success { background: #d4edda; color: #155724; padding: 1em; border-radius: 5px; }
.coach-message.error { background: #f8d7da; color: #721c24; padding: 1em; border-radius: 5px; }

.coach-resources { margin-top: 2em; }
.resources-title { font-size: 1.5em; margin-bottom: 1em; }
.resources-list { list-style: none; padding: 0; }
.resource-item { margin-bottom: 0.5em; }
.resource-link { text-decoration: none; color: #007BFF; }

.coach-upload { margin-top: 3em; }
.upload-form { display: flex; flex-direction: column; gap: 1em; }
.form-label { font-weight: bold; }
.form-input { padding: 0.5em; }
.form-button { background: #007BFF; color: white; padding: 0.5em 1em; border: none; cursor: pointer; }
.form-button:hover { background: #0056b3; }

.logout-link { display: block; margin-top: 2em; text-align: right; color: #d00; }
