/* ==========================================================================
   OCH SOLUTIONS — Système de design
   Digital. Strategy. Growth.
   ========================================================================== */

@font-face {
  font-family: 'Clash Display';
  src: url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
}
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette */
  --noir: #070807;
  --noir-soft: #101210;
  --ivoire: #F5F1E8;
  --blanc: #FFFFFF;
  --or: #C7A45A;
  --or-soft: rgba(199, 164, 90, 0.35);

  /* Services */
  --web: #347DCC;
  --marketing: #E56D52;
  --seo: #4D9B72;
  --coaching: #8669C9;
  --audit: #D39A32;

  /* Texte sur fond sombre */
  --texte-doux: rgba(245, 241, 232, 0.66);
  --texte-tres-doux: rgba(245, 241, 232, 0.4);
  --ligne: rgba(245, 241, 232, 0.12);

  /* Typo */
  --display: 'Clash Display', 'Manrope', sans-serif;
  --corps: 'Manrope', -apple-system, sans-serif;

  /* Rythme */
  --marge: clamp(24px, 6vw, 96px);
  --section-py: clamp(72px, 12vw, 160px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--or); color: var(--noir); }

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--marge);
  padding-right: var(--marge);
}

.section { padding-top: var(--section-py); padding-bottom: var(--section-py); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4,
.f-display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--ivoire);
}

h1 { font-size: clamp(48px, 8vw, 118px); font-weight: 600; }
h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.05; }
h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
h4 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; }

p { color: var(--texte-doux); max-width: 62ch; }
p.lead { font-size: clamp(19px, 2vw, 24px); color: var(--ivoire); line-height: 1.45; max-width: 44ch; }

.kicker {
  font-family: var(--corps);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--or);
}

.chiffre {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.95;
  color: var(--ivoire);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 100px;
  transition: transform 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color .3s var(--ease);
}
.btn svg, .btn .fleche { transition: transform 0.4s var(--ease); }
.btn:hover svg, .btn:hover .fleche { transform: translateX(5px); }

.btn-or {
  background: var(--or);
  color: var(--noir);
}
.btn-or:hover { background: var(--ivoire); }

.btn-ligne {
  border: 1px solid var(--ligne);
  color: var(--ivoire);
}
.btn-ligne:hover { border-color: var(--or); color: var(--or); }

.btn-sombre {
  background: var(--noir);
  color: var(--ivoire);
}
.btn-sombre:hover { background: var(--or); color: var(--noir); }

/* ---------- Header ---------- */
.entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px var(--marge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.45s var(--ease), background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.entete.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(7, 8, 7, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ligne);
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo span { color: var(--or); }

.nav-principale {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-principale a:not(.btn) {
  font-size: 14px;
  font-weight: 600;
  color: var(--texte-doux);
  position: relative;
  padding-bottom: 4px;
}
.nav-principale a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--or);
  transition: width 0.35s var(--ease);
}
.nav-principale a:not(.btn):hover { color: var(--ivoire); }
.nav-principale a:not(.btn):hover::after { width: 100%; }

.nav-liens { display: flex; gap: 40px; align-items: center; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 200;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--ivoire);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top .35s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger.ouvert span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.ouvert span:nth-child(2) { opacity: 0; }
.burger.ouvert span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: 0;
  background: var(--noir);
  z-index: 150;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--marge);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.menu-mobile.ouvert { transform: translateY(0); }
.menu-mobile a {
  font-family: var(--display);
  font-size: 42px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ligne);
}

/* ---------- Footer ---------- */
.pied {
  background: var(--noir-soft);
  border-top: 1px solid var(--ligne);
  padding: 88px var(--marge) 40px;
}
.pied-grille {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1360px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.pied-colonne h4 { font-size: 13px; color: var(--or); font-weight: 700; margin-bottom: 18px; }
.pied-colonne a, .pied-colonne p { display: block; font-size: 14px; color: var(--texte-doux); padding: 6px 0; }
.pied-colonne a:hover { color: var(--ivoire); }
.pied-bas {
  max-width: 1360px;
  margin: 0 auto;
  border-top: 1px solid var(--ligne);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--texte-tres-doux);
}

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Cartes service ---------- */
.carte-service {
  position: relative;
  border: 1px solid var(--ligne);
  border-radius: 4px;
  padding: 40px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.carte-service:hover { border-color: var(--service-color, var(--or)); transform: translateY(-4px); }
.carte-service .pastille {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--service-color, var(--or));
  margin-bottom: 28px;
}
.carte-service .lien-service {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--service-color, var(--or));
  margin-top: 22px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--ligne); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ivoire);
}
.faq-plus {
  flex-shrink: 0; width: 22px; height: 22px; position: relative; margin-left: 24px;
}
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; background: var(--or);
  transition: transform 0.35s var(--ease);
}
.faq-plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-plus::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-item.ouvert .faq-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-reponse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-item.ouvert .faq-reponse { max-height: 400px; }
.faq-reponse p { padding-bottom: 26px; }

/* ---------- Utilitaires ---------- */
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.centre { text-align: center; margin-left: auto; margin-right: auto; }

@media (max-width: 980px) {
  .nav-liens { display: none; }
  .burger { display: block; }
  .grille-2 { grid-template-columns: 1fr; gap: 40px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }

  /* Toute grille définie en style inline (hero, cartes de service, comparatifs,
     chiffres, processus, bénéfices) empile en une seule colonne sur tablette/mobile.
     C'est la règle qui manquait et qui causait le désordre mobile. */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-column: span"] {
    grid-column: span 1 !important;
  }
  [style*="align-items:end"] {
    align-items: flex-start !important;
  }

  /* Les cartes de service / lignes comparatives (services.html, hubs de catégorie)
     perdent leur alignement centré une fois empilées : on les repasse à gauche. */
  a[style*="grid-template-columns"] {
    align-items: flex-start !important;
    text-align: left;
  }

  /* Un peu moins d'espace vide sous l'en-tête sur mobile : le hero n'a plus besoin
     d'autant de dégagement que sur desktop. */
  section[style*="padding-top:180px"] { padding-top: 128px !important; }
  section[style*="padding-top: 180px"] { padding-top: 128px !important; }
  section[style*="padding-top:200px"] { padding-top: 128px !important; }

  /* La hero pleine hauteur de l'accueil : sur mobile, min-height:100vh + tout le
     padding empilait un premier écran démesurément long. On repasse en hauteur libre. */
  main > section[style*="min-height:100vh"] {
    min-height: auto !important;
    padding-top: 128px !important;
  }

  /* Les réponses FAQ peuvent prendre plus de lignes sur petit écran : on laisse
     davantage de place pour éviter qu'un texte long soit coupé. */
  .faq-item.ouvert .faq-reponse { max-height: 700px; }

  h1 { line-height: 1.06; }
  .wrap { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 620px) {
  .pied-grille { grid-template-columns: 1fr; }
  .menu-mobile a { font-size: 32px; }
  .chiffre { font-size: clamp(40px, 13vw, 64px); }
}
