/* ============================================================
   ÉNERGIES DE LA BAIE – Feuille de style principale
   Mobile-first | WCAG AA | Modèle : Inter + Poppins
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --primary:        #0a3d62;
  --primary-dark:   #062848;
  --primary-light:  #1e73be;
  --accent:         #e8600a;
  --accent-dark:    #c04e08;
  --green:          #1e7d4a;
  --green-dark:     #155a35;

  --text:           #1a1a2e;
  --text-medium:    #3d3d5c;
  --text-light:     #5a607a;

  --bg:             #ffffff;
  --bg-alt:         #f0f4f9;
  --bg-dark:        #0a3d62;
  --bg-dark2:       #062848;

  --border:         #ced6e2;
  --border-focus:   #1e73be;

  --shadow-sm:      0 1px 4px rgba(10,61,98,.10);
  --shadow-md:      0 4px 16px rgba(10,61,98,.14);
  --shadow-lg:      0 8px 32px rgba(10,61,98,.18);

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;

  --font-body:      'Inter', system-ui, sans-serif;
  --font-heading:   'Poppins', system-ui, sans-serif;

  --transition:     .25s ease;

  --max-w:          1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ---- Focus visible ---- */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Typography ---- */
h1,h2,h3,h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #1a1a2e;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-accent { background: #fff3eb; color: var(--accent-dark); border-color: #f5c4a0; }
.badge-green  { background: #e6f4ec; color: var(--green-dark); border-color: #a8d9bc; }

/* ---- Section layout ---- */
.section { padding: 4rem 0; }
.section-lg { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.85); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header .badge { margin-bottom: 1rem; }
.section-header p { color: var(--text-medium); font-size: 1.05rem; margin-top: .75rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.75rem; }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #3e4347;
  border-bottom: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.header-top {
  background: var(--primary-dark);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  padding: .4rem 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.header-top a { color: rgba(255,255,255,.9); text-decoration: none; }
.header-top a:hover { color: #fff; }
.header-top-left, .header-top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-top-item { display: flex; align-items: center; gap: .4rem; }

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; }
.logo-text span { display: block; }
.logo-name { font-size: 1rem; color: #fff; }
.logo-sub  { font-size: .72rem; color: rgba(255,255,255,.62); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Nav */
.nav-main { display: none; }
.nav-main ul { display: flex; align-items: center; gap: .25rem; }
.nav-main a {
  display: block;
  padding: .5rem .85rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .85rem;
  right: .85rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .22s ease;
  transform-origin: left;
}
.nav-main a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-main a:hover::after { transform: scaleX(1); }
.nav-main a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
}
.nav-main a.active::after { transform: scaleX(1); }

.header-cta { display: none; }
/* .header-phone retiré du menu principal – reste dans header-top */

/* Burger */
.burger {
  background: none;
  border: none;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(6,40,72,.92);
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul { display: flex; flex-direction: column; gap: .25rem; }
.nav-mobile a {
  display: block;
  padding: 1rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-mobile a:hover { background: rgba(255,255,255,.1); }
.nav-mobile .btn { margin-top: 1.5rem; text-align: center; justify-content: center; }

@media (min-width: 900px) {
  .nav-main { display: block; }
  .header-cta { display: flex; align-items: center; gap: .75rem; }
  .burger { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0e5487 55%, #1a6fb5 100%);
  padding: 4rem 0 3rem;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-content .badge { margin-bottom: 1.25rem; background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.25); }
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content h1 em { color: #7dd3fc; font-style: normal; }
.hero-content p { color: rgba(255,255,255,.88); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.88);
  font-size: .875rem;
}
.hero-trust-item svg { color: #7dd3fc; flex-shrink: 0; }

.hero-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
}
.hero-card h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: #7dd3fc; line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.8); margin-top: .25rem; display: block; }
.hero-card .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }

@media (min-width: 900px) {
  .hero { padding: 5rem 0 4rem; }
  .hero-inner { grid-template-columns: 1fr 420px; gap: 4rem; }
  .hero-card { margin: 0; }
}

/* ============================================================
   SERVICES OVERVIEW
   ============================================================ */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 560px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-light); }
.service-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  flex-shrink: 0;
}
.icon-blue   { background: #dbeafe; color: var(--primary); }
.icon-orange { background: #fff3eb; color: var(--accent); }
.icon-green  { background: #dcfce7; color: var(--green); }
.icon-purple { background: #ede9fe; color: #6d28d9; }

.service-card h3 { font-size: 1.1rem; color: var(--text); }
.service-card p { color: var(--text-medium); font-size: .9rem; flex: 1; }
.service-card .btn { margin-top: auto; }

/* ============================================================
   POURQUOI NOUS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary) 0%, #1a6fb5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-visual-inner { text-align: center; color: #fff; padding: 2rem; }
.why-visual-inner svg { margin-bottom: 1rem; opacity: .8; }
.why-visual-inner p { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.9); }

.why-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item h4 { color: var(--text); margin-bottom: .25rem; }
.why-item p  { color: var(--text-medium); font-size: .9rem; margin: 0; }

/* ============================================================
   CERTIFICATIONS / AIDES
   ============================================================ */
.cert-strip {
  background: var(--bg-dark);
  padding: 2.5rem 0;
  color: #fff;
}
.cert-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
}
.cert-item svg { color: #7dd3fc; flex-shrink: 0; }

/* ============================================================
   AIDES FINANCIÈRES
   ============================================================ */
.aides-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .aides-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .aides-grid { grid-template-columns: repeat(4, 1fr); } }

.aide-card {
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid;
}
.aide-card.aide-blue   { background: #eff6ff; border-color: #bfdbfe; }
.aide-card.aide-green  { background: #f0fdf4; border-color: #bbf7d0; }
.aide-card.aide-orange { background: #fff7ed; border-color: #fed7aa; }
.aide-card.aide-purple { background: #faf5ff; border-color: #e9d5ff; }

.aide-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.aide-card-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.aide-blue   .aide-card-icon { background: #dbeafe; color: var(--primary); }
.aide-green  .aide-card-icon { background: #dcfce7; color: var(--green); }
.aide-orange .aide-card-icon { background: #ffedd5; color: var(--accent); }
.aide-purple .aide-card-icon { background: #ede9fe; color: #6d28d9; }

.aide-card h4 { font-size: .95rem; color: var(--text); }
.aide-card .montant { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.aide-card p { font-size: .875rem; color: var(--text-medium); }

/* ============================================================
   ZONES D'INTERVENTION
   ============================================================ */
.zones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) { .zones-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.zones-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.zone-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.zone-tag:hover { background: var(--primary); border-color: var(--primary); color: #fff; cursor: default; }
.zone-tag.zone-main {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.zone-map-placeholder {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-light);
}
.zone-map-placeholder svg { margin: 0 auto 1rem; color: var(--primary); }

/* ============================================================
   TEMOIGNAGES
   ============================================================ */
.temoignages-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .temoignages-grid { grid-template-columns: repeat(3, 1fr); } }

.temoignage-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .75rem; letter-spacing: .1em; }
.temoignage-card blockquote { color: var(--text-medium); font-style: italic; font-size: .95rem; margin-bottom: 1.25rem; }
.temoignage-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-info strong { display: block; font-size: .9rem; }
.author-info span   { font-size: .8rem; color: var(--text-light); }

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 420px; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: .2rem; font-size: .95rem; }
.contact-info-item p, .contact-info-item a {
  font-size: .9rem;
  color: var(--text-medium);
  text-decoration: none;
}
.contact-info-item a:hover { color: var(--primary); }

.horaires-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.horaires-table tr { border-bottom: 1px solid var(--border); }
.horaires-table td { padding: .45rem 0; font-size: .875rem; color: var(--text-medium); }
.horaires-table td:first-child { font-weight: 600; color: var(--text); width: 55%; }

/* Form */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-card h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 500px) { .form-row { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.required-mark { color: var(--accent); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(30,115,190,.15);
}
input.error, select.error, textarea.error { border-color: #dc2626; }
textarea { resize: vertical; min-height: 130px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a607a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-check { display: flex; align-items: flex-start; gap: .75rem; }
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: .1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-check label { font-size: .85rem; font-weight: 400; color: var(--text-medium); margin: 0; cursor: pointer; }

.field-error { display: block; font-size: .8rem; color: #dc2626; margin-top: .35rem; }

.form-btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--green-dark);
}
.form-success svg { margin: 0 auto .75rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #c04e08 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-banner .btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark2);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub  { color: rgba(255,255,255,.55); }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.7); line-height: 1.7; }

.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: .6rem; }
.footer-contact-item svg { color: #7dd3fc; flex-shrink: 0; margin-top: .1rem; }
.footer-contact-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0e5487 100%);
  padding: 3rem 0;
  color: #fff;
}
.page-hero .badge { margin-bottom: 1rem; background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.25); }
.page-hero h1 { color: #fff; max-width: 700px; }
.page-hero p  { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 600px; margin-top: .75rem; }

.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.4); }
.breadcrumb .current { color: rgba(255,255,255,.9); font-weight: 500; }

/* ============================================================
   SERVICE PAGE CONTENT
   ============================================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) { .service-detail-grid { grid-template-columns: 1fr 360px; gap: 4rem; } }

.feature-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.feature-item { display: flex; gap: .75rem; align-items: flex-start; }
.feature-item .check { width: 22px; height: 22px; background: #dcfce7; color: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .15rem; }
.feature-item p { font-size: .95rem; color: var(--text-medium); margin: 0; }
.feature-item strong { color: var(--text); display: block; margin-bottom: .15rem; font-size: .95rem; }

.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: .75rem; }

.process-steps { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.process-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; flex-shrink: 0; }
.process-step h4 { margin-bottom: .2rem; font-size: .95rem; }
.process-step p  { font-size: .875rem; color: var(--text-medium); margin: 0; }

/* ============================================================
   ANIMATIONS (respecte prefers-reduced-motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-left  { opacity:0; transform:translateX(-24px); transition: opacity .55s ease,transform .55s ease; }
  .reveal-right { opacity:0; transform:translateX(24px);  transition: opacity .55s ease,transform .55s ease; }
  .reveal-left.visible, .reveal-right.visible { opacity:1; transform:translateX(0); }
  .reveal-delay-1 { transition-delay: .1s; }
  .reveal-delay-2 { transition-delay: .2s; }
  .reveal-delay-3 { transition-delay: .3s; }
  .reveal-delay-4 { transition-delay: .4s; }
}

/* ============================================================
   FLOATING PHONE BUTTON (mobile)
   ============================================================ */
.float-phone {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  background: var(--accent);
  color: #1a1a2e;
  border-radius: 50px;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(232,96,10,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-phone:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(232,96,10,.5); color: #1a1a2e; }
@media (min-width: 900px) { .float-phone { display: none; } }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-green   { color: var(--green); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.fw-bold { font-weight: 700; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ============================================================
   LOGO IMAGE
   ============================================================ */
.logo-img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ============================================================
   SERVICE CARDS AVEC PHOTO
   ============================================================ */
.service-card {
  padding: 0 !important; /* override l'ancien padding */
}
.service-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.service-card:hover .service-card-img img {
  transform: scale(1.06);
}
/* label coloré en haut de la photo */
.service-card-label {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(10,61,98,.82);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}
.service-card-body h3 { font-size: 1.1rem; }
.service-card-body p  { color: var(--text-medium); font-size: .9rem; flex: 1; }

/* ============================================================
   WHY-VISUAL — PHOTO RÉELLE
   ============================================================ */
.why-visual {
  background: none !important; /* écrase le gradient précédent */
}
.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}
.why-visual:hover img { transform: scale(1.03); }

.why-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(6,40,72,.75), transparent);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  pointer-events: none;
}
.why-visual-caption svg { margin-right: .35rem; vertical-align: middle; }

/* ============================================================
   HERO — FOND PHOTO
   ============================================================ */
.hero {
  background-size: cover !important;
  background-position: center !important;
}

/* ============================================================
   PAGE HERO — FOND PHOTO PAGES INTERNES
   ============================================================ */
.page-hero {
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll;
}

/* ============================================================
   SECTION RÉALISATIONS / GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,61,98,.0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background .3s ease;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(10,61,98,.55);
}
.gallery-item-label {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION CHIFFRES CLÉS — BANDE DARK AMÉLIORÉE
   ============================================================ */
.stats-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0e5487 100%);
  padding: 3rem 0;
  color: #fff;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .stats-band .container { grid-template-columns: repeat(4, 1fr); }
}
.stats-band-item {}
.stats-band-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #7dd3fc;
  line-height: 1;
  margin-bottom: .35rem;
}
.stats-band-label {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}

/* ============================================================
   CARDS SERVICES — POLISH VISUEL GÉNÉRAL
   ============================================================ */
.services-grid {
  /* override pour cartes avec image */
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   SECTION-HEADER — LIGNE DÉCORATIVE
   ============================================================ */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .85rem auto 0;
}
.section-header.left-align { text-align: left; }
.section-header.left-align h2::after { margin-left: 0; }

/* ============================================================
   TÉMOIGNAGES — QUOTE ICON
   ============================================================ */
.temoignage-card {
  position: relative;
}
.temoignage-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--bg-alt);
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   FOOTER — LOGO IMAGE (version dark)
   ============================================================ */
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  /* légère teinte si logo sur fond clair */
  filter: brightness(1.1) contrast(1);
}

/* ============================================================
   CANVAS PARTICULES HERO
   ============================================================ */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* Le contenu hero passe au-dessus des particules */
.hero > .container { position: relative; z-index: 1; }
.hero-wave          { position: absolute; z-index: 1; }

/* ============================================================
   ANIMATIONS D'ENTRÉE HERO
   ============================================================ */
@keyframes edb-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes edb-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes edb-scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content .badge      { animation: edb-fadeUp  .55s ease both; animation-delay: .15s; }
  .hero-content h1           { animation: edb-fadeUp  .65s ease both; animation-delay: .28s; }
  .hero-content > p          { animation: edb-fadeUp  .65s ease both; animation-delay: .42s; }
  .hero-btns                 { animation: edb-fadeUp  .65s ease both; animation-delay: .55s; }
  .hero-trust                { animation: edb-fadeIn  .8s  ease both; animation-delay: .72s; }
  .hero-card                 { animation: edb-scaleIn .75s ease both; animation-delay: .4s;  }
}

/* ============================================================
   PULSE SUR LE BOUTON PRINCIPAL (CTA accent)
   ============================================================ */
@keyframes edb-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,96,10,.45); }
  55%      { box-shadow: 0 0 0 10px rgba(232,96,10,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn-accent-pulse { animation: edb-pulse 2.4s ease-in-out infinite; }
}

/* ============================================================
   SCROLL REVEAL — transitions plus fluides
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  }
  .reveal.visible          { opacity: 1; transform: translateY(0); }
  .reveal-left             { opacity: 0; transform: translateX(-28px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .reveal-right            { opacity: 0; transform: translateX(28px);  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .reveal-left.visible,
  .reveal-right.visible    { opacity: 1; transform: translate(0); }
  .reveal-delay-1 { transition-delay: .08s; }
  .reveal-delay-2 { transition-delay: .16s; }
  .reveal-delay-3 { transition-delay: .24s; }
  .reveal-delay-4 { transition-delay: .32s; }
}

/* ============================================================
   MICRO-INTERACTIONS BOUTONS — lift + glow
   ============================================================ */
.btn {
  transition: background var(--transition), color var(--transition),
              border-color var(--transition),
              transform .18s cubic-bezier(.34,1.56,.64,1),
              box-shadow .18s ease;
}
.btn:hover  { transform: translateY(-3px) scale(1.015); }
.btn:active { transform: translateY(0)    scale(.98);   }

/* ============================================================
   SERVICE CARD — hover lift amélioré
   ============================================================ */
.service-card {
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,61,98,.18);
  border-color: var(--primary-light);
}

/* ============================================================
   HEADER scroll — ombre renforcée après scroll
   (JS ajoute .scrolled)
   ============================================================ */
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* ============================================================
   FOCUS VISIBLE — adapté au header sombre
   ============================================================ */
.site-header :focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

/* ============================================================
   LOGO IMAGE — hover effet
   ============================================================ */
.logo { transition: opacity var(--transition); }
.logo:hover { opacity: .88; }

/* ============================================================
   BADGE — animation subtle sur hero
   ============================================================ */
@keyframes edb-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.hero-content .badge {
  background: linear-gradient(90deg,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.22) 40%,
    rgba(255,255,255,.12) 100%);
  background-size: 200% auto;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content .badge {
    animation: edb-fadeUp .55s ease both .15s,
               edb-shimmer 3s linear 1.2s infinite;
  }
}

/* ============================================================
   BANDEAU COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9100;
  background: #1a1a2e;
  border-top: 2px solid var(--accent);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 -4px 32px rgba(0,0,0,.3);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.5rem;
  align-items: center;
}
.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  color: rgba(255,255,255,.82);
  font-size: .84rem;
  line-height: 1.6;
}
.cookie-banner-text strong { color: #fff; }
.cookie-banner-text a { color: #7dd3fc; text-underline-offset: 2px; }
.cookie-banner-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .18s;
  white-space: nowrap;
}
.cookie-btn-accept:hover { filter: brightness(1.1); }
.cookie-btn-refuse {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.3);
  padding: .55rem 1rem;
  border-radius: var(--radius);
  font-size: .84rem;
  cursor: pointer;
  transition: border-color .18s, color .18s;
  white-space: nowrap;
}
.cookie-btn-refuse:hover { border-color: rgba(255,255,255,.65); color: #fff; }
.cookie-btn-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
  transition: color .18s;
  margin-left: .25rem;
  flex-shrink: 0;
}
.cookie-btn-close:hover { color: #fff; }
@media (max-width: 480px) {
  .cookie-banner { padding: 1rem; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}


