@font-face {
  font-family: 'Styrene A Web Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('StyreneAWeb-Regular'), local('Styrene A Web Regular'), url('fonts/StyreneAWeb-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Styrene A Web Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('StyreneAWeb-Black'), local('Styrene A Web Black'), url('fonts/StyreneAWeb-Black.otf') format('opentype');
}

@font-face {
  font-family: 'Styrene A Web Light';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('StyreneAWeb-Light'), local('Styrene A Web Light'), url('fonts/StyreneAWeb-Light.otf') format('opentype');
}

@font-face {
  font-family: 'Styrene A Web Bold';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('StyreneAWeb-Bold'), local('Styrene A Web Bold'), url('fonts/StyreneAWeb-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Styrene A Web Medium';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('StyreneAWeb-Medium'), local('Styrene A Web Medium'), url('fonts/StyreneAWeb-Medium.otf') format('opentype');
}

:root {
  --blue: #33acf5;
  --blue-soft: #39a8e0;
  --blue-mid: #015c8d;
  --blue-dark: #013a5d;
  --blue-pale: #def4ff;
  --gold: #e8a525;
  --gold-tile: #d9a560;
  --grey-tile: #a6a6a6;
  --white: #ffffff;
  --text: #212529;
  --f-regular: 'Styrene A Web Regular', 'Segoe UI', Roboto, Arial, sans-serif;
  --f-light: 'Styrene A Web Light', 'Segoe UI', Roboto, Arial, sans-serif;
  --f-medium: 'Styrene A Web Medium', 'Segoe UI', Roboto, Arial, sans-serif;
  --f-bold: 'Styrene A Web Bold', 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-regular);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, strong, b { font-weight: 400; }

a { color: var(--blue-mid); }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Barre du haut */
.topbar { background: var(--white); font-size: 13px; }
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
}
.topbar nav a {
  margin-right: 16px;
  text-decoration: none;
  font-family: var(--f-light);
  color: #809cae;
}
.topbar nav a:hover { color: var(--blue-mid); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .phone { color: #d09040; text-decoration: none; font-family: var(--f-light); white-space: nowrap; }

.socials { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: 14px;
  color: var(--white);
  background: var(--blue-soft);
  border-radius: 50%;
  transition: background 0.2s;
}
.socials a:hover { background: var(--gold); }
.socials b { font: 700 12px/1 Arial, sans-serif; }

/* En-tête */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { display: block; width: 100%; max-width: 380px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.main-nav a {
  font-family: var(--f-light);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--blue-dark);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav a.accent { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px 10px;
  background: var(--white);
  border: 1px solid var(--blue);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--blue-dark);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Bandeau */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0;
  background: linear-gradient(120deg, var(--blue-pale) 0%, #bfe4fa 55%, #86c8f0 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.hero .container { position: relative; z-index: 1; }
.hero-label {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 24px;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-family: var(--f-medium);
  line-height: 1.15;
  color: var(--white);
  background: #4a9edb;
}
.hero-lead {
  max-width: 640px;
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-family: var(--f-medium);
  line-height: 1.4;
  color: var(--blue-dark);
}
.hero-sub {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-family: var(--f-light);
  color: var(--blue-dark);
}

/* Pastille de rendez-vous */
.rdv-bubble {
  position: fixed;
  top: 150px;
  right: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 12px;
  font-size: 14px;
  font-family: var(--f-medium);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--white);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.rdv-bubble:hover { transform: scale(1.05); }
.hero-cta { display: none; margin-top: 24px; }

/* Tuiles */
.tiles { padding: 56px 0; background: var(--white); }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--white);
}
.tile.blue { background: var(--blue); }
.tile.gold { background: var(--gold-tile); }
.tile.grey { background: var(--grey-tile); }
.tile:hover { filter: brightness(0.94); }
.tile .icon { flex: none; font-size: 56px; }
.tile small {
  display: block;
  font-size: 15px;
  font-family: var(--f-light);
}
.tile strong {
  display: block;
  font-size: 1.2rem;
  font-family: var(--f-medium);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Bandeau d'appel */
.footer-cta { padding: 32px 0; color: var(--white); background: var(--blue-mid); }
.footer-cta .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.footer-cta h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-family: var(--f-medium);
  text-align: center;
}
.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
}
.btn-light { color: var(--blue-mid); background: var(--blue-pale); }
.btn-light:hover { background: var(--white); }
.btn-gold { color: var(--white); background: var(--gold); }
.btn-gold:hover { filter: brightness(0.94); }
.btn-pale { color: var(--blue-mid); background: #f4fbff; }
.btn-pale:hover { background: var(--white); }

/* Pied de page */
.main-foot { padding: 48px 0 40px; color: var(--blue-mid); background: var(--blue-pale); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 40px;
}
.main-foot h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-family: var(--f-bold);
  color: var(--blue-mid);
}
.main-foot p { margin: 0 0 12px; font-size: 14px; font-family: var(--f-light); line-height: 1.9; }
.foot-contacts { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot-contacts li { display: flex; gap: 14px; margin-bottom: 14px; line-height: 1.5; }
.foot-contacts .icon { flex: none; font-size: 26px; color: var(--blue-soft); }
.foot-contacts a { text-decoration: none; }
.foot-contacts a:hover { text-decoration: underline; }
.foot-actions .btn { display: block; width: 100%; margin-bottom: 12px; }
.consult { display: flex; gap: 12px; margin-top: 24px; font-size: 14px; line-height: 1.5; }
.consult .icon { flex: none; font-size: 26px; color: var(--blue-soft); }
.consult strong { display: block; font-family: var(--f-bold); text-transform: uppercase; }

.footer-bottom { padding: 12px 0; font-size: 14px; color: var(--white); background: #38a8e0; }
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom .socials a { color: var(--blue-soft); background: var(--white); }
.footer-bottom .socials a:hover { color: var(--white); background: var(--gold); }

/* Page rendez-vous */
.page-title { padding: 28px 0; background: linear-gradient(120deg, var(--blue-pale), #bfe4fa); }
.page-title h1 {
  display: inline-block;
  margin: 0;
  padding: 6px 22px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-family: var(--f-medium);
  color: var(--white);
  background: #4a9edb;
}
.rdv-section { padding: 32px 0 48px; }
.container-wide { max-width: none; padding: 0 clamp(12px, 3vw, 48px); }
.rdv-frame {
  display: block;
  width: 100%;
  height: 90vh;
  min-height: 620px;
  border: 0;
  background: var(--white);
}
.fallback { margin: 16px 0 0; font-size: 15px; text-align: center; }

@media (max-width: 991px) {
  .tiles-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .nav-toggle { display: block; }
  .logo { flex: 1 1 0; min-width: 0; max-width: 340px; }
  .nav-toggle { flex: none; }
  .main-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e5e5e5;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid #f0f0f0; }
}

@media (max-width: 767px) {
  .topbar nav { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-right { flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  .rdv-bubble { display: none; }
  .hero-cta { display: inline-block; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .tiles { padding: 32px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rdv-bubble, .socials a, .nav-toggle .bar { transition: none; }
}
