@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --creme: #FDFBEE;
  --vert: #015551;
  --orange: #FE4F2D;
  --encre: #06201F;
  --blanc: #FFFFFF;
  --marge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif; background: var(--creme); color: var(--encre); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }

.wrap { width: min(1180px, 100% - 2 * var(--marge)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.intro { margin-top: 16px; max-width: 56ch; font-size: 1.15rem; }
.aplat-vert { background: var(--vert); color: var(--creme); }
.aplat-orange { background: var(--orange); color: var(--encre); }

/* Points repris des « i » du logo */
.points { list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

.btn { display: inline-block; padding: 15px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-plein { background: var(--orange); color: var(--encre); }
.btn-plein:hover { background: var(--vert); color: var(--creme); }
.btn-ligne { border-color: var(--vert); color: var(--vert); }
.btn-ligne:hover { background: var(--vert); color: var(--creme); }

/* Menu */
header { position: sticky; top: 0; z-index: 10; background: var(--creme); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.nav .logo img { width: 180px; height: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; font-weight: 500; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .btn { padding: 10px 20px; font-size: .95rem; }

/* Accueil */
.accueil { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 104px); }
h1 { font-size: clamp(1.7rem, 4vw, 3.15rem); text-wrap: initial; color: var(--vert); }
h1 span { display: block; margin-bottom: .18em; }
.accueil p { margin-top: 24px; max-width: 46ch; font-size: 1.2rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 24px; }
.pastilles li { padding: 8px 16px; border: 1.5px solid var(--vert); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--vert); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.portrait { background: var(--vert); border-radius: 220px 220px 28px 28px; overflow: hidden; padding-top: 24px; max-width: 420px; width: 100%; justify-self: end; }
.portrait > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }

/* Avant / après */
.avant-apres { margin-top: 48px; display: grid; gap: 12px; }
.ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ligne > * { padding: 18px 22px; border-radius: 16px; }
.avant { border: 1.5px dashed rgba(6, 32, 31, .4); }
.apres { background: var(--vert); color: var(--creme); font-weight: 600; }
.entetes > * { padding-block: 0; border: 0; background: none; color: var(--vert); font: 700 1.05rem "Unbounded", sans-serif; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; gap: 16px; }
.service { padding: 32px 28px; border-radius: 28px; display: flex; flex-direction: column; gap: 18px; }
.service p { font-weight: 600; }
.s1 { background: var(--creme); color: var(--encre); }
.s2 { background: var(--blanc); color: var(--encre); }
.s3 { background: var(--orange); color: var(--encre); }
.s3 .points li::before { background: var(--encre); }

/* 20 / 80 */
.regle h2 { font-size: clamp(2rem, 7vw, 5.5rem); max-width: none; }
.regle h2 span { display: block; }
.barre { display: flex; height: clamp(40px, 6vw, 72px); margin-top: 40px; gap: 8px; }
.barre i { display: block; border-radius: 999px; }
.barre i:first-child { flex: 20; background: var(--encre); }
.barre i:last-child { flex: 80; background: var(--creme); }
.regle p { margin-top: 28px; max-width: 52ch; font-size: 1.25rem; font-weight: 500; }

/* Atouts */
.atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; margin-top: 48px; }
.atouts h3 { display: flex; align-items: center; gap: 14px; color: var(--vert); }
.atouts h3::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); flex: none; }
.atouts p { margin-top: 10px; padding-left: 32px; max-width: 46ch; }

/* Méthode */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 3px solid var(--orange); padding-top: 20px; }
.etapes li::before { content: counter(etape); display: block; font: 700 2.5rem "Unbounded", sans-serif; color: var(--orange); margin-bottom: 14px; }
.etapes p { margin-top: 8px; }

/* Réalisations */
.refs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; margin-top: 48px; }
.refs a { text-decoration: none; display: block; }
.refs img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(6, 32, 31, .12); transition: transform .2s ease; }
.refs a:hover img { transform: translateY(-4px); }
.refs h3 { margin-top: 14px; font-size: 1.02rem; color: var(--vert); }
.refs a:hover h3 { text-decoration: underline; }
.refs p { font-size: .98rem; }

/* À propos */
.moi { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.moi p { margin-top: 18px; max-width: 58ch; }
.chiffres { list-style: none; display: grid; gap: 12px; }
.chiffres li { background: var(--vert); color: var(--creme); border-radius: 24px; padding: 22px 28px; }
.chiffres strong { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1.2 "Unbounded", sans-serif; }

/* Contact */
.coordonnees { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; font-weight: 600; }
.agenda { margin-top: 40px; background: var(--blanc); border-radius: 24px; overflow: hidden; }
.calendly-inline-widget { min-width: 320px; height: 700px; }
.agenda-secours { padding: 14px 20px; color: var(--encre); font-size: .95rem; }

footer { padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer img { width: 160px; }

/* Mentions légales */
.texte { max-width: 760px; padding-block: 48px 80px; }
.texte h1 { margin-bottom: 32px; }
.texte h2 { font-size: 1.15rem; max-width: none; margin: 36px 0 12px; color: var(--vert); }
.texte p { margin-bottom: 12px; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .accueil, .moi { grid-template-columns: 1fr; }
  .portrait { justify-self: center; }
  .services { grid-template-columns: 1fr; }
  .etapes, .refs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav .logo img { width: 140px; }
  .nav .btn { padding: 8px 14px; font-size: .85rem; }
  .atouts, .etapes, .refs, .ligne { grid-template-columns: 1fr; }
  .entetes { display: none; }
  .ligne { gap: 0; }
  .ligne > .avant { border-radius: 16px 16px 0 0; }
  .ligne > .apres { border-radius: 0 0 16px 16px; }
  .atouts p { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .refs img { transition: none; }
}

/* Touches d'orange */
h1 .accent { color: var(--orange); }
.contexte .entetes > :last-child { color: var(--orange); }
.contexte .apres { position: relative; padding-left: 34px; transition: transform .2s ease; }
.contexte .apres::before { content: "\2192"; position: absolute; left: -24px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--encre); font-weight: 700; }
.contexte .ligne:not(.entetes):hover .apres { transform: translateX(8px); }
.contexte .ligne:not(.entetes):hover .avant { border-color: var(--orange); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .contexte .ligne:not(.entetes) .apres { animation: glisse linear both; animation-timeline: view(); animation-range: entry 0% entry 220%; }
  }
}
@keyframes glisse { from { opacity: 0; translate: 48px 0; } }
@media (max-width: 620px) {
  .contexte .apres { padding-left: 22px; }
  .contexte .apres::before { content: "\2193"; left: auto; right: 16px; top: 0; }
}
/* Phrase d'accueil et pastilles sur une ligne */
.accueil p small { display: block; margin-top: 8px; font-size: .95rem; color: var(--vert); }
.accueil .pastilles { gap: 8px; }
.accueil .pastilles li { padding: 6px 12px; font-size: .82rem; white-space: nowrap; }

.regle p { max-width: none; }
.regle p span { display: block; }

/* Contact */
.contact h2 { color: #FFFFFF; }
.contact .coordonnees { gap: 12px; }
.contact .btn-doux { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; font-weight: 600; font-size: .95rem; border: 1px solid rgba(253, 251, 238, .45); }
.contact .btn-doux::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.contact .btn-doux:hover { border-color: var(--creme); }
.contact .adresse { margin-top: 18px; font-size: .95rem; }
.contact .agenda-secours a { font-weight: 700; }
/* Contact : touche d'orange en plus */
.contact .btn-doux { border: 1.5px solid var(--orange); }
.contact .btn-doux:hover { border-color: var(--orange); background: var(--orange); color: var(--encre); }
.contact .btn-doux:hover::before { background: var(--encre); }

/* Un même trait sous tous les titres de section (le bloc 20/80 a déjà sa barre) */
.section:not(.regle) h2::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--orange); }

/* Méthode : pas de trait sous le titre, un petit trait au-dessus de chaque étape */
#methode h2::after { display: none; }
.etapes li { position: relative; border-top: 0; padding-top: 26px; }
.etapes li::after { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 6px; border-radius: 999px; background: var(--orange); }

/* Méthode : le trait passe sous le numéro */
.etapes li { display: flex; flex-direction: column; padding-top: 0; }
.etapes li::before { order: -2; margin-bottom: 8px; }
.etapes li::after { position: static; order: -1; flex: none; margin-bottom: 18px; }

/* Autres réalisations */
.autres { margin-top: 48px; }
.autres h3 { color: var(--vert); font-size: 1.05rem; }
.autres ul { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin-top: 16px; }
.autres a { display: block; padding: 7px 14px; border: 1px solid rgba(1, 85, 81, .35); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--vert); }
.autres a:hover { border-color: var(--orange); }

/* Avis Google */
.avis { list-style: none; columns: 3 280px; column-gap: 16px; margin-top: 48px; }
.avis li { break-inside: avoid; margin-bottom: 16px; padding: 24px; border-radius: 20px; background: var(--creme); color: var(--encre); }
.etoiles { color: var(--orange); font-size: 1.15rem; letter-spacing: 3px; }
.avis blockquote { margin-top: 10px; font-size: .98rem; }
.auteur { margin-top: 14px; font-weight: 700; color: var(--vert); }
.plus-avis { margin-top: 28px; }
.btn-avis { border: 1.5px solid var(--orange); padding: 10px 20px; font-size: .95rem; }
.btn-avis:hover { background: var(--orange); color: var(--encre); }
