/* Réinitialisation et variables */
/* ULTRA LIGHT (Poids: 100) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Ultra Light.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Ultra Light.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Ultra Light Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Ultra Light Italic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

/* THIN (Poids: 200) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Thin.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Thin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Thin Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Thin Italic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}

/* LIGHT (Poids: 300) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Light.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Light Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Light Italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

/* REGULAR & ITALIC (Poids: 400) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Regular.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

/* MEDIUM (Poids: 500) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Medium.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Medium Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Medium Italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

/* DEMI (Poids: 600) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Demi.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Demi Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Demi Italic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}

/* BOLD (Poids: 700) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Bold.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Bold Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Bold Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* EXTRA BOLD (Poids: 800) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Extra Bold.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Extra Bold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Extra Bold Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Extra Bold Italic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

/* HEAVY (Poids: 850 ou 900) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Heavy.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Heavy.otf') format('opentype');
    font-weight: 850;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Heavy Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Heavy Italic.otf') format('opentype');
    font-weight: 850;
    font-style: italic;
}

/* BLACK (Poids: 900) */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Black.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('fonts/Avenir-Next-Font/Avenir Next Condensed/WOFF2/Avenir Next Condensed Black Italic.woff2') format('woff2'),
    url('fonts/Avenir-Next-Font/Avenir Next Condensed/OTF/Avenir Next Condensed Black Italic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}


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

:root {
    --primary: #1e4620; /* Vert court de tennis */
    --secondary: #e67e22; /* Ocre terre battue */
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: Avenir Next Condensed;
    line-height: 1.6;
    color: var(--dark);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
    text-align: center;
}

.bg-light {
    background-color: var(--light);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d35400;
}

/* En-tête / Navigation */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

/* Section Hero (Accueil) */
.hero {
    background: linear-gradient(rgba(20, 48, 15, 0.75), rgba(20, 48, 15, 0.55)), url('images/vue-aerienne.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

/* Bandeau titre des pages intérieures */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #14300f 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Grilles & Cartes */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Grille façon Pinterest (hauteurs de cartes variables) pour les posts réseaux sociaux.
   CSS Grid (pas column-count) pour garder l'ordre de lecture gauche→droite puis ligne
   suivante ; js/masonry.js calcule combien de lignes (grid-auto-rows) chaque carte occupe. */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 1px;
    column-gap: 30px;
    align-items: start;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.member-photo {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--light);
}

/* Joueurs d'une équipe (competition.php) */
.team-players {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.team-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    font-size: 0.8rem;
    text-align: center;
}

.team-player-photo,
.team-player-photo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 6px;
}

.team-player-photo {
    object-fit: cover;
    border: 2px solid var(--light);
}

.team-player-photo-placeholder {
    background: var(--light);
}

.team-player-rank {
    display: block;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.75rem;
}

.link-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

.link-more:hover {
    text-decoration: underline;
}

.news-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Chiffres clés */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: #7f8c8d;
}

/* Bandeau d'appel à l'action */
.cta-banner {
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 50px 0;
}

.cta-banner h2 {
    color: var(--white);
}

.cta-banner p {
    margin-bottom: 25px;
}

.cta-banner .btn {
    background-color: var(--dark);
}

.cta-banner .btn:hover {
    background-color: #1a252f;
}

/* Galerie photo */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: repeating-linear-gradient(45deg, #e0e0e0, #e0e0e0 10px, #ececec 10px, #ececec 20px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    margin: 0;
    overflow: hidden;
    position: relative;
}

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

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 20px 12px 10px;
    font-size: 0.85rem;
    text-align: left;
}

.news-content p {
    margin-bottom: 10px;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content ul,
.news-content ol {
    display: inline-block;
    text-align: left;
    margin: 10px 0;
}

/* Carousel photos (Glide.js) */
.club-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.club-carousel .glide__slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: block;
}

.club-carousel .glide__arrow {
    background: var(--primary);
    border: none;
    color: var(--white);
    box-shadow: none;
    transition: background 0.3s ease;
}

.club-carousel .glide__arrow:hover {
    background: var(--secondary);
    border: none;
}

.club-carousel .glide__bullet {
    background: var(--light);
    border: 2px solid var(--primary);
}

.club-carousel .glide__bullet--active {
    background: var(--primary);
}

.club-carousel .glide__bullet:hover,
.club-carousel .glide__bullet:focus {
    border: 2px solid var(--secondary);
    background: var(--secondary);
    box-shadow: none;
}

@media (max-width: 600px) {
    .club-carousel .glide__arrow {
        display: none;
    }
}

/* Formulaire d'inscription */
.inscription-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.inscription-form fieldset {
    background: var(--white);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px 30px;
    margin-bottom: 25px;
}

.inscription-form legend {
    font-weight: bold;
    color: var(--primary);
    padding: 0 5px;
    font-size: 1.1rem;
}

.inscription-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--dark);
}

.inscription-form input[type="text"],
.inscription-form input[type="email"],
.inscription-form input[type="tel"],
.inscription-form input[type="date"],
.inscription-form textarea,
.inscription-form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-weight: normal;
}

/* Spécifique au SELECT */
/*
.inscription-form select {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    padding: 10px;
    margin-top: 5px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;

}
*/

.inscription-form textarea {
    resize: vertical;
}

.dispo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.admin-error {
    background: #fdecea;
    color: #b3261e;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.admin-error ul {
    margin: 8px 0 0 20px;
}

.admin-checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 10px;
}

.admin-checkbox-line input {
    margin-top: 4px;
}

.admin-checkbox-label {
    font-weight: normal;
    display: inline;
    margin: 0;
}

.admin-form-actions {
    text-align: center;
}

/* Tableaux de tarifs */
.table-scroll {
    overflow-x: auto;
    margin-bottom: 20px;
}

.pricing-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pricing-table th,
.pricing-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.pricing-table td:first-child,
.pricing-table th:first-child {
    text-align: left;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-sub {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.equipment-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.equipment-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.equipment-list li strong {
    color: var(--secondary);
}

/* Badges réseaux sociaux */
.social-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 12px;
}

.social-badge.facebook {
    background: #1877f2;
}

.social-badge.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Photo d'illustration d'une actualité */
.news-photo {
    display: block;
    width: calc(100% + 60px);
    margin: -30px -30px 20px;
    /*height: 160px;*/
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

/* Mentions légales */
.legal-content h2 {
    text-align: left;
    font-size: 1.4rem;
    margin-top: 30px;
}

.legal-content p {
    text-align: left;
    margin-bottom: 10px;
}

/* Tableaux de Prix */
.price-table {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.price-table h3 {
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    color: #7f8c8d;
}

.price-table ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.price-table ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.contact-error {
    margin-bottom: 15px;
}

/* Piège à robots : champ invisible pour les humains, souvent rempli par les bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 10px;
}

.notice {
    margin-top: 20px;
    background: #e8f4f8;
    padding: 15px;
    border-left: 4px solid #3498db;
    font-size: 0.9rem;
}

/* Pied de page */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* Adaptabilité Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
