/* ============================================================
   ÉMAUX DE BRIARE — CSS Global
   ============================================================ */

/* --- Variables --- */
:root {
  --bg-dark:       #02101D;
  --bg-dark-90:    rgba(2, 16, 29, 0.9);
  --bg-section-1:  linear-gradient(180deg, rgb(2, 1, 1) 0%, rgb(54, 89, 123) 100%);
  --bg-section-2:  linear-gradient(180deg, rgb(54, 89, 123) 0%, rgb(2, 1, 1) 100%);
  --color-white:   #FFFFFF;
  --color-red:     #C0392B;
  --color-red-hover: #e74c3c;
  --color-muted:   rgba(255,255,255,0.65);
  --font-display:  'Josefin Sans', sans-serif;
  --font-body:     'Mulish', sans-serif;
  --font-serif:    'Roboto Slab', serif;
  --max-width:     1140px;
  --header-h:      100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--color-white); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  background: var(--bg-dark-90);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}
.header-logo img {
  height: calc(var(--header-h) * 0.85);
  width: auto;
  object-fit: contain;
}
.header-logo a { display: flex; align-items: center; }

/* Navigation — centrée */
.header-nav {
  display: flex;
  justify-content: center;
}
.header-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav ul li a {
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  padding: 6px 10px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.header-nav ul li a:hover,
.header-nav ul li a.active {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  color: var(--color-white);
}

/* Lang switcher */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.header-lang {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.header-lang a img {
  width: calc(var(--header-h) * 0.55);
  height: auto;
  border-radius: 2px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header-lang a:hover img { opacity: 1; }

/* ============================================================
   SECTIONS / LAYOUT
   ============================================================ */
.section {
  padding: 60px 24px;
}
.section-gradient-1 { background: var(--bg-section-1); }
.section-gradient-2 { background: var(--bg-section-2); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Page title */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}
.section-title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-portrait { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   PAGES GAMME — COLORIS GRID
   ============================================================ */
.gamme-format-note {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-white);
}
.gamme-antiderapant-all {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-white);
  margin-bottom: 24px;
}
.gamme-legend {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 28px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.legend-green { color: #27ae60; }
.legend-red   { color: var(--color-red); }

/* Grille de coloris auto-fill */
.coloris-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--col-min, 110px), 1fr));
  gap: 16px 12px;
  margin-bottom: 32px;
  justify-items: center;
}
.coloris-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.coloris-item img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  transition: transform 0.2s;
}
.coloris-item img:hover { transform: scale(1.04); }
.coloris-link { display: block; }
.coloris-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.4;
  margin: 0;
}
.coloris-code {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-muted);
}
.coloris-sizes {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Slider */
.gamme-slider {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.slider-slide {
  flex: 0 0 100%;
}
.slider-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2,16,29,0.7);
  border: none;
  color: var(--color-white);
  font-size: 1.2rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  z-index: 2;
}
.slider-btn:hover { background: rgba(2,16,29,0.95); }
.slider-prev { left: 8px; }
.slider-next { right: 8px; }

/* Gamme content layout */
.gamme-content { max-width: 900px; }

/* Specs / usage list */
.gamme-specs {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Links */
.gamme-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gamme-links li a,
.gamme-links li span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-white);
  transition: color 0.2s;
}
.gamme-links li a:hover { color: var(--color-red); text-decoration: none; }
.gamme-links li a i,
.gamme-links li span i { width: 18px; text-align: center; color: var(--color-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg-dark-90);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 36px 24px;
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-socials a {
  color: var(--color-white);
  font-size: 1.3rem;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-socials a:hover { opacity: 1; transform: translateY(-2px); text-decoration: none; }
.footer-copy {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 12px;
}

/* ============================================================
   HAMBURGER MOBILE
   ============================================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .header-lang { display: flex; }
  .nav-toggle { display: flex; margin-left: 12px; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
  }
  .header-nav.open { display: block; }
  .header-nav ul { flex-direction: column; gap: 0; align-items: stretch; padding: 0 16px; }
  .header-nav ul li a { display: block; padding: 12px 16px; font-size: 0.9em; }
  .grid-2, .grid-3, .grid-4, .grid-portrait { grid-template-columns: 1fr; }
  .section { padding: 40px 16px; }
}

/* ============================================================
   COMPONENTS COMMUNS
   ============================================================ */

/* Boutons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-red-hover); text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* Tabs */
.tabs-wrapper { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 32px; }
.tab-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--color-white); }
.tab-btn.active { color: var(--color-red); border-bottom-color: var(--color-red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Cards produits */
.product-card { text-align: center; display: flex; flex-direction: column; }
.product-card a { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.product-card img { width: 100%; max-width: 300px; height: 200px; object-fit: cover; border-radius: 4px; margin: 0 auto 12px; transition: transform 0.3s; }
.product-card:hover img { transform: scale(1.02); }
.product-card .product-name { font-weight: 700; color: var(--color-white); font-size: 0.95rem; }
.product-card .product-desc { font-size: 0.8rem; color: var(--color-muted); margin-top: 4px; }
.product-card a:hover { text-decoration: none; }
/* Ratio imposé uniquement sur les pages gamme individuelles */
.product-card--gamme img { height: auto; aspect-ratio: 5/3; max-width: none; }

/* Contacts boxes */
.contact-box { text-align: center; }
.contact-box h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 6px;
}
.contact-box h3 { font-size: 1rem; font-weight: 700; color: var(--color-white); margin-bottom: 8px; }
.contact-box p, .contact-box a { font-size: 0.95rem; color: var(--color-white); line-height: 1.5; }
.contact-box ul { list-style: none; margin-top: 8px; }
.contact-box ul li { font-size: 0.9rem; color: var(--color-white); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; }
.contact-box ul li i { color: var(--color-white); font-size: 0.85rem; }

/* Formulaire contact */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--color-white); }
.form-group label .required { color: var(--color-red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}
.form-group select option { background: #0a1c2e; color: var(--color-white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 12px; }
.form-note span.req { color: var(--color-red); }

/* Groupe — image-box */
.partner-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.partner-card img { max-height: 80px; width: auto; opacity: 0.85; transition: opacity 0.2s; }
.partner-card:hover img { opacity: 1; }
.partner-card .partner-name { font-weight: 700; color: var(--color-white); font-size: 1rem; }
.partner-card .partner-tagline { font-weight: 700; font-size: 0.85rem; color: var(--color-white); margin-bottom: 4px; }
.partner-card .partner-desc { font-size: 0.85rem; color: var(--color-muted); }

/* Présentation */
.pres-text { font-size: 1rem; color: var(--color-white); line-height: 1.7; }
.pres-text p { margin-bottom: 16px; }
.pres-text a { color: var(--color-white); text-decoration: underline; }
.pres-images { display: flex; gap: 16px; flex-wrap: wrap; }
.pres-images img { flex: 1; min-width: 200px; border-radius: 4px; object-fit: cover; }

/* ── Icônes SVG inline (remplace Font Awesome) ───────────────────────────── */
.icon{width:1em;height:1em;display:inline-block;vertical-align:-0.125em;fill:currentColor;}
.footer-socials .icon{width:1.4rem;height:1.4rem;}
