/* ---------- Polices auto-hebergees (plus de dependance a Google Fonts) ---------- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-pro-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-sans-pro-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/source-sans-pro-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/archivo-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-700.ttf') format('truetype');
}

/* ---------- Design tokens (repris de l'identite visuelle existante) ---------- */
:root {
  --primary: #21C2F5;
  --primary-dark: #0f9fce;
  --secondary: #DA539F;
  --dark: #323232;
  --light: #ffffff;
  --gray-bg: #f6f8fa;
  --border: #e5e7eb;
  --font-heading: 'Archivo', Arial, sans-serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
  --radius: 0.75rem;
  --shadow: 0 4px 20px rgba(50, 50, 50, 0.08);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  background: var(--light);
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--alt { background: var(--gray-bg); }
.section--dark { background: var(--dark); color: var(--light); }
.text-center { text-align: center; }
.eyebrow {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}
.lead { font-size: 1.15rem; color: #555; max-width: 62ch; }
.lead--center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--primary); color: var(--light); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { background: transparent; border-color: var(--light); color: var(--light); }
.btn--outline:hover { background: var(--light); color: var(--dark); }
.btn--dark { background: var(--dark); color: var(--light); }
.btn--dark:hover { background: #1a1a1a; }
.btn--secondary { background: var(--secondary); color: var(--light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--light);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--light);
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; border-radius: 8px; }

.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }

.has-dropdown { position: relative; }
.has-dropdown > button {
  background: none;
  border: none;
  color: var(--light);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}
.has-dropdown > button:hover { color: var(--primary); }
.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--light);
  color: var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 260px;
  display: none;
  margin-top: 0.75rem;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--gray-bg); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--light);
}
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle {
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--dark);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 90;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__inner { padding: 1.5rem; }
.mobile-nav ul { list-style: none; }
.mobile-nav > .mobile-nav__inner > ul > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a, .mobile-nav summary {
  display: block;
  padding: 1rem 0.25rem;
  color: var(--light);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}
.mobile-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub-list { padding-left: 1rem; }
.mobile-nav .sub-list a { font-weight: 400; padding: 0.7rem 0.25rem; }
.mobile-nav__phone { margin-top: 1.5rem; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .header-phone { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--light);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  min-height: 60vh;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 50, 0.72);
}
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero--page { min-height: 38vh; padding: 3rem 0; }
.hero--page .container { max-width: 900px; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 2rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.card--icon { text-align: left; }
.card--icon .card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--light);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card--icon .card__icon svg { width: 24px; height: 24px; }

.product-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; height: 190px; object-fit: cover; background: var(--gray-bg); }
.product-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card__body .btn { margin-top: auto; align-self: flex-start; }

.item-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
}
.item-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 0.5rem; flex-shrink: 0; background: var(--gray-bg); }
.item-card__label { font-weight: 700; }

.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.reverse > :first-child { order: 2; }
}

.value-card { text-align: center; }
.value-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--light);
  display: flex; align-items: center; justify-content: center;
}
.value-card__icon svg { width: 26px; height: 26px; }

.testimonial {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border-left: 4px solid var(--primary);
}
.testimonial p { font-style: italic; color: #444; }
.testimonial__stars { color: var(--secondary); margin-bottom: 0.5rem; letter-spacing: 2px; }

.news-card { background: var(--light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-card img { width: 100%; height: 170px; object-fit: cover; background: var(--gray-bg); }
.news-card__body { padding: 1.5rem; }
.news-card__date { color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  align-items: center;
  color: #666;
  font-weight: 600;
}

.cta-banner {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--light);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-banner h2 { color: var(--light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}
.breadcrumb a { text-decoration: underline; }
.breadcrumb a:hover { color: var(--light); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 194, 245, 0.2);
}
.contact-info-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-info-card__row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.contact-info-card__row svg { width: 20px; height: 20px; color: var(--primary-dark); flex-shrink: 0; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--border); }
.hours-row:last-child { border-bottom: none; }
.form-note { font-size: 0.85rem; color: #777; margin-top: 0.5rem; }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 2.5rem; }
.legal-content h3 { margin-top: 1.75rem; }
.legal-content ul { margin: 0 0 1rem 1.25rem; padding: 0; }
.legal-content li { margin-bottom: 0.4rem; list-style: disc; }
.legal-content { max-width: 820px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--secondary);
  color: var(--light);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.footer-grid h4 {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  color: var(--light);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 900px) { .footer-social { justify-content: flex-start; } }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 0.7; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--light);
  color: var(--dark);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }
