/* ==========================================================
   Sahelia TD Group — feuille de style
   Palette : crème / vert Sahel / or soleil
   ========================================================== */
:root {
  --teal: #1B5E58;
  --teal-dark: #134641;
  --teal-soft: #E3EEEC;
  --gold: #EDB02E;
  --gold-dark: #D39A1A;
  --gold-soft: #FBF0D5;
  --cream: #F5F0E6;
  --cream-2: #EFE8DA;
  --white: #FFFFFF;
  --ink: #173B37;
  --muted: #5E7A76;
  --line: #E4DCCB;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(23, 59, 55, .08);
  --shadow-lg: 0 24px 60px rgba(23, 59, 55, .16);
  --header-h: 76px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(27, 94, 88, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--teal); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.accent { color: var(--gold); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px rgba(27, 94, 88, .25); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--gold { background: var(--gold); color: var(--teal-dark); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ghost { border-color: var(--teal); color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(245, 240, 230, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 59, 55, .08); background: rgba(245, 240, 230, .96); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { width: 44px; height: auto; }
.brand__text { font-size: 1.15rem; font-weight: 600; color: var(--teal); letter-spacing: -.01em; }
.brand__text strong { color: var(--gold); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--teal); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 3rem; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1.4rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__visual { position: relative; padding: 2.5rem 1rem 3rem; }
.hero__photo {
  border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4; transform: rotate(1.5deg);
  border: 8px solid var(--white);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::before {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: var(--gold); top: 0; right: -30px; z-index: -1; opacity: .9;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  background: var(--white); padding: .7rem 1.1rem .7rem .8rem; border-radius: 18px;
  box-shadow: var(--shadow-lg); transition: transform .25s ease;
  animation: floaty 6s ease-in-out infinite;
}
.float-card:hover { transform: translateY(-4px) scale(1.03); }
.float-card img { width: 40px; height: 52px; object-fit: contain; }
.float-card strong { display: block; color: var(--teal); font-size: .98rem; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card--a { left: -18px; bottom: 10%; }
.float-card--b { right: -6px; top: 8%; animation-delay: -3s; }
.hero__badge {
  position: absolute; right: 10%; bottom: 0; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--teal); color: var(--white); padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  box-shadow: var(--shadow);
}
.hero__badge svg { width: 16px; height: 16px; fill: var(--gold); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.stats {
  margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1rem;
}
.stats li { text-align: center; padding: .4rem 1rem; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--teal); line-height: 1.2; }
.stats li:nth-child(4) strong { font-size: 1.3rem; padding-block: .3rem; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section__head { text-align: center; max-width: 46rem; margin: 0 auto 3.2rem; }
.section h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.section__sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- À propos ---------- */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__media { margin-top: 1rem; }
.about__media { position: relative; }
.about__media img { border-radius: 30px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__quote {
  position: absolute; right: -24px; bottom: -28px; max-width: 250px;
  background: var(--gold); color: var(--teal-dark); font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  padding: 1.3rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__quote-mark { display: block; font-size: 3rem; line-height: .6; margin-bottom: .3rem; color: var(--teal); }
.about__text h2 { margin-bottom: 1.4rem; }
.about__text > p { color: var(--muted); font-size: 1.05rem; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0 1.4rem; }
.mv__card { padding: 1.4rem 1.5rem; border-radius: var(--radius-sm); }
.mv__card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.mv__card p { margin: 0; font-size: .96rem; }
.mv__card--teal { background: var(--teal); color: #DCEBE8; }
.mv__card--teal h3 { color: var(--gold); }
.mv__card--gold { background: var(--gold); color: var(--teal-dark); }
.engagement { border-left: 4px solid var(--gold); padding-left: 1rem; color: var(--ink) !important; font-size: 1rem !important; }

/* ---------- Expertises ---------- */
.xp {
  border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow);
}
.xp:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.xp h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.xp p { margin: 0; font-size: .97rem; }
.xp__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem; }
.xp__icon svg { width: 28px; height: 28px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp--teal { background: var(--teal); color: #D5E6E3; }
.xp--teal h3 { color: var(--white); }
.xp--teal .xp__icon { background: rgba(255, 255, 255, .12); }
.xp--teal .xp__icon svg { stroke: var(--gold); }
.xp--gold { background: var(--gold); color: var(--teal-dark); }
.xp--gold h3 { color: var(--teal-dark); }
.xp--gold .xp__icon { background: rgba(255, 255, 255, .35); }
.xp--gold .xp__icon svg { stroke: var(--teal-dark); }
.xp--light { background: var(--white); color: var(--muted); }
.xp--light .xp__icon { background: var(--teal-soft); }
.xp--light .xp__icon svg { stroke: var(--teal); }

/* ---------- Écosystème ---------- */
.eco { background: var(--cream-2); }
.eco-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.8rem 1.8rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.eco-card--live:hover { background: var(--gold); border-color: var(--gold); }
.eco-card--live:hover .eco-card__tag, .eco-card--live:hover p { color: var(--teal-dark); }
.eco-card__logo {
  width: 116px; height: 116px; border-radius: 50%; background: var(--cream); overflow: hidden;
  display: grid; place-items: center; margin-bottom: 1.3rem; padding: 16px; transition: background-color .3s ease;
}
.eco-card--live:hover .eco-card__logo { background: var(--white); }
.eco-card__logo img { width: auto; height: auto; max-width: 84px; max-height: 84px; object-fit: contain; }
.eco-card__logo--svg { padding: 0; background: transparent; }
.eco-card__logo--svg svg { width: 100%; height: 100%; }
.eco-card h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.eco-card__tag { color: var(--gold-dark); font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.eco-card p:not(.eco-card__tag) { color: var(--muted); font-size: .95rem; flex: 1; }
.status { margin-top: .6rem; font-size: .8rem; font-weight: 700; padding: .4rem .9rem; border-radius: 999px; letter-spacing: .02em; }
.status--live { background: var(--teal); color: var(--white); }
.status--soon { background: var(--cream); color: var(--muted); border: 1px dashed #CBBF9F; }

/* ---------- Services (onglets) ---------- */
.tabs { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: 1rem; }
.tabs__list { display: flex; flex-wrap: wrap; gap: .4rem; background: var(--cream); padding: .4rem; border-radius: 20px; }
.tabs__list button {
  flex: 1 1 auto; font: inherit; font-weight: 700; font-size: .93rem; color: var(--muted);
  background: none; border: 0; padding: .85rem 1.1rem; border-radius: 16px; cursor: pointer; transition: all .2s ease;
}
.tabs__list button:hover { color: var(--teal); }
.tabs__list button[aria-selected="true"] { background: var(--teal); color: var(--white); box-shadow: 0 6px 16px rgba(27, 94, 88, .25); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; padding: 2.4rem 1.8rem 1.6rem; animation: fade .35s ease; }
.tabs__panel[hidden] { display: none; }
.panel__intro h3 { font-size: 1.6rem; margin-bottom: .9rem; }
.panel__intro p { color: var(--muted); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.checks li { position: relative; padding: .8rem 0 .8rem 2.3rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B5E58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks strong { color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .85rem; padding: .4rem .9rem; border-radius: 999px; }
.rel { display: grid; gap: .9rem; }
.rel__item { display: flex; align-items: center; gap: 1rem; background: var(--cream); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-weight: 600; }
.rel__item span { background: var(--gold); color: var(--teal-dark); font-weight: 800; border-radius: 10px; padding: .35rem .7rem; font-size: .9rem; }

/* ---------- Pourquoi nous ---------- */
.why { background: var(--teal); color: #D5E6E3; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(237, 176, 46, .12); right: -140px; top: -160px;
}
.why__inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 3.5rem; align-items: center; position: relative; }
.why h2 { color: var(--white); margin-bottom: 2rem; }
.why__list li { display: flex; gap: 1.2rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 1.1rem; font-weight: 600; color: var(--white); }
.why__list span { color: var(--gold); font-weight: 800; font-size: .95rem; min-width: 1.8rem; }
.why__card { background: var(--white); color: var(--ink); border-radius: 28px; padding: 2.2rem; box-shadow: var(--shadow-lg); }
.why__card h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.audience { margin-bottom: 1.6rem; }
.audience li { padding: .6rem 0 .6rem 1.5rem; position: relative; font-weight: 600; border-bottom: 1px dashed var(--line); }
.audience li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.contact__info { display: flex; }
.contact__info .contact-card { margin-top: 0; flex: 1; align-content: space-between; }
.contact .section__head { margin-bottom: 2.6rem; }
.contact__info h2 { margin-bottom: 1.2rem; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; max-width: 30rem; }

.contact-card {
  position: relative; overflow: hidden; margin-top: 2rem;
  background: var(--teal); color: #D5E6E3; border-radius: 28px; padding: 2rem;
  box-shadow: var(--shadow-lg); display: grid; gap: 1.6rem;
}
.contact-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 42px solid rgba(237, 176, 46, .12); right: -110px; top: -120px; pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card__badge {
  justify-self: start; display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .1); color: var(--white); font-size: .82rem; font-weight: 700;
  padding: .45rem .9rem; border-radius: 999px;
}
.contact-card__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }

.contact__list { display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; color: var(--white); font-weight: 600; }
.contact__list small span { text-transform: none; letter-spacing: .02em; }
.contact__list small { display: block; font-size: .72rem; font-weight: 700; color: rgba(213, 230, 227, .7); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .1rem; }
.contact__list a { color: var(--white); }
.contact__list a:hover { color: var(--gold); }
.ci { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.ci svg { width: 21px; height: 21px; fill: var(--gold); }

.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .25); }
.btn--whatsapp:hover { background: #1EBE5A; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

.contact-card__social { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.contact-card__social p { margin: 0; font-size: .9rem; }
.contact-card__social strong { color: var(--white); }

.socials { display: flex; flex-wrap: wrap; gap: .55rem; }
.social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: var(--white);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--gold); color: var(--teal-dark); transform: translateY(-3px); }
.socials--footer { margin-top: 1.1rem; }

.form { position: relative; background: var(--white); border-radius: 28px; padding: 2.2rem; box-shadow: var(--shadow-lg); display: grid; gap: 1.2rem; overflow: hidden; }
.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--teal) 0 50%, var(--gold) 50% 100%); }
.form__head h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.form__head p { margin: 0; font-size: .9rem; color: var(--muted); }
.req { color: #C0392B; }

.form__steps { display: flex; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.form__steps li { flex: 1; display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: var(--muted); padding-top: .55rem; border-top: 3px solid var(--line); transition: color .25s, border-color .25s; }
.form__steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--cream); color: var(--muted); transition: all .25s; }
.form__steps li.is-current { color: var(--teal); border-color: var(--gold); }
.form__steps li.is-current span { background: var(--gold); color: var(--teal-dark); }
.form__steps li.is-done { color: var(--teal); border-color: var(--teal); }
.form__steps li.is-done span { background: var(--teal); color: var(--white); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .field > label, .field__label-row label { display: block; font-weight: 700; font-size: .88rem; color: var(--teal); margin-bottom: .45rem; padding: 0; }
.field { display: grid; min-width: 0; align-content: start; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--gold-dark); font-weight: 700; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  font: inherit; font-weight: 500; color: var(--ink); width: 100%;
  background: var(--cream); border: 2px solid transparent; border-radius: 12px; padding: .8rem 1rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B5E58' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; }
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #9AAEAA; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background-color: var(--white); box-shadow: 0 0 0 4px rgba(237, 176, 46, .18); }
.form .is-invalid, .form .is-invalid:focus { border-color: #D9534F !important; background-color: #FFF6F5; box-shadow: none; }
.form .is-valid { border-color: rgba(27, 94, 88, .35); }

.input-prefix { display: flex; align-items: stretch; background: var(--cream); border-radius: 12px; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.input-prefix span { display: flex; align-items: center; padding: 0 .2rem 0 1rem; font-weight: 700; color: var(--teal); font-size: .95rem; white-space: nowrap; }
.input-prefix input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: .5rem !important; }
.input-prefix:focus-within { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(237, 176, 46, .18); }
.input-prefix.is-invalid { border-color: #D9534F; background: #FFF6F5; }

.field__error { margin: .35rem 0 0; font-size: .8rem; font-weight: 600; color: #C0392B; min-height: 0; }
.field__error:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.choice { position: relative; cursor: pointer; }
.choice input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
  padding: .8rem .4rem; border-radius: 14px; background: var(--cream); border: 2px solid transparent;
  font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.25; transition: all .2s ease; height: 100%;
}
.choice svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice:hover > span { border-color: rgba(27, 94, 88, .25); transform: translateY(-2px); }
.choice input:checked + span { background: var(--teal); color: var(--white); border-color: var(--teal); box-shadow: 0 8px 18px rgba(27, 94, 88, .25); }
.choice input:checked + span svg { stroke: var(--gold); }
.choice input:focus-visible + span, .pill input:focus-visible + span, .consent input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.choices.is-invalid .choice > span { border-color: rgba(217, 83, 79, .5); }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill > span { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--muted); transition: all .2s; }
.pill input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--teal-dark); }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); cursor: pointer; line-height: 1.5; }
.consent__more { display: block; margin-top: .25rem; font-size: .78rem; }
.consent__more a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.consent input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--teal); flex: none; cursor: pointer; }
.consent + .field__error { margin-top: -.8rem; }

.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.form__actions .btn { flex: 1 1 210px; min-height: 56px; padding: .9rem 1.2rem; white-space: nowrap; font-size: .95rem; }
.btn--whatsapp-outline { border-color: #25D366; color: #128C4A; background: #F1FBF4; }
.btn--whatsapp-outline:hover { background: #25D366; color: #fff; }
.btn--whatsapp-outline svg { width: 19px; height: 19px; fill: currentColor; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form__note:empty { display: none; }
.form__note.is-error { color: #C0392B; font-weight: 600; }

.form__success { position: absolute; inset: 0; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem; gap: .6rem; animation: fade .4s ease; z-index: 2; }
.form__success[hidden] { display: none; }
.form__success h3 { font-size: 1.6rem; }
.form__success p { color: var(--muted); max-width: 26rem; }
.success__icon { width: 74px; height: 74px; border-radius: 50%; background: var(--teal); color: var(--gold); font-size: 2.2rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--teal-soft); margin-bottom: .8rem; }

/* ---------- Formulaire en 3 étapes ---------- */
.form { gap: 1.25rem; }
.form__title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.form__title-row h3 { margin: 0; }
.form__count { flex: none; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--cream); padding: .35rem .75rem; border-radius: 999px; }
.form__count b { color: var(--teal); }
.form__steps { margin-top: 1rem; }
.form__steps li { padding-top: 0; }
.form__steps li button {
  all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: .45rem;
  padding-top: .6rem; font: inherit; font-size: .8rem; font-weight: 700; color: inherit; cursor: pointer;
}
.form__steps li button:disabled { cursor: default; }
.form__steps li button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.form__steps li.is-done button span { background: var(--teal); color: var(--white); }

.form__body { min-height: 318px; }
.form-step { display: grid; gap: 1.2rem; align-content: start; }
.form-step[hidden] { display: none; }
.form-step.is-active { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.field > label small, .field__label-row label small { font-weight: 600; color: var(--muted); }

.choices { gap: .5rem; }
.choice > span { padding: .75rem .35rem; gap: .35rem; }

.recap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem .8rem; border-radius: 14px; background: var(--teal-soft); }
.recap:empty { display: none; }
.recap span { font-size: .8rem; font-weight: 700; color: var(--teal); background: var(--white); padding: .3rem .7rem; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap button { all: unset; margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--gold-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.recap button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-step .consent + .field__error { margin-top: -.8rem; }
.form-step textarea { min-height: 128px; }

.form__nav { display: flex; align-items: center; gap: .7rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.form__nav .btn { min-height: 52px; padding: .8rem 1.4rem; font-size: .95rem; white-space: nowrap; }
.form__nav .btn[hidden] { display: none; }
.form__next { margin-left: auto; }
.form__send { flex: 1; }
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form__next .i { transition: transform .2s; }
.form__next:hover .i { transform: translateX(3px); }
.btn--wa-icon { width: 52px; padding: 0 !important; flex: none; border: 2px solid #25D366; background: #F1FBF4; color: #128C4A; }
.btn--wa-icon:hover { background: #25D366; color: #fff; }
.btn--wa-icon svg { width: 22px; height: 22px; fill: currentColor; }
.form__note a { color: inherit; text-decoration: underline; }

/* ---------- Rendez-vous (Cal.com) ---------- */
.booking { background: var(--white); }
.booking__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.booking__intro { position: sticky; top: calc(var(--header-h) + 28px); }
.booking__intro h2 { margin-bottom: 1.1rem; }
.booking__text { color: var(--muted); font-size: 1.05rem; }
.booking__types { display: grid; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.booking-type {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 2px solid transparent; border-radius: 20px; padding: 1.15rem 1.2rem;
  transition: background-color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.booking-type:hover { border-color: rgba(27, 94, 88, .25); transform: translateY(-2px); }
.booking-type:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.booking-type.is-active { background: var(--teal); color: var(--white); box-shadow: 0 14px 30px rgba(27, 94, 88, .25); }
.booking-type__num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--white); color: var(--teal); }
.booking-type.is-active .booking-type__num { background: var(--gold); color: var(--teal-dark); }
.booking-type__body strong { display: block; font-size: 1.02rem; color: var(--teal); margin-bottom: .15rem; }
.booking-type.is-active .booking-type__body strong { color: var(--white); }
.booking-type__body small { display: block; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.booking-type.is-active .booking-type__body small { color: #C9DEDA; }
.booking-type__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: transform .25s, opacity .25s; }
.booking-type:hover .booking-type__arrow svg, .booking-type.is-active .booking-type__arrow svg { opacity: 1; transform: translate(2px, -2px); }
.booking-type.is-active .booking-type__arrow svg { stroke: var(--gold); }
.booking__tz { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 0; }
.booking__tz svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; fill: none; stroke: var(--gold-dark); stroke-width: 2; stroke-linecap: round; }

.booking__calendar { position: relative; background: var(--cream); border-radius: 28px; padding: 1.4rem; box-shadow: var(--shadow); min-height: 560px; }
.booking-panel[hidden] { display: none; }
.booking-panel.is-active { animation: fade .35s ease; }
.booking-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem .6rem 1.2rem; }
.booking-panel__label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .25rem; }
.booking-panel__head h3 { font-size: 1.3rem; }
.booking-panel__duration { flex: none; font-size: .82rem; font-weight: 700; color: var(--teal); background: var(--white); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px; }

/* Cal.com ajuste lui-même la hauteur de son iframe : on ne la bloque pas (sinon le calendrier est coupé sur mobile) */
.cal-embed { width: 100%; min-height: 600px; border-radius: 20px; background: var(--white); position: relative; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cal-embed:empty::before { content: "Chargement de l’agenda…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.cal-embed cal-inline, .cal-embed > * { display: block !important; width: 100% !important; max-width: 100% !important; }
.cal-embed iframe { display: block; width: 100% !important; max-width: 100% !important; min-height: 600px; border: 0; }

.cal-open { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.cal-open strong { color: var(--teal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.cal-open svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cal-open:hover strong { color: var(--gold-dark); }
.cal-embed[hidden] + .cal-open { display: none; }
.cal-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 520px; padding: 2rem; background: var(--white); border-radius: 20px; border: 2px dashed var(--line); }
.cal-placeholder[hidden] { display: none; }
.cal-placeholder__icon { width: 72px; height: 72px; border-radius: 22px; background: var(--teal); display: grid; place-items: center; margin-bottom: 1.2rem; box-shadow: 0 0 0 10px var(--teal-soft); }
.cal-placeholder__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-placeholder h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.cal-placeholder p { color: var(--muted); max-width: 26rem; }
.cal-placeholder__cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .4rem; }

.contact-card__book { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: -.6rem; font-size: .9rem; color: #C9DEDA; }
.contact-card__book svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.contact-card__book strong { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-card__book:hover strong { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-dark); color: #B9D2CE; padding: 4rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand img { width: 130px; background: var(--cream); border-radius: 18px; padding: 12px 14px; margin-bottom: 1.2rem; }
.footer__brand p { font-size: .95rem; }
.footer h4 { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0; }
.footer li { padding: .3rem 0; font-size: .95rem; }
.footer a:hover { color: var(--gold); }
.footer li span { opacity: .7; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ---------- Responsive ---------- */
.brand__text, .nav a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1101px) {
  .nav { gap: .9rem; }
  .nav a:not(.btn) { font-size: .85rem; }
  .nav .btn--sm { padding: .55rem .95rem; font-size: .85rem; }
  .brand__text { font-size: 1.05rem; }
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .choices { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 1rem 20px 1.5rem; box-shadow: 0 20px 40px rgba(23, 59, 55, .12);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem !important; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }
}

@media (max-width: 900px) {
  .hero__inner, .about__inner, .why__inner, .contact__inner { grid-template-columns: 1fr; }
  .contact__info { position: static; order: 2; }
  .booking__inner { grid-template-columns: 1fr; }
  .booking__intro { position: static; }
  .booking__calendar { min-height: 0; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .stats li:nth-child(2) { border-right: 0; }
  .about__media { max-width: 460px; margin-inline: auto; margin-bottom: 1.5rem; }
  .about__quote { right: 0; }
  .tabs__panel { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.8rem 1rem 1rem; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .grid--3, .mv, .form__row { grid-template-columns: 1fr; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
  .float-card { padding: .55rem .8rem .55rem .6rem; }
  .float-card img { width: 32px; height: 42px; }
  .hero__visual::before { width: 130px; height: 130px; right: -20px; }
  .tabs__list button { flex: 1 1 45%; font-size: .85rem; padding: .7rem .6rem; }
  .form { padding: 1.5rem; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .choice > span { flex-direction: row; justify-content: flex-start; padding: .7rem .8rem; text-align: left; }
  .form__steps li button { font-size: .72rem; }
  .form__body { min-height: 0; }
  .form__nav .btn { padding: .8rem 1.1rem; }
  .form__prev { font-size: 0 !important; width: 52px; padding: 0 !important; justify-content: center; }
  .form__prev .i { width: 20px; height: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .why__card { padding: 1.6rem; }
  .contact-card { padding: 1.5rem; }
  .booking__calendar { padding: .8rem; border-radius: 22px; }
  .booking-panel__head { padding: .4rem .4rem 1rem; }
  .cal-embed { min-height: 520px; border-radius: 16px; }
  .cal-embed iframe { min-height: 520px; }
  .booking__calendar { padding: .5rem; }
  .booking-panel__head { padding: .7rem .7rem 1rem; }
  .contact-card__social { flex-direction: column; align-items: flex-start; }
}
