/* Styles partagés entre toutes les pages (accueil + pages légales) */

:root {
  --navy: #0c2340;
  --navy-light: #14315c;
  --green: #2e7d5b;
  --green-dark: #24634a;
  --red: #b3402e;
  --grey-bg: #f5f6f7;
  --text-dark: #1a1a1a;
  --text-muted: #4a5568;
  --white: #ffffff;
  --border: #e2e4e8;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("google-sans-flex.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 900px) {
  .wrap { padding: 0 80px; }
}

/* Bouton */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
  text-align: center;
  font-family: inherit;
}

.btn:hover, .btn:focus-visible {
  background: var(--green-dark);
  color: var(--white);
}

.btn:focus-visible {
  outline: 3px solid #a8d5c2;
  outline-offset: 2px;
}

/* Nav / en-tête (identique sur toutes les pages) */
.site-nav { }

.site-brand {
  gap: 10px;
  text-decoration: none;
}

.site-brand img {
  height: 32px;
  width: 32px;
}

.site-brand span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.site-nav-links {
  display: none;
  gap: 28px;
}

.site-nav-links a {
  color: #cdd6e3;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav-links a:hover { color: var(--white); }

/* Le CTA de la nav est un <a> : on rétablit le blanc, sinon
   `.site-nav-links a` (plus spécifique que `.btn`) le repasse en gris. */
.site-nav-links .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}

.site-nav-links .btn:hover,
.site-nav-links .btn:focus-visible {
  color: var(--white);
}

.site-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 900px) {
  .site-nav-links { display: flex; align-items: center; }
  .site-nav-toggle { display: none; }
}

.site-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 22, 0.55);
  z-index: 1099;
  display: none;
}

.site-drawer-overlay.open { display: block; }

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 86vw;
  background: var(--navy);
  z-index: 1100;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.site-drawer.open { transform: translateX(0); }

.site-drawer-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.site-drawer a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 4px;
  display: block;
}

/* Le libellé du CTA passait sur deux lignes dans la largeur du tiroir */
.site-drawer .btn {
  margin-top: 8px;
  padding: 14px 16px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn-block {
  width: 100%;
}

@media (min-width: 480px) {
  .btn-block { width: auto; }
}

/* FOOTER (commun à toutes les pages) */
.site-footer { background: var(--grey-bg); margin-top: 48px; padding-top: 48px; }

.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.footer-brand .site-brand { margin-bottom: 12px; text-decoration: none; }
.footer-brand .site-brand img { filter: invert(1); }
.footer-brand .site-brand span { color: var(--navy); }

.footer-tagline { font-size: 0.88rem; margin-bottom: 16px; max-width: 32ch; }

.footer-phone-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.footer-phone-box:hover { background: var(--navy-light); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h3 { font-size: 0.82rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

.footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.92rem; text-decoration: none; }

.footer-col a:hover { color: var(--navy); text-decoration: underline; }

.footer-bottom { padding: 20px 0; font-size: 0.8rem; color: var(--text-muted); }

.footer-bottom .wrap { display: flex; flex-direction: column; gap: 8px; }

@media (min-width: 720px) {
  .footer-bottom .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-disclaimer-small { white-space: nowrap; max-width: none; }
}

.footer-disclaimer-small { font-style: italic; font-size: 0.72rem; color: var(--text-muted); max-width: 60ch; margin: 0; }
