/* =========================================================
   Coorsanté — feuille de style
   Couleurs issues du logo. Modifiez les variables ci-dessous
   pour ajuster l'ensemble du site.
   ========================================================= */
:root {
  --teal: #0f9ea3;
  --teal-light: #5cd9cc;
  --blue: #1f6fd0;
  --orange: #ff7a0b;
  --rose: #fc244d;
  --ink: #15303a;
  --ink-soft: #4b626b;
  --line: #e3eceb;
  --bg: #ffffff;
  --bg-tint: #f4f8f8;
  --dark: #0f2a33;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 42, 51, .04), 0 8px 30px rgba(15, 42, 51, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--rose)); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .95rem; }
.accent { color: var(--teal); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid var(--teal);
  background: var(--teal); color: #fff; font: 600 .98rem/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 158, 163, .25); background: #0b8a8f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--teal); border-color: var(--teal); box-shadow: none; }
.btn-small { padding: .6em 1.15em; font-size: .9rem; }
.btn-light { background: #fff; color: var(--dark); border-color: #fff; }
.btn-light:hover { background: var(--teal-light); border-color: var(--teal-light); color: var(--dark); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 42, 51, .04); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: .14em; color: var(--rose); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 56px; }
.hero-bg {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(92, 217, 204, .22), transparent 70%) 10% 30% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(252, 36, 77, .10), transparent 70%) 70% 60% / 55% 55% no-repeat,
    radial-gradient(closest-side, rgba(31, 111, 208, .10), transparent 70%) 80% 10% / 45% 45% no-repeat;
  filter: blur(10px);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-text h1 .accent { display: inline; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-logo { text-align: center; }
.logo-anim { width: min(340px, 80%); margin: 0 auto; }
.logo-anim svg { width: 100%; height: auto; overflow: visible; }
.wordmark {
  font-family: var(--serif); font-weight: 500; color: var(--rose);
  font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .32em; margin: 1.2rem 0 .1rem; padding-left: .32em;
}
.tagline { color: var(--ink-soft); font-size: .95rem; letter-spacing: .04em; }

.facts {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .7);
}
.facts li { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font-size: 1.35rem; color: var(--ink); }
.facts span { color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }

/* ---------- Animation du logo ---------- */
.logo-anim .fig { transform-box: fill-box; transform-origin: center; opacity: 0; }
.logo-anim.play .fig-teal { animation: inLeft 1.1s cubic-bezier(.2, .8, .2, 1) .1s forwards; }
.logo-anim.play .fig-blue { animation: inRight 1.1s cubic-bezier(.2, .8, .2, 1) .35s forwards; }
.logo-anim.play .fig-warm { animation: inUp 1.1s cubic-bezier(.2, .8, .2, 1) .6s forwards; }
.logo-anim .head { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-anim.play .head { animation: nod 1s ease 1.5s both; }
.logo-anim.play.idle .fig { opacity: 1; }
.logo-anim.play.idle .fig-teal { animation: swayA 4.2s ease-in-out infinite; }
.logo-anim.play.idle .fig-blue { animation: swayB 4.2s ease-in-out infinite; }
.logo-anim.play.idle .fig-warm { animation: swayC 4.2s ease-in-out infinite; }
.logo-anim.play.idle .head { animation: bob 2.1s ease-in-out infinite; }
.logo-anim.play.idle .fig-blue .head { animation-delay: .35s; }
.logo-anim.play.idle .fig-warm .head { animation-delay: .7s; }
.logo-anim { position: relative; cursor: pointer; }
.logo-anim::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(92, 217, 204, .35), rgba(252, 36, 77, .12) 60%, transparent);
  animation: glow 4.2s ease-in-out infinite;
}

@keyframes inLeft  { from { opacity: 0; transform: translate(-28px, 6px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes inRight { from { opacity: 0; transform: translate(28px, -6px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes inUp    { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes nod     { 0%, 100% { transform: none; } 40% { transform: translateY(-5px); } 70% { transform: translateY(1px); } }
/* Mouvement continu : les personnages se rapprochent et s'éloignent, comme une étreinte */
@keyframes swayA { 0%, 100% { transform: none; } 50% { transform: translate(7px, -5px) rotate(3deg); } }
@keyframes swayB { 0%, 100% { transform: none; } 50% { transform: translate(-6px, -4px) rotate(-3deg); } }
@keyframes swayC { 0%, 100% { transform: none; } 50% { transform: translateY(-7px) scale(1.03); } }
@keyframes bob   { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
@keyframes glow  { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); }
.align-center { align-items: center; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.num { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .1em; color: var(--teal); margin-bottom: 18px; }

.advantages { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.advantages li:nth-child(2) .num { color: var(--blue); }
.advantages li:nth-child(3) .num { color: var(--orange); }
.advantages li:nth-child(4) .num { color: var(--rose); }
.advantages p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  --c: var(--teal);
  position: relative; background: #fff; border-radius: var(--radius); padding: 30px 28px 26px;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c);
  transform: scaleX(.18); transform-origin: left; transition: transform .45s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service:hover::before { transform: scaleX(1); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--c) 12%, white); color: var(--c);
}
.icon svg, .contact-list svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .7; }

/* Formules */
.formulas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.formula {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line); background: linear-gradient(160deg, #fff 55%, var(--bg-tint));
}
.formula .num { font-size: 2.6rem; letter-spacing: -.02em; line-height: 1; margin-bottom: 20px;
  background: linear-gradient(120deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.formula:nth-child(2) .num { background-image: linear-gradient(120deg, var(--orange), var(--rose)); }
.formula h3 { font-size: 1.4rem; }
.formula p { color: var(--ink-soft); margin: 0; }

/* À propos */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-intro { position: static; }
.about-lead { font-size: 1.3rem; line-height: 1.45; font-weight: 600; color: var(--ink) !important; letter-spacing: -.01em; }
.labels { margin: 1.6rem 0; display: grid; gap: 12px; }
.labels-title { font-weight: 600; color: var(--ink) !important; margin-bottom: .2rem; }
.label-card { --c: var(--teal); background: #fff; border-radius: 14px; padding: 16px 18px 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--c); }
.label-card h3 { font-size: 1.05rem; margin-bottom: .3em; color: var(--c); }
.label-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }
.about-intro h2 { margin-bottom: .1em; }
.about-id { display: flex; align-items: center; gap: 24px; margin-bottom: 1.6rem; }
.about-id .role { margin-bottom: 0; }
.portrait {
  flex: none; width: 150px; height: 150px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 200deg, var(--teal-light), var(--blue), var(--orange), var(--rose), var(--teal-light));
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
@media (max-width: 560px) { .portrait { width: 112px; height: 112px; } .about-id { gap: 18px; } }
.role { color: var(--teal); font-weight: 600; margin-bottom: 1.4em; }
.about-intro > p:not(.role):not(.eyebrow) { color: var(--ink-soft); }
blockquote {
  margin: 2rem 0 0; padding: 22px 26px; border-radius: var(--radius); background: #fff;
  border-left: 3px solid var(--rose); font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--ink);
}
blockquote p { margin: 0; }
.about-detail { display: grid; gap: 40px; }
.about-detail h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist li {
  position: relative; padding: 14px 16px 14px 48px; background: #fff; border-radius: 12px; border: 1px solid var(--line); line-height: 1.5;
}
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .93rem; font-weight: 500; }

/* Périmètre */
.territories { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 10px; }
.territories li { padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 10%, white); color: #0b6f73; font-weight: 600; font-size: .93rem; }
.map { margin: 0; }
.map svg { width: 100%; max-width: 480px; margin-inline: auto; }
.map .rings circle { fill: none; stroke: var(--teal); stroke-opacity: .35; stroke-dasharray: 3 5; }
.map .ring-labels text { font: 600 10px var(--font); fill: var(--teal); text-anchor: middle; letter-spacing: .05em; }
.map .border { fill: none; stroke: var(--ink-soft); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 8 4 2 4; }
.map .border-label { font: italic 500 12px var(--font); fill: var(--ink-soft); opacity: .7; letter-spacing: .1em; }
.map .towns circle { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.map .towns text { font: 500 12.5px var(--font); fill: var(--ink); }
.map .home circle { fill: var(--rose); }
.map .home .pulse { fill: var(--rose); opacity: .35; transform-origin: 200px 200px; animation: pulse 2.4s ease-out infinite; }
.map .home text { font: 700 14px var(--font); fill: var(--ink); }
.map figcaption { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }

/* Contact */
.section-dark { background: var(--dark); color: #e7f1f1; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 217, 204, .16), transparent);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--teal-light); }
.contact { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info > p { color: #b9cfd1; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; }
.contact-list svg { color: var(--teal-light); flex: none; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.contact-list a:hover { border-color: var(--teal-light); }
.signature { font-family: var(--serif); font-size: 1.35rem; color: #fff; letter-spacing: .03em; }

.contact-form { background: #fff; color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.contact-form .btn-light { background: var(--teal); color: #fff; border-color: var(--teal); justify-self: start; }
.contact-form .btn-light:hover { background: #0b8a8f; color: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-tint);
  border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.site-footer { background: #0b2128; color: #9fb8bb; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.site-footer .brand-name { color: #fff; font-size: 1.35rem; }
.site-footer a { color: #cfe3e4; }
.small { font-size: .85rem; }

/* Page secondaire (mentions légales, merci) */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page .container { max-width: 800px; }
.page h2 { font-size: 1.35rem; margin-top: 2.2em; }
.page p, .page li { color: var(--ink-soft); }
.todo { background: #fff4e5; color: #8a4b00; padding: 0 .35em; border-radius: 4px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js .logo-anim .fig { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr 1fr; }
  .advantages { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 42, 51, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .hero-inner, .two-col, .about, .contact, .formulas { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .logo-anim { width: min(170px, 48%); }
  .wordmark { margin-top: .4rem; font-size: 1.9rem; }
  .hero-logo .tagline { margin-bottom: .5rem; }
  .about-intro { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .services, .advantages, .field-row { grid-template-columns: 1fr; }
  .facts li { padding: 16px; }
  .facts strong { font-size: 1.15rem; }
  .brand-name { font-size: 1.35rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo-anim .fig, .reveal { opacity: 1 !important; transform: none !important; }
}
