/* ============================== */
/* VARIABLES GLOBALES */
/* ============================== */
:root {
  --rouge: #B22222;
  --brun: #A0522D;
  --vert: #9ACD32;
  --beige: #FFF8E7;
  --gris: #2C2C2C;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ============================== */
/* BODY */
/* ============================== */
body { 
  font-family: 'Poppins', sans-serif;
  background: var(--beige);
  color: var(--gris);
}

/* ============================== */
/* SECTION HERO ET ACCUEIL */
/* ============================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.kicker {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rouge);
  font-size: 50px;
}

.hero-left h1 {
  font-size: 2.8rem;
  color: var(--rouge);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--vert);
  color: white;
  border-radius: 25px;
  transition: background 0.3s;
}

.cta:hover {
  background: var(--rouge);
}

.meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gris);
}

/* ============================== */
/* CAROUSEL HERO RIGHT */
/* ============================== */
.hero-right {
  flex: 1;
  min-width: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.hero-right.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}

.glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255,0,0,0.2);
  z-index: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  z-index: 1;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.carousel img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.carousel img:nth-child(1) { transform: rotateY(0deg) translateZ(160px); }
.carousel img:nth-child(2) { transform: rotateY(60deg) translateZ(160px); }
.carousel img:nth-child(3) { transform: rotateY(120deg) translateZ(160px); }
.carousel img:nth-child(4) { transform: rotateY(180deg) translateZ(160px); }
.carousel img:nth-child(5) { transform: rotateY(240deg) translateZ(160px); }
.carousel img:nth-child(6) { transform: rotateY(300deg) translateZ(160px); }

.center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  overflow: hidden;
}

.center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================== */
/* VIDEO PARALLAX */
/* ============================== */
.video-parallax-wrapper {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.video-parallax {
  position: fixed;
  top: 0;
  left: 0%;
  min-width: 100%;
  height: 130%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.contenu-superpose {
  position: relative;
  z-index: 10;
  height: 100vh;
  color: white;
  text-align: center;
  padding-top: 200px;
}

@media (max-width: 1200px) {
  .contenu-superpose { padding-top: 150px; }
}

@media (max-width: 990px) {
  .contenu-superpose {
     padding-top: 120px;
     font-size: 0.95rem; }
  .video-parallax {
     height: 120%; }
}

@media (max-width: 780px) {
  .contenu-superpose {
     padding-top: 100px;
     font-size: 0.9rem; }
  .video-parallax { 
     height: 110%; }
}

/* ============================== */
/* CARDS / ICONS / CENTRAL IMAGE */
/* ============================== */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  position: relative;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.icon-box {
  margin-bottom: 10px;
  font-size: 28px;
  color: var(--rouge);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.icon-box i {
  border: 2px solid var(--rouge);
  padding: 12px;
  border-radius: 50%;
  display: inline-block;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.title {
  margin: 0 0 5px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--brun);
  transition: all 0.3s;
}

.description {
  margin: 0;
  color: var(--gris);
  font-size: 0.95em;
  transition: all 0.3s;
}

.arrow-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: #ccc;
  font-size: 0.9em;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}

.card:hover .arrow-icon {
  color: var(--rouge);
  transform: translateY(-50%) rotate(90deg) scale(1.2);
}

.central-img {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 80px;
  color: var(--rouge);
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 990px) {
  .container {
     grid-template-columns: 1fr 1fr; }
}

@media (max-width: 770px) {
  .container {
     grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  .card { 
   width: 90%;
   margin: 0 auto; }
}

/* ============================== */
/* SECTION PRODUITS */
/* ============================== */
.entete-parcours {
  text-align: center;
  margin: 40px 0;
}

.entete-parcours h2 {
  margin-bottom: 15px;
  color: var(--rouge);
  font-size: 2.1rem;
}

.entete-parcours p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--gris);
}

.recipes-section {
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  margin-bottom: 30px;
}

.mint-leaf-icon {
  color: var(--rouge);
  font-size: 2em;
  display: block;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 1.8em;
  color: var(--rouge);
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 0.9em;
  color: var(--color-text-medium);
  margin-bottom: 20px;
}

.recipes-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
}


.nav-arrow {
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  color: var(--color-text-medium);
  cursor: pointer;
  position: absolute;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  font-weight: bold;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-arrow { 
  left: -20px; }
.right-arrow {
   right: -20px; }

.nav-arrow:hover { 
  background-color: #eee; }

.recipe-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: calc(33.33% - 20px);
  max-width: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.image-box {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-box img {
  width: 200px;            
  height: 200px;          
  object-fit: cover;       
  border-radius: 50%;      
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: rotate 10s linear infinite; 
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.content {
  padding: 15px;
  text-align: center;
}

.rating-and-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.actions {
  display: flex;
  gap: 10px;
  color: var(--color-text-light);
  font-size: 1em;
}

.actions i 
{ cursor: pointer; }

.title {
  font-size: 1.2em;
  margin: 5px 0;
  color: var(--vert);
  font-weight: bold;
}

.description {
  font-size: 0.75em;
  color: var(--color-text-light);
  margin: 10px 0 20px 0;
}

.details {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  font-size: 0.8em;
  color: var(--color-text-medium);
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.detail-item:nth-child(2) span {
   font-weight: bold; }

.detail-item i {
  font-size: 1.2em;
  color: var(--color-text-light);
}

@media (max-width: 900px) {
  .recipes-container {
     flex-wrap: wrap; }
  .recipe-card {
    width: calc(50% - 20px);
    margin-bottom: 20px; }
  .left-arrow, .right-arrow { 
    display: none; }
}

@media (max-width: 600px) {
  .recipe-card { width: 90%; max-width: none; }
}

/* ============================== */
/* SECTION PARCOURS / CARTES */
/* ============================== */
.parcours-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-left: 20px;
  margin-right: 30px;
  gap: 20px;
}

.cartes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carte {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 350px;  
  height: 170px;    
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carte:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.icone {
  font-size: 40px;
  color: var(--rouge);
  margin-bottom: 15px;
  animation: bouger 5s ease-in-out infinite;
  transition: color 0.3s;
}

.carte:hover .icone {
  color: var(--vert); 
}

.titre {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.description {
  font-size: 0.95em;
  color: #555;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--rouge);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  padding: 20px;
  transition: opacity 0.3s;
}

.carte:hover .overlay {
  opacity: 1;
}

.overlay-titre {
   font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 10px;
}

.overlay-desc {
  font-size: 0.95em;
  line-height: 1.4;
  margin-right: 20px;
}

.central {
  display: flex;
  animation: bouger 3s ease-in-out infinite;
  transition: transform 0.3s;
  margin-top: 95px;
}

.central img {
  border-radius: 15px;
  width: 400px;
  height: 500px;
}

.central:hover {
  transform: rotate(15deg) scale(1.1);
}

@keyframes bouger {
  0%, 200% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1024px) {
  .parcours-container {
    flex-direction: column;
    align-items: center;
  }
  .cartes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .central img {
    width: 350px;
    height: 450px;
  }
}

/* ============================== */
/* SECTION SERVICES / CARROUSEL SERVICES */
/* ============================== */
:root {
    --duree-un-service: 2s;         
    --nombre-services-uniques: 6;   
    --duree-totale-cycle: calc(var(--duree-un-service) * var(--nombre-services-uniques)); 
    --nombre-services-total-bande: 12; 
    --largeur-carte-bande: 8;
}

.section-services {
    background-color: var(--blanc);
    padding: 80px 0;
}

.section-services .entete-services {
    text-align: center;
    padding-bottom: 40px;
}

.section-services .entete-services h3 {
    font-family: 'Poppins', sans-serif; 
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--rouge);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
}

.section-services .entete-services p {
    font-family: 'Poppins', sans-serif; 
    font-size: 1em;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

.conteneur-carrousel {
    width: 99%;
    max-width: 1300px;
    margin: 0 auto; 
    position: relative; 
    overflow: hidden; 
    padding: 40px 0 70px;
    padding-bottom: 0;
}

.bande-services {
    display: flex;
    width: calc(100% / var(--nombre-services-uniques) * var(--nombre-services-total-bande)); 
    justify-content: flex-start; 
    align-items: stretch; 
    animation: defilement-services var(--duree-totale-cycle) infinite linear;
    min-height: 250px; 
    height: 300px; 
}

.bande-services:hover {
    animation-play-state: paused; 
}

@keyframes defilement-services {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.element-service {
    width: calc(100% / var(--largeur-carte-bande)); 
    flex-shrink: 0;  
    padding: 25px 30px; 
    box-sizing: border-box;
    background-color: white; 
    border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06); 
    opacity: 0.5; 
    filter: grayscale(80%) blur(0.5px); 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.element-service:hover {
    opacity: 1; 
    filter: grayscale(0%) blur(0); 
    transform: translateY(-12px) scale(1.08); 
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25); 
    cursor: pointer;
    z-index: 10; 
}

.icone-service {
    font-size: 2.8em; 
    margin-bottom: 20px; 
    color: var(--vert); 
    transition: color 0.4s;
}

.element-service:hover .icone-service {
    color: var(--rouge); 
}

.texte-service h4 { 
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em; 
    font-weight: 700; 
    margin-bottom: 10px; 
    line-height: 1.2;
    color: var(--rouge);
}

.texte-service p { 
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em; 
    font-weight: 400; 
    color: #555;
    margin: 0;
}
@media (max-width: 1200px) {
    .element-service { width: calc(100% / 4); }
}

@media (max-width: 990px) {
    .element-service {
    width: calc(100% / 3); }
    .bande-services { 
    min-height: 220px; 
      height: 250px; }
}

@media (max-width: 765px) {
    .element-service { 
    width: calc(100% / 2); }
    .bande-services {
    min-height: 200px;
    height: 230px; }
}

/* ============================== */
/* CARTE VISITE DES PAGES ET POPUP*/
/* ============================== */
.cartes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
 
.image-lien {
  width: 250px; 
  height: 250px;
  border-radius: 50%;
  box-shadow: var(--ombre);
  transition: transform 0.5s ease;
  animation: flotter 4s ease-in-out infinite;
}


@keyframes flotter {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.section-coupes {
  padding: 80px 20px;
  position: relative;
   text-align: center;
}

.titre-section {
  font-size: 2em;
  color: var(--rouge);
  margin-bottom: 10px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid var(--rouge);
  width: 0;
  animation: ecrire 2s steps(20, end) forwards, clignoter 0.7s step-end ;
   text-align: center;
}

.sous-titre-section {
  color: var(--gris);
  margin-bottom: 50px;
  font-size: 1em;

}

@keyframes ecrire { from { width: 0; } to { width: 100%; } }
@keyframes clignoter { 0%,50%,100% { border-color: var(--rouge);} 25%,75% { border-color: transparent;} }


.popups-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  position: relative;
}

.bouton-rond {
  width: 100px;
  height: 50px;
  background: var(--rouge);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--blanc);
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(178,34,34,0.5);
  position: relative;
  transition: all 0.3s;
  animation: pulse 2s infinite;
  color: var(--white);
 
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 15px --shadow;}
}

.bouton-rond:hover {
  background: var(--vert);
  transform: scale(1.2);
  box-shadow: 0 0 25px var(--vert);
}
 


.popup-info {
  position: absolute;
  bottom: 90px;
  left: 50%;
  background : var(--blanc);
  border-radius: 20px;
  padding: 20px;
  width: 220px;
  text-align: center;
  box-shadow: var(--ombre);
  z-index: 10;
  opacity: 0;
  background-color: var(--white);
}

.popup-info.actif {
   opacity: 1;
}

.popup-titre {
  font-size: 1.2em;
  color: var(--rouge);
  margin-bottom: 8px;
}

.popup-description {
  font-size: 0.9em;
  color: var(--gris);
  margin-bottom: 12px;
}

.popup-lien {
  display: inline-block;
  padding: 8px 15px;
  background: var(--vert);
  color: var(--blanc);
  border-radius: 25px;
  text-decoration: none;
  animation: briller 2s infinite;
}

.popup-lien:hover {
  background: var(--rouge);
  box-shadow: 0 0 15px rgba(178,34,34,0.6);
}

@keyframes briller {
  0%, 100% { box-shadow: 0 0 5px rgba(154,205,50,0.5); transform: scale(1);}
  50% { box-shadow: 0 0 20px rgba(154,205,50,0.9); transform: scale(1.05);}
}


.popup-fermer {
  position: absolute;
  top: 8px;
  right: 12px;
  font-weight: bold;
  color: var(--gris);
  cursor: pointer;
  font-size: 1em;

}

.popup-fermer:hover { color: var(--rouge); }


/* ============================== */
/* FOOTER ET PIED DE PAGE */
/* ============================== */
.pied-page {
    background-color: var(--gris);
    color: var(--beige);
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 60px 10px 0 10px; 
    box-shadow: var(--shadow);
}

.pied-page h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
}

.pied-page h2 span {
    color: var(--rouge);
}

.conteneur-pied {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-pied {
    flex: 1 1 250px;
}

.contact-pied p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    color: var(--beige);
}

.contact-pied .material-symbols-outlined {
    color: var(--rouge);
    font-size: 22px;
    margin-right: 10px;
}

.liens-pied {
    display: flex;
    flex: 2 1 500px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.liens-pied ul {
    list-style: none;
    padding: 0;
}

.liens-pied li {
    margin: 8px 0;
}

.liens-pied a {
    color: var(--beige);
    text-decoration: none;
    transition: 0.3s;
}

.liens-pied a:hover {
    color: var(--vert);
}

.carte-pied iframe {
    border: 0;
    width: 500px;
    height: 220px;
    border-radius: 8px;
}

.bas-pied {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--beige);
}

.bas-pied span {
    color: var(--rouge);
    font-weight: 600;
}

.retour-haut {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--rouge);
    color: var(--white);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.retour-haut:hover {
    background: var(--vert);
}


@media (max-width: 750px) {
    .carte-pied iframe {
        width: 100%;
        height: 200px;
    }
}
    .retour-haut {
        right: 10px;
        bottom: 10px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }