/* =========================================
   TOB LIBÉRAL'SANTÉ — Feuille de styles
   Palette : Teal foncé #1c6b6e | Teal clair #4dbfbf
             Marine #123e52     | Crème #f4f8f8
             Blanc #ffffff
   ========================================= */

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

:root {
  --teal-dark:   #1c6b6e;
  --teal-mid:    #25858a;
  --teal-light:  #4dbfbf;
  --teal-pale:   #e8f4f4;
  --navy:        #123e52;
  --cream:       #f4f8f8;
  --beige:       #fdf9f2;
  --text:        #1e3a3c;
  --text-muted:  #5a7a7c;
  --white:       #ffffff;
  --shadow:      0 4px 24px rgba(28,107,110,.12);
  --shadow-lg:   0 12px 48px rgba(28,107,110,.18);
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
.script { font-family: 'Dancing Script', cursive; font-weight: 700; color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 900; }
a { text-decoration: none; color: inherit; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}
.btn--primary:hover { background: var(--teal-mid); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  padding: 10px 22px;
  font-size: .9rem;
}
.btn--outline-white:hover { background: var(--white); color: var(--teal-dark); }
.btn--white {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}
.btn--white:hover { background: var(--teal-pale); }
.btn--full { width: 100%; text-align: center; }

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header--light .section-title,
.section-header--light .section-desc { color: var(--white); }
.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.section-eyebrow--light { color: rgba(255,255,255,.7); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-title .script { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--teal-dark);
  box-shadow: 0 2px 16px rgba(28,107,110,.25);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.logo-tagline {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-light);
}
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,.85); font-weight: 700; font-size: .9rem;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none; flex-direction: column;
  background: var(--navy); padding: 16px 24px;
}
.nav__mobile a {
  color: var(--white); font-weight: 700; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav__mobile.open { display: flex; }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--navy) 60%, #0d2e3f 100%);
  padding-top: 120px; padding-bottom: 0;
  overflow: hidden;
}
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  background: rgba(77,191,191,.08);
}
.shape--1 { width: 500px; height: 500px; top: -120px; right: -100px; }
.shape--2 { width: 300px; height: 300px; bottom: 60px; left: -80px; }

.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding-bottom: 80px;
  position: relative; z-index: 1;
}
.hero__surtitle {
  font-size: .8rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--teal-light);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white); margin-bottom: 24px;
}
.hero__title--script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700; color: var(--teal-light);
  display: block;
}
.hero__desc {
  color: rgba(255,255,255,.82); font-size: 1.05rem;
  max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero__desc strong { color: var(--white); }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Phone mockup */
.hero__visual {
  display: flex; justify-content: center; align-items: flex-end;
  position: relative; padding-bottom: 20px;
}
.hero__phone-mockup {
  width: 220px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 20px 16px;
  border: 6px solid rgba(255,255,255,.15);
}
.mockup__bar {
  width: 60px; height: 5px; background: #e2e8f0;
  border-radius: 3px; margin: 0 auto 16px;
}
.mockup__header {
  font-size: .85rem; font-weight: 700; color: var(--navy);
  text-align: center; margin-bottom: 10px; line-height: 1.3;
}
.mockup__header strong { color: var(--teal-dark); font-size: 1rem; }
.mockup__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.mockup__tags span {
  font-size: .65rem; background: var(--teal-pale);
  color: var(--teal-dark); padding: 3px 8px; border-radius: 20px; font-weight: 700;
}
.mockup__btn {
  background: var(--teal-dark); color: var(--white);
  text-align: center; border-radius: 20px;
  font-size: .7rem; font-weight: 800; padding: 7px;
  margin-bottom: 12px;
}
.mockup__icons { display: flex; justify-content: space-around; text-align: center; }
.mockup__icon { font-size: .75rem; color: var(--text-muted); }
.mockup__icon small { display: block; font-size: .6rem; }

/* Badge prix */
.hero__badge {
  position: absolute; bottom: 30px; right: -20px;
  background: var(--teal-dark);
  border-radius: 50%; width: 140px; height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(28,107,110,.4);
  border: 4px solid rgba(255,255,255,.2);
  text-align: center;
}
.badge__from { font-size: .55rem; color: rgba(255,255,255,.7); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge__price { font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1; }
.badge__period { font-size: .62rem; color: var(--teal-light); font-weight: 800; }
.badge__sub { font-size: .5rem; color: rgba(255,255,255,.6); font-weight: 600; }

.hero__wave { line-height: 0; }
.hero__wave svg { display: block; width: 100%; height: 60px; }

/* =========================================
   SERVICES
   ========================================= */
.services { background: var(--cream); padding: 80px 0; }
.services__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border-top: 4px solid var(--teal-dark);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__badge {
  position: absolute; top: -1px; right: 28px;
  background: var(--teal-light); color: var(--white);
  font-size: .72rem; font-weight: 800; padding: 4px 14px;
  border-radius: 0 0 8px 8px; letter-spacing: .08em; text-transform: uppercase;
}
.service-card__icon-wrap { margin-bottom: 20px; }
.service-card__title {
  font-size: 1.3rem; margin-bottom: 16px; color: var(--navy);
}
.service-card__desc {
  color: var(--text-muted); margin-bottom: 20px; line-height: 1.7;
}
.service-card__list {
  list-style: none; margin-bottom: 28px;
}
.service-card__list li {
  padding: 6px 0 6px 24px; position: relative;
  color: var(--text); font-size: .95rem;
  border-bottom: 1px solid var(--cream);
}
.service-card__list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* =========================================
   POURQUOI
   ========================================= */
.pourquoi {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--navy) 100%);
  padding: 80px 0;
}
.pourquoi .section-title { color: var(--white); }
.pourquoi__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pourquoi__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: background var(--transition), transform var(--transition);
}
.pourquoi__card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.pourquoi__icon { margin-bottom: 14px; }
.pourquoi__card h4 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.pourquoi__card p { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.6; }

/* =========================================
   TARIFS
   ========================================= */
.tarifs { background: var(--beige); padding: 80px 0; }
.tarifs__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
}
.tarif-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.tarif-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tarif-card--featured {
  background: var(--teal-dark);
  border-color: var(--teal-light);
  transform: scale(1.04);
}
.tarif-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.tarif-card__popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal-light); color: var(--white);
  font-size: .72rem; font-weight: 800; padding: 4px 18px;
  border-radius: 20px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.tarif-card__header h3 {
  font-size: 1.2rem; margin-bottom: 4px;
  color: var(--navy);
}
.tarif-card--featured .tarif-card__header h3 { color: var(--white); }
.tarif-card__sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; }
.tarif-card--featured .tarif-card__sub { color: rgba(255,255,255,.65); }

.tarif-card__price { margin-bottom: 8px; }
.price__from {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .05em;
}
.tarif-card--featured .price__from { color: rgba(255,255,255,.65); font-size: 1rem; font-weight: 800; }
.price__amount {
  font-size: 3.2rem; font-weight: 900; color: var(--teal-dark); line-height: 1;
}
.price__amount span { font-size: 1.8rem; }
.tarif-card--featured .price__amount { color: var(--white); }
.price__period { font-size: .9rem; font-weight: 700; color: var(--text-muted); margin-left: 4px; }
.tarif-card--featured .price__period { color: rgba(255,255,255,.7); }

.tarif-card__note {
  font-size: .78rem; color: var(--text-muted); margin-bottom: 24px; font-style: italic;
}
.tarif-card--featured .tarif-card__note { color: rgba(255,255,255,.55); }

.tarif-card__features { list-style: none; margin-bottom: 28px; }
.tarif-card__features li {
  padding: 8px 0 8px 24px; position: relative;
  font-size: .9rem; color: var(--text);
  border-bottom: 1px solid var(--cream);
}
.tarif-card--featured .tarif-card__features li { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.1); }
.tarif-card__features li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
}
.tarifs__mention {
  text-align: center; font-size: .78rem; color: var(--text-muted);
  margin-top: 32px; font-style: italic;
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  padding: 80px 0;
}
.contact__inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}
.contact__title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--white); margin-bottom: 20px;
}
.contact__desc {
  color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.7;
  margin-bottom: 32px;
}
.contact__desc strong { color: var(--white); }
.contact__coords { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-weight: 700; font-size: .95rem;
  transition: color var(--transition);
}
.contact__item:hover { color: var(--teal-light); }
.contact__item-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Form */
.contact__form-wrap {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.contact__form-title { font-size: 1.2rem; color: var(--navy); margin-bottom: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__group label { font-size: .82rem; font-weight: 800; color: var(--text); }
.form__group input,
.form__group select,
.form__group textarea {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem; color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
  width: 100%;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--teal-dark); }
.form__group textarea { resize: vertical; }
.form__success, .form__error {
  display: none;
  border-radius: var(--radius-sm); padding: 14px;
  font-weight: 700; font-size: .9rem; margin-top: 12px;
  text-align: center;
}
.form__success { background: #d4edda; color: #155724; }
.form__error   { background: #f8d7da; color: #721c24; }
.form__success.visible, .form__error.visible { display: block; }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--navy); padding: 48px 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem; color: var(--white); font-weight: 700;
  display: block; margin-bottom: 8px;
}
.footer__brand p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.6; }
.footer__links, .footer__contact {
  display: flex; flex-direction: column; gap: 10px;
}
.footer__links a, .footer__contact a {
  color: rgba(255,255,255,.65); font-size: .88rem;
  transition: color var(--transition);
}
.footer__links a:hover, .footer__contact a:hover { color: var(--teal-light); }
.footer__bottom {
  text-align: center; padding: 16px 24px;
  color: rgba(255,255,255,.35); font-size: .78rem;
}
.footer__bottom a {
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--teal-light); }

/* =========================================
   BANDEAU COOKIES
   ========================================= */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy);
  border-top: 3px solid var(--teal-light);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1160px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 260px; }
.cookie-banner__text strong {
  display: block; color: var(--white);
  font-size: .95rem; margin-bottom: 6px;
}
.cookie-banner__text p {
  color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.5; margin-bottom: 6px;
}
.cookie-banner__text a {
  color: var(--teal-light); font-size: .82rem;
  font-weight: 700; text-decoration: underline;
}
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 24px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .88rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, background .2s;
}
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn--refuse {
  background: transparent; color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.3);
}
.cookie-btn--refuse:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.cookie-btn--accept {
  background: var(--teal-light); color: var(--white);
  border-color: var(--teal-light);
}
.cookie-btn--accept:hover { background: var(--teal-mid); }

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-dark); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { justify-content: center; margin-top: 24px; }
  .hero__badge { right: calc(50% - 140px); }

  .services__grid { grid-template-columns: 1fr; }
  .pourquoi__grid { grid-template-columns: 1fr 1fr; }
  .tarifs__grid { grid-template-columns: 1fr; }
  .tarif-card--featured { transform: none; }
  .tarif-card--featured:hover { transform: translateY(-6px); }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 90px; }
  .hero__badge { right: auto; left: 50%; transform: translateX(60px); bottom: 0; }

  .pourquoi__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }

  .btn { padding: 12px 22px; font-size: .88rem; }
}

@media (max-width: 420px) {
  .hero__phone-mockup { width: 180px; }
  .hero__badge { width: 120px; height: 120px; }
  .badge__price { font-size: 2rem; }
}
