/* =============================================================================
   OMAR BELMAMOUN — Landing « Cobalt »  (belmamounomar.com)
   Direction : corporate géométrique, cobalt électrique sur blanc froid.
   Type : Space Grotesk (titres) · Inter (texte).
   ========================================================================== */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F1F4FC;
  --ink:       #0A1633;   /* navy profond — texte */
  --cobalt:    #1E45E6;   /* accent principal */
  --cobalt-700:#1633B0;
  --slate:     #5C6B8F;   /* texte secondaire */
  --line:      #E2E8F5;
  --white:     #FFFFFF;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.07rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--cobalt); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--cobalt); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 0.95rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-700); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--cobalt); }

/* En-tête */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.6rem; }
.brand b { width: 12px; height: 12px; background: var(--cobalt); border-radius: 3px; transform: rotate(12deg); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--slate); transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; }

/* Héros */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem); }
.hero h1 .hl { color: var(--cobalt); }
.hero p.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--slate); max-width: 44ch; margin: 1.6rem 0 2.2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-trust { margin-top: 2.4rem; display: flex; gap: 1.5rem; align-items: center; color: var(--slate); font-size: 0.86rem; flex-wrap: wrap; }
.hero-trust b { color: var(--ink); font-family: var(--font-display); }

/* Portrait duotone cobalt + bloc géométrique */
.hero-photo { position: relative; }
.hero-photo .block { position: absolute; inset: auto -6% -6% auto; width: 70%; height: 70%; background: var(--cobalt); border-radius: var(--radius); z-index: 0; }
.hero-photo .frame {
  position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); aspect-ratio: 4/5;
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.92; filter: contrast(1.06); }
.hero-photo .tagline { position: absolute; z-index: 2; left: 1.1rem; bottom: 1.1rem; right: 1.1rem; color: #fff; }
.hero-photo .tagline .r { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #BFD0FF; }
.hero-photo .tagline .n { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-top: 0.2rem; }

/* Bandeau statistiques */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2rem, 4vw, 3rem) 1rem; border-left: 1px solid rgba(255,255,255,0.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .fig { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; line-height: 1; }
.stat .fig span { color: var(--cobalt); }
.stat .lab { color: #9FB0D6; font-size: 0.85rem; margin-top: 0.6rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--soft { background: var(--bg-soft); }
.sec-head { max-width: 54ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: 0.9rem 0; }
.sec-head p { color: var(--slate); }

/* Cartes axes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(30,69,230,0.4); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); color: var(--cobalt); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--slate); font-size: 0.96rem; }

/* Articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(10,22,51,0.35); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--ink); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.9; }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-card .tag { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); }
.post-card h3 { font-size: 1.2rem; line-height: 1.2; }
.post-card p { color: var(--slate); font-size: 0.92rem; flex: 1; }
.post-card .more { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }

/* CTA */
.cta { background: var(--cobalt); color: #fff; border-radius: clamp(16px, 3vw, 28px); padding: clamp(2.5rem, 6vw, 5rem); text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); max-width: 20ch; margin: 0 auto 1rem; }
.cta p { color: #D7E0FF; max-width: 50ch; margin: 0 auto 2rem; }

/* Pied de page */
.foot { background: var(--ink); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot .brand { color: #fff; }
.foot p { color: #9FB0D6; max-width: 36ch; margin-top: 0.8rem; font-size: 0.92rem; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: #C7D3EE; font-size: 0.92rem; }
.foot-bot { padding-top: 1.5rem; color: #7E90B8; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Article (pages blog) */
.article { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.article .meta { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 1.2rem; }
.article h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); max-width: 20ch; }
.article .standfirst { font-size: 1.2rem; color: var(--slate); max-width: 56ch; margin-top: 1.2rem; }
.article-cover { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); margin: clamp(2rem,4vw,3rem) 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.92; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.6rem; }
.prose blockquote { border-left: 4px solid var(--cobalt); padding-left: 1.4rem; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; color: var(--ink); }
.prose strong { color: var(--ink); }

/* Réactivité */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 460px; }
  .cards, .posts { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .cards, .posts, .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .stat:first-child { border-top: 0; }
}


/* =============================================================================
   Menu mobile (hamburger) — liens de navigation en menu déroulant
   ========================================================================== */
.nav-toggle {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; margin-right: -8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-in > .btn { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 0.25rem var(--gutter) 1rem;
    box-shadow: 0 26px 44px -26px rgba(10,22,51,0.40);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { display: block; width: 100%; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav-links a:last-child { border-bottom: 0; }
}
