/* =============================================================================
   OMAR BELMAMOUN — Landing « Terracotta »  (belmamoun-omar.com)
   Direction : chaleur solaire, sable & crème, terracotta + or + teal profond.
   Type : Fraunces (titres, serif) · Source Sans 3 (texte).
   ========================================================================== */

:root {
  --bg:      #FBF4E9;
  --bg-2:    #F4E7D2;
  --ink:     #2A1B12;
  --terra:   #C75A2B;
  --terra-700:#A6431C;
  --gold:    #D99A3E;
  --teal:    #1F6F6B;
  --muted:   #8A7256;
  --line:    #E8D9BF;
  --white:   #FFFDF8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 20px;
  --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.2vw, 1.1rem);
  line-height: 1.75;
  -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(--terra); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), var(--terra)); flex: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 0.95rem 1.7rem; 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(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-700); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--white); color: var(--terra); }

/* En-tête */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251,244,233,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.brand b { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold), var(--terra)); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }

/* Héros */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -30%; right: -10%; width: 60%; height: 90%; z-index: 0;
  background: radial-gradient(circle, rgba(217,154,62,0.22), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 4.8vw, 5.4rem); }
.hero h1 .hl { color: var(--terra); font-style: italic; }
.hero p.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); color: var(--muted); 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.6rem; align-items: center; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.hero-trust b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

/* Portrait duotone chaud + arche */
.hero-photo { position: relative; }
.hero-photo .frame { position: relative; border-radius: 280px 280px var(--radius) var(--radius); overflow: hidden; background: var(--terra); aspect-ratio: 4/5; }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.9; filter: contrast(1.05) saturate(1.1); }
.hero-photo .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42,27,18,0.55)); }
.hero-photo .badge { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 1.2rem; text-align: center; color: #fff; width: 90%; }
.hero-photo .badge .r { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FBE3C8; }
.hero-photo .badge .n { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.hero-photo .dot { position: absolute; z-index: 0; top: 6%; left: -6%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold), var(--terra)); opacity: 0.9; }

/* Bandeau stats */
.stats { background: var(--ink); color: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2rem, 4vw, 3rem) 1rem; border-left: 1px solid rgba(251,244,233,0.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .fig { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; line-height: 1; }
.stat .fig span { color: var(--gold); }
.stat .lab { color: #C9B79C; font-size: 0.86rem; margin-top: 0.6rem; }

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

/* Cartes valeurs */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -32px rgba(199,90,43,0.45); }
.card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); color: var(--terra); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 1.2rem; }
.card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--white); 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 26px 50px -32px rgba(42,27,18,0.32); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--terra); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.92; }
.post-card .body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-card .tag { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); }
.post-card h3 { font-size: 1.35rem; line-height: 1.18; }
.post-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.post-card .more { font-weight: 700; font-size: 0.9rem; color: var(--teal); }

/* CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--terra), var(--gold)); color: #fff; border-radius: clamp(18px, 3vw, 30px); padding: clamp(2.5rem, 6vw, 5rem); text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); max-width: 20ch; margin: 0 auto 1rem; }
.cta p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto 2rem; }

/* Pied de page */
.foot { background: var(--ink); color: var(--bg); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.foot .brand { color: var(--bg); }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(251,244,233,0.14); }
.foot p { color: #C9B79C; max-width: 36ch; margin-top: 0.8rem; font-size: 0.95rem; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: #E4D3B6; font-size: 0.95rem; }
.foot-links a:hover { color: var(--gold); }
.foot-bot { padding-top: 1.5rem; color: #A8916F; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Article */
.article { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.article .meta { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.2rem; }
.article h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.8rem); max-width: 20ch; }
.article .standfirst { font-size: 1.25rem; color: var(--muted); max-width: 56ch; margin-top: 1.2rem; }
.article-cover { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--terra); 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.85rem; margin-top: 2.8rem; }
.prose blockquote { border-left: 4px solid var(--gold); padding-left: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.55rem; line-height: 1.3; color: var(--terra); }
.prose strong { color: var(--ink); }

/* Réactivité */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 440px; }
  .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(251,244,233,0.14); }
  .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: var(--white); 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(42,27,18,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; }
}
