/* Resiliopsy – site vitrine statique. Aucune ressource externe : polices et images sont locales. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/Poppins-Light.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Inter18pt-Regular.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --paper: #F4F6F1;
  --paper-raised: #FFFFFF;
  --ink: #2F3437;
  --ink-soft: #566066;
  --principale: #9CC4AA;
  --secondaire: #63A79E;
  --tertiaire: #1D3557;
  --accent1: #5F8F8C;
  --accent2: #B5E48C;
  --accent3: #3663A2;
  --sage-soft: #E7F0E9;
  --line: #DEE5DC;
  --todo-bg: #FFF8E6;
  --todo-line: #B9873E;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 53, 87, .06), 0 6px 22px rgba(29, 53, 87, .06);
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent3); text-underline-offset: 3px; }
a:hover { color: var(--tertiaire); }
:focus-visible { outline: 3px solid var(--accent3); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--tertiaire); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-weight: 500; font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: calc(100% - 2.5rem); max-width: 1080px; margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--tertiaire); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 246, 241, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 62px; width: auto; aspect-ratio: 1004 / 483; }
.nav { display: flex; gap: .25rem 1.4rem; flex-wrap: wrap; }
.nav a { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--tertiaire); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--secondaire); }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem; align-items: center; }
.eyebrow { font-family: var(--font-display); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--accent1); margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.hero .mark { justify-self: center; width: min(280px, 60%); }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 500; text-decoration: none;
  background: var(--tertiaire); color: #fff; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--tertiaire);
}
.btn:hover { background: #fff; color: var(--tertiaire); }
.btn.ghost { background: transparent; color: var(--tertiaire); }
.btn.ghost:hover { background: var(--tertiaire); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Sections */
section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
section.alt { background: var(--paper-raised); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
section.alt .card { background: var(--paper); box-shadow: none; }
.card h3 { margin-bottom: .5rem; }
.card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--principale); margin-bottom: 1rem; }
.card:nth-child(2)::before { background: var(--secondaire); }
.card:nth-child(3)::before { background: var(--accent1); }
.card:nth-child(4)::before { background: var(--tertiaire); }

.quals { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.quals li { background: var(--sage-soft); color: var(--tertiaire); font-family: var(--font-display); font-weight: 500; font-size: .92rem; padding: .4rem .95rem; border-radius: 999px; }

.two { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { font-family: var(--font-display); font-weight: 500; color: var(--accent1); font-size: .9rem; }

.help { background: var(--sage-soft); border-left: 5px solid var(--secondaire); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; }
.help h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.help p { margin: 0; }

/* Textes d'Isabelle */
.intro { font-size: 1.1rem; max-width: 36rem; }
.stack { display: grid; gap: 1.2rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .35rem 0; }
.card .plain li { border-bottom: 1px solid var(--line); }
.card .plain li:last-child { border-bottom: 0; }
.tarifs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tarif .price { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--tertiaire); margin: 0 0 .5rem; line-height: 1.25; }
.tarif .price span { font-weight: 500; font-size: 1rem; color: var(--ink-soft); }
.tarif .note { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.bullets { margin: 0 0 1em; padding-left: 1.2rem; }
.bullets li { padding: .1rem 0; }
.payment { margin: 1.4rem 0 0; color: var(--ink-soft); }
.refund { margin-top: 2rem; }
.numbers li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(29,53,87,.12); padding: .5rem 0; }
.numbers li:last-child { border-bottom: 0; }
.help .numbers a { color: var(--tertiaire); }

/* Conseils (infographies) */
.tips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tip { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tip-img { display: block; position: relative; background: var(--sage-soft); }
.tip-count { position: absolute; right: .6rem; top: .6rem; background: rgba(29,53,87,.88); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; }
.tip-img img { width: 100%; height: auto; }
.tip-meta { padding: .9rem 1.1rem 1.1rem; }
.tip-meta h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.tip-date { font-size: .85rem; color: var(--ink-soft); margin-bottom: .5rem; }
.tip-meta a { font-size: .9rem; }
.tip-text { margin: 0 0 .7rem; font-size: .92rem; }
.tip-text summary { cursor: pointer; font-family: var(--font-display); font-weight: 500; color: var(--tertiaire); }
.tip-text p { margin: .6rem 0 0; }
.tip-page { max-width: 44rem; }
.tip-page .back { margin: 0 0 1.2rem; font-family: var(--font-display); font-weight: 500; }
.tip-page .tip-date { margin-bottom: 1.2rem; }
.tip-big { width: 100%; max-width: 560px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 1.4rem; }
.tip-full p { margin: 0 0 1em; }
.refs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.refs li { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.4rem; max-width: 100%; }
.refs img { height: 132px; width: auto; max-width: 100%; }
.refs img.wide { height: 84px; }
.tips.latest { grid-template-columns: 1fr; margin-bottom: 1.6rem; }
.latest .tip { flex-direction: row; align-items: flex-start; }
.latest .tip-img { flex: 0 0 min(300px, 38%); }
.latest .tip-meta { padding: 1.3rem 1.5rem; }
.latest .tip-meta h3 { font-size: 1.3rem; }
@media (max-width: 760px) { .latest .tip { flex-direction: column; } .latest .tip-img { flex-basis: auto; } }
.more { margin: 0; }
.empty { color: var(--ink-soft); }
.more { margin: 0; }

/* Brouillon : tout ce qui doit encore être rédigé est impossible à manquer */
.todo { background: var(--todo-bg); border: 2px dashed var(--todo-line); border-radius: 10px; padding: .8rem 1rem; color: #6b4a14; font-size: .95rem; }
.todo::before { content: "À compléter · "; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; }
span.todo { display: inline-block; padding: .1rem .5rem; border-width: 1px; }
.draft-banner { background: var(--todo-bg); border-bottom: 2px dashed var(--todo-line); color: #6b4a14; text-align: center; font-size: .9rem; padding: .5rem 1rem; }

/* Pied de page */
.site-footer { background: var(--tertiaire); color: #E6ECF3; padding: 2rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Page légale */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { padding: .15rem 0; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--font-display); font-weight: 500; color: var(--tertiaire); background: var(--sage-soft); }
.legal table.id { margin-bottom: 1em; }
.legal table.id td { width: 50%; border-bottom: 0; padding-left: 0; }
.legal .version { color: var(--ink-soft); font-size: .9rem; }
.legal dl { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1.2rem; margin: 0 0 1rem; }
.legal dt { font-family: var(--font-display); font-weight: 500; color: var(--accent1); }
.legal dd { margin: 0; }

@media (max-width: 760px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .hero .mark { order: -1; width: 120px; justify-self: start; }
  .contact-list li, .legal dl { grid-template-columns: 1fr; gap: .1rem; }
  .brand img { height: 48px; }
  .nav { gap: .1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .skip, .actions { display: none; } body { background: #fff; } }
