/* ----------------------------------------------------------
Au bout des doigts
Main stylesheet
Margaux Coulon
---------------------------------------------------------- */

* {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

/* ----------------- Defaults ----------------- */

body {
  font-family: var(--bodyr);
  color: var(--neutral-dark);
  font-size: 1rem;
}

/* ----------------- Header ----------------- */

header {
  display: flex;
  align-items: center;
  background-color: var(--neutral-white);
  height: 80px;
  padding: 0 2rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  /* -- To get a sticky overlay header -- */
  position: sticky;
  top: 0;
  z-index: 2;
}

.website-logo img {
  position: relative;
  width: 60px;
}

.menu-burger {
  position: absolute;
  top: calc(50% - 1.1em);
  right: 2em;
  background: url(../img/menu-line.svg);
  background-repeat: no-repeat;
  width: 32px;
  height: 32px;
  appearance: none;
  text-indent: -99999px;
  cursor: pointer;
}

.menu-burger.menu-open {
  background: url(../img/close-line.svg);
}

.nav-links {
  display: none;
  position: fixed;
  top: 80px;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--neutral-white);
}

.nav-links li {
  list-style-type: none;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--neutral-dark);
  background-color: var(--neutral-white);
  width: 100%;
  padding: 2rem 3rem;
  white-space: nowrap;
}

a.current-page {
  color: var(--neutral-white);
  background-color: var(--main-dark);
}

.nav-links a:hover {
  color: var(--neutral-dark);
  background-color: var(--main-color);
}

/* ----------------- Hero image ----------------- */

.hero-image {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.7)
    ),
    url("../img/banner-cover.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.hero-text {
  font-family: var(--title);
  color: var(--neutral-white);
  display: grid;
  gap: 1rem;
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: normal;
}

.hero-text p {
  font-size: 1.75rem;
}

/* ----------------- Main ----------------- */

/* ----------------- Main section ----------------- */

.main-section {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  line-height: 150%;
}

.main-section h2 {
  font-family: var(--title);
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 1rem;
  width: fit-content;
  position: relative;
}

.main-section h2::after {
  content: "";
  position: absolute;
  display: inline-block;
  left: 0;
  bottom: -1rem;
  width: 33%;
  border-bottom: solid 3px var(--accent-color);
}

/* ----------------- Qui suis-je  ----------------- */

.lydie-portrait {
  max-width: 200px;
  background-color: var(--main-color);
  padding: 8px;
  border-top-left-radius: 100%;
  border-top-right-radius: 100%;
  border-bottom-right-radius: 100%;
}

#portrait {
  grid-area: portrait;
}

#intro {
  font-family: var(--bodyb);
  grid-area: intro;
}

.main-section .content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#content1 {
  grid-area: content1;
}

#content2 {
  grid-area: content2;
}

#content3 {
  grid-area: content3;
}

#content4 {
  grid-area: content4;
}

#content5 {
  grid-area: content5;
}

/* ----------------- Gallery ----------------- */

.main-section.gallery {
  padding: 2rem 15% 0 15%;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery img {
  width: 100%;
  max-width: 350px;
}

/* ----------------- Yellow arrow  ----------------- */

.yellow-arrow {
  position: absolute;
  right: 10%;
  top: -3%;
  width: 120px;
}

/* ----------------- Concept  ----------------- */

.main-section.concept {
  position: relative;
  background-color: var(--secondary-light);
}

.concept-wrapper {
  display: grid;
  gap: 2rem;
}

.concept-text {
  display: grid;
  gap: 1rem;
}

/* ----------------- Did you know ----------------- */

/*.main-section h3 {
    font-size: 1.5rem;
    font-family: var(--title);
    font-weight: normal;
}

.main-section.did-you-know {
    text-align: center;
    display: grid;
    gap: 1rem;
    padding-bottom: 0;
}

.percentage  {
    font-size: 3rem;
    font-family: var(--stackr);
    line-height: 125%;
}

.survey {
    font-size: 0.875rem;
}


.main-section.did-you-know::before {
    content: url(../img/left\ quote.svg);
}

.main-section.did-you-know::after {
    content: url(../img/right\ quote.svg);
}*/

/* ----------------- Tarifs ----------------- */

.forfait-wrapper {
  margin-top: 1rem;
  display: grid;
  gap: 1.5rem;
}

.forfait {
  display: grid;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  border-top-left-radius: 1.5rem;
  position: relative;
}

.forfait.discover {
  background-color: var(--accent-color);
}

.forfait.hobby {
  background-color: var(--main-color);
}

.forfait.free-time {
  background-color: var(--highlight-light);
}

.forfait.experience {
  background-color: var(--main-color);
}
.type {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-family: var(--title);
  font-weight: bold;
  margin-top: 1rem;
  line-height: 120%;
}

.amount {
  font-size: 2.5rem;
  font-family: var(--title);
  margin-bottom: 1.5rem;
}

.amount::before {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 105px;
}

.discover .amount::before {
  content: url(../img/method.svg);
}

.hobby .amount::before {
  content: url(../img/physical-examination-12.svg);
}

.free-time .amount::before {
  content: url(../img/trend-40.svg);
}

.experience .amount::before {
  content: url(../img/increase-98.svg);
}

/* ----------------- Mes plus ----------------- */

.main-section.bonus {
  background-color: var(--secondary-light);
}

.bonus-wrapper {
  display: grid;
}

.main-section.bonus ul {
  display: grid;
  gap: 1rem;
  margin-left: 1rem;
}

.main-section.bonus img {
  margin: 1rem auto 0 auto;
}


/* =========================================================
   GALERIE PHOTO / VIDÉO
   ========================================================= */

/* ----------------- Conteneur ----------------- */

.new-gallery {
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 100%;

  box-sizing: border-box;

  gap: 1rem;
}


/* ----------------- Fenêtre visible ----------------- */

.new-gallery-window {
  flex: 1 1 0;

  width: 0;
  min-width: 0;
  max-width: 100%;

  overflow: hidden;

  box-sizing: border-box;
}


/* ----------------- Piste défilante ----------------- */

.new-gallery-track {
  display: flex;

  width: max-content;
  max-width: none;

  gap: 1rem;

  transition: transform 0.35s ease;
}


/* ----------------- Cartes ----------------- */

.new-gallery-slide {
  flex: 0 0 280px;

  width: 280px;
  height: 210px;

  box-sizing: border-box;

  overflow: hidden;

  border-radius: 12px;

  background-color: var(--neutral-light);

  cursor: pointer;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.10),
    0 1px 3px rgba(0, 0, 0, 0.08);
}


/* ----------------- Images / vidéos ----------------- */

.new-gallery-slide img,
.new-gallery-slide video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   FLÈCHES
   ========================================================= */

.new-gallery-button {
  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(36, 49, 58, 0.15);
  border-radius: 50%;

  background-color: var(--neutral-white);
  color: var(--neutral-dark);

  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.12);

  flex-shrink: 0;
}

.new-gallery-button:hover:not(:disabled) {
  background-color: var(--main-dark);
  color: var(--neutral-white);
}

.new-gallery-button:disabled {
  opacity: 0.25;
  cursor: default;
}


/* =========================================================
   COMPTEUR
   ========================================================= */

.new-gallery-counter {
  display: block;

  width: max-content;
  max-width: calc(100% - 2rem);

  margin: 1rem auto 0;

  padding: 0.4rem 0.8rem;

  box-sizing: border-box;

  border-radius: 999px;

  background-color: var(--secondary-light);
  color: var(--neutral-dark);

  font-family: var(--bodyb);
  font-size: 0.8rem;
  line-height: 1;

  white-space: nowrap;
  text-align: center;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

  .new-gallery {
    gap: 0.75rem;
  }

  .new-gallery-track {
    gap: 0.75rem;
  }

  .new-gallery-slide {
    flex-basis: 240px;

    width: 240px;
    height: 180px;
  }

  .new-gallery-button {
    flex-basis: 44px;

    width: 44px;
    height: 44px;

    font-size: 1.3rem;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .new-gallery {
    width: 100%;
    max-width: 100%;

    gap: 0.5rem;
  }

  .new-gallery-window {
    flex: 1 1 0;

    width: 0;
    min-width: 0;
    max-width: 100%;

    overflow: hidden;
  }

  .new-gallery-track {
    gap: 0;
  }

  .new-gallery-slide {
    /*
     * Une seule image visible.
     * Taille maîtrisée : 260 × 195 px.
     */
    flex: 0 0 260px;

    width: 260px;
    height: 195px;

    border-radius: 10px;
  }

  .new-gallery-button {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    font-size: 1.15rem;
  }

  .new-gallery-counter {
    max-width: calc(100% - 1rem);

    margin-top: 0.9rem;

    padding: 0.35rem 0.7rem;

    font-size: 0.75rem;
  }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 400px) {

  .new-gallery {
    gap: 0.3rem;
  }

  .new-gallery-slide {
    flex-basis: 240px;

    width: 240px;
    height: 180px;

    border-radius: 8px;
  }

  .new-gallery-button {
    flex-basis: 36px;

    width: 36px;
    height: 36px;

    font-size: 1rem;
  }
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.new-gallery-lightbox {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  box-sizing: border-box;

  background-color: rgba(0, 0, 0, 0.90);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.new-gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.new-gallery-lightbox-image {
  display: block;

  width: auto;
  height: auto;

  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);

  object-fit: contain;

  margin: 0;

  border-radius: 5px;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4);
}

.new-gallery-lightbox-close,
.new-gallery-lightbox-prev,
.new-gallery-lightbox-next {
  position: absolute;

  z-index: 100000;

  border: 0;

  background: transparent;

  color: white;

  cursor: pointer;
}

.new-gallery-lightbox-close {
  top: 15px;
  right: 25px;

  font-size: 46px;
  line-height: 1;
}

.new-gallery-lightbox-prev,
.new-gallery-lightbox-next {
  top: 50%;

  padding: 15px;

  font-size: 46px;
  line-height: 1;

  transform: translateY(-50%);
}

.new-gallery-lightbox-prev {
  left: 15px;
}

.new-gallery-lightbox-next {
  right: 15px;
}

.new-gallery-lightbox-close:hover,
.new-gallery-lightbox-prev:hover,
.new-gallery-lightbox-next:hover {
  opacity: 0.65;
}

body.gallery-lightbox-open {
  overflow: hidden;
}


/* =========================================================
   LIGHTBOX MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .new-gallery-lightbox {
    padding: 10px;
  }

  .new-gallery-lightbox-image {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
  }

  .new-gallery-lightbox-prev,
  .new-gallery-lightbox-next {
    padding: 10px;

    font-size: 32px;
  }

  .new-gallery-lightbox-prev {
    left: 0;
  }

  .new-gallery-lightbox-next {
    right: 0;
  }

  .new-gallery-lightbox-close {
    top: 8px;
    right: 12px;

    font-size: 36px;
  }
}

/* ----------------- Infos ----------------- */

.infos-wrapper {
  display: grid;
  gap: 1rem;
}

.main-section.infos ul {
  display: grid;
  gap: 1rem;
}

.main-section.infos li {
  list-style-type: none;
  display: flex;
}

.main-section.infos li:last-of-type {
  margin-bottom: 1rem;
}

.main-section.infos a {
  color: var(--neutral-dark);
  white-space: wrap;
}

.main-section.infos li a::before {
  position: relative;
  top: 0.3rem;
  margin-right: 0.65rem;
}

.main-section.infos li a::after {
  position: relative;
  top: 0.1rem;
  margin-left: 0.4rem;
  content: "";
  display: inline-block;
  height: 16px;
  width: 16px;
  background-size: 16px 16px;
  background-image: url(./img/external-link.svg);
  background-repeat: no-repeat;
}

.lkd::before {
  content: url(../img/linkedin-icon.svg);
}

.fees::before {
  content: url(../img/piggy-bank.svg);
}

.form::before {
  content: url(../img/form.svg);
}

.regulation::before {
  content: url(../img/book-marked.svg);
}

.calendar::before {
  content: url(../img/calendar-days.svg);
}

.brain::before {
  content: url(../img/brain.svg);
}

.maps {
  width: 100%;
}

/* ---- Google reviews ---- */

.avis-google {
  background-color: var(--secondary-light);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding-bottom: 1rem;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.5rem;
}

.avis-card {
  background-color: var(--neutral-white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: calc(100% / 3 - 1rem);
  flex: 0 0 320px;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.avis-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info .name {
  font-weight: bold;
}

.user-info .date {
  font-size: 0.85rem;
  color: #777;
}

.stars {
  color: #fbbc04;
  font-size: 1rem;
  line-height: 1;
}

.avis-text {
  font-style: italic;
  max-height: 6.5em; /* ≈ 4 lignes */
  overflow: hidden;
  position: relative;
  line-height: 1.6;
}

.avis-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 1.6em;
  width: 50%;
  background: linear-gradient(to right, transparent, white 80%);
}

.voir-plus {
  margin-top: auto;
  margin-left: auto; /* 👉 pousse le bouton à droite */
  padding: 0.25rem 0.75rem;
  background-color: var(--main-dark);
  color: white;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.voir-plus:hover {
  background-color: var(--main-color);
  cursor: pointer;
}

.carousel-button {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
  left: 0.5rem;
}

.carousel-button.next {
  right: 0.5rem;
}

.avis-lien {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: white;
  background-color: var(--main-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .avis-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .avis-card {
    min-width: 100%;
  }
}

/* ----------------- Footer  ----------------- */

footer {
  background-color: #24313a;
  color: var(--neutral-white);
  display: grid;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
}

footer ul {
  display: grid;
  gap: 2.5rem;
}
footer li {
  list-style-type: none;
}

footer address {
  font-style: normal;
}

/* ----------------- Media Queries ----------------- */

@media (min-width: 900px) {
  /* Header */

  header {
    height: 100px;
    padding: 0 2rem;
  }

  .website-logo img {
    width: 80px;
  }

  .menu-burger {
    display: none;
  }

  nav {
    width: 100%;
  }

  .nav-links {
    display: flex;
    justify-content: space-between;
    position: relative;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    background-color: var(--neutral-white);
  }

  .nav-pages {
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .nav-links ul {
    display: flex;
  }

  .nav-links a[aria-current="page"] {
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
  }

  .nav-links a:hover {
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
    font-family: var(--bodyb);
  }

  a.current-page {
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
  }

  .nav-links a {
    padding: 1rem;
  }

  .social-media {
    display: flex;
    gap: 0.25rem;
  }

  .social-media li {
    width: 47px;
  }

  .facebook {
    background-image: url(./img/facebook.svg);
    background-repeat: no-repeat;
    text-indent: -99999px;
    background-position-x: center;
    background-position-y: center;
  }

  .linkedin {
    background-image: url(../img/linkedin.svg);
    background-repeat: no-repeat;
    text-indent: -99999px;
    background-position-x: center;
    background-position-y: center;
  }

  /* Hero banner */

  .hero-image {
    padding: 5rem 2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
    display: grid;
  }

  .hero-text p {
    font-size: 2.5rem;
  }

  .hero-text {
    gap: 1.5rem;
  }

  /* Main */

  .main-section {
    padding: 2rem;
  }

  .main-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .main-section h3 {
    font-size: 2rem;
  }

  .percentage {
    font-size: 5rem;
    color: var(--neutral-dark);
  }

  /* Qui suis-je */

  .main-section .content {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas:
      "portrait intro intro content3 content3"
      "portrait content1 content1 content3 content3"
      "portrait content2 content2 content4 content4";
    grid-column-gap: 3rem;
    grid-row-gap: 0;
  }

  /* Gallery */

  .main-section.gallery {
    padding: 2rem 2rem 0 2rem;
  }

  .gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .gallery img {
    width: 100%;
    max-width: 450px;
  }

  .forfait {
    width: 100%;
  }

  /* Mes plus */

  .bonus-wrapper {
    display: flex;
    align-items: center;
  }

  .main-section.bonus img {
    margin: 0;
    min-width: 343px;
    height: fit-content;
    margin-left: 2rem;
  }

  /* Infos pratiques */

  .infos-wrapper {
    display: flex;
    gap: 3rem;
  }

  .main-section.infos ul {
    gap: 2rem;
  }

  .main-section.infos a {
    white-space: nowrap;
  }

  /* Footer */

  footer {
    padding: 4rem;
  }

  footer ul {
    display: flex;
    gap: 4rem;
  }
}

@media (min-width: 1200px) {
  header {
    padding: 0 4rem;
  }

  .nav-pages {
    margin: 0 4rem;
  }

  .hero-image {
    padding: 5rem 4rem;
  }

  .hero-text h1 {
    display: flex;
    gap: 0.75rem;
  }

  .main-section {
    padding: 4rem;
  }

  .yellow-arrow {
    top: -8%;
  }
}

@media (min-width: 1200px) {
  /* Tarifs */

  .forfait-wrapper {
    display: flex;
    gap: 1.5rem;
    margin: 0;
  }
}

@media (min-width: 1440px) {
  /* Qui suis-je */

  .main-section .content {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas:
      "portrait intro intro intro content3 content3 content3"
      "portrait content1 content1 content1 content3 content3 content3"
      "portrait content2 content2 content2 content4 content4 content4";
    grid-column-gap: 3rem;
    grid-row-gap: 0;
  }

  .main-section.bonus ul {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    column-gap: 4rem;
  }
}

@media (min-width: 1800px) {
  body {
    font-size: 1.15rem;
  }

  /* Header */

  header {
    padding: 0 20rem;
  }

  /* Main */

  .main-section {
    padding: 4rem 20rem;
  }

  /* Hero image */

  .hero-image {
    padding: 5rem 20rem;
  }

  .yellow-arrow {
    right: 20%;
  }

  /* Forfait */

  .forfait-wrapper {
    gap: 4rem;
  }

  /* Mes plus */

  .main-section.bonus ul {
    display: grid;
    column-gap: 4rem;
    gap: 2rem;
  }

  /* Infos pratiques */
  .infos-wrapper {
    gap: 4rem;
  }
}

@media (min-width: 2000px) {
  /* Header */

  header {
    padding: 0 25rem;
  }

  /* Main */

  .main-section {
    padding: 4rem 25rem;
  }

  .main-section.gallery {
    padding: 4rem 25rem;
  }

  /* Hero image */

  .hero-image {
    padding: 5rem 25rem;
  }

  .main-section.main-section.did-you-know {
    padding-top: 0;
  }

  .yellow-arrow {
    right: 25%;
    top: -30px;
  }
}


