/* Le Cowork'Cab — site vitrine
   Identité provisoire, tirée des photos du cabinet. Quand la charte de la graphiste arrive,
   ne changer que ce bloc de variables (couleurs et polices) et le fichier logo. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --cyan: #09B0E4;      /* la façade, au soleil */
  --teal: #00738E;      /* l'enseigne ronde « Cabinet infirmier » */
  --teal-deep: #005A70;
  --abyss: #06303F;     /* le mur du fond, côté bureau */
  --oak: #E8C6A3;       /* le parquet */
  --oak-soft: #F6EADD;
  --plaster: #F4F6F5;   /* les murs blancs */
  --ink: #0A2630;
  --muted: #4A636D;
  --line: #D3DEE1;
  --wa: #0F7A3D;        /* blanc dessus : contraste > 5:1 */
  --wa-deep: #0B5F2F;
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r-photo: 28px;
  --r-small: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .contact :focus-visible, .btn-wa:focus-visible, .wa-float:focus-visible { outline-color: #fff; }
.btn-wa:focus-visible, .wa-float:focus-visible { box-shadow: 0 0 0 6px var(--abyss); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--abyss); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.35em; height: 1.35em; flex: none; fill: currentColor; }

/* ---------- Titres ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--abyss); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.8vw, 4.7rem); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-weight: 700; font-size: clamp(1.85rem, 3.5vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(9, 176, 228, .25); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-line { border-color: var(--teal); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--abyss); }
.btn-light .icon { color: var(--wa); }
.btn-light:hover { background: var(--oak-soft); }
.btn-dark { background: var(--abyss); color: #fff; }
.btn-dark:hover { background: var(--teal-deep); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 52px; width: auto; border-radius: 8px; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: .98rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--cyan); }

/* ---------- Accueil ---------- */
.banner { position: relative; }
.banner img { width: 100%; height: auto; animation: reveal .7s ease-out both; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
/* Écho de l'enseigne ronde accrochée à la façade */
.sign { position: absolute; z-index: 2; right: clamp(20px, 7vw, 140px); bottom: -98px; width: 112px; height: 112px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; text-align: center; font: 700 1rem/1.12 var(--display); transform: rotate(-8deg); box-shadow: 0 14px 30px -14px rgba(0, 50, 70, .65); }
.hero { padding: clamp(92px, 8vw, 124px) 0 clamp(44px, 7vw, 92px); }
.hero h1 { max-width: 15em; }
.eyebrow { margin: 0 0 14px; font: 700 .95rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.proof { margin: 20px 0 0; font-size: .97rem; }
.proof a { color: var(--ink); text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; }
.proof a:hover strong { text-decoration: underline; }
.proof .stars { color: #B7791F; letter-spacing: 2px; font-size: 1.1rem; }
.gift-line { margin: 22px 0 26px; padding-left: 18px; border-left: 4px solid var(--oak); color: var(--muted); max-width: 54ch; }
.gift-line strong { color: var(--abyss); }
.hero .lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 36em; margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .hint { margin: 18px 0 0; font-size: .97rem; color: var(--muted); }
/* ---------- Deux parcours ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; padding-block: clamp(44px, 7vw, 92px); }
.row-flip .media { order: 2; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); }
.row h2 { margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' 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; }
.gift { border-left: 4px solid var(--oak); padding: 2px 0 2px 18px; margin: 26px 0 28px; max-width: 54ch; }
.gift strong { font-family: var(--display); font-size: 1.1rem; color: var(--abyss); }
.gift p { margin: 4px 0 0; }

/* ---------- Avis ---------- */
.avis-section { padding-block: 0 clamp(48px, 7vw, 88px); }
.avis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(24px, 4vw, 40px); }
.avis { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-small); padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.avis blockquote { margin: 0; }
.avis p { margin: 0; font: 500 1.1rem/1.5 var(--display); color: var(--abyss); }
.avis figcaption { font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.avis .stars { color: #B7791F; letter-spacing: 2px; }
.avis .src { margin-left: auto; font-size: .85rem; }
.avis-link { margin: 22px 0 0; }

/* ---------- Services ---------- */
.dark { background: var(--abyss); color: #e8f1f3; padding-block: clamp(56px, 8vw, 104px); }
.dark h2, .dark h3 { color: #fff; }
.dark .intro { color: #b9d0d7; margin: 14px 0 0; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 104px); margin-top: clamp(32px, 5vw, 56px); }
.svc .lead { color: #b9d0d7; margin: 10px 0 0; }
.dark .ticks li::before { background-color: var(--cyan); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306303F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Étapes (une vraie suite : numérotée) ---------- */
.steps-section { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.steps { list-style: none; counter-reset: etape; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { position: relative; padding-top: 74px; counter-increment: etape; }
.steps li::before { content: counter(etape); position: absolute; top: 0; left: 0; font: 800 3.6rem/1 var(--display); color: var(--cyan); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 58px; right: -14px; height: 2px; background: var(--line); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Engagements ---------- */
.commit-section { background: #fff; padding-block: clamp(56px, 8vw, 100px); border-block: 1px solid var(--line); }
.commit { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 6vw, 96px); margin: clamp(24px, 4vw, 40px) 0 0; }
.commit div { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.commit dt { font: 700 1.2rem/1.2 var(--display); color: var(--abyss); }
.commit dd { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }

/* ---------- Parrainage ---------- */
.band-section { padding-block: clamp(44px, 7vw, 88px); }
.band { background: var(--oak); border-radius: var(--r-photo); padding: clamp(30px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 40px; }
.band p { margin: 12px 0 0; max-width: 46ch; color: #3b2f22; }

/* ---------- Questions ---------- */
.faq-section { padding-block: 0 clamp(56px, 8vw, 100px); }
.faq { margin-top: clamp(24px, 4vw, 40px); max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 1.15rem/1.3 var(--display); color: var(--abyss); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0 0 24px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--teal); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact h2 { color: #fff; }
.contact p { color: #dcf0f5; margin: 16px 0 30px; }
.contact address { font-style: normal; display: grid; gap: 14px; }
.contact address b { display: block; font: 700 1.3rem/1.2 var(--display); }
.contact address a { color: #fff; }

/* ---------- Pied de page ---------- */
footer { background: var(--plaster); padding-block: 30px max(40px, calc(24px + env(safe-area-inset-bottom))); scroll-margin-bottom: 90px; font-size: .95rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); }

/* Pastilles des réseaux sociaux */
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--teal); transition: background-color .15s, color .15s; }
.social .icon { width: 22px; height: 22px; }
.contact .social a { background: #fff; color: var(--teal); }
.contact .social a:hover { background: var(--oak-soft); }
footer .social { margin-top: 0; }
footer .social a { width: 40px; height: 40px; background: var(--teal); color: #fff; }
footer .social a:hover { background: var(--teal-deep); }
/* Bulle WhatsApp flottante (téléphone) */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: none; place-items: center; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); }
.wa-float .icon { width: 32px; height: 32px; }

/* ---------- Pages légales ---------- */
.legal { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 100px); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 20px; }
.legal h2 { font-size: 1.45rem; margin: 38px 0 10px; }
.legal li, .legal p { color: #26414b; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 920px) {
  html { scroll-padding-top: 124px; }
  .top .wrap { flex-wrap: wrap; row-gap: 0; }
  .nav { order: 3; flex: 1 0 100%; gap: 22px; overflow-x: auto; padding-bottom: 8px; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 0; }
  .row, .svc-grid, .contact .wrap, .commit, .avis-grid { grid-template-columns: 1fr; }
  .row-flip .media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
  .wa-float { display: grid; }
  .sign { width: 92px; height: 92px; font-size: .86rem; bottom: -80px; }
}
@media (max-width: 560px) {
  .top .wrap { min-height: 64px; }
  .brand img { height: 40px; }
  .top .btn-small span { display: none; }
  .sign { display: none; }
  .hero { padding-top: 40px; }
  .top .btn-small { padding: 0; width: 44px; }
  .actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none !important; }
  .btn { width: 100%; }
  .top .btn { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner img { animation: none; }
  .faq summary::after, .btn { transition: none; }
}
