@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --cream: #f5f8f9;
  --sand: #eef5f5;
  --teal: #2f6f73;
  --teal-dark: #24575a;
  --teal-soft: #dcebe9;
  --coral: #e8836b;
  --coral-soft: #fdeae5;
  --sun: #f4c96b;
  --ink: #23343b;
  --muted: #5c6b70;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(35, 52, 59, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.06rem; line-height: 1.7; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(35, 52, 59, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal-soft); }
.brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .85rem; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, opacity .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid rgba(35,52,59,.08); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-block; background: var(--teal); color: #fff !important; text-decoration: none; font-weight: 700; padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; box-shadow: 0 10px 22px -12px rgba(47,111,115,.8); }
.btn:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--teal) !important; box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff !important; }
.btn-coral { background: var(--coral); box-shadow: 0 10px 22px -12px rgba(232,131,107,.9); }
.btn-coral:hover { background: #d96f56; }

/* ---------- Bandeau avec illustration diluée ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/illustration-ergo.svg?v=2") no-repeat right -40px center / auto 115%;
  opacity: .22; filter: saturate(.8);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #fff 30%, rgba(255,255,255,.6) 60%, rgba(255,255,255,.15)),
              radial-gradient(circle at 12% 115%, var(--teal-soft), transparent 40%);
}
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 640px); }
.hero { min-height: min(78vh, 620px); display: flex; align-items: center; }
.hero::before { opacity: .38; background-position: right 2% center; background-size: auto 105%; }
.hero::after { background: linear-gradient(100deg, #fff 34%, rgba(255,255,255,.55) 58%, rgba(255,255,255,0) 80%), radial-gradient(circle at 12% 115%, var(--teal-soft), transparent 40%); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); padding: .35rem .9rem; border-radius: 999px; font-size: .9rem; margin-bottom: 1.2rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero h1 em { font-style: italic; color: var(--teal); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }


.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero::before { background-size: auto 140%; background-position: right -20px center; opacity: .2; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumb a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero::before, .page-hero::before { background-position: center bottom; background-size: 130% auto; opacity: .14; }
  .hero::after, .page-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.7)); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--coral); margin-bottom: .5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid rgba(35,52,59,.05); transition: transform .25s, box-shadow .25s; }
.section-alt .card { background: #fff; box-shadow: 0 10px 30px -24px rgba(35,52,59,.4); }
.card:hover { transform: translateY(-4px); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--teal-soft); color: var(--teal); }
.card .icon svg { width: 28px; height: 28px; }
.card.coral .icon { background: var(--coral-soft); color: var(--coral); }
.card.sun .icon { background: #fdf1d4; color: #b8861c; }
.card-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; margin-top: .4rem; }
.card-link::after { content: "→"; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-visual { background: var(--sand); border-radius: 32px; padding: 2rem; }
.split-visual img { width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cols-2 { columns: 2 260px; column-gap: 2rem; }
.cols-2 li { break-inside: avoid; margin-bottom: .7rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 2.4rem 1.6rem 1.6rem; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.6rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: #fff; background: var(--coral); box-shadow: 0 0 0 6px #fff; }
.section-alt .step { background: #fff; }
.section-alt .step::before { box-shadow: 0 0 0 6px var(--cream); }

.about { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
.about img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; text-align: center; } .about img { margin-inline: auto; } }

.note { background: var(--coral-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.note p:last-child { margin-bottom: 0; }

.cta { background: linear-gradient(120deg, var(--teal) 0%, #3d8589 100%); color: #fff; border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; top: -90px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .9; }
.cta .btn { background: #fff; color: var(--teal) !important; position: relative; z-index: 1; }
.cta .btn:hover { background: var(--sun); color: var(--ink) !important; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.info-card .person { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.info-card .person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.info-card .person strong { font-family: var(--serif); font-size: 1.25rem; display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.info-list span { color: var(--muted); font-size: .9rem; display: block; }
.map { border: 0; width: 100%; height: 260px; border-radius: 16px; background: var(--sand); }

.form { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 2px solid transparent; border-radius: 14px; padding: .75rem 1rem; transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--coral); }
.error-msg { color: #b4472f; font-size: .88rem; margin-top: .3rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); margin-bottom: 1.4rem; }
.consent input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 16px; padding: 1rem 1.3rem; margin-bottom: 1.5rem; font-weight: 600; }
.alert-ok { background: var(--teal-soft); color: var(--teal-dark); }
.alert-ko { background: var(--coral-soft); color: #9c3c26; }

/* ---------- Texte long (mentions) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
@media (max-width: 600px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: .6rem; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 3.5rem 0 1.5rem; margin-top: 2rem; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; color: #fff; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.2); }
.footer-brand strong { font-family: var(--serif); font-size: 1.2rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.3rem; font-size: .85rem; opacity: .7; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.site-footer .region { font-size: .82rem; opacity: .6; }
/* Cartouches du menu */
.nav a.btn { color: #fff; }
.nav a.nav-rdv, .nav a.nav-rdv:hover, .nav a.nav-rdv[aria-current="page"] { background: var(--coral); color: #fff; }
.nav a.nav-rdv:hover { background: #d96f56; }
.nav a.nav-tel { display: inline-flex; align-items: center; gap: .45rem; margin-left: .4rem; background: var(--teal); color: #fff; }
.nav a.nav-tel:hover { background: var(--teal-dark); color: #fff; }
@media (max-width: 860px) { .nav a.nav-tel { justify-content: center; margin-left: 0; } }
/* Sélecteur « Objet de votre demande » */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 3rem; font-weight: 600;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
                    radial-gradient(circle, var(--teal) 14px, transparent 15px);
  background-repeat: no-repeat, no-repeat;
  background-size: 14px 14px, 30px 30px;
  background-position: right 1rem center, right .6rem center;
  border-radius: 14px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select:hover { background-color: #fff; box-shadow: 0 6px 18px -12px rgba(35,52,59,.45); }
.field select:focus { background-color: #fff; box-shadow: 0 0 0 4px var(--teal-soft); }
.field select:invalid, .field select option[value=""] { color: var(--muted); font-weight: 400; }
.field select option { color: var(--ink); font-weight: 600; }
