/* ═══════════════════════════════════════════════════════════
   GARAGE A.P.C.S — style.css
   HTML5 / CSS3 statique · sans framework
═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   VARIABLES CSS
   Modifiez ici pour changer toute la charte graphique
────────────────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --red:          #D42B2B;
  --red-dark:     #A81E1E;
  --dark:         #1A1A1A;
  --dark2:        #1E1C1A;
  --anthracite:   #2D2D2D;
  --concrete:     #B0ADA8;
  --concrete-bg:  #C2BFB9;
  --steel:        #6B6763;
  --white:        #FFFFFF;

  /* Typographie */
  --font-display: 'Bebas Neue', cursive;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Hero — modifiez ces 2 valeurs pour ajuster le fond */
  --hero-opacity: 0.78;   /* 0 = image nette  · 1 = noir total  */
  --hero-blur:    0px;    /* 0px = net        · 4px = flou doux */

  /* Hero — image de fond
     Remplacez cette URL par votre propre photo */
  /* --hero-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1800&q=85'); */
}

/* ──────────────────────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px; /* Augmenté de 16px à 18px */
}

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background-color: var(--concrete-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { font-family: inherit; }

/* ──────────────────────────────────────────────────────────
   LAYOUT
────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-dark  { background-color: var(--dark2); }
.section-light { background-color: var(--concrete-bg); }

/* Cassure diagonale entre sections */
.diagonal-top {
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  margin-top: -2px;
}

/* ──────────────────────────────────────────────────────────
   TYPOGRAPHIE & LABELS
────────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-cond);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  line-height: .95;
}

.red-bar {
  width: 4rem;
  height: 4px;
  background: var(--red);
  margin: 1rem auto 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ──────────────────────────────────────────────────────────
   BOUTONS
────────────────────────────────────────────────────────── */
.btn-red {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border: 2px solid var(--red);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: background .25s, color .25s, transform .2s;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.btn-red:hover {
  background: transparent;
  color: var(--red);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border: 2px solid rgba(255,255,255,.45);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: border-color .25s, background .25s;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ──────────────────────────────────────────────────────────
   SCROLL REVEAL
────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ──────────────────────────────────────────────────────────
   SCROLLBAR
────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .3s, box-shadow .3s;
}

#navbar.scrolled {
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-badge {
  width: 40px;
  height: 40px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-badge span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .05em;
}

.nav-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.3rem;
  letter-spacing: .2em;
  line-height: 1;
}
.nav-sub {
  font-family: var(--font-cond);
  color: var(--concrete);
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--concrete);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

/* Burger */
#burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .4rem;
  line-height: 1;
}

/* Menu mobile */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
  background: var(--dark2);
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

.mobile-inner {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-link {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 1rem;
  color: var(--concrete);
  transition: color .2s;
}
.mobile-link:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════
   HERO — 3 couches
   ┌─────────────────────┐
   │  .hero-bg  (image)  │  z-index: 0  flou optionnel
   │  .hero-veil (noir)  │  z-index: 1  opacité via --hero-opacity
   │  .hero-body (texte) │  z-index: 2  toujours net
   └─────────────────────┘
══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

/* ── RÉGLAGES DE L'IMAGE DE FOND (HERO-BG) ── */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 1. TON IMAGE */
  background-image: url('image/logo.jpg'); 
  background-repeat: no-repeat;
  background-position: center;

  /* 2. TAILLE DE L'IMAGE : 
     - 'cover' pour remplir tout l'espace
     - 'contain' pour voir le logo en entier
     - Ou un pourcentage (ex: 50%) pour le réduire */
  background-size: 80%; 

  /* 3. RÉGLAGE DU FLOU : 0px (net) à 20px (très flou) */
  filter: blur(25px); 

  z-index: 1;
}

/* ── RÉGLAGE DE L'OPACITÉ (VOILE NOIR) ── */
.hero-veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  
  /* 4. OPACITÉ : 0 (transparent) à 1 (noir total) */
  opacity: 0.5; 
  
  z-index: 2;
}

/* Barre rouge gauche */
.hero-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  z-index: 3;
}

/* Couche 3 — contenu */
.hero-body {
  position: relative;
  z-index: 3;
  text-align: center;
}
.hero-loc {
  font-family: var(--font-cond);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: .95;
  font-size: clamp(3.5rem, 10vw, 8rem);
}

.hero-h2 {
  font-family: var(--font-display);
  color: var(--red);
  line-height: .95;
  font-size: clamp(3.5rem, 10vw, 8rem);
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: #FFFFFF;
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-desc strong { color: #FFFFFF;}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.12);
}
.stat-n {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 2.4rem;
  line-height: 1;
}
.stat-l {
  font-family: var(--font-cond);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .7rem;
}

/* Flèche scroll */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  z-index: 2;
  font-size: .95rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
#services { padding: 6rem 1.5rem 5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.srv-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.srv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.srv-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,43,43,.45);
  box-shadow: 0 14px 44px rgba(212,43,43,.14);
}
.srv-card:hover::after { transform: scaleX(1); }

.srv-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(212,43,43,.15);
  border: 1px solid rgba(212,43,43,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.srv-icon i { color: var(--red); font-size: 1.3rem; }

.srv-name {
  font-family: var(--font-cond);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.srv-desc { color: var(--concrete); font-size: .84rem; line-height: 1.65; }

.srv-cta { text-align: center; }
.srv-cta p {
  font-family: var(--font-cond);
  color: var(--concrete);
  letter-spacing: .1em;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════
   GALERIE — aperçu 5 photos sur une ligne
══════════════════════════════════════════════════════════ */
#galerie { padding: 6rem 1.5rem 5rem; }

.gal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.gal-note {
  font-size: .9rem;
  color: var(--steel);
  text-align: right;
  line-height: 1.8;
}

/* Grille aperçu : 5 photos égales sur une ligne */
.gal-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px; /* Un peu plus serré pour un look pro */
  margin-bottom: 2.5rem;
}

/* Élément galerie commun */
.gal-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--dark);
  /* On passe en 1/1 (carré) ou 4/5 pour que ce soit moins haut sur l'écran */
  aspect-ratio: 1 / 1; 
  border-radius: 2px; /* Très léger arrondi pour la finition */
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}
.gal-item:hover img { transform: scale(1.07); }

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-tag, .gal-name {
  transform: translateY(10px);
  transition: transform 0.4s ease;
}


/* CTA vers galerie.html */
.gal-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(26,26,26,.06);
}
.gal-cta-txt {
  font-family: var(--font-cond);
  color: var(--steel);
  font-size: 1rem;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-item:hover .gal-tag, 
.gal-item:hover .gal-name { transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   HORAIRES & CARTE
══════════════════════════════════════════════════════════ */
#infos { padding: 6rem 1.5rem 5rem; }

.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Carte horaires */
.hours-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 2rem;
}

.hours-title {
  font-family: var(--font-cond);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hours-ico {
  width: 2rem;
  height: 2rem;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hours-ico i { color: var(--white); font-size: .75rem; }

.h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.h-row:last-child { border-bottom: none; }

.h-day {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--concrete);
}
.h-day.today  { color: var(--red); font-weight: 700; }

.h-time {
  font-family: var(--font-cond);
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}
.h-time.today    { color: var(--white); font-weight: 700; }
.h-time.is-closed { color: var(--steel); }

.rdv-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(212,43,43,.4);
  background: rgba(212,43,43,.1);
}
.rdv-box p {
  font-family: var(--font-cond);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
}

.contact-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.c-row { display: flex; align-items: flex-start; gap: .75rem; }
.c-row i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.c-row span { color: var(--concrete); font-size: .95rem; }
.c-row a {
  font-family: var(--font-cond);
  color: var(--white);
  font-size: 1.35rem;
  letter-spacing: .15em;
  transition: color .2s;
}
.c-row a:hover { color: var(--red); }

/* Carte Google Maps */
.map-frame {
  border: 2px solid rgba(255,255,255,.1);
  overflow: hidden;
  height: 420px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(.3) contrast(1.05);
}
.map-btns {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
}
.map-btns a { flex: 1; justify-content: center; font-size: .9rem; padding: .75rem 1rem; }

/* ══════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }

#lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,.8);
  display: block;
}

#lb-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}
#lb-close:hover { background: var(--red-dark); }

#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 52px; height: 52px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}
#lb-prev { left: 1rem; }
#lb-next { right: 1rem; }
#lb-prev:hover,
#lb-next:hover { background: var(--red); }

#lb-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-cond);
  font-weight: 600;
  color: var(--white);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .85rem;
  white-space: nowrap;
  max-width: 88vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

#lb-counter {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  font-family: var(--font-cond);
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  letter-spacing: .15em;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 2.5rem 1.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-legal {
  text-align: center;
  font-size: .82rem;
  color: #AFAFAF;
  line-height: 1.6;
}
.footer-sub { opacity: .5; font-size: .72rem; margin-top: .2rem; }

.footer-right { display: flex; align-items: center; gap: 1rem; }

.footer-phone {
  color: var(--steel);
  font-size: 1.1rem;
  transition: color .2s;
}
.footer-phone:hover { color: var(--red); }

.footer-top {
  width: 2rem; height: 2rem;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: .7rem;
  transition: all .2s;
}
.footer-top:hover { border-color: var(--red); color: var(--red); }

.by-oxi {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--steel); /* Le texte "Site créé par" reste discret */
}

.oxi-link {
  color: var(--red) !important; /* Ton lien en ROUGE garage */
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.oxi-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Tablette (≤ 1024px) */
@media (max-width: 1024px) {
  .gal-preview {
    grid-template-columns: repeat(3, 1fr); /* 3 sur la première ligne, 2 sur la deuxième */
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .gal-preview {
    grid-template-columns: repeat(2, 1fr); /* Grille de 2x2 */
    gap: 8px;
  }

  /* On cache la 5ème photo sur mobile pour avoir un carré parfait de 4 photos */
  .gal-item:nth-child(5) {
    display: none;
  }
}
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  /* Ajout d'une bordure fine pour détacher l'image du noir */
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  #burger    { display: block; }

  /* Horaires & Carte */
  .infos-grid { grid-template-columns: 1fr; }
  .map-frame  { height: 280px; }

  /* Galerie : 2 colonnes */
  .gal-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-preview .gal-item:nth-child(n+4) {
    display: block; /* Toutes visibles en mobile */
  }
  .gal-preview .gal-item:nth-child(5) {
    display: none; /* Masque la 5ème si on veut garder 4 en mobile */
  }

  .gal-note { display: none; }

  /* Lightbox nav */
  #lb-prev { left: .25rem; }
  #lb-next { right: .25rem; }

  /* Header galerie page */
  .gal-page-header-inner { flex-direction: column; }
}

/* Petit mobile (≤ 520px) */
@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; }
  .btn-red, .btn-ghost { justify-content: center; }
  .map-btns { flex-direction: column; }
  .map-btns a { flex: none; width: 100%; }
}
