/* =========================================================
   AbraiaOrigin — Feuille de style commune
   Site statique (HTML/CSS/JS), aucune dépendance externe,
   aucune police ni bibliothèque tierce chargée par CDN.
   ========================================================= */

:root {
  --navy: #0d3b47;
  --teal-dark: #0f4c5c;
  --teal: #1a7a8a;
  --teal-mid: #3ba9a8;
  --teal-light: #6dc9c0;
  --mint: #a8ded1;
  --bg: #f8faf9;
  --bg-alt: #eef5f4;
  --card-bg: #ffffff;
  --text-dark: #142d31;
  --text-muted: #566e72;
  --border: #dfe9e7;
  --danger: #b3261e;
  --shadow: 0 2px 14px rgba(13, 59, 71, 0.06);
  --shadow-hover: 0 10px 28px rgba(13, 59, 71, 0.1);
  --shadow-lg: 0 20px 50px rgba(13, 59, 71, 0.16);
  --glow: 0 0 0 1px rgba(58, 169, 168, 0.15), 0 12px 32px rgba(15, 76, 92, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* ===== Bandeau juridique discret (facultatif, non intrusif) ===== */

.legal-bar {
  background: var(--navy);
  color: #c9e3df;
  font-size: 0.78rem;
  text-align: center;
  padding: 6px 16px;
}

.legal-bar a { color: #fff; text-decoration: underline; }

/* ===== Header ===== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 249, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

header.scrolled { box-shadow: 0 6px 24px rgba(13, 59, 71, 0.06); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 38px; width: auto; }

nav ul { list-style: none; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

nav a:hover { background: var(--bg-alt); color: var(--teal); transform: translateY(-1px); }
nav a.active { background: var(--teal-dark); color: #fff; }
nav a.active:hover { transform: none; }

.nav-cta {
  background: var(--teal-dark) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--navy) !important; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--teal-dark);
  cursor: pointer;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 96px 24px 100px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(58, 169, 168, 0.16) 1.4px, transparent 1.4px),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 65%);
  background-size: 26px 26px, 100% 100%;
  background-position: center top, center top;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.5;
  animation: float-blob 14s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%);
  animation-delay: -7s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 32px;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.hero-logo {
  max-width: 560px;
  width: 80%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(15, 76, 92, 0.16));
  animation: logo-rise 0.9s var(--ease) both, logo-float 6s ease-in-out 1s infinite;
}

@keyframes logo-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero .hero-actions {
  animation: rise-in 0.8s var(--ease) both;
}

.hero h1 { animation-delay: 0.08s; }
.hero p.lead { animation-delay: 0.16s; }
.hero .hero-actions { animation-delay: 0.24s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  animation: rise-in 0.8s var(--ease) both;
  animation-delay: 0.32s;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.trust-badges svg { width: 15px; height: 15px; stroke: var(--teal-mid); fill: none; stroke-width: 2; }

@media (max-width: 680px) {
  .hero-logo { max-width: 400px; width: 94%; }
  .hero::before, .hero::after { display: none; }
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero h1 .accent { color: var(--teal); }

.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */

.btn {
  position: relative;
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal) 60%, var(--teal-mid));
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline { background: #fff; color: var(--teal-dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal-mid); color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ===== Sections ===== */

section { padding: 74px 24px; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 46px; }

.section-header .tag {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--navy); margin-bottom: 12px; letter-spacing: -0.01em; }
.section-header p { color: var(--text-muted); font-size: 1.02rem; }

/* ===== Icônes (SVG en ligne, aucune dépendance externe) ===== */

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.icon-circle svg { width: 22px; height: 22px; stroke: var(--teal-dark); fill: none; stroke-width: 1.6; }

/* ===== Cards / grids ===== */

.grid { display: grid; gap: 24px; max-width: var(--max-width); margin: 0 auto; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }
.card.tilt { transition: transform 0.15s linear, box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.card:hover .icon-circle { transform: scale(1.08) rotate(-4deg); background: var(--teal-dark); }
.card:hover .icon-circle svg { stroke: #fff; }

.card h3 { font-size: 1.14rem; color: var(--navy); margin-bottom: 9px; letter-spacing: -0.005em; }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card ul { margin-top: 14px; padding-left: 20px; color: var(--text-muted); }
.card ul li { margin-bottom: 6px; font-size: 0.93rem; }

.icon-circle { transition: transform 0.35s var(--ease), background 0.35s var(--ease); }
.icon-circle svg { transition: stroke 0.35s var(--ease); }

/* ===== Pricing ===== */

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 1.5px solid var(--teal-mid); box-shadow: var(--glow); }
.price-card.featured:hover { transform: translateY(-6px) scale(1.02); }
.price-card.tilt, .portfolio-card.tilt { transition: transform 0.15s linear, box-shadow 0.35s var(--ease); }

.price-card.featured::before {
  content: "Le plus demandé";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price { font-size: 2rem; font-weight: 700; color: var(--teal-dark); margin: 12px 0 4px; }
.price-card .price span { font-size: 0.92rem; font-weight: 400; color: var(--text-muted); }
.price-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }

.price-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dark);
  display: flex;
  gap: 9px;
}

.price-card ul li::before { content: "✓"; color: var(--teal-mid); font-weight: 700; }

/* ===== Portfolio ===== */

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-card:hover .portfolio-thumb svg { transform: scale(1.15) rotate(-3deg); }

.portfolio-thumb {
  height: 110px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.4; transition: transform 0.4s var(--ease); }

.portfolio-body { padding: 22px 24px; }

.portfolio-body .badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.portfolio-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.06rem; }
.portfolio-body p { color: var(--text-muted); font-size: 0.92rem; }

.disclaimer-note {
  max-width: var(--max-width);
  margin: 30px auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* ===== Contact ===== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-info .card { margin-bottom: 16px; }

.security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.security-note svg { width: 18px; height: 18px; stroke: var(--teal-dark); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 2px; }

form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 17px; }

label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 6px; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.94rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal-mid); }
input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
textarea { resize: vertical; min-height: 120px; }

/* Champ piège anti-spam (honeypot) — invisible pour un humain, retiré du flux visuel et de la navigation clavier */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.consent-row input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.consent-row label { font-weight: 400; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0; }
.consent-row a { color: var(--teal); text-decoration: underline; }

.form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.form-msg.show { display: block; }
.form-msg.error { background: #fdecea; color: var(--danger); border: 1px solid #f3c6c2; }
.form-msg.success { background: #e8f6f0; color: #1c6b4a; border: 1px solid #bfe6d4; }

/* ===== CTA band ===== */

.cta-band {
  background: var(--teal-dark);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== Footer ===== */

footer { background: var(--navy); color: #cfe4e1; padding: 46px 24px 22px; }

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}

.footer-brand img { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: #a9d4cf; font-size: 0.9rem; max-width: 300px; }

.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 13px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #a9d4cf; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #8bbdb7;
}

.footer-bottom a { color: #cfe4e1; text-decoration: underline; margin: 0 6px; }

/* ===== Page hero (sous-pages) ===== */

.page-hero { padding: 56px 24px 46px; text-align: center; background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--navy); margin-bottom: 12px; letter-spacing: -0.01em; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.02rem; }

/* ===== Pages légales ===== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

.legal-content h2 { color: var(--navy); font-size: 1.3rem; margin: 34px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 30px; }

.placeholder-tag {
  background: #fff4e5;
  color: #8a5300;
  border: 1px solid #f3d9a8;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

/* ===== Scroll-reveal utility (activé par script.js via IntersectionObserver) ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-visible > * {
  animation: rise-in 0.6s var(--ease) both;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.37s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ===== Séparateur de section (vague décorative) ===== */

.section-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
}

.section-divider path { fill: var(--bg-alt); }

.hero .section-divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 40px;
  z-index: 0;
}

/* ===== Soulignement animé (liens texte) ===== */

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== Responsive ===== */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  nav ul { display: none; }
  .menu-toggle { display: block; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
  section { padding: 52px 20px; }
}
