/* ============================================================
   SAS Ets EDART — style.css v2
   Charte : rouge #FF0000 / blanc #FFFFFF / noir #111 / header #838C8B
   ============================================================ */

:root {
  --rouge:       #FF0000;
  --rouge-fonce: #CC0000;
  --noir:        #111111;
  --gris-header: #838C8B;
  --gris-nav:    #1a1a1a;
  --gris-fonce:  #222222;
  --gris-moyen:  #555555;
  --gris-clair:  #f2f2f2;
  --blanc:       #FFFFFF;
  --largeur:     1100px;
  --radius:      6px;
  --ombre:       0 4px 18px rgba(0,0,0,0.18);
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--noir);
  background-color: #777;
  background-image: url('/images/contenu/sli-texture-beton_01.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.2;
  color: var(--noir);
}
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; color: var(--rouge); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--rouge); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rouge-fonce); text-decoration: underline; }
strong { font-weight: 700; }

#wrapper {
  max-width: var(--largeur);
  margin: 0 auto;
  background: var(--blanc);
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

/* ============================================================ HEADER */
#header {
  background: var(--gris-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: var(--largeur);
  margin: 0 auto;
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1.5rem .3rem;
}

.header-logo img {
  height: 100px;
  width: auto;
  display: block;
  transition: height .3s ease;
}
#header.scrolled .header-logo img { height: 60px; }
#header.scrolled .header-top { padding: .3rem 1.5rem .2rem; }

.header-contact { text-align: right; line-height: 1.5; }
.header-contact .entreprise { font-size: .82rem; color: #ddd; font-weight: 600; }
.header-contact .adresse    { font-size: .75rem; color: #bbb; }
.header-contact .tel        { font-size: .95rem; font-weight: 700; color: var(--blanc); display: block; }
.header-contact a.tel:hover { color: #eee; text-decoration: none; }

.header-nav { background: var(--gris-nav); border-top: 2px solid var(--rouge); }

.header-nav ul {
  list-style: none;
  display: flex;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1rem;
}
.header-nav ul li { position: relative; }
.header-nav ul li a {
  display: block;
  padding: .6rem 1rem;
  color: #ccc;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.header-nav ul li a:hover { color: var(--blanc); text-decoration: none; }
.header-nav ul li a.active { color: var(--rouge); }

.header-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gris-fonce);
  min-width: 200px;
  z-index: 999;
  border-top: 2px solid var(--rouge);
  flex-direction: column;
}
.header-nav ul li:hover ul { display: flex; }
.header-nav ul li ul li a {
  padding: .5rem 1rem;
  font-size: .8rem;
  border-bottom: 1px solid #2a2a2a;
  color: #bbb;
}
.header-nav ul li ul li a:hover { background: var(--rouge); color: var(--blanc); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--blanc); margin: 5px 0; }

/* ============================================================ HERO */
.hero-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  clip-path: inset(0);
}
.hero-wrap > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Vague blanche en bas du hero — découpe la photo */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
}

.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; /* au-dessus de la vague */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  animation: fadeInUp .7s ease .2s forwards;
  pointer-events: none;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--rouge);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.7);
  margin-bottom: .3rem;
  line-height: 1.15;
}
.hero-text .hero-sub {
  color: var(--blanc);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  font-family: 'Oswald', Arial, sans-serif;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.95);
}

/* ============================================================ CTA */
.cta-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.cta-bar {
  background: var(--rouge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem 1.2rem;
  gap: 1rem;
}
.cta-bar p { color: var(--blanc); font-size: 1.05rem; font-weight: 800; margin: 0; }
.cta-bar em { font-style: italic; font-size: 1.1rem; }

.btn-devis {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #4a4a4a;
  color: var(--blanc);
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #666;
  transition: background var(--transition);
}
.btn-devis::before { content: '✉'; }
.btn-devis:hover { background: #333; color: var(--blanc); text-decoration: none; }

/* ============================================================ CONTENU */
#main { padding: 2.5rem 2rem; background: var(--blanc); }

.breadcrumb { font-size: .8rem; color: var(--gris-moyen); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--gris-moyen); }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb span { color: var(--rouge); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}
.intro-grid img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--ombre); display: block; }

.produits-liste {
  background: var(--gris-clair);
  border-left: 4px solid var(--rouge);
  padding: .8rem 1rem;
  font-size: .88rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--gris-moyen);
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}
.carte-produit {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, box-shadow var(--transition);
}
.carte-produit.visible { opacity: 1; transform: translateY(0); }
.carte-produit:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }
.carte-produit img { width: 100%; height: 200px; object-fit: cover; display: block; }
.carte-produit .carte-body { padding: 1rem 1.2rem 1.2rem; }
.carte-produit h2 { font-size: 1.15rem; color: var(--rouge); margin-bottom: .4rem; }
.carte-produit p  { font-size: .88rem; color: var(--gris-moyen); margin-bottom: .8rem; }
.lien-plus { font-size: .85rem; font-weight: 700; color: var(--rouge); }
.lien-plus:hover { text-decoration: underline; }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.galerie-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s ease, transform var(--transition);
}
.galerie-item.visible { opacity: 1; }
.galerie-item:hover { transform: scale(1.02); }
.galerie-item img { width: 100%; height: 190px; object-fit: cover; display: block; }
.galerie-item p { background: var(--noir); color: var(--blanc); text-align: center; padding: .4rem .6rem; font-size: .8rem; margin: 0; }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); }
#lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; color: var(--blanc); font-size: 2rem; cursor: pointer; background: none; border: none; }

.catalogue-cta { background: var(--rouge); text-align: center; padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; }
.catalogue-cta p { color: var(--blanc); font-size: 1.1rem; font-weight: 700; margin-bottom: .8rem; }
.btn-catalogue { display: inline-block; background: var(--blanc); color: var(--rouge); padding: .6rem 1.6rem; border-radius: var(--radius); font-weight: 700; }
.btn-catalogue:hover { background: var(--noir); color: var(--blanc); text-decoration: none; }

.liste-avantages { list-style: none; margin: 1rem 0 1.5rem; }
.liste-avantages li { padding: .5rem 0 .5rem 1.6rem; position: relative; border-bottom: 1px solid #eee; font-size: .95rem; }
.liste-avantages li::before { content: '▶'; color: var(--rouge); position: absolute; left: 0; font-size: .7rem; top: .75rem; }

blockquote { border-left: 4px solid var(--rouge); background: var(--gris-clair); padding: 1rem 1.2rem; margin: 1.2rem 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--gris-moyen); }

/* ============================================================ FORMULAIRE */
.form-contact { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid #ccc; border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; background: #fafafa;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(255,0,0,0.12); background: var(--blanc);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-field { display: none !important; }
.btn-envoyer { display: inline-block; background: var(--rouge); color: var(--blanc); padding: .75rem 2rem; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.btn-envoyer:hover { background: var(--rouge-fonce); }
.msg-succes { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: #2e7d32; margin-bottom: 1.5rem; }
.msg-erreur { background: #ffebee; border-left: 4px solid var(--rouge); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: #b71c1c; margin-bottom: 1.5rem; }

/* ============================================================ MAPS */
.section-map { width: 100%; height: 360px; }
.section-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================ FOOTER */
#footer { background: #1a1a1a; color: #aaa; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  border-bottom: 1px solid #2a2a2a;
}
.footer-col { padding: 2rem 1.8rem; border-right: 1px solid #2a2a2a; }
.footer-col:last-child { border-right: none; }

.footer-col-title {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #2a2a2a;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 1rem; opacity: .85; }
.footer-col address { font-style: normal; font-size: .85rem; line-height: 1.9; color: #aaa; }
.footer-col address strong { color: var(--blanc); }
.footer-col address a { color: #aaa; }
.footer-col address a:hover { color: var(--rouge); text-decoration: none; }

.footer-nav-list { list-style: none; }
.footer-nav-list li a {
  display: block; color: #aaa; font-size: .88rem; padding: .3rem 0;
  border-bottom: 1px solid #252525;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav-list li a:hover { color: var(--blanc); padding-left: .4rem; text-decoration: none; }

.footer-horaires { font-size: .85rem; line-height: 2; color: #aaa; }
.footer-horaires strong { color: var(--blanc); }

.footer-contact-links { margin-top: 1rem; }
.footer-contact-links a {
  display: flex; align-items: center; gap: .5rem;
  color: #aaa; font-size: .88rem; padding: .3rem 0;
  transition: color var(--transition);
}
.footer-contact-links a:hover { color: var(--rouge); text-decoration: none; }

.footer-bottom {
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 1.8rem;
  font-size: .75rem;
  color: #555;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--rouge); }

/* ============================================================ ACTU */
.actu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; margin: 1.5rem 0; }
.actu-card { background: var(--blanc); border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); transition: transform var(--transition); }
.actu-card:hover { transform: translateY(-3px); }
.actu-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.actu-card-body { padding: 1rem 1.2rem 1.2rem; }
.actu-date { font-size: .78rem; color: #888; margin-bottom: .3rem; }
.actu-card h3 { color: var(--rouge); font-size: 1rem; }

/* ============================================================ ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .intro-grid    { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-col    { border-right: none; border-bottom: 1px solid #2a2a2a; }
  .produits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .header-top     { padding: .4rem 1rem; }
  .header-logo img { height: 44px; }
  .header-contact .adresse { display: none; }
  .header-nav ul  { display: none; flex-direction: column; }
  .header-nav ul.open { display: flex; }
  .header-nav ul li ul { position: static; display: none; border-top: none; }
  .header-nav ul li.open ul { display: flex; }
  .nav-burger     { display: block; }
  .hero-wrap      { height: 260px; }
  .hero-text      { padding: 0 1rem; }
  .hero-text h1   { font-size: 1.4rem; }
  .hero-text .hero-sub { font-size: .95rem; }
  .cta-bar        { flex-direction: column; text-align: center; padding: 1rem; }
  #main           { padding: 1.5rem 1rem; }
  .produits-grid  { grid-template-columns: 1fr; }
  .galerie        { grid-template-columns: 1fr 1fr; }
  .footer-bottom  { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .galerie { grid-template-columns: 1fr; }
}
.article-photo img,
.article-full img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
/* Fix background-attachment: fixed cassé sur Android */
@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }
}
