/* ============================================================
   Cabinet IOLA — Conseil en Stratégie
   Style : éditorial corporate chic
   Charte : sable #CEC093 · menthe #A2E6D8 · orange #FB7037 · brun taupe #685C46
   ============================================================ */

:root {
  /* Marque */
  --sable: #CEC093;
  --mint: #A2E6D8;
  --orange: #FB7037;
  --orange-deep: #D9531C;   /* variante pour fond de bouton (contraste AA) */
  --taupe: #685C46;

  /* Tons fonctionnels */
  --bg: #FBF8F1;            /* crème très clair (dérivé du sable) */
  --surface: #FFFFFF;
  --ink: #2A251D;          /* texte principal — contraste AAA sur crème */
  --ink-soft: #6E6353;     /* texte secondaire */
  --border: #E7DFCF;
  --mint-tint: #EAF8F4;
  --sable-tint: #F4EEDF;

  /* Système */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(42, 37, 29, .05), 0 2px 8px rgba(42, 37, 29, .04);
  --shadow-md: 0 8px 30px rgba(42, 37, 29, .08);
  --shadow-lg: 0 20px 50px rgba(42, 37, 29, .12);
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .76rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange-deep); margin-bottom: 14px;
}
.accent { color: var(--orange); }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-mint { background: var(--mint-tint); }
.section-sable { background: var(--sable-tint); }
.section-head { max-width: 660px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-sub { color: var(--ink-soft); margin-top: 16px; font-size: 1.06rem; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn .ico { width: 19px; height: 19px; }
.btn-primary { background: var(--orange-deep); color: #fff; box-shadow: 0 6px 18px rgba(217, 83, 28, .28); }
.btn-primary:hover { background: #c2480f; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 83, 28, .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--taupe); transform: translateY(-2px); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: .92rem; min-height: 42px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 241, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 50px; width: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-weight: 500; font-size: .98rem; color: var(--ink); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--orange); transition: width .22s var(--ease);
}
.main-nav a:hover { color: var(--orange-deep); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); }
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 10px; border-radius: 10px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.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); }

.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); padding: 14px 22px 22px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { width: 100%; margin-top: 18px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(162, 230, 216, .42), transparent 60%),
    radial-gradient(820px 460px at 2% 14%, rgba(206, 192, 147, .30), transparent 58%);
}
.hero-inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -.02em; }
.hero-lead { font-size: clamp(1.06rem, 2.2vw, 1.26rem); color: var(--ink-soft); max-width: 560px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ============================================================
   LE CABINET
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.col-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 22px; }
.col-text p { color: var(--ink-soft); margin-bottom: 18px; }
.col-text strong { color: var(--ink); }

.cabinet-media { margin: 0; }
.cabinet-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ============================================================
   CARTES (approche / services / implantations)
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.value-card, .service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.value-card:hover, .service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #ded3bd; }
.value-card h3, .service-card h3 { font-size: 1.24rem; margin: 18px 0 10px; }
.value-card p, .service-card p { color: var(--ink-soft); font-size: .98rem; }

.value-ico, .service-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--mint-tint); color: var(--orange-deep);
}
.value-ico svg, .service-ico svg { width: 26px; height: 26px; }

.service-card { position: relative; }
.service-num {
  position: absolute; top: 24px; right: 26px; font-family: var(--serif);
  font-size: 1.05rem; font-weight: 600; color: var(--sable);
}

/* Implantations */
.place-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex; flex-direction: column;
}
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.place-body { padding: 26px 28px 20px; }
.place-body h3 { font-size: 1.5rem; }
.place-addr { color: var(--ink-soft); margin-top: 8px; font-size: .98rem; }
.place-media { aspect-ratio: 16 / 10; overflow: hidden; border-top: 1px solid var(--border); }
.place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.place-card:hover .place-media img { transform: scale(1.05); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
.contact-text > p { color: var(--ink-soft); max-width: 460px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--orange-deep); }

.contact-media { margin: 0; }
.contact-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #211d16; color: #c9c0ae; padding: clamp(48px, 7vw, 76px) 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 16px; opacity: .95; }
.footer-brand p { max-width: 320px; font-size: .96rem; color: #a89e8b; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-nav ul, .footer-contact ul { display: grid; gap: 11px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-legal { margin-top: clamp(36px, 5vw, 52px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.footer-legal p { font-size: .84rem; color: #8a8270; }
.footer-legal a { font-size: .84rem; color: #a89e8b; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--orange); }

/* ============================================================
   PAGE LÉGALE (politique de confidentialité)
   ============================================================ */
.legal-hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(20px, 3vw, 32px);
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(162, 230, 216, .38), transparent 60%),
    radial-gradient(700px 420px at 0% 12%, rgba(206, 192, 147, .26), transparent 58%);
}
.legal-hero .eyebrow { margin-bottom: 12px; }
.legal-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.02em; }
.legal-hero .updated { color: var(--ink-soft); margin-top: 14px; font-size: .95rem; }

.prose { max-width: 820px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) 0 clamp(56px, 9vw, 104px); }
.prose .lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 8px; }
.prose h2 {
  font-size: clamp(1.3rem, 2.7vw, 1.72rem); margin: 40px 0 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose a:hover { color: var(--orange); }
.prose ul { display: grid; gap: 9px; margin: 4px 0 18px; }
.prose li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prose .contact-box {
  margin-top: 32px; background: var(--mint-tint); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
}
.prose .contact-box p { margin: 0; color: var(--ink); }
.prose .back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 600; color: var(--orange-deep); }
.prose .back-home:hover { color: var(--orange); text-decoration: none; }

/* ============================================================
   ANIMATIONS (reveal au scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .two-col { grid-template-columns: 1fr; }
  .cabinet-media img { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-media img { aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
