/* ============================================
   SORIA — services IT (soria-ai.fr)
   Shared SORIA palette, distinct commercial identity
   ============================================ */

:root {
  --forest: #2D5F4C;
  --deep-forest: #1F4537;
  --leaf: #5E8C6A;
  --light-leaf: #8FB39A;
  --brown: #2B2018;
  --berry: #B23B2E;
  --cream: #F6F2E9;
  --light-cream: #FBF8F1;
  --beige: #E8DFD0;
  --light-brown: #A68A64;

  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--leaf);
  display: block;
  margin-bottom: 16px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--deep-forest); line-height: 1.18; }
h2 { font-size: 32px; margin-bottom: 16px; }
h3 { font-size: 19px; }
.lede { font-size: 17px; color: var(--brown); max-width: 560px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--light-cream); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 13px 24px; border-radius: 24px; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.btn--primary { background: var(--forest); color: var(--light-cream); }
.btn--primary:hover { background: var(--deep-forest); }
.btn--accent { background: var(--berry); color: var(--light-cream); }
.btn--accent:hover { background: #962f25; }
.btn--ghost { background: transparent; color: var(--deep-forest); border-color: var(--beige); }
.btn--ghost:hover { background: var(--light-cream); }
.link-underline { font-size: 14px; color: var(--deep-forest); border-bottom: 1px solid var(--leaf); padding-bottom: 2px; }

/* ============================================ header ============================================ */
.site-header { border-bottom: 1px solid var(--beige); position: sticky; top: 0; background: rgba(246,242,233,0.92); backdrop-filter: blur(8px); z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--deep-forest); white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo .tld { color: var(--berry); }

.nav-primary { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--brown); }
.nav-links a:hover { color: var(--forest); }
.nav-links a[aria-current="page"] { color: var(--forest); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--deep-forest); margin: 5px 0; }

/* ============================================ hero ============================================ */
.hero { padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero h1 .acc { color: var(--berry); }
.hero .lede { margin-bottom: 30px; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-tree { width: 100%; max-width: 380px; height: auto; }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--deep-forest); background: var(--light-cream); border: 1px solid var(--beige); padding: 5px 12px; border-radius: 14px; }

/* ============================================ section scaffold ============================================ */
.section { padding: 72px 0; }
.section--alt { background: var(--light-cream); border-top: 1px solid var(--beige); border-bottom: 1px solid var(--beige); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================ services grid ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: var(--light-cream); border: 1px solid var(--beige); border-radius: 16px; padding: 26px 24px; transition: border-color 0.15s ease, transform 0.15s ease; display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--leaf); transform: translateY(-3px); }
.service-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--cream); border: 1px solid var(--beige); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; stroke-width: 1.7; }
.service-card .svc-num { font-family: var(--font-mono); font-size: 11px; color: var(--light-brown); margin-bottom: 8px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--brown); margin-bottom: 16px; }
.service-card .svc-tools { font-family: var(--font-mono); font-size: 11px; color: var(--leaf); margin-top: auto; }

/* ============================================ capability rows (replaces % bars) ============================================ */
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 860px; }
.cap-row { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--beige); }
.cap-row .cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex-shrink: 0; transform: translateY(-1px); }
.cap-row .cap-name { font-weight: 500; color: var(--deep-forest); }
.cap-row .cap-note { font-family: var(--font-mono); font-size: 12px; color: var(--light-brown); margin-left: auto; }

/* ============================================ about ============================================ */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-points { margin-top: 22px; }
.about-points li { position: relative; padding-left: 24px; margin-bottom: 12px; font-size: 15px; }
.about-points li::before { content: "→"; position: absolute; left: 0; color: var(--leaf); font-family: var(--font-mono); }

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.stat { background: var(--light-cream); border: 1px solid var(--beige); border-radius: 14px; padding: 20px; }
.stat .stat-num { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--berry); line-height: 1; margin-bottom: 6px; }
.stat .stat-lbl { font-size: 13px; color: var(--brown); }

/* ============================================ stagiaire callout ============================================ */
.stagiaire { background: var(--deep-forest); color: var(--light-cream); border-radius: 18px; padding: 40px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.stagiaire h3 { color: var(--light-cream); font-size: 24px; margin-bottom: 12px; }
.stagiaire p { font-size: 15px; opacity: 0.92; }
.stagiaire .stagiaire-cta { display: flex; flex-direction: column; gap: 12px; }
.stagiaire .btn--primary { background: var(--light-cream); color: var(--deep-forest); }
.stagiaire .btn--primary:hover { background: #fff; }
.stagiaire .stagiaire-note { font-family: var(--font-mono); font-size: 12px; opacity: 0.75; }

/* ============================================ partners ============================================ */
.partners { text-align: center; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 56px; margin-top: 12px; }
.partners-grid img { height: 34px; width: auto; opacity: 0.78; filter: grayscale(0.2); transition: opacity 0.2s ease; }
.partners-grid img:hover { opacity: 1; }
.partners-grid .p-aws { height: 30px; }

/* ============================================ ressources ============================================ */
.ressources .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ressources-card { background: var(--light-cream); border: 1px solid var(--beige); border-left: 3px solid var(--forest); border-radius: 14px; padding: 28px; }
.ressources-card h3 { margin-bottom: 12px; }
.ressources-card p { font-size: 14.5px; margin-bottom: 12px; }

/* ============================================ contact ============================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info ul li { margin-bottom: 14px; font-size: 15px; }
.contact-info .ci-label { font-family: var(--font-mono); font-size: 12px; color: var(--light-brown); display: block; margin-bottom: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-mono); font-size: 12px; color: var(--light-brown); }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--beige); background: var(--light-cream); color: var(--brown); width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.form-field textarea { min-height: 140px; resize: vertical; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--brown); }
.form-consent input { margin-top: 3px; }
.form-success, .form-error { display: none; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.form-success { background: var(--light-leaf); color: var(--deep-forest); }
.form-error { background: #F6DEDB; color: var(--berry); }
.is-sent .form-success { display: block; }
.is-sent .contact-form { display: none; }

/* ============================================ CTA band ============================================ */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { max-width: 580px; margin: 0 auto 16px; }
.cta-band .lede { margin: 0 auto 30px; text-align: center; }
.cta-band .hero-actions { justify-content: center; }

/* ============================================ footer ============================================ */
.site-footer { border-top: 1px solid var(--beige); padding: 52px 0 30px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; color: var(--light-brown); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--forest); }
.footer-tagline { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--beige); font-size: 12px; color: var(--light-brown); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--light-brown); }
.footer-bottom a:hover { color: var(--forest); }

/* ============================================ legal pages ============================================ */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 34px; margin-bottom: 10px; }
.legal .legal-updated { font-family: var(--font-mono); font-size: 12px; color: var(--light-brown); margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--forest); border-bottom: 1px solid var(--leaf); }

/* ============================================ cookie banner ============================================ */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 760px; margin: 0 auto; background: var(--deep-forest); color: var(--light-cream); border-radius: 14px; padding: 20px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; z-index: 300; box-shadow: 0 8px 30px rgba(31,69,55,0.25); }
.cookie-banner p { font-size: 13.5px; line-height: 1.5; flex: 1; min-width: 240px; }
.cookie-banner p a { color: var(--light-leaf); border-bottom: 1px solid var(--light-leaf); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn--primary { background: var(--light-cream); color: var(--deep-forest); white-space: nowrap; }
.cookie-banner .btn--primary:hover { background: #fff; }
.cookie-banner .btn--ghost { color: var(--light-cream); border-color: rgba(246,242,233,0.4); }
.cookie-banner .btn--ghost:hover { background: rgba(246,242,233,0.1); }
.cookie-banner.is-hidden { display: none; }

/* ============================================ responsive ============================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-tree { max-width: 260px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about .container, .ressources .container, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .capabilities { grid-template-columns: 1fr; }
  .stagiaire { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-primary { position: relative; }
  .nav-primary.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: absolute; top: calc(100% + 12px); right: 0; background: var(--light-cream); border: 1px solid var(--beige); border-radius: 12px; padding: 18px 22px; min-width: 220px; z-index: 110; }
  .nav-primary.is-open .nav-links { display: flex; flex-direction: column; gap: 12px; }
  .nav-primary.is-open .nav-actions .btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .h2, h2 { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
}

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