/* Assurance VTC France — microsite pub / SEO / leads */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #0b1220;
  --ink-soft: #1a2740;
  --fog: #e8eef7;
  --paper: #f4f7fb;
  --amber: #f0a202;
  --amber-deep: #c47d00;
  --teal: #0e7c7b;
  --teal-bright: #14b8a6;
  --line: rgba(255, 255, 255, 0.14);
  --muted: #5b6b82;
  --radius: 14px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.avf {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.avf-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.92) 0%, rgba(8, 14, 28, 0.72) 70%, transparent 100%);
  backdrop-filter: blur(8px);
}

.avf-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.avf-byline {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.avf-byline a {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
}

.avf-kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(240, 162, 2, 0.18);
  border: 1px solid rgba(240, 162, 2, 0.45);
  color: #ffe6a8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.avf-hero--form {
  min-height: 100vh;
  align-items: center;
}

.avf-hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: end;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .avf-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.avf-form--panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.avf-form-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.avf-form--panel label {
  color: var(--ink);
}

.avf-form--panel .avf-check {
  color: var(--muted);
}

.avf-form--panel a {
  color: var(--teal);
}

.avf-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.avf-brand span {
  color: var(--amber);
}

.avf-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: #ffb000;
  color: #0b1220;
  border: 2px solid #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 0 0 2px #0b1220, 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.avf-nav-cta:hover {
  background: #ffc433;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #0b1220, 0 10px 28px rgba(0, 0, 0, 0.5);
}

/* Full-bleed hero */
.avf-hero {
  position: relative;
  min-height: min(100vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(8, 14, 28, 0.88) 0%, rgba(11, 28, 48, 0.55) 48%, rgba(14, 60, 70, 0.45) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(240, 162, 2, 0.22), transparent 55%),
    url("https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  animation: avf-hero-in 1.1s ease-out both;
}

@keyframes avf-hero-in {
  from {
    opacity: 0.4;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.avf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.4rem 3.5rem;
}

.avf-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  animation: avf-rise 0.8s 0.15s ease both;
}

.avf-hero p.lead {
  max-width: 38ch;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  margin: 0 0 1.6rem;
  animation: avf-rise 0.8s 0.28s ease both;
}

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

.avf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: avf-rise 0.8s 0.4s ease both;
}

.avf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.avf-btn-primary {
  background: #ffb000;
  color: #0b1220;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #0b1220, 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: avf-cta-pulse 2.4s ease-in-out infinite;
}

.avf-btn-primary:hover {
  background: #ffc433;
  color: #0b1220;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px #0b1220, 0 16px 40px rgba(0, 0, 0, 0.5);
}

@keyframes avf-cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px #0b1220, 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px #0b1220, 0 14px 36px rgba(240, 162, 2, 0.45);
  }
}

/* Submit sticky : toujours visible au-dessus du cookie banner */
.avf-form--panel .avf-btn-submit,
.avf-form .avf-btn-submit {
  position: sticky;
  bottom: 5.5rem;
  z-index: 260;
  width: 100%;
  min-height: 3.35rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}

.avf-form--panel {
  padding-bottom: 0.75rem;
}

body.avf {
  padding-bottom: 6rem;
}

.avf-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.avf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.avf-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.4rem;
}

.avf-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.avf-section .sub {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.avf-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .avf-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.avf-strip article {
  padding: 0;
  border: none;
  background: transparent;
}

.avf-strip h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.avf-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.avf-band {
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 55%, #0a3d3c 100%);
  color: #fff;
}

.avf-band .sub {
  color: rgba(255, 255, 255, 0.72);
}

.avf-band a {
  color: var(--amber);
  font-weight: 600;
}

.avf-list {
  margin: 0;
  padding-left: 1.15rem;
  color: inherit;
}

.avf-list li {
  margin: 0.45rem 0;
}

.avf-form-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.avf-form-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.avf-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.avf-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.avf-form input,
.avf-form select,
.avf-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #c9d4e4;
  background: #fff;
}

.avf-form input:focus,
.avf-form select:focus,
.avf-form textarea:focus {
  outline: 2px solid rgba(14, 124, 123, 0.35);
  border-color: var(--teal);
}

.avf-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
}

.avf-check input {
  margin-top: 0.25rem;
}

.avf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.avf-ok {
  color: #065f46;
  font-weight: 600;
}

.avf-err {
  color: #b91c1c;
  font-weight: 600;
}

.avf-footer {
  padding: 2rem 1.4rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #d8e0ec;
}

.avf-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

/* Cookie banner minimal si main.css absent sur le domaine AVF */
#cookie-banner-lo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 14px 16px;
  background: rgba(11, 18, 32, 0.96);
  color: #e8eef7;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}
#cookie-banner-lo .cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
#cookie-banner-lo p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1 1 220px;
}
#cookie-banner-lo a {
  color: var(--amber);
  font-weight: 700;
}
#cookie-banner-lo .cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#cookie-banner-lo button {
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}
#cookie-banner-lo #cookie-accept {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  .avf-hero,
  .avf-hero h1,
  .avf-hero p.lead,
  .avf-cta-row,
  .avf-btn-primary {
    animation: none !important;
  }
}
