/*
 Theme Name:     Tennis Club de Toursainte
 Theme URI:      https://cestnous.fr
 Description:    Child Theme
 Author:         C'est Nous
 Author URI:     https://cestnous.fr
 Template:       Divi
 Version:        1.0.0
*/


/* GENERAL */

:root {
  --font-body: special-gothic, sans-serif;
  --font-title: filicudi-solid, sans-serif;
  --font-icon: Material Symbols Outlined;

  --x-small: 12px;
  --small: 14px;
  --x-large: 32px;

  --size-body: 16px;
  --size-title-h1: 35px;
  --size-title-h2: 35px;
  --size-title-h3: 30px;
  --size-title-h4: 18px;
  --size-title-script: 75px;

  --regular: 400;
  --bold: 700;

  --transition: all ease-in-out 500ms;

  --light: #D2E4D6;
  --green: #18543B;
  --yellow: #FFE318;

  --module-gutter: 40px;
}

@media (max-width: 980px) {
  :root {
    --size-body: 16px;
    --size-title-h1: 30px;
    --size-title-h2: 25px;
    --size-title-h3: 20px;
    --size-title-h4: 18px;
    --size-title-script: 45px;
  }
}

body {
  font-family: var(--font-body);
  font-weight: var(--lightfont);
  font-size: var(--size-body);
}

h1, h2, h3, h4 {
  margin-top: 0;
  padding: 0;
  font-weight: var(--bold);
  font-family: var(--font-title) !important;
  line-height: 1.2em;
  margin-bottom: 15px;
}

h1 {
  font-size: var(--size-title-h1) !important;
}

h2 {
  font-size: var(--size-title-h2) !important;
  margin-bottom: 25px;
}

h3 {
  font-size: var(--size-title-h3) !important;
}

h4 {
  font-size: var(--size-title-h4) !important;
}

h5 {
  font-size: var(--size-title-h4) !important;
  font-weight: var(--bold);
}

p {
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0;
  line-height: 1.6;
}

a {
  transition: var(--transition);
}

li::marker {
    color: var(--accent);
}

.dflex {
  display: flex;
  flex-wrap: wrap;
}

.vertical_center {
  align-items: center; 
}

.justify_bet {
  justify-content: space-between;
}

.container {
  width: 95%;
  max-width: 1470px;
  margin: auto;
}

.et_pb_section {
  background: transparent;
}

.container-fluid {
  width: 100% !important;
  max-width: 100%;
}

.dark_bg {
  background: var(--green);
}

.dark_bg h1, .dark_bg h2, .dark_bg h3, .dark_bg h4, .dark_bg h5, .dark_bg h6, .dark_bg p, .dark_bg a {
  color: white;
}

body.et_pb_button_helper_class .et_pb_button, body.et_pb_button_helper_class .et_pb_module.et_pb_button, input.btn_primary, input.wpcf7-submit {
    background: var(--green);
    border: none;
    border-radius: 5px;
    color: var(--yellow);
    padding: 15px 30px !important;
    text-transform: uppercase;
    line-height: normal !important;
    font-size: initial;
    letter-spacing: 1px;
    display: inline-block;
    font-family: var(--font-title);
}

body.et_pb_button_helper_class .et_pb_button:hover, body.et_pb_button_helper_class .et_pb_module.et_pb_button:hover, input.btn_primary:hover, input.wpcf7-submit:hover {
    background: var(--yellow);
    color: var(--green);
    border-radius: 5px;
    padding: 15px 30px !important;
}

body.et_pb_button_helper_class .et_pb_button.btn_second {
    background: var(--light);
    color: var(--green);
}

body.et_pb_button_helper_class .et_pb_button.btn_second:hover {
    background: var(--green);
    color: var(--light);
    padding: 15px 30px !important;
}

@media (max-width: 980px) {
  .container, .et_pb_row {
    width: 95% !important;
  }
}

/* HEAD */

.mainHeader {
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 10;
  background: white;
  transition: all ease-in-out 0.5s;
}

.menu_head {
  justify-content: space-between;
  padding: 10px 0;
}

.menu_left, .menu_right, #menu {
  gap: 50px;
  width: 100%;
}

.logo a > img {
  max-width: 120px;
  width: 120px;
  display: block;
}

header .menu-item a {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-title);
  position: relative;
}

header .menu-item a:before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: var(--yellow);
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all ease-in-out 0.2s;
}

header .menu-item a:hover:before {
  opacity: 1;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  width: 100%;
}

.logo {
  max-width: 200px;
}

.right_part {
    text-align: right;
}

.nav-container .menu-items {
  display: flex;
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 32px;
  width: 32px;
  top: 25px;
  right: 4px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: block;
  height: 20px;
  width: 25px;
  position: absolute;
  top: 35px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .menu-items {
  height: 100vh;
  width: 101vw;
  transform: translate(-175%, 48vh);
  flex-direction: column;
  margin-left: 0px;
  padding: 50px;
  transition: transform 0.5s ease-in-out;
  text-align: center;
  background: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translate(-3vw, 40vh)
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.nav-container input[type="checkbox"]:checked ~ .logo{
  display: none;
}

.btn_head a {
  background: var(--accent);
  padding: 15px 20px !important;
  font-size: var(--small);
  text-transform: uppercase;
  font-weight: var(--medium);
  border-radius: 10px;
}

@media (min-width: 980px) {
  ul.sub-menu {
      position: absolute;
      display: none;
  }

  .menu-item-has-children:hover .sub-menu {
    display: flex;
    width: 100vw;
    left: 50%;
    padding: 30px 50px;
    justify-content: space-between;
    background: var(--light);
    transform: translateX(-50%);
  }

}

@media (max-width: 980px) {
  #menu {
    flex-direction: column;
    gap: 25px;
  }

  .menu-item-has-children .sub-menu {
    display: block;
    opacity: 1;
    border-bottom: 0;
    font-size: var(--small);
  }

  header .menu-item {
    color: white;
  }

  .menu_head {
    padding: 30px 0;
  }

}

/* HOME */

.slider_video .et-pb-has-background-video {
    min-height: 60vh;
}

.slider_video h1, .slider_video p {
    color: white;
}

.slider_video h2 {
    color: var(--yellow);
    font-size: 25px !important;
}

.icon_serv h4 {
  margin-bottom: 0;
}

.bigtitle h2, .title_page h1 {
    font-size: 50px !important;
    margin: 0;
}

.bigtitle h2:before, .title_page h1:before {
    content: "";
    background: var(--yellow);
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 100%;
    top: 50%;
    transform: translateY(-50%);
    left: -40px;
}

.title_page h1 {
  width: fit-content;
  color: white;
  margin: auto;
  position: relative;
}

.bigtitle.center h2 {
  width: fit-content;
  margin: auto;
  position: relative;
}

.cta {
    background: var(--yellow);
}

.cta h2, .cta p {
    margin: 0;
}

.title_page:before {
    content: "";
    background: rgb(24 84 59 / 70%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.equipe_bloc .et_pb_text {
    background: var(--yellow);
    padding: 30px 25px 20px;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
}

.equipe_bloc img {
    aspect-ratio: 4 / 6;
    object-fit: cover;
}

@media (max-width: 980px) {
  .bigtitle h2, .title_page h1 {
    font-size: 35px !important;
  }

  .bigtitle h2:before, .title_page h1:before {
    width: 15px;
    height: 15px;
    left: -25px;
  }

}

/* FOOTER */ 

.footer_contact {
  background: url("https://tennispadeltoursainte.com/wp-content/uploads/2026/04/Tennis-du-Midi-Tour-Sainte-Marseille_-30-scaled.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.contact_bloc, .slider_video .content .et_pb_column, .event_bloc .content {
  background: rgb(24 84 59 / 50%);
  backdrop-filter: blur(10px);
  padding: 80px;
  border-radius: 10px;
  width: 40vw;
}

.contact_bloc h3, .contact_bloc h5, .contact_bloc p, .contact_bloc a {
  color: white;
}

.btn_bloc.dflex {
  gap: 40px;
  margin-top: 40px;
}

#main-footer {
    background: var(--green);
    position: relative;
    border-top: solid 10px var(--yellow);
    border-bottom: solid 10px var(--yellow);
}

.footer-top.container {
    padding: 80px 0 20px;
}

.footer-top.container, .footer-top h6, .footer-top a {
    color: white;
}

.first_col {
    flex: 1 1 auto;
}

.info_lfs {
    margin-top: 25px;
}

.footer-top h6 {
    font-size: var(--size-body);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-title);
}

.menu_col.dflex {
    gap: 50px;
}

.menu_col .copyright {
    flex: 1 1 100%;
    font-size: var(--x-small);
}

.menu_col div {
    min-width: calc(100% / 3 - 100px);
}

/* RESPONSIVE */ 

@media (max-width: 980px) {
  .slider_video .et_pb_text h2 {
    text-align: center;
    font-size: 30px !important;
    mix-blend-mode: overlay;
  }

  footer#main-footer:before {
    height: 46vh;
  }

  .footer-top.container {
    padding: 25px 0 25px;
  }

  .first_col {
    text-align: center;
  }
}

/* FORM */

input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text], select, textarea {
    background-color: transparent;
    border: 1px solid var(--light);
    padding: 15px;
    color: inherit;
    width: 100%;
    border-radius: 5px;
}

/* STAGES */

.stages-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--green);
  border-radius: 10px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.stages-tabs::-webkit-scrollbar {
  display: none;
}

.stage-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  min-width: 260px;
  flex: 1 0 0;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  text-align: center;
  font-size: initial;
  letter-spacing: 1px;
}

.stage-tab.active {
  background: var(--yellow);
  color: var(--green);
}

.stage-tab.bounce {
  animation: tabBounce 0.45s ease;
}

@keyframes tabBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.96);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .stages-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0;
  }

  .stage-tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 15px;
  }
}

.stages-list {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 25px;
}

.stages-list .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgb(24, 84, 59, 0.6);
    padding: 40px;
    border-radius: 10px;
}

.stages-list h4, .stages-list p {
  color: white !important;
}

.material-symbols-outlined {
    display: inline-flex;
    vertical-align: middle;
}

@media (max-width: 980px) {
  .stages-list .content {
    padding: 20px;
  }

  .inscription_btn {
    width: 100%;
    text-align: center;
  }

  .stages-list .content a {
    width: 100%;
  }
}

/* RESPONSIVE */ 

@media (max-width: 980px) {
  .contact_bloc, .slider_video .content .et_pb_column, .event_bloc .content {
    padding: 40px;
    width: 95VW;
  }

  .slider_video .et_pb_text h2 {
    font-size: 25px !important;
  }

  body.et_pb_button_helper_class .et_pb_button, body.et_pb_button_helper_class .et_pb_module.et_pb_button {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }



}