/* ============================================================
   Template « Fermetures » — ATOM Studios
   Palette : bleu / gris ardoise + accent dynamique (cyan→bleu)
   ============================================================ */

:root {
  --blue-900: #0e2540;
  --blue-800: #14365c;
  --blue-700: #1d4e89;
  --blue-600: #2563a8;
  --accent: #1fb6d6;
  --accent-2: #2563a8;
  --slate-900: #16202c;
  --slate-700: #344150;
  --slate-500: #5d6b7a;
  --slate-300: #c2cdd8;
  --slate-100: #eef2f6;
  --slate-50: #f6f9fc;
  --white: #ffffff;
  --ring: rgba(31, 182, 214, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 37, 64, 0.08);
  --shadow-md: 0 12px 32px -12px rgba(14, 37, 64, 0.22);
  --shadow-lg: 0 28px 60px -20px rgba(14, 37, 64, 0.35);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-hero: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--blue-700) 100%);

  font-synthesis: none;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--slate-900); line-height: 1.18; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.ic { width: 1.15em; height: 1.15em; fill: none; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.97rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad-accent); color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(37, 99, 168, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 99, 168, 0.75); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--ring); outline-offset: 2px;
}

/* btn-tel : lien téléphone (peut être supprimé par fill_template.py) */
.btn-tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--blue-700);
}
.btn-tel:hover { color: var(--accent); }
.header-cta .btn-tel { padding: 6px 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.logo-text { color: var(--slate-900); font-size: 1.12rem; letter-spacing: -0.02em; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; color: var(--white); background: var(--grad-accent);
  box-shadow: var(--shadow-sm);
}
.logo-mark .ic { width: 22px; height: 22px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; color: var(--slate-700); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad-accent); transition: width 0.22s var(--ease);
}
.nav a:hover { color: var(--blue-700); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--slate-900); transition: transform 0.25s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--grad-hero); z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background:
    radial-gradient(520px 320px at 88% -10%, rgba(31, 182, 214, 0.35), transparent 70%),
    radial-gradient(420px 380px at 0% 110%, rgba(37, 99, 168, 0.45), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding: 84px 22px 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero .eyebrow { color: #8fe3f4; }
.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); color: var(--white); margin: 14px 0 0; min-height: 1.18em; }
.hero-title:empty::before { content: "Vos fermetures, posées avec exigence."; }
.hero-sub { margin-top: 18px; max-width: 46ch; color: rgba(255, 255, 255, 0.85); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 30px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.hero-trust .ic { color: var(--accent); stroke: var(--accent); width: 18px; height: 18px; }

/* Hero illustration : fenêtre + volet animé */
.hero-card { display: grid; justify-items: center; gap: 16px; }
.hero-window {
  position: relative; width: min(320px, 80%); aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #cfe9f2, #9cc6dc);
  border: 10px solid #f3f7fa; border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hw-glass { position: absolute; inset: 0; background:
  linear-gradient(115deg, rgba(255,255,255,0.55) 0 18%, transparent 18% 34%, rgba(255,255,255,0.3) 34% 40%, transparent 40%); }
.hw-blind { position: absolute; inset: 0; display: flex; flex-direction: column; }
.hw-blind span {
  flex: 1; background: linear-gradient(180deg, #e7edf2, #cdd8e2);
  border-bottom: 1.5px solid rgba(14, 37, 64, 0.18);
  transform-origin: top; animation: blindDrop 1.1s var(--ease) backwards;
}
.hw-blind span:nth-child(1) { animation-delay: 0.15s; }
.hw-blind span:nth-child(2) { animation-delay: 0.27s; }
.hw-blind span:nth-child(3) { animation-delay: 0.39s; }
.hw-blind span:nth-child(4) { animation-delay: 0.51s; }
.hw-blind span:nth-child(5) { animation-delay: 0.63s; }
@keyframes blindDrop { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.hero-card-cap { color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 0.92rem; }

/* ---------- Strip ---------- */
.strip { background: var(--blue-900); color: var(--white); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 18px 22px; }
.strip-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.strip-item .ic { color: var(--accent); stroke: var(--accent); width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--slate-50); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .atouts-text h2, .zone-text h2, .contact-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 12px; }
.section-lead { margin-top: 14px; color: var(--slate-500); font-size: 1.06rem; }
.eyebrow .ic { width: 16px; height: 16px; stroke: currentColor; }

/* ---------- Cards services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--slate-100);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card:hover::before { transform: scaleX(1); }
.card-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  color: var(--blue-700); background: linear-gradient(135deg, rgba(31,182,214,0.14), rgba(37,99,168,0.14));
  margin-bottom: 18px; transition: color 0.22s var(--ease);
}
.card-ic .ic { width: 30px; height: 30px; stroke: currentColor; }
.card:hover .card-ic { color: var(--accent); }
.card h3 { font-size: 1.2rem; }
.card p { margin-top: 9px; color: var(--slate-500); font-size: 0.98rem; }

/* ---------- Pourquoi nous ---------- */
.atouts-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; }
.fl-ic, .ci-ic {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-accent); color: var(--white); box-shadow: var(--shadow-sm);
}
.fl-ic .ic, .ci-ic .ic { width: 20px; height: 20px; stroke: currentColor; }
.feature-list strong { color: var(--slate-900); font-size: 1.04rem; }
.feature-list p { color: var(--slate-500); font-size: 0.95rem; margin-top: 2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--blue-700);
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lab { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--slate-500); font-weight: 600; }

/* ---------- Zone ---------- */
.zone-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zone-map {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 45%, rgba(31,182,214,0.12), transparent 60%),
    var(--slate-100);
  border: 1px solid var(--slate-300); overflow: hidden;
  display: grid; place-items: center;
}
.zone-map::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, var(--slate-300) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, var(--slate-300) 0 1px, transparent 1px 46px);
}
.map-pin { position: relative; z-index: 2; color: var(--blue-700); }
.map-pin .ic { width: 54px; height: 54px; stroke: currentColor; filter: drop-shadow(0 8px 12px rgba(14,37,64,0.3)); }
.map-ping { position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(31,182,214,0.5); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(4); opacity: 0; } }
.map-label { position: absolute; bottom: 18px; z-index: 2; background: var(--white);
  padding: 7px 16px; border-radius: 999px; font-weight: 700; color: var(--slate-900);
  box-shadow: var(--shadow-sm); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 26px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { color: var(--slate-900); }
.contact-list p { color: var(--slate-500); }

.contact-form {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: 0.9rem; color: var(--slate-700); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--slate-900);
  padding: 12px 14px; border: 1.5px solid var(--slate-300); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); outline: none; }
textarea { resize: vertical; }
.form-note { margin-top: 12px; text-align: center; font-size: 0.85rem; color: var(--slate-500); }
.form-success {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(31, 182, 214, 0.12); color: var(--blue-800); font-weight: 600; text-align: center;
  border: 1px solid rgba(31, 182, 214, 0.4);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: rgba(255, 255, 255, 0.78); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px;
  padding: 54px 22px 32px;
}
.footer-brand { display: flex; gap: 13px; align-items: center; }
.footer-name { color: var(--white); font-weight: 800; font-size: 1.08rem; }
.footer-meta { font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 6px; font-size: 0.94rem; }
.footer-contact .btn-tel { color: #9fe6f5; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding: 20px 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.footer-credit { color: rgba(255, 255, 255, 0.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; padding-bottom: 64px; }
  .hero-card { order: -1; }
  .atouts-grid, .zone-inner, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 14px 22px 22px; margin: 0;
    border-bottom: 1px solid var(--slate-100); box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav a { padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
  .site-header.menu-open .header-cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    position: absolute; top: calc(72px + 200px); left: 0; right: 0;
    background: var(--white); padding: 0 22px 22px;
  }
  .site-header.menu-open .header-cta .btn { width: 100%; }
  .section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

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