/* ============================================================================
   Affineo'Assur — « Maison de courtage patrimoniale, héritage depuis 1873 »
   Archétype : courtier d'assurances établi, terroir de l'Ain, solide & chaleureux.
   Palette : Orange-brique #E0561F + Ardoise #4E5A63 + parchemin #F5F1E9
            (les couleurs RÉELLES du logo).
   Fonts : Arvo (slab display, esprit établi) / Assistant (body).
   Signature : TOIT / MAISON (issu du logo, thème Multirisque) + estampille « depuis 1873 ».
   Bootstrap = squelette ; ce fichier = toute la peau. Aucune classe custom.
   ========================================================================== */

:root {
  --brique: #E0561F;
  --brique-700: #B8420F;
  --brique-050: #F7E3D6;
  --ardoise: #4E5A63;
  --ardoise-800: #333D44;
  --ardoise-900: #262E34;
  --ardoise-050: #E7EAEC;
  --parchemin: #F5F1E9;
  --parchemin-2: #ECE4D5;
  --paper: #FCFAF4;
  --tinta: #2B2F33;
  --muted: #6C7176;
  --line: #DED4C1;

  --bs-primary: #E0561F;
  --bs-primary-rgb: 224, 86, 31;
  --bs-secondary: #4E5A63;
  --bs-secondary-rgb: 78, 90, 99;
  --bs-body-color: #2B2F33;
  --bs-body-bg: #F5F1E9;
  --bs-body-font-family: 'Assistant', system-ui, -apple-system, sans-serif;
  --bs-border-color: #DED4C1;
  --bs-link-color: #B8420F;
  --bs-link-hover-color: #333D44;

  /* motif TOIT / MAISON (signature) en data-URI */
  --roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M2 12 L14 2 L26 12' fill='none' stroke='%23E0561F' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M6 12 L6 20 L22 20 L22 12' fill='none' stroke='%234E5A63' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --roof-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M2 12 L14 2 L26 12' fill='none' stroke='%23F5F1E9' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M6 12 L6 20 L22 20 L22 12' fill='none' stroke='%23E0561F' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");

  --shadow-soft: 0 3px 8px rgba(43, 47, 51, .06), 0 22px 46px -28px rgba(43, 47, 51, .3);
  --shadow-lift: 0 8px 18px rgba(43, 47, 51, .12), 0 34px 62px -30px rgba(224, 86, 31, .34);
  --r: 12px;
}

/* ------------------------------------------------------------------ base */
body {
  background-color: var(--parchemin);
  background-image:
    radial-gradient(1000px 440px at 90% -6%, rgba(224, 86, 31, .09), transparent 60%),
    radial-gradient(820px 400px at -6% 4%, rgba(78, 90, 99, .10), transparent 60%);
  color: var(--tinta);
}
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .display-6 {
  font-family: 'Arvo', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--ardoise-800);
  line-height: 1.18;
}
p { line-height: 1.72; }
a { text-decoration: none; }
::selection { background: rgba(224, 86, 31, .26); }
.container { max-width: 1180px; }

/* kicker — motif TOIT (signature) */
#section-kicker, #hero-eyebrow {
  font-family: 'Assistant', sans-serif;
  font-weight: 800;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--brique-700);
  align-items: center;
}
#section-kicker::before, #hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 19px;
  margin-right: .55rem;
  vertical-align: -4px;
  background: var(--roof) center/contain no-repeat;
}

/* ------------------------------------------------------------------ topbar */
#topbar { background: var(--ardoise-800); color: #E8EBED; font-weight: 500; }
#topbar a, #topbar-tel { color: #fff; }
#topbar-tel:hover { color: var(--brique); }
#topbar i { color: var(--brique); }
#topbar-note { color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------------ navbar */
.navbar {
  background: rgba(245, 241, 233, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
#brand-logo { height: 46px !important; width: auto; }
.navbar .nav-link {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  color: var(--ardoise-800);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: .84rem;
  padding: .5rem .9rem;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute; left: .9rem; right: .9rem; bottom: .35rem;
  height: 2px; background: var(--brique);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--brique-700); }
.navbar .nav-link:hover::after, .navbar .nav-link:focus::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ boutons */
.btn { font-family: 'Assistant', sans-serif; font-weight: 800; border-radius: 8px; text-transform: uppercase; letter-spacing: .6px; font-size: .84rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s; }
.btn-lg { padding: .82rem 1.7rem; }
.btn-primary {
  --bs-btn-bg: var(--brique);
  --bs-btn-border-color: var(--brique);
  --bs-btn-hover-bg: var(--brique-700);
  --bs-btn-hover-border-color: var(--brique-700);
  --bs-btn-active-bg: var(--brique-700);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  box-shadow: 0 10px 22px -12px rgba(184, 66, 15, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(184, 66, 15, .9); }
.btn-outline-primary {
  --bs-btn-color: var(--ardoise-800);
  --bs-btn-border-color: var(--ardoise);
  --bs-btn-hover-bg: var(--ardoise-800);
  --bs-btn-hover-border-color: var(--ardoise-800);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ardoise-800);
  background: transparent;
  border-width: 2px;
}
.btn-outline-primary:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------------ message d'information */
#msg-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brique);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  align-items: flex-start;
}
#msg-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--brique-050);
  color: var(--brique-700);
  font-size: 1.35rem;
  flex-shrink: 0;
}
#msg-title { font-family: 'Arvo', serif; color: var(--ardoise-800); }
#msg-body { color: var(--muted); line-height: 1.9; }

/* ------------------------------------------------------------------ hero */
#top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background-image: var(--roof);
  background-size: 130px;
  opacity: .04;
  pointer-events: none;
}
#hero-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--ardoise-900); }
#hero-lead { color: var(--muted); font-size: 1.1rem; }
#hero-figure {
  border-radius: 14px;
  overflow: visible;
  position: relative;
}
#hero-figure img {
  border-radius: 14px;
  border: 7px solid #fff;
  box-shadow: var(--shadow-lift);
  object-fit: cover;
  display: block;
  width: 100%;
}
/* estampille « depuis 1873 » (signature) */
#hero-seal {
  position: absolute; left: -18px; bottom: -18px;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--brique);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-8deg);
  box-shadow: 0 14px 26px -10px rgba(184, 66, 15, .8), inset 0 0 0 3px rgba(255, 255, 255, .35);
  margin: 0;
}
#hero-seal span { font-family: 'Assistant', sans-serif; font-weight: 800; font-size: .66rem; letter-spacing: 2.5px; }
#hero-seal strong { font-family: 'Arvo', serif; font-size: 1.9rem; line-height: 1; }

/* ------------------------------------------------------------------ offres */
#offres { background: linear-gradient(180deg, rgba(236, 228, 213, .55), transparent 45%); }
#offres-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
#offre-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
  border-top: 4px solid var(--ardoise);
}
#offre-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-top-color: var(--brique); }
#offre-thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--parchemin-2); }
#offre-thumb img { transition: transform .5s ease; }
#offre-card:hover #offre-thumb img { transform: scale(1.06); }
#offre-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(38, 46, 52, .5)); }
#offre-icon {
  position: absolute; left: 14px; bottom: -22px; z-index: 2;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brique);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 16px -8px rgba(184, 66, 15, .8);
}
#offre-card .p-4 { padding-top: 2.2rem !important; }
#offre-name { font-family: 'Arvo', serif; color: var(--ardoise-800); }
#offre-btn { font-size: .78rem; }

/* ------------------------------------------------------------------ agences */
#agences-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
#agence-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
#agence-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
#agence-name { font-family: 'Arvo', serif; color: var(--ardoise-800); }
#agence-badge { background: var(--brique); color: #fff; border-radius: 100px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .64rem; padding: .35rem .7rem; }
#agence-addr, #agence-card p { color: var(--tinta); }
#agence-card a { color: var(--brique-700); }
#agence-card a:hover { color: var(--ardoise-800); }
#coord-icon { color: var(--brique); flex-shrink: 0; margin-top: .15rem; }
#agence-horaires-title { color: var(--ardoise-800); font-family: 'Assistant', sans-serif; }
#agence-horaires li { color: var(--muted); }
#agence-note { color: var(--ardoise); font-weight: 600; }
#agence-map { border-top: 1px solid var(--line); background: var(--parchemin-2); }

/* ------------------------------------------------------------------ contact */
#contact-card {
  background: var(--ardoise-800);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
#contact-card::before { content: ''; position: absolute; inset: 0; background-image: var(--roof-cream); background-size: 120px; opacity: .05; pointer-events: none; }
#contact-card > * { position: relative; }
#contact-card #section-kicker { color: #F4B79A; }
#contact-card #section-kicker::before { background-image: var(--roof-cream); }
#contact-title { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
#contact-card .form-label { color: rgba(245, 241, 233, .9); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; }
.form-control { background: var(--paper); border: 1.5px solid transparent; border-radius: 8px; padding: .7rem .95rem; }
.form-control:focus { border-color: var(--brique); box-shadow: 0 0 0 .25rem rgba(224, 86, 31, .28); }

/* ------------------------------------------------------------------ seo */
#seo h2 { color: var(--ardoise-800); }
#seo p { color: var(--muted); }

/* ------------------------------------------------------------------ footer */
#colophon {
  background: var(--ardoise-900);
  color: #D9DDDF;
  position: relative;
  border-top: 4px solid var(--brique);
}
#colophon::before { content: ''; position: absolute; inset: 0; background-image: var(--roof-cream); background-size: 76px; opacity: .04; pointer-events: none; }
#colophon .container { position: relative; }
#footer-name { font-family: 'Arvo', serif; color: #fff; }
#footer-baseline { color: var(--brique); font-weight: 700; }
#footer-head { color: var(--brique) !important; letter-spacing: 1px; }
#footer-link { color: rgba(217, 221, 223, .85); }
#footer-link:hover { color: var(--brique); }
#footer-note { color: rgba(217, 221, 223, .7); }
#footer-social {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  padding: .5rem 1.1rem;
  font-weight: 700;
  transition: background-color .2s, transform .2s;
}
#footer-social:hover { background: var(--brique); color: #fff; transform: translateY(-2px); }
#footer-rule { border-color: rgba(255, 255, 255, .14); }
#copyright { color: rgba(217, 221, 223, .8); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 575px) {
  #hero-seal { width: 84px; height: 84px; left: -8px; }
  #hero-seal strong { font-size: 1.5rem; }
  #brand-logo { height: 38px !important; }
}

/* focus visibles (WCAG) */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible, .form-control:focus-visible {
  outline: 3px solid var(--brique);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover, #offre-card:hover, #agence-card:hover { transform: none; }
}
