/* ===== Thème de départ « Vitrine + Blog » — neutre, couleur d'accent variable ===== */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f6f4;
  --ink:       #17181b;
  --ink-soft:  #52555c;
  --muted:     #8a8d94;
  --line:      #e6e6e2;
  --accent:    #2f6e6c;           /* remplacé à la création du site */
  --max:       1140px;
  --gutter:    clamp(20px, 5vw, 56px);
  --serif:     Georgia, "Times New Roman", serif;
  --sans:      "Inter", system-ui, -apple-system, sans-serif;
  --r:         10px;
  --shadow:    0 20px 50px -30px rgba(20,20,25,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.01em; }
.brand b { font-weight: 600; }
.brand .dot { color: var(--accent); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 0.9rem; color: var(--ink-soft); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { position: relative; }
.nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; background: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: all .2s; }
.btn:hover { filter: brightness(1.15); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); filter: none; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.3rem; cursor: pointer; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--ink-soft); margin-top: 14px; }

/* Cartes "features" */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--serif); margin-bottom: 16px; }
.card .service-price { margin-top: 14px; font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
.card .service-link { display: inline-block; margin-top: 14px; font-size: 0.9rem; color: var(--accent); }

/* Blog */
.blog-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.blog-feature img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: var(--r); }
.blog-feature h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0; }
.blog-feature p { color: var(--ink-soft); margin-bottom: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post .ph { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); }
.post .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .ph img { transform: scale(1.04); }
.cat { display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 16px 0 8px; }
.post h3 { font-size: 1.2rem; line-height: 1.25; }
.post p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }
.date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { font-family: var(--sans); font-size: 0.82rem; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Article & Page */
.article, .page-body { max-width: 720px; margin: 0 auto; }
.crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--accent); }
.article-head { max-width: 720px; margin: 0 auto 30px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0; }
.byline { color: var(--muted); font-size: 0.9rem; }
.article-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r); margin-bottom: 36px; }
.article p, .page-body p { margin: 1.1em 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.75; }
.article h2, .page-body h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.article h3, .page-body h3 { font-size: 1.25rem; margin: 1.3em 0 .4em; }
.article a, .page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article ul, .article ol, .page-body ul, .page-body ol { margin: 1em 0; padding-left: 1.4em; }
.article ul, .page-body ul { list-style: disc; }
.article ol, .page-body ol { list-style: decimal; }
.article blockquote, .page-body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 1.5em 0; font-style: italic; color: var(--ink); }
.article img, .page-body img { border-radius: var(--r); margin: 1.5em 0; }
.page { padding: clamp(48px, 7vw, 84px) 0; }
.page h1 { max-width: 720px; margin: 0 auto 28px; font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* CTA + Footer */
.cta-band { background: var(--accent); color: #fff; text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,0.72); margin: 14px auto 26px; max-width: 46ch; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 10px; }
.site-foot p { color: var(--ink-soft); font-size: 0.92rem; max-width: 40ch; }
.site-foot h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--sans); font-weight: 600; }
.site-foot .foot-grid a { display: block; color: var(--ink-soft); font-size: 0.92rem; padding: 4px 0; }
.site-foot .foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; max-width: 980px; margin: 0 auto; align-items: start; }
.contact-layout--solo { grid-template-columns: 1fr; max-width: 720px; }
.contact-intro { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 28px; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; }
.field > span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-note em { color: var(--accent); font-style: normal; }
.form-success { background: #edf7ee; border: 1px solid #cfe8d2; color: #1e6b2b; border-radius: var(--r); padding: 14px 16px; margin-bottom: 24px; font-size: 0.95rem; }
.form-error { background: #fdeeee; border: 1px solid #f2cfcf; color: #9b2c2c; border-radius: var(--r); padding: 14px 16px; margin-bottom: 24px; font-size: 0.95rem; }
.contact-form .btn { justify-self: start; }
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.contact-item { margin-bottom: 20px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item h4 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.contact-item a { color: var(--accent); }

@media (max-width: 860px) {
  .cards, .post-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .blog-feature { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .cards, .post-grid, .foot-grid { grid-template-columns: 1fr; }
}

/* ===== Additions du thème « SaaS » ===== */
.wrap--narrow { max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero : texte + capture d'écran */
.hero--saas { padding-bottom: clamp(48px, 7vw, 88px); }
.hero--saas .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero--saas h1 { max-width: 18ch; }
.hero--saas .lead { max-width: 46ch; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.hero-shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* Fonctionnalités */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.feature-icon { display: block; font-size: 1.5rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* Étapes numérotées */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { counter-increment: step; padding-top: 54px; position: relative; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 600;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; }
.plan-price { font-family: var(--serif); font-size: 2.2rem; margin: 20px 0 4px; }
.plan-price small { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.plan-features { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; }
.plan-features li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.plan-cta { margin-top: auto; justify-content: center; }
.plans-note { text-align: center; margin-top: 26px; font-size: 0.85rem; color: var(--muted); }

/* FAQ (accordéon natif, sans JavaScript) */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 20px 0; font-size: 1.05rem; font-family: var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: 22px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-answer p + p { margin-top: 12px; }

/* Sélecteur de langue */
.lang-switch { position: relative; margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); }
.lang-switch > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover, .lang-switch[open] > summary { color: var(--ink); }
.lang-switch .caret { font-size: 0.72em; }
.lang-switch .lang-menu { position: absolute; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; min-width: 130px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 50; }
.lang-switch .lang-menu a { padding: 7px 10px; border-radius: 7px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.lang-switch .lang-menu a:hover { background: #f5f5f4; color: var(--ink); }
.lang-switch .lang-menu a.current { color: var(--ink); font-weight: 600; }

.cta-note { font-size: 0.82rem; opacity: 0.7; margin-top: 14px; }

@media (max-width: 900px) {
  .hero--saas .wrap { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .feature-grid, .steps, .plans { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
}

/* `.nav a` l'emportait sur `.btn` : le texte du bouton du menu restait gris. */
.nav a.btn { color: #fff; }
.nav a.btn-ghost { color: var(--ink); }

/* Hero sans capture d'écran : une seule colonne centrée. */
.hero--saas .wrap:not(:has(.hero-shot)) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero--saas .wrap:not(:has(.hero-shot)) h1,
.hero--saas .wrap:not(:has(.hero-shot)) .lead { max-width: 24ch; }
.hero--saas .wrap:not(:has(.hero-shot)) .lead { max-width: 60ch; }
.hero--saas .wrap:not(:has(.hero-shot)) .hero-actions { justify-content: center; }

/* Galerie : texte et capture en alternance */
.showcase-wrap { padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 7vw, 88px); }
.showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; }
.showcase + .showcase { border-top: 1px solid var(--line); }
.showcase--flip .showcase-copy { order: 2; }
.showcase-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.showcase-copy p { color: var(--ink-soft); }
.showcase-list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.showcase-list li { position: relative; padding-left: 26px; font-size: 0.93rem; color: var(--ink-soft); }
.showcase-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.showcase-shot { margin: 0; }
.showcase-shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.showcase-shot figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { margin: 0; display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.quote blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.quote blockquote::before { content: "“"; color: var(--accent); font-size: 2rem; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.quote figcaption { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; font-size: 0.9rem; font-weight: 600; }
.quote figcaption small { display: block; font-size: 0.8rem; color: var(--muted); }
.quote-avatar { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--flip .showcase-copy { order: 0; }
  .quotes { grid-template-columns: 1fr; }
}

/* Sélecteur mensuel / annuel — en CSS pur.
   Repli : si :has() n'est pas géré, le tarif mensuel reste affiché. */
.billing { display: flex; width: max-content; align-items: center; gap: 4px; margin: 0 auto 34px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.billing-wrap { text-align: center; }
.billing-input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.billing label:hover { color: var(--ink); }
.billing-input:checked + label { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20,20,25,0.12); }
.billing-input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing-save { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 8px; border-radius: 999px; }

.price-y { display: none; }
#pricing:has(#bill-y:checked) .price-m { display: none; }
#pricing:has(#bill-y:checked) .price-y { display: inline; }

@media (max-width: 560px) {
  .billing { display: flex; width: 100%; }
  .billing label { flex: 1; justify-content: center; padding: 9px 10px; }
  .billing-save { display: none; }
}

/* La mention « facturé X par an » sur sa propre ligne : sinon elle passe
   à la ligne sur l'offre la plus chère et désaligne les trois cartes. */
.plan-price .price-sub { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.plan-price { min-height: 74px; }

/* Vidéo de démonstration : cadre 16/9 fluide */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--empty { display: flex; align-items: center; justify-content: center; }
.video--empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(0.4) opacity(0.35); }
.video-soon { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 0.85rem; color: var(--ink-soft); }
.demo-actions { text-align: center; margin-top: 28px; }
.demo-note { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
