/* Mon Dircom — site (même direction artistique que l'app : ivoire, graphite, terre cuite, trait de crayon). */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1c1c1b;
  --text: #1c1c1b;
  --muted: #5f5d58;
  --line: rgba(28, 28, 27, 0.12);
  --accent: #9e4f2c;
  --accent-soft: #f1e3da;
  --espen-body: #ffffff;
  /* Traits de la tête et du corps d'Espen : toujours foncés, comme sur le logo. */
  --espen-ink: #1c1c1b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1b;
    --surface: #262624;
    --ink: #f7f5f0;
    --text: #f7f5f0;
    --muted: #b8b4ab;
    --line: rgba(247, 245, 240, 0.14);
    --accent: #c8693f;
    --accent-soft: #3a2a22;
    /* Comme le logo sombre : Espen garde sa peau claire. */
    --espen-body: #f7f5f0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 40px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.espen { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 18px; font-weight: 600; text-decoration: none; }
.badge small { display: block; font-weight: 400; opacity: 0.75; font-size: 12px; }
.bubble { position: relative; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 18px; padding: 14px 16px; margin: 0 0 24px; max-width: 520px; }
.bubble strong { display: block; margin-bottom: 4px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }

.band { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 28px; margin: 0 0 56px; }
.band p { margin: 0; opacity: 0.85; }

article.doc { padding: 24px 0 56px; max-width: 720px; }
article.doc h1 { font-size: 34px; }
article.doc h2 { font-size: 21px; margin-top: 32px; }
article.doc p, article.doc li { color: var(--text); }
.updated { color: var(--muted); font-size: 14px; margin: -8px 0 24px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 0 0 10px; }
summary { cursor: pointer; font-weight: 600; }

footer.bottom { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.bottom a { color: var(--muted); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero .art { order: -1; }
  .espen { max-width: 190px; }
  .grid { grid-template-columns: 1fr; }
  nav.links { gap: 12px; }
}

/* Page d'accueil : DA « film produit » (crème, noir, terracotta). */
.home .grad { background: linear-gradient(100deg, #e7956a, #9e4f2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 { text-align: center; padding: 48px 0 0; }
.hero2 h1 { font-size: clamp(38px, 7.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 auto 20px; max-width: 900px; }
.hero2 .lead { max-width: 640px; margin: 0 auto 28px; }
/* Le téléphone d'accueil est montré en entier, avec un peu d'air avant le film. */
.hero-phone { margin: 40px auto 56px; max-width: 340px; }
.hero-phone img, .feat-img img { width: 100%; height: auto; display: block; }
.store { display: inline-flex; flex-direction: column; align-items: center; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 13px 26px; font-weight: 600; text-decoration: none; }
.store small { font-weight: 400; opacity: 0.75; font-size: 12px; }
.store.soon { cursor: default; }
.eyebrow.light { color: #e7956a; }
.film { background: #000; color: #f5f5f7; text-align: center; padding: 72px 0; margin-top: 0; }
.film h2 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.03em; margin: 0 0 32px; }
.film video { width: 100%; max-width: 360px; border-radius: 28px; display: block; margin: 0 auto; box-shadow: 0 30px 80px rgba(158, 79, 44, 0.25); }
.feats { padding: 72px 0 24px; display: grid; gap: 72px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feat.rev .feat-img { order: 2; }
.feat-img { max-width: 300px; margin: 0 auto; }
/* Espen signe chaque fonction : sa pastille, puis sa phrase (comme sur les images App Store). */
.feat .by { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.feat .by img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 14px rgba(28, 28, 27, 0.12); }
.feat h3.say { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; }
.feat .word { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; color: var(--accent); margin: 0 0 6px; line-height: 1; }
.feat h3 { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 10px; }
.feat p { color: var(--muted); margin: 0; }
.specs { background: #000; color: #f5f5f7; padding: 72px 0; margin: 48px 0 0; }
.specs h2 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; text-align: center; margin: 0 0 40px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec-grid div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 18px; }
.spec-grid b { display: block; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.03em; background: linear-gradient(100deg, #f6d2b8, #e7956a 55%, #b4532b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec-grid span { color: #86868b; font-size: 15px; }
.who { text-align: center; padding: 80px 0 24px; }
.who h2, .plans h2, .privacy h2, .faq h2, .cta h2 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1.08; }
.metiers { font-size: clamp(20px, 3vw, 28px); line-height: 1.6; max-width: 760px; margin: 0 auto 40px; }
.espen-row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.espen-art .espen { width: 160px; }
.espen-row .bubble { text-align: left; margin: 0; }
.plans { padding: 64px 0 24px; text-align: center; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin: 32px 0 12px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.plan h3 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
.plan.pro { background: var(--accent); color: #fff; border-color: transparent; }
.plan.pro .price { opacity: 0.9; margin: 0 0 6px; font-weight: 600; }
.plan ul { margin: 12px 0 0; padding-left: 20px; }
.plan li { margin: 6px 0; }
.note { color: var(--muted); font-size: 14px; }
.privacy { text-align: center; padding: 56px 0 24px; max-width: 680px; margin: 0 auto; }
.privacy p { color: var(--muted); }
.faq { padding: 56px 0 24px; max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; }
.faq details p { color: var(--muted); margin: 10px 0 2px; }
.cta { text-align: center; padding: 56px 0 72px; }
.cta p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 720px) {
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 20px; }
  /* Sur téléphone : le titre et le texte d'abord, puis la capture d'écran qui l'illustre. */
  .feat .feat-txt { order: -1; }
  .feat .feat-img, .feat.rev .feat-img { order: 0; }
  .feat-img { max-width: 240px; }
  .feat-txt { text-align: center; }
  .feat .by { justify-content: center; }
  .spec-grid, .plan-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .film video { max-width: 280px; }
}

.nowrap { white-space: nowrap; }
@media (max-width: 720px) { .home nav.links a:nth-child(-n+2) { display: none; } }
@media (max-width: 480px) { .hero2 h1 { font-size: 8.2vw; } }

/* Animations (activées seulement si le visiteur n'a pas réduit les animations). */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) scale(0.94); } to { opacity: 1; transform: none; } }
.anim .hero2 .eyebrow { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim .hero2 h1 { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both; }
.anim .hero2 .lead { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.anim .hero2 .store { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
.anim .hero-phone img { animation: phoneIn 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
.hero-phone { will-change: transform; transform-origin: 50% 0; }
.anim .reveal { opacity: 0; transform: translateY(44px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s); }
.anim .reveal.from-left { transform: translateX(-60px) rotate(-2deg); }
.anim .reveal.from-right { transform: translateX(60px) rotate(2deg); }
.anim .reveal.zoom { transform: scale(0.9); }
.anim .reveal.in { opacity: 1; transform: none; }
/* Texte des fonctions : le mot, le titre puis le paragraphe apparaissent l'un après l'autre. */
.anim .feat-txt.reveal { opacity: 1; transform: none; }
.anim .feat-txt.reveal > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim .feat-txt.reveal > :nth-child(2) { transition-delay: 0.09s; }
.anim .feat-txt.reveal > :nth-child(3) { transition-delay: 0.18s; }
.anim .feat-txt.reveal.in > * { opacity: 1; transform: none; }
/* Sur téléphone : les captures arrivent de côté (gauche puis droite), légèrement inclinées, juste après leur texte. */
@media (max-width: 720px) {
  .anim .feat .reveal.from-left { transform: translateX(-42px) rotate(-4deg) scale(0.95); }
  .anim .feat .reveal.from-right { transform: translateX(42px) rotate(4deg) scale(0.95); }
  .anim .feat .feat-img.reveal { transition-delay: 0.22s; }
  .anim .feat .feat-img.reveal.in { transform: none; }
}
html, body { overflow-x: clip; }

/* Pages métier et presse. */
article.doc.wide { max-width: 880px; }
.doc .lead { font-size: 19px; color: var(--muted); }
.metier h1, .doc.wide h1 { font-size: clamp(32px, 5.4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
ol.idees { padding-left: 0; list-style: none; counter-reset: i; margin: 0; }
ol.idees li { counter-increment: i; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 18px; }
ol.idees li::before { content: counter(i, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: 20px; }
.metier-cta { background: var(--accent); color: #fff; border-radius: 24px; padding: 24px; margin: 32px 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.metier-cta p { margin: 0; color: #fff; }
.metier-cta .store { background: #fff; color: #1d1d1f; }
.autres { color: var(--muted); font-size: 15px; line-height: 1.8; }
.metier-card { display: block; text-decoration: none; color: var(--text); transition: transform 0.25s ease; }
.metier-card:hover { transform: translateY(-3px); }
.metier-card span { color: var(--accent); font-weight: 600; font-size: 15px; display: block; margin-top: 10px; }
.presse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.presse-grid a { text-decoration: none; color: var(--text); font-size: 14px; }
.presse-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 6px; background: var(--surface); }
@media (max-width: 720px) { .presse-grid { grid-template-columns: 1fr 1fr; } }
.more { font-weight: 600; text-decoration: none; }
