@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-light: #b8d4e8;
  --blue-section: #c5dcea;
  --blue-navy: #1a2a5e;
  --blue-mid: #4a6fa5;
  --blue-dark-hero: #1a3a6e;
  --white: #ffffff;
  --text: #333344;
  --text-light: #555566;
  --card-bg: #ffffff;
  --salmon: #e8836e;
}

html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); font-size: 15px; line-height: 1.7; padding-bottom: 60px; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img { width: 52px; height: 52px; object-fit: contain; }

.logo-text .logo-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  color: var(--blue-navy);
  display: block;
  line-height: 1.1;
}

.logo-text .logo-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
  line-height: 1.5;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  color: var(--blue-navy);
  font-weight: 400;
  text-decoration: none;
}

.header-phone svg { color: var(--blue-mid); }

.header-nav {
  background: var(--white);
  border-top: 2px solid var(--blue-light);
}

.header-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.header-nav a {
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 18px;
  display: block;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.header-nav a:hover, .header-nav a.active { color: var(--blue-mid); }

/* ===== HERO ===== */
.hero {
  background-image: url('dandelion.png');
  background-size: cover;
  background-position: center top;
  background-color: #c8d8e8;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 48px 32px;
  position: relative;
}

/* dandelion-like soft bg */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-photo {
  width: 160px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--white);
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-card {
  background: rgba(176, 210, 232, 0.82);
  padding: 28px 32px;
  max-width: 340px;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.22);
}

.hero-card h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--blue-navy);
  margin-bottom: 4px;
}

.hero-card .hero-titles {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 2px;
}

.hero-card .hero-dist {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.hero-card .info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-top: 10px;
  margin-bottom: 2px;
}

.hero-card .info-val {
  font-size: 0.85rem;
  color: var(--text);
}

.hero-card .info-val a { color: var(--blue-mid); text-decoration: none; }

.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--blue-navy);
  margin-top: 20px;
}

/* butterfly decoration */
.butterfly {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

/* ===== SECTION BASE ===== */
.section-white { background: var(--white); padding: 56px 32px; }
.section-blue  { background: var(--blue-section); padding: 56px 32px; }

.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 800px; margin: 0 auto; }

/* ===== SECTION TITLE (spaced letters style) ===== */
.section-heading {
  font-family: 'Lato', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--blue-navy);
  text-align: center;
  margin-bottom: 40px;
}

/* ===== WHITE CARD (used throughout) ===== */
.card {
  background: var(--white);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.22);
}

.card-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.card-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 14px;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 8px;
}

.card-link {
  display: block;
  text-align: right;
  font-size: 0.88rem;
  color: var(--blue-mid);
  text-decoration: none;
  margin-top: 12px;
  font-style: italic;
}

.card-link:hover { text-decoration: underline; }

/* ===== QUI SUIS-JE section ===== */
.qui-suis-je {
  background: linear-gradient(135deg, #7ecac8 0%, #a8c8e0 40%, #c8b8d8 100%);
  padding: 56px 32px;
}

.qui-suis-je .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.qui-suis-je h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--blue-navy);
  margin-bottom: 20px;
}

.qui-suis-je .quote {
  font-size: 0.95rem;
  color: var(--blue-navy);
  margin-bottom: 10px;
  font-style: italic;
}

.qui-suis-je .cta-link {
  font-size: 0.92rem;
  color: var(--blue-navy);
  text-decoration: none;
  font-weight: 400;
}

.qui-suis-je .cta-link:hover { text-decoration: underline; }

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--blue-section);
  padding: 56px 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  padding: 28px 32px;
}

.contact-card h3 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-navy);
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 12px;
}

.btn-salmon {
  display: inline-block;
  background: var(--salmon);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 20px;
}

/* ===== CONTACT BOTTOM TEXT ===== */
.contact-bottom {
  text-align: center;
  padding: 32px;
  font-size: 0.95rem;
  color: var(--blue-navy);
  font-style: italic;
  line-height: 1.9;
}

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  border-top: 1px solid #dde;
  padding: 8px 32px;
  font-size: 0.7rem;
  color: var(--text-light);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner p { margin: 0; line-height: 1.4; }

.footer-links a {
  color: var(--blue-mid);
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-links a:hover { text-decoration: underline; }

.footer-fb img { width: 36px; height: 36px; }

.footer-seo {
  width: 100%;
  font-size: 0.65rem;
  color: #aaa;
  text-align: center;
  margin-top: 4px;
}

/* ===== PAGE INTERIEURE ===== */
.page-title-bar {
  background: var(--white);
  padding: 40px 32px 0;
  text-align: center;
}

.page-title-bar h1 {
  font-family: 'Lato', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--blue-navy);
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--blue-mid);
  text-decoration: none;
  margin-bottom: 28px;
}

.back-link:hover { text-decoration: underline; }

/* ===== PROSE ===== */
.prose p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}

.prose h2 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-navy);
  margin: 24px 0 10px;
}

/* steps */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.steps-list li {
  font-size: 0.87rem;
  color: var(--text-light);
  padding: 6px 0 6px 20px;
  position: relative;
}

.steps-list li::before { content: '-'; position: absolute; left: 4px; color: var(--blue-mid); }

/* ===== QUI SUIS-JE PAGE ===== */
.qui-page { background: linear-gradient(135deg, #7ecac8 0%, #a8c8e0 40%, #c8b8d8 100%); padding: 56px 32px; }

/* ===== TARIFS PAGE ===== */
.tarifs-hero { background: var(--blue-dark-hero); padding: 48px 32px; }
.tarifs-hero .card { max-width: 800px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 768px) {
  .header-top { padding: 12px 16px 0; }
  .logo-text .logo-sub { display: none; }
  .header-nav-inner { flex-wrap: wrap; }
  .header-nav a { padding: 8px 10px; font-size: 0.78rem; }
  .hero { padding: 32px 16px; min-height: auto; }
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-photo { width: 120px; height: 140px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid img { height: 200px; }
  .qui-suis-je .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-white, .section-blue { padding: 40px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  body { padding-bottom: 120px; }
}

/* ===== PAPILLON ANIME CSS ===== */
.butterfly-animated {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 90px;
  cursor: default;
}

.butterfly-animated .wing {
  position: absolute;
  top: 10px;
  width: 52px;
  height: 70px;
  border-radius: 50% 50% 40% 50%;
  background: radial-gradient(ellipse at 30% 40%, #4fc3e8 0%, #1a7abf 40%, #0d3d8a 80%, #081e4a 100%);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.3);
}

.butterfly-animated .wing::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 55%;
  background: rgba(100,200,255,0.35);
  border-radius: 50%;
  top: 15%;
  left: 15%;
}

.butterfly-animated .wing-left {
  left: 0;
  transform-origin: right center;
  border-radius: 50% 50% 50% 40%;
  animation: flapLeft 0.45s ease-in-out infinite alternate;
}

.butterfly-animated .wing-right {
  right: 0;
  transform-origin: left center;
  animation: flapRight 0.45s ease-in-out infinite alternate;
}

.butterfly-animated .wing-lower-left {
  top: 40px;
  left: 4px;
  width: 44px;
  height: 50px;
  border-radius: 50% 40% 60% 50%;
  background: radial-gradient(ellipse at 40% 30%, #3ab8e0 0%, #1060aa 50%, #091d55 100%);
  transform-origin: right center;
  animation: flapLeft 0.45s ease-in-out infinite alternate;
}

.butterfly-animated .wing-lower-right {
  top: 40px;
  right: 4px;
  width: 44px;
  height: 50px;
  border-radius: 40% 50% 50% 60%;
  background: radial-gradient(ellipse at 60% 30%, #3ab8e0 0%, #1060aa 50%, #091d55 100%);
  transform-origin: left center;
  animation: flapRight 0.45s ease-in-out infinite alternate;
}

/* corps */
.butterfly-animated .body {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 72px;
  background: linear-gradient(180deg, #0a1a4a 0%, #1a3a7a 50%, #0a1a4a 100%);
  border-radius: 3px;
  z-index: 2;
}

/* antennes */
.butterfly-animated .antenna-left,
.butterfly-animated .antenna-right {
  position: absolute;
  top: 0;
  width: 2px;
  height: 22px;
  background: #0a1a4a;
  border-radius: 1px;
  z-index: 2;
}
.butterfly-animated .antenna-left {
  left: calc(50% - 10px);
  transform: rotate(-20deg);
  transform-origin: bottom center;
}
.butterfly-animated .antenna-right {
  left: calc(50% + 8px);
  transform: rotate(20deg);
  transform-origin: bottom center;
}
.butterfly-animated .antenna-left::after,
.butterfly-animated .antenna-right::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: #0a1a4a;
  border-radius: 50%;
  margin-top: -2px;
  margin-left: -1px;
}

/* flottement global */
.butterfly-animated {
  animation: floatButterfly 3s ease-in-out infinite;
}

@keyframes flapLeft {
  from { transform: rotateY(0deg) scaleX(1); }
  to   { transform: rotateY(65deg) scaleX(0.3); }
}

@keyframes flapRight {
  from { transform: rotateY(0deg) scaleX(1); }
  to   { transform: rotateY(-65deg) scaleX(0.3); }
}

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

/* ===== HERO FOND PISSENLIT ===== */

/* "Prendre soin de soi" sous photo */
.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--blue-navy);
  margin-top: 12px;
  text-align: center;
  display: block;
  width: 160px;
}

.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== VRAI PAPILLON ANIME (image du site) ===== */
.butterfly-img-anim {
  width: 220px;
  transform-origin: center bottom;
  animation: butterflyFloat 3s ease-in-out infinite, butterflyWing 0.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(0,80,160,0.18));
}

@keyframes butterflyFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25%       { transform: translateY(-12px) rotate(1.5deg); }
  50%       { transform: translateY(-6px) rotate(0deg); }
  75%       { transform: translateY(-14px) rotate(-1.5deg); }
}

@keyframes butterflyWing {
  from { transform: scaleX(1) translateY(var(--ty, 0px)); }
  to   { transform: scaleX(0.82) translateY(var(--ty, 0px)); }
}

/* combine float + wing flap */
.butterfly-img-anim {
  animation: butterflyFull 0.55s ease-in-out infinite alternate,
             butterflyFloat 3.5s ease-in-out infinite;
}

@keyframes butterflyFull {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0.78); }
}
