/*
Theme Name: Sandrine
Author: Dimitri Alexandre
Tested up to: 6.2
Requires PHP: 5.6
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sandrine
*/


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    --color-yellow: #F4CE85;
    --color-orange: #fdaf89;
    --color-red: #f87c7c;
    --color-blue: #5FA7CF;
}

body {
    font-family: "Tajawal", serif;
    font-weight: 400;
    overflow-x: hidden;
    background-color: #fe822934;
}

h1, h2, h3 {
    font-weight: 200;
}

h1.wp-block-heading {
  margin-bottom: 1rem;
}

.navbar {
  position: fixed;
  z-index: 10;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

.navbar .menu-items {
  display: flex;
  background: linear-gradient(#FF924D, #FFC756);
}

.navbar .nav-container li {
  list-style: none;
}

.navbar .nav-container a {
  text-decoration: none;
  color: #0e2431;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.7rem;
}

.nav-container {
  display: block;
  position: relative;
  height: 60px;
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 60px;
  width: 70px;
  z-index: 5;
  cursor: pointer;
  opacity: 0;
}

.nav-container .hamburger-lines {
  display: block;
  height: 50px;
  width: 57px;
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FF924D;
  border-radius: 0 0 12px 0;
  padding: 12px;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 36px;
  background: #0e2431;
}

.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;
}

.navbar .menu-items {
  height: 100vh;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
  text-align: center;
}

.navbar .menu-items li {
  margin-bottom: 1.5rem;
  font-weight: 500;
  padding-left: 0;
  margin-bottom: 2rem;
}

.navbar .menu-items li::before {
  content: none;
}

.navbar .nav-container a::before {  
  transform: scaleX(0);
  transform-origin: bottom right;
}

.navbar .nav-container a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar .nav-container a {
  z-index: 1;
  position: relative;
  font-size: 2.5rem;
  color: white;
}

.navbar .nav-container a::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0 0 0 0;
  background: black;
  z-index: -1;
  transition: transform 1s ease;
}

.navbar .menu {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--color-red);
}

.menu-menu-1-container {
	display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.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);
}

.reveal {
  opacity: 0; /* L'élément commence invisible */
  transform: translateX(-50px); /* Position initiale décalée */
}

.reveal.visible {
  opacity: 1; /* L'élément devient visible */
  transform: translateX(0); /* L'élément glisse à sa position initiale */
  transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

.bandeau {
  background-color: white;
  padding: 3rem 0;
}

.bandeau .content {
  margin: 0 auto;
  max-width: calc(100% - 2rem);
}

.bandeau.bg-orange {
  background-color: var(--color-orange);
}

.bandeau.bg-red {
  background-color: var(--color-red);
  color: white;
}

.bandeau.transparent {
  background-color: transparent;
}

.bandeau.degrade {
  background: linear-gradient(#FF924D, #FFC756);
}

p, li {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

.frame {
  background-color: var(--color-red);
  color: white;
  padding: 1rem;
}

.frame-black {
  border: 2px solid black;
  color: black;
  padding: 1rem;
}

ul {
  list-style: none; /* Supprime la puce par défaut */
  padding: 0;
}

ul li {
  position: relative;
  padding-left: 24px; /* Espace pour la pastille */
  margin-bottom: 0.5rem;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(7px);
  width: 12px;
  height: 12px;
  background-image: url('./assets/icons/sun.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.img-container h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Témoignages */
blockquote.swiper-slide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  height: auto;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--color-orange);
  display: none;
}

.swiper-pagination-bullet-active {
  background: var(--color-orange);
}

/* Medium devices (landscape tablets) */
@media only screen and (min-width: 768px) {
  .img-container h1 {
    font-size: 3rem;
  }
  .bandeau {
    padding: 5rem 1rem;
  }
  .bandeau .content {
    margin: 0 auto;
    max-width:  calc(768px - 2rem);
  }

  .bandeau.degrade {
    background: linear-gradient(90deg, #FF924D,rgb(255, 209, 81), #FF924D);
  }

  blockquote.swiper-slide {
    padding: 0 5rem;
  }
  .swiper-button-next, .swiper-button-prev {
      display: block;
  }

  .nav-container .hamburger-lines {
    height: 60px;
    width: 70px;
  }

  ul li {
    margin-bottom: 0;
  }

  ul li::before {
    transform: translateY(9px);
  }
}

/* Large devices (laptops/desktops) */
@media only screen and (min-width: 1280px) {
  p, li {
    font-size: 1.3rem;
  }

  .bandeau .content {
    margin: 0 auto;
    max-width: calc(1280px - 2rem);
  }
}