/* =============================== RESET GLOBAL =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* 🔹 PIED DE PAGE (FOOTER) */
footer {
  text-align: center;
  padding: 30px;
  background-color: var(--header-bg);
  color: var(--header-text);
  font-size: 14px;
}

/* 🔹 Liens généraux */
a {
  color: rgb(245, 245, 245);
  font-size: 19px; /* Ajuste la taille comme tu veux (ex: 20, 22, 24px) */
}
/* =============================== SECTION GÉNÉRIQUE =============================== */

section {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}

/* Titres */
h2 {
  font-size: 28px;
  margin-bottom: 20px;
  border-left: 5px solid red;
  padding-left: 10px;
}

/* Paragraphe */
p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

/* Listes */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0; /* facultatif, pour supprimer l’espace au-dessus et en dessous */
}

/* =============================== NAV =============================== */

nav a:hover {
  background: red;
  border-radius: 25px;
}

.logo {
  width: 16vh;
  height: 16vh;
}

/* =============================== PRÉSENTATION =============================== */

.presentation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  gap: 100px;
}

.presentation-container .text h1 {
  font-size: 42px;
  color: red;
  font-weight: bold;
}

.presentation-container .text p {
  font-size: 25px;
  text-align: left;
  text-indent: 0;
}

/* PHOTO RONDE */
.photo-circle {
  width: 450px;
  height: 450px;
  border-radius: 50%; /* Cercle parfait */
  background: radial-gradient(circle, #e6e6e6 60%, transparent 60%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: 0 0 0 6px #cfcfcf, 0 8px 20px rgba(0, 0, 0, 0.1);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* image recentrée verticalement */
  border-radius: 50%;
}

/* =============================== VIDEO SALLE =============================== */

.videoSalle {
  width: 100%;
  max-height: 600px;
  margin-top: 10px;
}

/* =============================== DIPLOMES =============================== */

.formation-card {
  background: black;
  border: 1px solid red;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  margin: 15px 0;
  transition: 0.3s;
}

.formation-card:hover {
  background: rgb(226, 124, 124);
  color: #fff;
}

.arrow {
  font-size: 24px;
}

/* SLIDES */
.slide-page {
  position: fixed;
  right: -100%; /* décalé hors écran */
  top: 0;
  width: 50%; /* moitié de l'écran */
  height: 100%;
  background: rgb(37, 36, 36);
  color: white;
  padding: 40px 20px;
  transition: 0.4s;
  overflow-y: auto;
  z-index: 2000;
}

.slide-page.open {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* =============================== PRESTATIONS =============================== */

.presta-blocks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.presta-block {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  /* Forcer un ratio identique pour toutes les images */
  aspect-ratio: 3/4; /* exemple portrait, à ajuster */
}

.presta-block img {
  display: block; /* évite l'espace inline */
  width: 100%;
  height: 100%;
  object-fit: cover; /* L’image remplira le bloc sans déformation */
}

/* Hover effect */
.Hoverlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(238, 132, 132, 0.85);
  color: black;
  text-align: center;

  padding-top: 120px;
  font-weight: bold;
  transition: 0.3s;
}

.presta-block:hover .Hoverlay {
  bottom: 0;
}

.tarif {
  margin: 20px auto 0; /* top | left-right | bottom */
  width: 800px;
  max-height: 400px;
  display: block;
}

/* =============================== COMMENTAIRES ======================================= */
.carousel-wrapper {
  max-width: 100%;
  margin: 30px auto 0;
  position: relative;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 12px 0;
  background: #1a1a1a;
  border-radius: 22px;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.2);
  overflow: hidden;
}

/* Cartes du carrousel */
.carousel-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    left 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: #2a2a2a;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: #fff;
  box-sizing: border-box;
}

.carousel-item.center {
  opacity: 1;
  z-index: 3;
  background: #3a3a3a;
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.4);
  border-color: red;
  border-width: 2px;
}

.carousel-item.left,
.carousel-item.right {
  opacity: 0.6;
  filter: saturate(0.8) brightness(0.7);
  z-index: 2;
}

.carousel-item.off {
  left: -9999px;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Contenu des cartes */
.carousel-thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
  object-fit: contain;
  background: #000;
  padding: 10px;
}

.carousel-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.carousel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* Utilise votre classe .commentaire existante pour les boutons */
.carousel-item .commentaire {
  margin-top: auto;
}

/* Flèches de navigation */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
  border: 1px solid red;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.5);
  background: red;
}

.carousel-arrow:focus-visible {
  outline: 3px solid red;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

/* Indicateurs (dots) */
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  transition: transform 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.carousel-dot:hover {
  background: #888;
}

.carousel-dot.active {
  background: red;
  transform: scale(1.35);
}

.card {
  height: 300px;
}

.card-img-top {
  margin: auto;
  max-height: 150px;
  width: auto;
}

.card-text {
  background: linear-gradient(90deg, #030303, #f8f8f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*Style de bouton*/
.commentaire {
  display: inline-block;
  background-color: #ff0000;
  color: rgb(252, 247, 247);
  text-decoration: none;
  padding: 8px 15px;
  font-size: 15px;
  border-radius: 60px;
  transition: background-color 0.2s;
  border: none;
}

.commentaire:hover {
  background-color: #f37979;
}

/* Section contacts */
.contact a {
  font-size: 50px; /* Ajuste la taille du txt */
  color: white;
  text-decoration: none; /* Facultatif : enlève le soulignement */
}

/* Chaque ligne */
.contact-item {
  display: flex;
  align-items: center; /* aligne verticalement icône + texte */
  margin-bottom: 10px;
}

/* Icônes */
.lien {
  height: 30px;
  width: 30px;
  margin-right: 10px;
}

/* Revenir vers le haut */
#backToTop {
  position: fixed;
  /* reste toujours visible à l’écran */
  bottom: 20px;
  /* distance du bas */
  right: 20px;
  /* distance de la droite */
  display: none;
  /* caché par défaut */
  background-color: #333;
  /* style bouton */
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 100;
  /* au-dessus du contenu */
}

#backToTop.show {
  display: block;
  /* apparaît quand la classe "show" est ajoutée */
  opacity: 0.8;
}

#backToTop:hover {
  opacity: 1;
  /* effet hover */
}
/*Prestations*/
.desktop-only {
  display: flex;
  gap: 40px;
}
.mobile-only {
  display: none;
}

/* ======================================🔹 RESPONSIVE MOBILE ========================*/
@media screen and (max-width: 768px) {
  /* Conteneur principal */
  .presentation-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Bloc texte devient une grille */
  .presentation-container .text {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  /* Titre */
  .presentation-container .text h1 {
    font-size: 28px;
    margin: 0;
  }

  /* Paragraphe passe en dessous */
  .presentation-container .text p {
    grid-column: 1 / -1; /* prend toute la largeur */
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
  }

  /* Image à droite du titre */
  .photo-circle {
    width: 80px;
    height: 80px;
    padding: 3px;
    margin: 0;
  }

  .photo-circle img {
    width: 100%;
    height: 100%;
  }
  /*Commentaires et prestations*/
  /* ---------- CARROUSEL ---------- */
  .carousel-wrapper {
    position: relative;
    height: 420px;
  }

  .carousel-viewport {
    position: relative;
    height: 100%;
    overflow: hidden;
  }

  .carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: all 0.35s ease;
  }

  .carousel-item.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
  }

  /* ---------- FLÈCHES ---------- */
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;

    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* 🔑 IMPORTANT */
    padding: 0; /* 🔑 IMPORTANT */
  }

  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }

  .project-bottom-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  nav {
    flex-direction: column;
  }

  .presentation-container {
    flex-direction: column;
    /* Passe en colonne */
    align-items: center;
    text-align: center;
  }

  .photo-circle {
    width: 80vw; /* 50% de la largeur de l'écran */
    height: 80vw; /* carré pour garder le cercle */
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .Hoverlay {
    position: absolute;
    inset: 0; /* occupe exactement la taille de l’image */
    transform: translateY(0); /* visible */
    opacity: 1; /* visible */
    border-radius: 10px;

    /* mise en page réactive */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: clamp(12px, 3.5vw, 24px);

    line-height: 1.4;
    overflow: auto; /* scroll interne si beaucoup de texte */
  }

  .tarif {
    width: 100%; /* Prend toute la largeur disponible sur mobile */
    max-width: 800px; /* Mais ne dépasse pas 800px */
    height: auto; /* Garde les proportions */
    margin-top: 30px;
  }

  .slide-page {
    position: fixed;
    right: -100%; /* décalé hors écran */
    top: 0;
    width: 100%; /* moitié de l'écran */
    height: 100%;
    background: rgb(37, 36, 36);
    color: white;
    padding: 40px 20px;
    transition: 0.4s;
    overflow-y: auto;
    z-index: 2000;
  }
}
