/*
Theme Name: MArocanSurfHouse
Theme URI: https://morocansurfhouse.web-b.fr/
Author: Benkessas Benjamin
Author URI: https://benjamin.benkessas.fr
Description: Theme for Acharf
Version: 1.0
Text Domain: montheme
*/


html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
p {
  font-size: 16px!important;
}
.title-room {
  font-size: 3.5rem!important;
}
body {
  line-height: 1.6;
  font-family: Merriweather, sans-serif;
  background-color: #ffffff;
  color: #333333;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Oswald, serif;
  color: #D2B48C;
}
/* Titres */
h1 {
  font-size: 2.5rem;    /* 40px */
  line-height: 1.2;     /* 48px */
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;      /* 32px */
  line-height: 1.3;     /* 41.6px */
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.75rem;   /* 28px */
  line-height: 1.4;     /* 39.2px */
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.5rem;    /* 24px */
  line-height: 1.4;     /* 33.6px */
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.25rem;   /* 20px */
  line-height: 1.4;     /* 28px */
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;      /* 16px */
  line-height: 1.4;     /* 22.4px */
  margin-bottom: 0.5rem;
}

/* Ajustements mobiles */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }    /* 32px */
  h2 { font-size: 1.75rem; } /* 28px */
  h3 { font-size: 1.5rem; }  /* 24px */
  h4 { font-size: 1.25rem; } /* 20px */
}
a {
  color: #007bff;
  text-decoration: none !important;
}

a:hover {
  text-decoration: none;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style-type: none;
}

.pb-s {
  padding-bottom: 50px;
}
@media (max-width: 768px) {
  .pb-s {
    padding-bottom: 20px;
  }
}

.pt-s {
  padding-top: 50px;
}
@media (max-width: 768px) {
  .pt-s {
    padding-top: 20px;
  }
}

.section {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .text-center {
    text-align: center;
  }
  .hidden {
    display: none !important;
  }
}
.container {
  width: 80%;
  margin-right: auto;
  margin-left: auto;
  padding: 100px 0;
}
@media (max-width: 768px) {
  .container {
    padding: 40px 0;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.align-middle-columns {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
  padding-right: 15px;
  padding-left: 15px;
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-1 {
  flex: 0 0 8.33%;
  max-width: 8.33%;
}

.col-2 {
  flex: 0 0 16.66%;
  max-width: 16.66%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-4 {
  flex: 0 0 33.33%;
  max-width: 33.33%;
}

.col-5 {
  flex: 0 0 41.66%;
  max-width: 41.66%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-7 {
  flex: 0 0 58.33%;
  max-width: 58.33%;
}

.col-8 {
  flex: 0 0 66.66%;
  max-width: 66.66%;
}

.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-10 {
  flex: 0 0 83.33%;
  max-width: 83.33%;
}

.col-11 {
  flex: 0 0 91.66%;
  max-width: 91.66%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* Vidéo pour les ordinateurs */
.desktop-video {
  display: block; /* Visible par défaut sur les écrans larges */
}

.mobile-video {
  display: none; /* Cachée par défaut sur les écrans larges */
}

@media (max-width: 768px) {
  /* Vidéo pour les mobiles */
  .desktop-video {
      display: none; /* Cachée sur les écrans plus petits */
  }

  .mobile-video {
      display: block; /* Visible sur les écrans plus petits */
  }
  .rakkas-title {
    font-size: 2.5rem!important;
  }
}

.video-container {
  position: relative;
  width: 100%;
  height: 90vh; 
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transform: translate(-50%, -50%);
}

.svg-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.svg-container svg {
  transform: rotate(180deg) scaleX(-1);
  fill: #FFFFFF;
  height: auto;
  display: block;
  padding-bottom: 1px;
}


.svg-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.svg-container svg {
  transform: rotate(180deg) scaleX(-1);
  fill: #FFFFFF;
  height: auto;
  display: block;
  padding-bottom: 1px;
}

.s-1 {
  position: relative;
}

#moving-image {
  position: absolute;
  top: 30px;
  left: 60vh;
  transition: left 0.5s ease-out;
}

.image-mask {
  width: 300px;
  height: 200px;
  background-image: url("/img/img.jpg");
  -webkit-mask-image: url("/img/mask2.png");
  mask-image: url("/img/mask2.png");
  mask-mode: alpha;
}

.custom-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.custom-col {
  padding-right: 15px;
  padding-left: 15px;
  flex: 1 0 0%;
  max-width: 50%;
}

@media (max-width: 768px) {
  .custom-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.custom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 0.25rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.custom-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}
.custom-card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}
.custom-card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}
.custom-card-title {
  margin-bottom: 0.75rem;
  font-family: Oswald, serif;
  color: #D2B48C;
}
.custom-card-text {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.btn{
	color:white!important;
}
.btn-custom {
  background-color: #004163 !important;
  border-color: #004163 !important;
  color: white!important;
}
.btn-custom:hover {
  background-color: #e5d4be !important;
  border-color: #e5d4be !important;
}

.swiper {
  width: 100%;
  cursor: pointer;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 18px;
  background: #fff;
  width: auto !important;
  height: 300px;
}
.swiper-slide img {
  display: block;
  width: auto;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.hero {
  background-image: url("https://morocansurfhouse.web-b.fr/wp-content/uploads/2024/03/surfer-running-pink-board-imsouane-37.webp");
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin-bottom: 20px;
    border: 1px solid #eceeef;
    padding: 20px;
    border-radius: 5px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #007bff;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}
.navbar-light .navbar-nav .nav-link{
	color:#004163!important;
}
.photos-gallerie .col .card{
	margin-bottom: 16px;
}
.custom-card {
  position: relative;
  overflow: hidden;
  color: white;
}
.custom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.custom-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}
.custom-title {
  font-size: 1.5rem;
  font-weight: bold;
}
.custom-divider {
  width: 50px;
  height: 4px;
  background-color: white;
  margin: 10px 0;
}
.custom-discover-btn {
  background-color: #ffffff00;
  color: white;
  border: none;
  text-transform: uppercase;
  font-weight: bold;
}
.custom-discover-btn:hover {
  color: white!important;
}
/* whatsapp */
#whatsapp-logo {
  position: fixed!important;
  bottom: 20px!important;
  right: 20px!important;
  z-index: 1000!important;
  display: none!important; /* Caché par défaut sur desktop */
}

#whatsapp-logo img {
  width: 120px!important;
  height: 120px!important;
}

/* Afficher le logo WhatsApp uniquement sur mobile */
@media (max-width: 768px) {
  #whatsapp-logo {
    display: block!important;
  }
  
  #whatsapp-logo img {
    width: 60px!important; /* Encore plus petit sur mobile */
    height: 60px!important;
  }
}
/* lightbox */
/* Style for lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.9);
}

.lightbox-content {
  display: block;
  margin: auto;
  width: 90%; /* Définit la largeur de l'image à 90% de la largeur de la fenêtre */
  max-width: 1200px; /* Définit une largeur maximale pour les grands écrans */
  height: auto; /* Maintient le ratio de l'image */
}


.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #000;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #000;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
}

.next {
  right: 10%;
}

.prev {
  left: 10%;
}

.prev:hover,
.next:hover {
  color: #bbb;
}
.card {
  position: relative;
  overflow: hidden; /* Pour masquer la partie de l'image qui dépasse lors du zoom */
  transition: transform 1s ease; /* Transition douce pour le zoom */
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure que l'image couvre complètement la carte */
  transition: transform 1s ease; /* Transition pour le zoom de l'image */
}

.card:hover img {
  transform: scale(1.1); /* Applique un léger zoom à l'image au survol */
}
.rakkas-title {
  font-family: "Rakkas", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 4.5rem;
}
/* Ajoute une hauteur maximale et ajuste le comportement des images */
.swiper-slide img {
  max-height: 600px; /* Ajuste cette valeur à la hauteur maximale souhaitée */
  width: auto; /* Assure que la largeur s'ajuste automatiquement */
  height: auto; /* Garde l'image proportionnelle si besoin */
  object-fit: cover; /* Coupe l'image pour qu'elle remplisse l'espace tout en gardant son ratio */
}
/* Placez ce code dans votre fichier style.css ou dans la section <style> de votre thème */
.masked-img {
  /* URL du mask : remplacez par le chemin vers votre propre masque PNG/SVG */
  -webkit-mask-image: url('https://morocansurfhouse.web-b.fr/wp-content/uploads/2025/06/moroccan-surf-house-imsouane-200.webp');
  -webkit-mask-size: cover;
  -webkit-mask-position: center center;
  -webkit-mask-repeat: no-repeat;

  /* Propriétés standard (Firefox, Edge moderne) */
  mask-image: url('https://morocansurfhouse.web-b.fr/wp-content/uploads/2025/06/moroccan-surf-house-imsouane-200.webp');
  mask-size: cover;
  mask-position: center center;
  mask-repeat: no-repeat;

  /* Facultatif : si vous souhaitez conserver toute la zone même là où le mask est transparent */
  background-color: transparent;
}

/* Si vous voulez forcer l’image à être responsive (100% de la largeur de son conteneur) */
.masked-img img,
.masked-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==== FAQ Accordion MAISON SANS BOOTSTRAP ==== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.faq-title {
  text-align: center;
  font-family: 'Oswald', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

/* Détails de chaque item */
.faq-item {
  margin-bottom: 1rem;
  border: 2px solid #d2b48c;
  border-radius: 4px;
  overflow: hidden;
}

/* Résumé (la question) */
.faq-item summary {
  display: block;               /* pour prendre toute la largeur */
  list-style: none;             /* supprime la flèche native */
  cursor: pointer;
  padding: 1rem 1.5rem;
  background: #f9f9f9;
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

/* Masquer les marqueurs de <summary> sur tous les navigateurs */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker                   { display: none; }

/* Icône “+” “–” */
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #d2b48c;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Question ouverte */
.faq-item[open] summary {
  background: #d2b48c;
  color: #fff;
}
.faq-item[open] summary::after {
  content: '–';
  color: #fff;
  transform: translateY(-50%);
}

/* Contenu (la réponse) */
.faq-content {
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  background: #fff;
  padding: 0 1.5rem;
  line-height: 1.6;
  color: #555;
}

/* Quand l’item est ouvert */
.faq-item[open] .faq-content {
  transform: scaleY(1);
  opacity: 1;
  padding: 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .faq-item summary {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .faq-item summary::after {
    right: 1rem;
  }
  .faq-content {
    font-size: 0.95rem;
    /* padding adapté dans la règle open */
  }
}
/* ==== Accordion 100% CSS ==== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.faq-title {
  text-align: center;
  font-family: 'Oswald', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.faq-item {
  border: 2px solid #d2b48c;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Case à cocher invisible */
.faq-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Question */
.faq-question {
  display: block;
  padding: 1rem 1.5rem;
  background: #f9f9f9;
  cursor: pointer;
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

/* Icône + */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #d2b48c;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Réponse cachée par défaut */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: #fff;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #555;
  line-height: 1.6;
}

/* Quand on coche l’item */
.faq-toggle:checked + .faq-question {
  background: #d2b48c;
  color: #fff;
}
.faq-toggle:checked + .faq-question::after {
  content: '–';
  color: #fff;
  transform: translateY(-50%);
}
.faq-toggle:checked ~ .faq-answer {
  max-height: 500px; /* suffisant pour la plupart des contenus */
  padding: 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .faq-question {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .faq-answer {
    font-size: 0.95rem;
  }
}
