/* =========================
   IMPORTS & VARIABLES
========================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Playwrite+NO:wght@100..400&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --color1: #20513E;
  --color2: #7DA97A;
  --color3: #e49bb1;
  --color4: #feefd2;
  --color5: #F8F1FF;
}

/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Noto Serif", serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

section {
  padding: 3rem 1.2rem;
}

/* =========================
   HEADER
========================= */
header {
  background: linear-gradient(90deg, #20513e 22%, #7da97a 80%);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

header img {
  max-width: 220px;
  height: auto;
}

/* =========================
   NAVIGATION
========================= */
nav {
  background: #f3f3f3;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav li {
  list-style: none;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--color1);
  font-family: "Noto Serif", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color2);
  transition: width 0.3s ease, left 0.3s ease;
}
nav a:hover {
  color: var(--color2);
}

nav a:hover::after {
  width: 100%;
  left: 0;
}
#nav-contact {
  color: var(--color1);
  font-weight: 700;
}

#nav-contact::after {
  background-color: var(--color1);
}

#nav-contact:hover {
  color: #fff;
  background: var(--color2);
  padding: 6px 14px;
  border-radius: 20px;
}

#nav-contact:hover::after {
  display: none;
}
nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* HERO */
.hero {
  min-height: 70vh;
  background: url(images/img-take-book.jpg) center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  background: rgba(255,255,255,0.8);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 14px 34px;
  background: var(--main);
  color: var(--light);
  border-radius: 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 14px 34px;
  font-size: 1.1rem;
  font-weight: 500;

  background: var(--color1);
  color: var(--color4);
  border: 2px solid var(--color2);
  border-radius: 40px;

  cursor: pointer;
  transition: 0.35s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.4px;
}

/* Hover doux identique Doctolib */
.btn-primary:hover {
  background: var(--color2);
  color: #fff;
  border-color: var(--color1);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover::before {
  transform: translateX(-4px);
}


/* =========================
   QUI SUIS-JE
========================= */
#qui div {
  max-width: 1100px;
  margin: auto;
  background: var(--color1);
  border-radius: 30px;
  padding: 2rem;
  color: var(--color4);
  display: grid;
  gap: 2rem;
}

#qui img {
  max-width: 220px;
  border-radius: 50%;
  border: 4px solid var(--color2);
  margin: auto;
}

#qui h3,
#qui h4 {
  text-align: center;
  font-family: "Playwrite NO";
}

#qui p {
  text-align: justify;
  font-size: 1rem;
}
/* Base (mobile OK) */
#qui .qui-wrap {
  max-width: 1200px;
  margin: auto;
  background: var(--color1);
  border-radius: 30px;
  padding: 2.5rem;
  color: var(--color4);
  display: grid;
  gap: 2rem;
  text-align: justify;
}

.qui-img img {
  max-width: 220px;
  border-radius: 50%;
  border: 4px solid var(--color2);
  margin: auto;
}

.qui-text h3,
.qui-text h4 {
  font-family: "Playwrite NO";
  text-align: center;
}

/* DESKTOP */
@media (min-width: 1024px) {
  #qui .qui-wrap {
    grid-template-columns: 1fr 2.2fr;
    align-items: center;
    padding: 3.5rem 4rem;
  }

  .qui-img img {
    max-width: 260px;
  }

  .qui-text h3,
  .qui-text h4 {
    text-align: left;
  }
}


/* =========================
   SECTION TEXTE (sec1 / mon approche)
========================= */
#sec1 div,
#monapproche div {
  max-width: 1100px;
  margin: auto;
  background: var(--color1);
  border-radius: 30px;
  padding: 2rem;
  color: var(--color4);
  text-align: justify;
}

#sec1 h2,
#monapproche h2,
#monapproche h3 {
  font-family: "Playwrite NO";
  margin-bottom: 1rem;
}

#sec1 ul {
  margin-left: 1.5rem;
}

#sec1 li {
  margin-bottom: 0.6rem;
}

.sec1-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.sec1-list li {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--color2);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 1.05rem;
  width: 50vw;
}
.sec1-list li:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(4px);
  transition: 0.25s ease;
}


/* =========================
   IMAGE MON APPROCHE
========================= */
#monapproche img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  display: block;
  margin: 2rem auto 0;
}

/* =========================
   PRENDRE RDV
========================= */
#take-book {
  text-align: center;
}

#take-book div {
  max-width: 900px;
  margin: auto;
}

#take-book p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: justify;
}

#take-book h1 {
  font-family: "Playwrite NO";
  font-size: 1.4rem;
}

#take-book h2 {
  font-family: "Playwrite NO";
  font-size: 2rem;
  margin: 1.5rem 0;
}

#take-book a {
  padding: 14px 30px;
  font-size: 1.1rem;
  background: var(--color1);
  color: var(--color4);
  border: 2px solid var(--color2);
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
text-decoration: none;
}

#take-book a:hover {
  background: var(--color2);
  color: #fff;
}

/* =========================
   LIEUX
========================= */
#lieux {
  max-width: 1200px;
  margin: auto;
}

.lieux-title {
  text-align: center;
  margin-bottom: 3rem;
}

.lieux-title h2 {
  font-family: "Playwrite NO";
  font-size: 2.2rem;
  color: var(--color1);
}

.lieux-grid {
  display: grid;
  gap: 2rem;
}

.lieu-card {
  background: var(--color1);
  border-radius: 30px;
  padding: 1.5rem;
  color: var(--color4);
  text-align: center;
}

.lieu-card img {
  width: 100%;
  border-radius: 20px;
  margin: 1.2rem 0;
}
/* =========================
   BOUTONS RDV – STYLE DOCTOLIB
========================= */
.btn-rdv {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 14px 34px;
  font-size: 1.1rem;
  font-weight: 500;

  background: var(--color1);
  color: var(--color4);
  border: 2px solid var(--color2);
  border-radius: 40px;

  cursor: pointer;
  transition: 0.35s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.4px;

  text-decoration: none;
}


/* Icône calendrier */
.btn-rdv::before {
  content: "📅";
  font-size: 1.2rem;
  opacity: 0.85;
  transition: transform 0.35s ease;
}

/* Hover doux identique Doctolib */
.btn-rdv:hover {
  background: var(--color2);
  color: #fff;
  border-color: var(--color1);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-rdv:hover::before {
  transform: translateX(-4px);
}

/* =========================
   BOUTON CONTACT FLOTTANT
========================= */
#formctr {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 80px;
  height: 80px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--color2);
  cursor: pointer;
  z-index: 1000;

  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.25s ease;
}

#formctr:hover {
  transform: scale(1.08);
}

#formctr img {
  width: 40px;
  transition: transform 0.6s ease;
}

/* =========================
   BULLE MESSAGE
========================= */
#formmsg {
  position: fixed;
  bottom: 110px;
  right: 20px;

  width: calc(100% - 40px);
  max-width: 360px;
  height: 120px;

  background: #ffffff;
  border-radius: 30px 30px 0 30px;
  border: 4px solid var(--color2);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  overflow: hidden;

  transition: height 0.4s ease;
  z-index: 1001;
}

/* contenu visible */
.formmsg-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  text-align: left;
}

/* image */
.formmsg-content img {
  width: 80px;
  border-radius: 50%;
  border: 3px solid var(--color2);
}

/* =========================
   FORMULAIRE OUVERT
========================= */
#formmsg.open {
  height: 420px;
}

#formmsg.open .formmsg-content {
  display: none;
}

.formmsg-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

#formmsg.open .formmsg-form {
  display: flex;
}

.formmsg-form input,
.formmsg-form textarea {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.formmsg-form button {
  background: var(--color1);
  color: #fff;
  padding: 12px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
}

/* =========================
   SUCCÈS
========================= */
.formmsg-success {
  display: none;
  text-align: center;
  padding: 20px;
}

#formmsg.success {
  height: 220px;
}

#formmsg.success .formmsg-content,
#formmsg.success .formmsg-form {
  display: none;
}

#formmsg.success .formmsg-success {
  display: block;
}

/* =========================
   MON APPROCHE → 3 BLOCS
========================= */

#monapproche {
  padding: 3rem 1.2rem;
}

.approche-wrap {
  max-width: 1100px;
  margin: auto;
}

.approche-wrap > h2 {
  font-family: "Playwrite NO";
  color: var(--color1);
  text-align: center;
  margin-bottom: 0.8rem;
}

.approche-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.approche-grid {
  display: grid;
  gap: 1.4rem;
}

.approche-card {
  background: var(--color1);
  color: var(--color4);
  border-radius: 26px;
  padding: 1.6rem;
  text-align: left;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  border: 2px solid rgba(125,169,122,0.35);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.approche-card h3 {
  font-family: "Playwrite NO";
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.approche-card p {
  text-align: justify;
}

.approche-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
}

.approche-card--highlight {
  border-color: var(--color2);
  position: relative;
}

.approche-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.2rem;

  padding: 12px 22px;
  background: var(--color2);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.approche-cta::before {
  content: "✨";
}

.approche-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Partie basse (image + texte) */
.approche-bottom {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.approche-img {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.approche-text {
  background: var(--color1);
  color: var(--color4);
  border-radius: 26px;
  padding: 1.6rem;
}

.approche-text h2 {
  font-family: "Playwrite NO";
  margin-bottom: 0.8rem;
}

/* Responsive */
@media (min-width: 768px) {
  .approche-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .approche-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .approche-img {
    margin: 0;
  }
}
/* =========================
   FADE IN AU SCROLL
========================= */

/* état initial */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* quand visible */
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* léger décalage entre les cartes */
.fade-delay-1 {
  transition-delay: 0.15s;
}

.fade-delay-2 {
  transition-delay: 0.3s;
}

.fade-delay-3 {
  transition-delay: 0.45s;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */
@media (min-width: 768px) {
  nav li {
    font-size: 1.1rem;
  }

  #qui div {

    align-items: center;
  }

  .lieux-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  section {
    padding: 5rem 2rem;
  }

  header img {
    max-width: 280px;
  }
}

/* =========================
   CROIX FERMETURE FORM
========================= */
#formmsg-close {
  position: absolute;
  top: 10px;
  right: 12px;

  background: #fff;
  border: 2px solid var(--color2);
  border-radius: 50%;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;

  color: var(--color1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;

  transition: transform 0.2s ease, background 0.2s ease;
}

#formmsg-close:hover {
  transform: scale(1.1);
  background: var(--color2);
  color: #fff;
}

/* Cachée quand pas ouvert */
#formmsg:not(.open):not(.success) #formmsg-close {
  display: none;
}
@media (min-width: 768px) {
  nav ul {
    gap: 1.2rem;
  }
}