/* =========================================================
   Cabinet de Serena Gay — Psychomotricienne à Chambéry
   Feuille de style principale
   ========================================================= */

/* #region Polices */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap");
/* #endregion */

/* #region Tokens (Design System) */
:root {
  /* Couleurs */
  --color-ink: #1f2e2b;
  --color-cream: #f5f3ed;
  --color-sage: #7c8f72;
  --color-sage-light: #e8ebe1;
  --color-blue-deep: #2e4a52;
  --color-blue-light: #e6ece7;
  --color-white: #ffffff;

  /* Typographie */
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  /* Layout & Rayons */
  --max-width: 1140px;
  --radius-soft: 28px;
  --radius-small: 10px;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 7rem;
}
/* #endregion */

/* #region Reset Complet */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-ink);
  /* background: var(--color-cream); */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin-bottom: var(--space-s);
}

p,
ul,
ol,
dl,
blockquote {
  margin-bottom: var(--space-s);
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Custom Elements natifs (Web Components) */
site-header,
site-footer {
  display: block;
}

/* #region Accessibilité */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-blue-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* #endregion */

/* #region Général & Composants */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-blue-deep);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #253d44;
}

.btn-secondary {
  background: transparent;
  color: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
}

.btn-secondary:hover {
  background: var(--color-blue-deep);
  color: var(--color-white);
}

/* Structure de Section */
.section {
  /* Min: 2.5rem (~40px) sur mobile | Idéal: 5vw | Max: 5rem (~80px) sur grand écran */
  padding: 50px;
}
@media (max-width: 860px) {
  .section {
    /* Min: 2.5rem (~40px) sur mobile | Idéal: 5vw | Max: 5rem (~80px) sur grand écran */
    padding: 20px;
  }
}
.section-alt {
  background: var(--color-sage-light);
}

.section-header {
  max-width: 60ch;
  margin-bottom: var(--space-l);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Séparateur organique */
.divider {
  display: block;
  width: 100%;
  height: 60px;
}

.divider path {
  fill: none;
  stroke: var(--color-sage);
  stroke-width: 1.5;
  opacity: 0.5;
}

/* CTA Final Global */
.cta-final {
  background: var(--color-blue-deep);
  color: var(--color-cream);
  border-radius: var(--radius-soft);
  padding: var(--space-l) var(--space-m);
  text-align: center;
}

.cta-final h2 {
  color: var(--color-white);
}

.cta-final .btn-primary {
  background: var(--color-sage);
}

.cta-final .btn-primary:hover {
  background: #6d7f64;
}

.cta-final .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-blue-light);
}

.cta-final .btn-secondary:hover {
  background: var(--color-blue-light);
  color: var(--color-blue-deep);
}

.cta-final .hero-ctas {
  justify-content: center;
}
/* #endregion */

/* #region Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 237, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-sage-light);
  box-shadow: 0 4px 20px -2px rgba(31, 46, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem; /* Augmenté (anciennement 1.3rem) */
  font-weight: 700; /* Passage en gras */
  color: var(--color-blue-deep);
}
.logo-text {
  display: flex;
  flex-direction: column; /* Aligne le nom et le métier l'un sous l'autre */
  line-height: 1.2;
}

.logo span {
  color: var(--color-sage);
  font-style: normal;
  font-size: 1rem; /* Fixe la taille du sous-titre pour qu'il reste discret */
  font-weight: 400; /* Conserve le sous-titre en épaisseur normale */
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-sage); /* Ajoute la bordure */
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  color: var(--color-blue-deep);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-bottom: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.main-nav a[aria-current="page"] {
  color: var(--color-blue-deep);
}

.main-nav a.btn {
  padding: 0.85rem 1.6rem;
  color: var(--color-white);
}

.main-nav a.btn::after {
  display: none;
}

.main-nav a.btn:hover {
  color: var(--color-white);
}

/* Responsive Mobile Header */
@media (max-width: 860px) {
  .header-inner {
    padding: var(--space-xs) var(--space-s);
  }

  .logo {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }

  .logo span {
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    z-index: 60;
  }

  .nav-toggle svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.2;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 55;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-m);
    padding: var(--space-m);
  }

  .main-nav a {
    font-size: 1.3rem;
  }
}
/* #endregion */

/* #region À propos */
.section-about {
  position: relative;
}

/* Largeur optimale pour un texte long */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
  position: relative; /* Sert de repère pour les fleurs */
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

/* Positionnement des fleurs collées au bloc de texte */
.content-narrow::before,
.content-narrow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px; /* Largeur du motif */
  background-repeat: repeat-y;
  background-size: 70px auto;
  opacity: 0.18;
  pointer-events: none;
}

/* Fleur plaquée juste à gauche du texte */
.content-narrow::before {
  left: -60px; /* Décale le motif légèrement à l'extérieur du texte */
  background-image: url("../images/fleurs.svg");
}

/* Fleur plaquée juste à droite du texte (effet miroir) */
.content-narrow::after {
  right: -60px;
  background-image: url("../images/fleurs.svg");
  transform: scaleX(-1);
}

/* Adaptation écran mobile & petites fenêtres */
@media (max-width: 960px) {
  .content-narrow::before,
  .content-narrow::after {
    /* Sur petit écran, on colle les fleurs sur les bords intérieurs */
    width: 40px;
    background-size: 40px auto;
    opacity: 0.12;
  }

  .content-narrow::before {
    left: 0;
  }

  .content-narrow::after {
    right: 0;
  }
}
/* #endregion */
/* #region Hero */
.hero {
  padding-top: 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-l);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);

  font-weight: 500;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
  color: #3e4e49;
}

.hero-ctas {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  margin-top: var(--space-m);
}

.hero-visual {
  position: relative;
}

.blob-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 42% 58% 62% 38% / 45% 40% 60% 55%;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--color-blue-light),
    var(--color-sage-light)
  );
}

.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-blue-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: var(--space-m);
  background: repeating-linear-gradient(
    135deg,
    rgba(46, 74, 82, 0.06),
    rgba(46, 74, 82, 0.06) 10px,
    transparent 10px,
    transparent 20px
  );
}

.hero--simple {
  padding-bottom: var(--space-m);
}

.hero--simple .container {
  display: block;
  max-width: 70ch;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .hero-visual {
    /* Suppression de order: -1 pour laisser l'image sous le texte */
    max-width: 320px;
    margin: 0 auto;
  }
}
/* #endregion */

/* #region Déroulement seance */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  align-items: center;
}

.method-bar {
  display: flex;
  height: 220px;
  border-radius: var(--radius-small);
  overflow: hidden;
  box-shadow: 0 12px 30px -12px rgba(31, 46, 43, 0.25);
}

.method-bar-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  text-align: center;
  padding: var(--space-s);
}

.method-bar-segment.echange {
  flex: 30;
  background: var(--color-blue-deep);
}

.method-bar-segment.pratique {
  flex: 70;
  background: var(--color-sage);
}

.method-bar-segment strong {
  font-size: 1.8rem;
  display: block;
}

.method-bar-segment span {
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.method-list li {
  display: flex;
  gap: var(--space-s);
  margin-bottom: var(--space-s);
}

.method-list .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
  margin-top: 0.6em;
}

/* Sur écran mobile/tablette : passage en 1 colonne + inversion de l'ordre */
@media (max-width: 860px) {
  .method-grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .method-text {
    order: 1; /* Le texte passe en premier */
  }

  .hero-visual {
    order: 2; /* L'image passe après le texte */
  }
}
/* #endregion */

/* #region Prestations & Spécialités */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.specialty-card {
  background: var(--color-white);
  border-radius: var(--radius-small);
  padding: 15px;
  border: 1px solid var(--color-sage-light);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  margin: 5px;
}

.specialty-card:hover {
  border-color: var(--color-sage);
  transform: translateY(-4px);
}

.specialty-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue-deep);
  background: var(--color-blue-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-s);
}

.specialty-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.specialty-card p {
  font-size: 0.92rem;
  color: #3e4e49;
  margin-bottom: 0;
}

.specialty-card .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-blue-deep);
  margin-bottom: var(--space-xs);
}

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

@media (max-width: 560px) {
  .specialty-grid {
    grid-template-columns: 1fr;
  }
}
/* #endregion */

/* #region À propos */
.about-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-l);
  align-items: center;
}

.about-preview .placeholder-photo {
  border-radius: var(--radius-soft);
  aspect-ratio: 3 / 4;
}

.credentials {
  margin-top: var(--space-s);
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.credentials li {
  font-size: 0.85rem;
  background: var(--color-sage-light);
  color: var(--color-blue-deep);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .about-preview {
    grid-template-columns: 1fr;
  }
  .about-preview .placeholder-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}
/* #endregion */

/* #region FAQ */
.faq-search-wrapper {
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

#faq-search {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 8px;
  background-color: var(--color-surface, #fff);
  color: var(--color-text, #333);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#faq-search:focus {
  outline: none;
  border-color: var(--color-primary, #d97706);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-surface, #ffffff);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--color-border, #e5e7eb);
}

.faq-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary, #2d3748);
}

.faq-item p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item ul {
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.6;
  list-style: disc;
}

.faq-no-results {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--color-surface-alt, #f9f6f0);
  border-radius: 8px;
  text-align: center;
  color: var(--color-text-light, #666);
}
/* #endregion */

/* #region Contact & Variantes Layout */
.content-narrow {
  max-width: 70ch;
}

.section--top-space {
  padding-top: var(--space-l);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
}

.contact-grid .btn {
  margin-top: var(--space-s);
}

.map-frame {
  border-radius: var(--radius-small);
  aspect-ratio: 16 / 6;
  max-width: 100%;
  width: 100%;
  border: 0;
}

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

@media (max-width: 700px) {
  .map-frame {
    aspect-ratio: 4 / 3;
  }
}
/* #endregion */

/* #region Footer */
.site-footer {
  background: var(--color-ink);
  color: var(--color-sage-light);
  padding: var(--space-l) 0 var(--space-m);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 5px;
  margin-bottom: var(--space-l);
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-s);
}

.footer-grid p,
.footer-grid a {
  font-size: 0.9rem;
  color: var(--color-sage-light);
  opacity: 0.85;
}

.footer-grid a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-m);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-s);
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    background: var(--color-ink);
    color: var(--color-sage-light);
    padding: var(--space-l) 0 var(--space-m);
    margin-top: 25px;
  }
}
/* #endregion */
