/* ============================================================
   style.css — Site vitrine Abrier / TRYBA
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Variables ── */
:root {
  --red:    #0057B8;
  --red-dk: #004A9E;
  --grey:   #f5f5f5;
  --grey2:  #ebebeb;
  --dark:   #1a1a1a;
  --text:   #444;
  --radius: 8px;
}

/* ── Utilitaires ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-dk); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 620px;
}
section { padding: 72px 0; }

/* ── HEADER ── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo span { color: var(--red); }
.logo-img { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav a {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--red); background: #eef4fb; }
.nav .btn { padding: 9px 20px; font-size: .88rem; color: #fff; }
.nav .btn:hover { background: var(--red-dk); color: #fff; }

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: .3s;
}
#nav-check { display: none; }

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(212,0,26,.15) 0%, transparent 60%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}
.hero-title span { color: var(--red); }
.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 34px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 600;
}
.hero-phone svg { width: 20px; height: 20px; }
.hero-aside {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 28px 32px;
  min-width: 240px;
  text-align: center;
}
.hero-aside .tryba-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.hero-aside .tryba-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.hero-aside .tryba-sub { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 6px; }
.hero-aside hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 16px 0; }
.hero-aside .hero-stat { font-size: .85rem; color: rgba(255,255,255,.7); }
.hero-aside .hero-stat strong { color: #fff; }

/* ── PRODUITS ── */
#produits { background: #fff; }
.produits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.produit-card {
  background: var(--grey);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
  border-left: 4px solid transparent;
}
.produit-card:hover {
  box-shadow: 0 8px 28px rgba(0,87,184,.12);
  transform: translateY(-3px);
  border-left-color: var(--red);
}
.produit-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}
.produit-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
.produit-card p { font-size: .88rem; color: var(--text); line-height: 1.5; }

/* ── CONFIANCE ── */
.confiance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.confiance-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.confiance-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(0,87,184,.25);
}
.confiance-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.confiance-item p { font-size: .83rem; color: var(--text); line-height: 1.55; margin: 0; }
@media (max-width: 767px) { .confiance-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ── AGENCES ── */
#agences { background: var(--grey); }
.agences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.agence-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-top: 4px solid var(--red);
}
.agence-card.siege { border-top-width: 5px; }
.agence-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.agence-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; color: var(--dark); }
.agence-info { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .88rem; color: var(--text); }
.agence-label {
  flex-shrink: 0;
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--red);
  background: #EEF4FB;
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 1px;
  line-height: 1.6;
  white-space: nowrap;
}
.agence-tel { font-size: 1.08rem; font-weight: 700; color: var(--red); margin-top: 16px; }

/* ── ZONE D'INTERVENTION ── */
#zone { background: #fff; }
.zone-text { font-size: 1rem; color: var(--text); margin-bottom: 28px; max-width: 720px; line-height: 1.7; }
.villes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.ville-tag {
  background: var(--grey);
  border: 1px solid var(--grey2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  transition: background .15s, color .15s;
}
.ville-tag:hover { background: var(--red); color: #fff; border-color: var(--red); }
.zone-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.zone-cta p { color: var(--text); font-size: .95rem; }
.zone-cta strong { color: var(--red); }

/* ── CONTACT ── */
#contact { background: var(--grey); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 10px; }
.contact-info .section-sub { margin-bottom: 28px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1rem;
}
.contact-item svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.contact-item a { color: var(--dark); font-weight: 600; }
.contact-item a:hover { color: var(--red); }
.contact-tel {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
}
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.contact-map iframe { display: block; }
.contact-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ── */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: .88rem; color: rgba(255,255,255,.65); }
.footer-col a:hover { color: var(--red); }
.footer-sep { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 20px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .produits-grid { grid-template-columns: repeat(2, 1fr); }
  .agences-grid  { grid-template-columns: 1fr; max-width: 480px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-aside    { display: none; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.9rem; }
  section { padding: 52px 0; }
  .section-title { font-size: 1.55rem; }
  .produits-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }

  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 16px 20px; box-shadow: 0 4px 12px rgba(0,0,0,.1); gap: 4px; }
  .menu-toggle { display: flex; }
  #nav-check:checked ~ nav .nav { display: flex; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 22px; font-size: .92rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
