/* ==========================
   FC STENGEFORT
   Style principal
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#C0001F;
    color:#ffffff;
    line-height:1.6;
}

.avatar {
    width: 250px;
    height: 350px;
    border-radius: 70%; /* Macht das Bild kreisrund */
    object-fit: cover;
}
.image {
    width: 75%;;
    height:auto;
display:flex;
justify-content: center;
    object-fit:cover;
text-align:center;
    border-radius:10px;
    margin-bottom:20px;
}


.logo-container {
  display: inline-flex;   /* Platziert Container im Header als Text-Element */
  align-items: center;    /* Richtet Logo und Text exakt auf der horizontalen Mittelachse aus */
}

.logo-img {
  height: 150px;           /* Deine gewünschte Logo-Höhe */
  width: auto;
  display: block;         /* Entfernt den standardmäßigen kleinen Abstand unter Bildern */
}

.logo-text {
  margin: 0 0 0 15px;     /* Setzt alle Außenabstände außer links (15px) auf Null */
  padding: 0;             /* Entfernt eventuelle Innenabstände */
  line-height: 1;         /* Verhindert, dass eine zu große Zeilenhöhe den Text nach unten drückt */
  font-size: 24px;
  font-weight: bold;
}

.hero {
    /* Pfad zum Bild */
    background-image: url('../images/buvette.jpeg'); 
    
    /* Bild füllt die Section perfekt aus */
    background-size: cover; 
    
    /* Bild im Container zentrieren */
    background-position: center; 
    
    /* Wiederholung verhindern */
    background-repeat: no-repeat; 
    
    /* Innenabstand, damit der Text nicht am Bildrand klebt */
    padding: 150px; 
    
    /* Textfarbe auf weiß setzen für besseren Kontrast */
    color: #000000; 
}

.hero {
    width: 100%;
    height: 500px;
}

.hero h1{
    color: white;
}

.hero h2{
    color: #C0001F;
}
/* ==========================
   CLASSEMENT
========================== */

.hero-classement{
    background:url("../images/classement.jpg") center center/cover;
}

.highlight{
    background:#ffe8e8;
    font-weight:bold;
}

.highlight td{
    color:#c0001f;
}

.calendar tbody tr:nth-child(even){
    background:#fafafa;
}

.calendar tbody tr:hover{
    background:#f1f1f1;
}

/* ==========================
   ÉQUIPES
========================== */

.hero-team{
    background:url("../images/equipes/banner.jpg") center center/cover;
}

.card img{
    width:80%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:20px;
}

.card strong{
    color:#c0001f;
}
.card h2{
    color:#ffffff;
}

.card h3{
    color:#c0001f;
}

.card h4{
    color:#ffffff;
}

/* ==========================
   BILLETTERIE
========================== */

.hero-ticket{
    background:url("../images/billetterie.jpg") center center/cover;
}

.ticket-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.ticket-form,
.ticket-preview{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.ticket-form label{
    display:block;
    margin-top:20px;
    font-weight:bold;
}

.ticket-form input,
.ticket-form select{
    width:100%;
    padding:12px;
    margin-top:8px;
    border:1px solid #ddd;
    border-radius:8px;
}

.ticket-form .btn{
    width:100%;
    margin-top:25px;
}

.ticket{
    text-align:center;
    border:2px dashed #c0001f;
    border-radius:15px;
    padding:30px;
}

.ticket img{
    width:80px;
    margin-bottom:20px;
}

.ticket h2{
    color:#c0001f;
}

@media(max-width:900px){

.ticket-container{
    grid-template-columns:1fr;
}

}
/* ==========================
   CONTACT
========================== */

.hero-contact{
    background:url("../images/contact/banner.jpg") center center/cover;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-info,
.contact-form{
    background:#c0001f;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.contact-form .btn{
    background:orange;
    color:red;
    padding:15px 35px;
    text-decoration:none;
    border-radius:40px;
    transition:.3s;
    display:inline-block;
}


.contact-info p{
    margin:20px 0;
    font-size:18px;
}

.contact-info i{
    color:white;
    width:30px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:8px;
}

.contact-form textarea{
    resize:vertical;
}

.contact-form button{
    width:100%;
}

.map{
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

@media(max-width:900px){

.contact-container{
    grid-template-columns:1fr;
}

}

/* ==========================
   BOUTIQUE
========================== */

.hero-shop{
    background:url("../images/boutique/banner.jpg") center center/cover;
}

.card h2{
    color:#c0001f;
    margin:15px 0;
}

.card .btn i{
    margin-right:8px;
}


/* ==========================
   GALERIE
========================== */

.hero-gallery{
    background:url("../images/galerie/banner.jpg") center center/cover;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.gallery img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    transition:.4s;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.gallery img:hover{
    transform:scale(1.05);
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

/* ==========================
   SUPPORTERS
========================== */

.hero-supporter{
    background:url("../images/supporters.jpg") center center/cover;
}

.benefits{
    list-style:none;
    padding:20px 0;
    text-align:left;
}

.benefits li{
    padding:8px 0;
    border-bottom:1px solid #eee;
}

.benefits li:last-child{
    border-bottom:none;
}

.benefits li::before{
    content:"⚽ ";
    color:#c0001f;
}

.card h2{
    color:#ffffff;
    margin:15px 0;
}


/* ===========================
   CALENDRIER
=========================== */

.hero-calendar{
    background:url("../images/calendrier.jpg") center center/cover;
}

.calendar{
    width:100%;
    border-collapse:collapse;
    background:white;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    border-radius:10px;
    overflow:hidden;
}

.calendar th{
    background:#c0001f;
    color:white;
    padding:18px;
}

.calendar td{
    padding:18px;
    text-align:center;
    border-bottom:1px solid #ddd;
}

.calendar tr:hover{
    background:#f8f8f8;
}

.calendar .btn{
    padding:10px 20px;
    font-size:14px;
}

@media(max-width:768px){

.calendar{
    display:block;
    overflow-x:auto;
}

}

/* HEADER */

header{
    background:#c0001f;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 60px;
    position:sticky;
    top:0;
    z-index:1000;
}

.hero-news{
    background:url("../images/actualites.jpg") center/cover;
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:20px;
}

.card p{
    text-align: center;
    margin:15px 0;
}

.logo img{
    width:80px;
}

nav ul{
    list-style:none;
    display:flex;
    gap:25px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color:#ffd700;
}

.btn{
    background:white;
    color:red;
    padding:15px 35px;
    text-decoration:none;
    border-radius:40px;
    transition:.3s;
    display:inline-block;
        
}

.btn:hover{
    background:#960018;
color:white;	
    transform:translateY(-3px);
}

/* SECTIONS */

section{
    padding:0px 10%;
}
section h1{
    text-align:center;
    color:#ffffff;
    margin-bottom:25px;
    font-size:70px;
}
section h2{
    text-align:center;
    color:#ffffff;
    margin-bottom:25px;
    font-size:25px;
}
section h3{
    text-align:center;
    color:#ffffff;
    margin-bottom:25px;
    font-size:25px;
}

/* CARTES */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}
.cards img{
    place-self: center;
    display: block;       /* Entfernt den standardmäßigen Inline-Leerraum unter dem Bild */
    margin-bottom: 0px;   /* Steuert den genauen Abstand zum Text darunter (Wert nach Wunsch anpassen) */
}
.cards h3 {
    text-align: center;
    margin-top: 0;      /* Zieht die Überschrift nah an das Bild */
    margin-bottom: 0px; /* Kleiner Abstand zum Namen darunter */
}
.cards p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0px; /* Hält die Zeilen kompakt zusammen */
}
.cards a {
  display: block;      /* Oder display: table; wenn er nicht die volle Breite einnehmen soll */
  margin-left: auto;
  margin-right: auto;
  width: fit-content;  /* Verhindert, dass der Link die gesamte Breite streckt */
  margin-top: 20px;
}
.section-top {
    margin-bottom: 50px; /* Erzeugt 50px Platz zur nächsten Sektion */
}
.card{
    background:white;
    padding:35px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
}
.card a{
    align-items: center;
}

.card:hover{
    transform:translateY(-8px);
}

.card i{
    font-size:55px;
    color:#c0001f;
    margin-bottom:20px;
}

.card h3{
    margin-bottom:15px;
color:white;
}

/* Supporter cardes */

.supportercards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.card{
    background:#C0001F;
    padding:35px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
}

.card img{
    width:110%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:20px;
}


.card:hover{
    transform:translateY(-8px);
}

.card i{
    font-size:55px;
    color:#ffffff;
    margin-bottom:20px;
}

.card h3{
    margin-bottom:15px;
}

.card a{
    align-items: center;
}

/* EDITIONS */

.bronze{
    border-top:8px solid #cd7f32;
}

.silver{
    border-top:8px solid silver;
}

.gold{
    border-top:8px solid gold;
}

.black{
    border-top:8px solid #111;
}

/* SPONSORS */

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: start; /* Geändert von 'center' auf 'start', damit alle Boxen oben bündig sind */
}

/* NEU: Zentriert das Bild und den Text untereinander */
.sponsor-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-grid img {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    display: block; /* Entfernt den Inline-Leerraum unter dem Bild */
}

.sponsor-grid .image-caption {
    text-align: center;
    margin-top: 10px;    /* Abstand direkt unter dem Bild */
    margin-bottom: 0;   
    font-size: 1.7rem;   
    color: white;   
    font-weight: 900;   
}

/* FOOTER */

footer{
    background:#222;
    color:white;
    text-align:center;
    padding:40px;
}

footer img{
    margin-bottom:15px;
}

.social{
    margin:25px 0;
}

.social a{
    color:white;
    font-size:28px;
    margin:0 12px;
    transition:.3s;
}

.social a:hover{
    color:#c0001f;
}

/* RESPONSIVE */

@media(max-width:900px){

header{
    flex-direction:column;
    padding:20px;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
    margin-top:20px;
}

.overlay h1{
    font-size:42px;
}

.overlay h2{
    font-size:20px;
}

section{
    padding:50px 5%;
}

}
/* Animation des sections */

.hidden{
    opacity:0;
    transform:translateY(50px);
    transition:1s;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Bouton Retour en haut */

#topBtn{
    position:fixed;
    bottom:25px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#c0001f;
    color:white;
    font-size:24px;
    cursor:pointer;
    display:none;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
    transition:.3s;
}

#topBtn:hover{
    background:#960018;
}

/* SLIDER */

.slider {
  position: relative;
background-color:#c0001f;  
width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden; /* Verhindert, dass Bilder herausragen */
}

.slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Passt das Bild an das Format an */
  opacity: 0;
  animation: rotateImages 12s infinite linear;
}

/* Verzögerung für jedes einzelne Bild (bei 3 Bildern à 4s = 12s Gesamtdauer) */
.slider img:nth-child(1) {
  animation-delay: 0s;
}

.slider img:nth-child(2) {
  animation-delay: 4s;
}

.slider img:nth-child(3) {
  animation-delay: 8s;
}

/* Keyframes für das Ein- und Ausblenden */
@keyframes rotateImages {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

/* CSS FÜR DAS RASTER DER VORSCHAUBILDER */
.gallery-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 20px;
}
.gallery-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s;
}
.gallery-thumb:hover {
  transform: scale(1.05);
}

/* CSS FÜR DAS POP-UP (LIGHTBOX) */
