:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #142033;
  --muted: #5a6b7d;
  --border: rgba(16, 24, 40, 0.12);
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);

  --primary: #0b5ed7;
  --primary-2: #084298;

  --warning-bg: #fff7e6;
  --warning-border: #ffd58a;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(11, 94, 215, 0.1);
  font-size: 22px;
}
.brand-title {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

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

/* Bandeaux haut */
.top-bandeaux {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.bandeaux-slider {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 16px;
  position: relative;
  height: 78px; /* ajuste si vos images sont plus hautes */
  border-radius: var(--radius-sm);
}

.bandeaux-slider .slide {
  position: absolute;
  inset: 10px 16px; /* respecte le padding visuel */
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bandeaux-slider .slide.is-active {
  opacity: 1;
}

.bandeaux-slider img {
  height: 70px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

/* Empêche les slides non actives de capter les clics */
.bandeaux-slider .slide {
  pointer-events: none;
}

.bandeaux-slider .slide.is-active {
  pointer-events: auto;
  z-index: 2;
}

.bandeaux-slider .slide a {
  display: inline-block;
}

/* Bande défilante */
.site-notice {
  background: rgba(11, 94, 215, 0.06);
  border-top: 1px solid rgba(11, 94, 215, 0.18);
  border-bottom: 1px solid rgba(11, 94, 215, 0.18);
}
.notice-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.notice-label {
  font-weight: 800;
  color: var(--primary-2);
  background: rgba(11, 94, 215, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 94, 215, 0.18);
}
.notice-marquee {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.notice-marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
  color: #123;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Layout */
.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 320px;
}

/* Alerte */
.alert {
  border-radius: var(--radius);
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  padding: 14px;
  margin-bottom: 16px;
}
.alert-title {
  font-weight: 900;
  margin-bottom: 10px;
}
.alert-img {
  width: 100%;
  height: auto;
  max-width: 720px;
  display: block;
}

/* Contenu CMS */
.page-content img {
  max-width: 100%;
  height: auto;
}
.page-content p {
  line-height: 1.65;
}
.page-content h1,
.page-content h2,
.page-content h3 {
  line-height: 1.2;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 16px;
}

/* -----------------------------
   Menu gauche (menugauche.php)
------------------------------*/
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.side-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.side-link:hover {
  background: rgba(11, 94, 215, 0.08);
  border-color: rgba(11, 94, 215, 0.18);
  transform: translateY(-1px);
}

.side-link:focus {
  outline: 3px solid rgba(11, 94, 215, 0.25);
  outline-offset: 2px;
}

.side-widgets {
  margin-top: 14px;
}

.widget-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  margin-bottom: 12px;
}

.widget-title {
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text);
}

/* Le widget Facebook peut déborder : on force l’adaptation */
.fb-page,
.fb-page span,
.fb-page iframe {
  width: 100% !important;
}

/* -----------------------------
   Footer (footer.php)
------------------------------*/
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-brand {
  color: var(--text);
  margin-bottom: 6px;
}

.footer-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Bouton contact – entête */
.btn-contact {
  cursor: default;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.btn-contact:hover {
  transform: none; /* pas d'effet lien */
}

.btn-title {
  font-size: 15px;
  font-weight: 800;
}

.btn-phone {
  font-size: 18px;
  font-weight: 900;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* -----------------------------
   Formulaire Nous joindre
------------------------------*/
.contact-form {
  margin-top: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 800;
  color: var(--text);
}

.req {
  color: #b42318;
  font-weight: 900;
  margin-right: 4px;
}

.input,
.textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.textarea {
  min-height: 180px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(11, 94, 215, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.15);
}

.help {
  font-size: 13px;
  color: var(--muted);
}

.form-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.side-link-highlight {
  font-weight: 700;
  color: #005aa7;
}

.widget-newsletter {
  border-left: 4px solid #005aa7;
  background: #f4f8fc;
}

.widget-newsletter .btn {
  margin-top: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 900;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.nav-toggle:focus {
  outline: 3px solid rgba(11, 94, 215, 0.25);
  outline-offset: 2px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 900;
}
