/* feature.css — pages SEO "fonctionnalités" Hubdiver.
   S'appuie sur les tokens de maquettes/style.css (--accent, --bg, --surface, etc.). */
:root {
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: .2s; --motion-normal: .4s; --motion-reveal: .6s;
}
html { scroll-behavior: smooth; overflow-x: clip; }
body.feat {
  background: linear-gradient(180deg, #e8f4f7 0%, var(--bg) 16%, var(--bg) 100%);
  overflow-x: clip;
}

/* —— Nav (identique à la landing) —— */
.m-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px; padding: 14px 28px;
  background: rgba(244,250,251,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,181,199,.12);
}
.m-nav .brand { display: flex; align-items: center; gap: 10px; }
.m-nav .brand .logo {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #0a8e9d);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(17,181,199,.35);
}
.m-nav .brand .name { font-weight: 800; font-size: 16px; letter-spacing: -.2px; color: var(--text); }
.m-nav .brand .sub { font-size: 11px; color: var(--muted); }
.m-nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; color: #41505f; }
.m-nav-links a { transition: color var(--motion-fast) var(--motion-ease-out); }
.m-nav-links a:hover { color: var(--accent-d); }
.m-nav-cta { display: flex; gap: 10px; flex-shrink: 0; }
.btn.primary { background: #077a88; color: #fff; }
.btn.primary:hover { background: #066c78; }

/* —— Sélecteur de langue —— */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 12.5px; font-weight: 700; flex: 0 0 auto; }
.m-nav-links + .lang-switch { margin-left: 16px; }
.lang-switch a, .lang-switch span { padding: 6px 9px; color: var(--muted); text-decoration: none; line-height: 1; transition: background var(--motion-fast) var(--motion-ease-out), color var(--motion-fast) var(--motion-ease-out); }
.lang-switch a:hover { color: var(--accent-d); background: var(--accent-soft); }
.lang-switch .on { background: var(--ink); color: #fff; }

/* —— Fil d'ariane —— */
.crumb { max-width: 1080px; margin: 0 auto; padding: 14px 28px 0; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--accent-d); font-weight: 600; }
.crumb span { opacity: .5; margin: 0 4px; }

/* —— Hero fonctionnalité —— */
.feat-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(17,181,199,.22) 0, transparent 55%),
    linear-gradient(165deg, #0d4f5c 0%, #0a3d52 28%, #071e32 72%, #050f1a 100%);
}
.feat-hero-inner { max-width: 1080px; margin: 0 auto; padding: 46px 28px 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.feat-hero .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: #7ee8f7; margin-bottom: 10px; }
.feat-hero h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.5px; line-height: 1.14; margin: 0 0 14px; }
.feat-hero h1 .ocean-word { background: linear-gradient(120deg, #a8f0f8, #11b5c7 35%, #6ee7f7 65%, #0a8e9d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat-hero p.lead { font-size: 17px; color: rgba(220,235,242,.88); max-width: 520px; margin: 0 0 22px; line-height: 1.55; }
.feat-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feat-hero .btn.ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.feat-hero .btn.ghost:hover { border-color: var(--accent); background: rgba(17,181,199,.15); }
.feat-shot { border-radius: 18px; overflow: hidden; border: 1px solid rgba(126,232,247,.28); box-shadow: 0 28px 64px rgba(0,0,0,.42); background: #071e32; }
.feat-shot img { display: block; width: 100%; height: auto; }

/* —— Sections —— */
.feat-section { max-width: 1080px; margin: 0 auto; padding: 54px 28px; }
.feat-section.alt { background: linear-gradient(180deg, #f4fafb, #e8f6f8); max-width: none; }
.feat-section.alt > .inner { max-width: 1080px; margin: 0 auto; }
.feat-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--accent-d); margin-bottom: 8px; }
.feat-section h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 0 0 12px; }
.feat-section .sub { font-size: 15.5px; color: var(--muted); max-width: 720px; line-height: 1.55; margin: 0 0 26px; }
.feat-prose p { font-size: 15.5px; color: var(--text); line-height: 1.75; max-width: 760px; margin: 0 0 16px; }
.feat-prose strong { color: var(--ink); }

/* —— Cartes —— */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform var(--motion-fast) var(--motion-ease-out), box-shadow var(--motion-normal) var(--motion-ease-out), border-color var(--motion-fast) var(--motion-ease-out); }
.feat-card:hover { transform: translateY(-4px); border-color: rgba(17,181,199,.35); box-shadow: 0 14px 36px rgba(10,142,157,.12); }
.feat-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feat-card .ic svg { width: 21px; height: 21px; }
.feat-card h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 7px; }
.feat-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* —— Étapes —— */
.feat-steps { display: grid; gap: 16px; max-width: 780px; }
.feat-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.feat-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); font-weight: 800; display: grid; place-items: center; }
.feat-step h3 { font-size: 16px; margin: 6px 0 4px; }
.feat-step p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* —— FAQ —— */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item[open] { border-color: rgba(17,181,199,.35); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent-d); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .a { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.faq-item .a a { color: var(--accent-d); font-weight: 600; }

/* —— Pages liées —— */
.feat-related { display: flex; flex-wrap: wrap; gap: 10px; }
.feat-related a { font-size: 13.5px; font-weight: 600; color: var(--accent-d); background: var(--accent-soft); border: 1px solid rgba(17,181,199,.25); border-radius: 20px; padding: 8px 14px; transition: background var(--motion-fast) var(--motion-ease-out); }
.feat-related a:hover { background: #d8f0f3; }

/* —— CTA + footer —— */
.feat-cta { max-width: 1040px; margin: 8px auto 56px; padding: 44px 32px; text-align: center; color: #fff; border-radius: 20px; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(17,181,199,.25) 0, transparent 55%), linear-gradient(160deg, #0a5c6e, #063548); box-shadow: 0 16px 48px rgba(7,50,62,.25); border: 1px solid rgba(126,232,247,.15); }
.feat-cta h2 { font-size: 26px; margin: 0 0 10px; }
.feat-cta p { color: rgba(200,230,238,.9); margin: 0 auto 22px; max-width: 540px; }
.feat-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feat-cta .btn.ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.feat-footer { text-align: center; padding: 32px 28px 48px; background: linear-gradient(180deg, #e8f4f7, #dceef2); border-top: 1px solid rgba(17,181,199,.12); font-size: 13px; color: #4a6270; }
.feat-footer a { color: var(--accent-d); font-weight: 600; }
.feat-footer nav { margin: 10px 0; }

/* —— Reveal —— */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--motion-reveal) var(--motion-ease-out), transform var(--motion-reveal) var(--motion-ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .feat-hero-inner { grid-template-columns: 1fr; }
  .feat-shot { order: -1; max-width: 560px; margin: 0 auto; }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) { .m-nav-links { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feat-card:hover { transform: none; }
}
