:root {
  --box-x-padding: 2rem;
  --box-y-padding: 2rem;
}

body {
  font-family: 'Open Sans', sans-serif;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1{
  padding-bottom: 20px;
}


.header {
  display: flex;
  justify-content: center; /* Centrage horizontal */
  align-items: center;     /* Centrage vertical */
  padding: 0 2rem;
  height: 5rem;
  background: rgba(0, 0, 0, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__logo {
  margin-right: auto; /* pousse la nav au centre à gauche */
}

.navbar {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Style du bouton Connexion */
.navbar__item--button {
  margin-left: auto; /* pousse à droite s'il est dans une flex row */
}

.navbar__link--button {
  background: black;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: white 0.3s ease;
}

.navbar__link--button:hover {
  background: #333;
  color: white;
}



.navbar__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.header__logo img{
  height: 70px;
  width: 70px;
}


.navbar__menu {
  position: relative;
  display: flex;
}

.navbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 10rem;
  color: #fff;
  transition: 250ms ease all;
  text-decoration: none;
  text-transform: uppercase;
}

.navbar__link:hover svg {
  stroke: #C4151C;
}

.navbar__link:hover span,
.navbar:not(:hover) .navbar__link:focus span {
  opacity: 1;
  transform: translate(0);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 15;
}

.burger span {
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}



@media (max-width: 768px) {
  .burger {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .navbar {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    z-index: 12;
  }

  .navbar.active {
    display: flex;
  }

  .navbar__menu {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar__link {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
  }
}



/* PAGE CLUB */

.progression-section {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.progression-section h2 {
  font-size: 2rem;
  color: #C4151C;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: nowrap;
  margin-top: 2rem;
  flex-direction: row; /* essentiel */
}

/* Hauteurs différentes pour effet escalier */
.podium-spot.first {
  height: 280px;
}

.podium-spot.second {
  height: 220px;
}

.podium-spot.third {
  height: 180px;
}

/* Item podium */
.podium-item {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  width: 180px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

/* Avatar */
.avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #bbb, #ddd);
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Place badge */
.place {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  color: white;
}

/* Or, Argent, Bronze */
.podium-spot.first .podium-item {
  background: linear-gradient(135deg, #FFD700, #FFEA8A);
}

.podium-spot.second .podium-item {
  background: linear-gradient(135deg, #C0C0C0, #E0E0E0);
}

.podium-spot.third .podium-item {
  background: linear-gradient(135deg, #cd7f32, #e2b97f);
}

.podium-spot.first .place {
  background: #FFD700;
  color: black;
}

.podium-spot.second .place {
  background: #C0C0C0;
  color: black;
}

.podium-spot.third .place {
  background: #cd7f32;
  color: white;
}

/* ACTUALITES */

.news-feed {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.news-feed h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #C4151C;
  text-align: center;
}

.news-item {
  border-left: 4px solid #C4151C;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.news-item img.news-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.news-item h3 {
  margin: 0.2rem 0 0.5rem;
  color: #222;
  font-size: 1.2rem;
}

.news-item p {
  color: #444;
  font-size: 1rem;
  line-height: 1.4;
}

.news-item a {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #C4151C;
  text-decoration: underline;
}


/* ENTRAINEMENTS */

.training-section {
  padding: 60px 20px;
  background-color: #fff8f5;
  text-align: center;
}

.training-section h2 {
  font-size: 2rem;
  color: #C4151C;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.training-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.training-list li {
  background: white;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 5px solid #C4151C;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.training-list h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #C4151C;
}

.training-list p {
  margin: 0.5rem 0 0;
  color: #444;
  font-size: 0.95rem;
}





/* CARROUSEL */

.carousel-wrapper {
  position: relative;
  width: min(90vw, 1700px);
  margin: 80px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.carousel-manual {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  width: 100%;
  scroll-behavior: smooth;
}
.carousel-item {
  min-width: 350px;
  max-width: 350px;
  height: 500px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #C4151C;
}

.carousel-item > div {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-item h2 {
  font-size: 1.4rem;
  color: #C4151C;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.carousel-item p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.carousel-item a {
  align-self: start;
  text-decoration: none;
  background: #C4151C;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  transition: #a31217 0.3s ease;
}



.carousel-btn {
  background-color: #C4151C;
  color: white;
  border: none;
  padding: 1.5rem;
  font-size: 2.0rem;
  cursor: pointer;
  border-radius: 50%;
  transition: #a31217 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background-color: #a31217;
}



/* HERO */

.hero-tennis {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('../../images/VVTT.jpg') center/cover no-repeat;
              height: 700px;
  padding: 150px 20px;
  text-align: center;
  color: white;

}

.hero-tennis .hero-content {
  max-width: 1250px;
  margin: 0 auto;
}

.hero-content p {
  padding-bottom: 50px;
}

.hero-tennis h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-align: center;
}


.hero-tennis p {
  font-size: 1.2rem;
}

/* PAGE MANIFESTATIONS */

/* Manifestations */
.manifestations {
  background: #f7f7f7;
  color: #111;
}

/* Hero / Slider */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin-right: 1rem;
}

/* Events blocks */
.event-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 2rem;
  flex-wrap: wrap;
  background: white;
}

.event-block.reverse {
  flex-direction: row-reverse;
  background: #f5f5f5;
}

.event-text {
  flex: 1;
  min-width: 300px;
}

.event-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #C4151C;
}

.event-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.event-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.event-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: #C4151C;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: #c43c41 0.3s;
}

.btn:hover {
  background: #d43136;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #C4151C;
  color: #C4151C;
}

.btn-secondary:hover {
  background: #ee5156;
  color: white;
}


/* SECTION GENERIQUE */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 80px 10%;
  flex-wrap: wrap;
}

.section-left {
  flex-direction: row;
}

.section-right {
  flex-direction: row-reverse;
}

.section-text {
  flex: 1;
  min-width: 300px;
}

.section-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.section-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.section h2 {
  font-size: 2rem;
  color: #C4151C;
}

.section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* BTN */
.btn {
  display: inline-block;
  padding: 10px 25px;
  background: #C4151C;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #a31217;
}

/* PAGE LOGIN */



.login-container {
  margin-top: 50px;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
				0 10px 10px rgba(0,0,0,0.22);
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	min-height: 650px;
}

.login-form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.login-form a {
 color: #C4151C;       /* couleur normale */
  text-decoration: none;}

.login-sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}

.login-container.right-panel-active .login-sign-in-container {
	transform: translateX(100%);
}

.login-sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

.login-container.right-panel-active .login-sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: login-show 0.6s;
}

@keyframes login-show {
	0%, 49.99% {
		opacity: 0;
		z-index: 1;
	}
	50%, 100% {
		opacity: 1;
		z-index: 5;
	}
}

.login-overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 1;
}

.login-container.right-panel-active .login-overlay-container {
	transform: translateX(-100%);
}

.login-overlay {
	background: linear-gradient(to right, #FF4B2B, #FF416C);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.login-container.right-panel-active .login-overlay {
	transform: translateX(50%);
}

.login-overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.login-overlay-left {
	transform: translateX(-20%);
}
.login-container.right-panel-active .login-overlay-left {
	transform: translateX(0);
}

.login-overlay-right {
	right: 0;
	transform: translateX(0);
}
.login-container.right-panel-active .login-overlay-right {
	transform: translateX(20%);
}

.login-social-container {
	margin: 20px 0;
}

.login-social-container a {
	border: 1px solid #DDDDDD;
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin: 0 5px;
	height: 40px;
	width: 40px;
	color: #333;
}

.login-form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
}

.login-form input {
	background-color: #eee;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
}

.login-btn {
  margin-top: 20px;
	border-radius: 20px;
  padding: 12px 45px;
	border: 1px solid #FF4B2B;
	background-color: #FF4B2B;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in;
	cursor: pointer;
}

.login-btn:active {
	transform: scale(0.95);
}

.login-btn:focus {
	outline: none;
}

.login-btn.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
}

/* Responsive */

/* Footer */
.footer {
  
  position: relative;
  margin-top: 50px;
  padding: 3rem 0;
  color: #fff;
  background: rgba(0, 0, 0,0.9);
}

.footer__columns {
  display: flex;
  justify-content: space-between;
  width: 1200px;
  padding-left: 100px;
  
}

.footer__col-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.footer__col-title * ~ span {
  margin-left: 1rem;
}

.footer a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer a * ~ span {
  margin-left: 1rem;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__copyrights {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyrights p {
  display: flex;
    margin-left: 0.5rem;

}


@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .header__logo {
    margin: 0 auto;
  }

  .navbar {
    justify-content: center;
  }

  .navbar__menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .navbar__link {
    width: auto;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
   .navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.95); /* Ou var(--vin) */
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 6rem 1rem 2rem;
    gap: 1.5rem;
    z-index: 1000;
    transition: transform 0.3s ease;
  }

  .navbar.active {
    display: flex;
  }

  .navbar__menu {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .navbar__item {
    width: 100%;
    text-align: center;
  }

  .navbar__link {
    width: 100%;
    padding: 1rem 0;
    color: #fff;
    background: transparent;
    font-size: 1.2rem;
    transition: background 0.2s;
  }

  .navbar__link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1010;
    background: #111; /* ou var(--vin) */
  }

  .burger {
    display: flex;
    position: relative;
    z-index: 1011; /* au-dessus du menu */
  }

  /* Version mobile */

  .carousel-wrapper {
    width: 100%;
    margin: 40px auto;
    gap: 1rem;
    padding: 0 10px;
  }

  .carousel-manual {
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* fluide sur iOS */
  }

  .carousel-item {
    min-width: 80%;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
  }

  .carousel-item img {
    height: 150px;
  }

  .carousel-item h2 {
    font-size: 1.1rem;
  }

  .carousel-item p {
    font-size: 0.85rem;
  }

  .carousel-item a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .carousel-btn {
    padding: 1rem;
    font-size: 1.5rem;
  }


  .footer__columns {
    flex-direction: column;
    padding-left: 0;
    padding: 0 2rem;
    gap: 2rem;
    width: 100%;
  }

  .footer__col-title {
    justify-content: center;
  }

  .footer__nav-list {
    align-items: center;
  }

  .footer__copyrights p {
    justify-content: center;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

  .navbar.active {
    display: flex;
  }

  .navbar__menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .navbar__item {
    width: 100%;
    text-align: center;
  }

  .navbar__link {
    width: 100%;
    padding: 0.8rem 0;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .navbar__link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 1011;
  }

  .burger span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 4rem;
    background: rgba(0, 0, 0, 0.95);
  }

  .header__logo img {
    height: 50px;
    width: auto;
  }

  .carousel-wrapper {
    width: 100%;
    margin: 20px auto;
    gap: 0.5rem;
    padding: 0 5px;
  }

  .carousel-manual {
    gap: 0.5rem;
  }

  .carousel-item {
    min-width: 95%;
    max-width: 95%;
    height: auto;
    border-radius: 8px;
  }

  .carousel-item img {
    height: 120px;
  }

  .carousel-item h2 {
    font-size: 1rem;
  }

  .carousel-item p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .carousel-item a {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .carousel-btn {
    padding: 0.8rem;
    font-size: 1.2rem;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer__columns {
    padding: 0 1rem;
  }

  .footer__col-title {
    font-size: 1.2rem;
  }

  .footer__nav-list {
    gap: 1rem;
  }
}



