/*
  ETRAPA Industrie SARL - CSS complet
  Identité: Rouge #C4001A, Jaune #F2C200, Vert #0B7A3B, Fond #F7F3EE
  Responsive + animations légères + placeholders
*/

:root{
  --red:#C4001A;
  --red-2:#A80016;
  --yellow:#F2C200;
  --yellow-2:#E7B800;
  --green:#0B7A3B;
  --bg:#F7F3EE;
  --text:#1A1A1A;
  --muted:#666;
  --card:#FFFFFF;
  --line:rgba(0,0,0,.08);
  --shadow:0 12px 30px rgba(0,0,0,.08);
  --shadow-2:0 18px 44px rgba(0,0,0,.12);
  --radius:16px;
  --radius-2:22px;
  --max:1120px;
  --speed:.22s;
}

/* Reset + base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.section{padding:64px 0}

/* Typo */
.small{font-size:.95rem;color:var(--muted)}
.muted{color:var(--muted)}

.h1{
  font-size:clamp(2rem,3.4vw,3rem);
  line-height:1.05;
  margin:10px 0 12px;
  color:var(--red);
  letter-spacing:-.02em;
}

.h2{
  font-size:clamp(1.5rem,2.3vw,2rem);
  line-height:1.12;
  margin:0 0 14px;
  color:var(--red);
  letter-spacing:-.01em;
}

.h3{font-size:1.2rem;margin:0 0 8px}

.lead{
  font-size:1.05rem;
  color:#2a2a2a;
  max-width:58ch;
  line-height:1.55;
}

/* Petit badge */
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(196,0,26,.08);
  color:var(--red);
  font-weight:700;
  font-size:.85rem;
}

/* Topbar */
.topbar{
  background:linear-gradient(90deg,var(--red),var(--red-2));
  color:white;
  font-size:.9rem;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 18px;
}
.topbar a{
  color:white;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Header sticky */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,243,238,.84);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}
.brand img{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.brand span{display:block;line-height:1}
.brand small{display:block;font-weight:650;color:var(--muted);font-size:.82rem}

.menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.menu a{
  font-weight:750;
  color:#222;
  opacity:.9;
  position:relative;
}
.menu a:hover{color:var(--red)}
.menu a.active{color:var(--red)}
.menu a.active:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:3px;
  border-radius:999px;
  background:var(--red);
}

.cta{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  font-weight:850;
  border:1px solid transparent;
  transition:transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease, background var(--speed) ease;
  white-space:nowrap;
  cursor:pointer;
}

.btn:active{transform:translateY(0)}

.btn-primary{
  background:var(--red);
  color:white;
  box-shadow:0 10px 22px rgba(196,0,26,.25);
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(196,0,26,.28)}

.btn-green{
  background:var(--green);
  color:white;
  box-shadow:0 10px 22px rgba(11,122,59,.22);
}
.btn-green:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(11,122,59,.26)}

.btn-outline{
  border-color:rgba(0,0,0,.14);
  background:white;
  color:#111;
}
.btn-outline:hover{
  border-color:rgba(196,0,26,.35);
  transform:translateY(-1px);
}

/* Petit effet shine (optionnel) */
.btn-shine{position:relative;overflow:hidden}
.btn-shine:before{
  content:"";
  position:absolute;
  top:-30%;
  left:-40%;
  width:40%;
  height:160%;
  background:rgba(255,255,255,.25);
  transform:skewX(-18deg);
  transition:transform .55s ease;
}
.btn-shine:hover:before{transform:translateX(220%) skewX(-18deg)}

/* Burger */
.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:white;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:#222;
  margin:6px auto;
  border-radius:2px;
}

.mobile-panel{
  display:none;
  border-top:1px solid var(--line);
  padding:12px 0 18px;
}
.mobile-panel a{display:block;padding:10px 6px;font-weight:800}
.mobile-panel .cta{flex-direction:column;align-items:stretch}
.mobile-panel .btn{width:100%}
.mobile-panel.open{display:block}

/* Background pattern léger */
.bg-pattern{position:relative;overflow:hidden}
.bg-pattern:before{
  content:"";
  position:absolute;
  inset:-40px;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(0,0,0,.04) 2px, transparent 2px),
    radial-gradient(circle at 60px 60px, rgba(242,194,0,.10) 2px, transparent 2px),
    radial-gradient(circle at 120px 40px, rgba(11,122,59,.08) 2px, transparent 2px);
  background-size:110px 110px;
  opacity:.32;
  pointer-events:none;
}
.bg-pattern > *{position:relative}

/* Hero */
.hero{padding:54px 0 10px}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:center;
}
.hero-card{
  background:var(--card);
  border-radius:var(--radius-2);
  box-shadow:var(--shadow);
  overflow:hidden;
  border:1px solid var(--line);
}
.hero-media{
  min-height:360px;
  background:
    linear-gradient(0deg, rgba(196,0,26,.10), rgba(0,0,0,0)),
    url("../assets/img/hero-placeholder.jpg") center/cover no-repeat;
}
.hero-media .tag{
  display:inline-block;
  margin:16px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  font-weight:900;
  color:var(--red);
  border:1px solid rgba(0,0,0,.06);
}

/* Grilles */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

/* Cards */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  overflow:hidden;
}
.card .p{padding:18px}
.card .media{height:180px;background:#eee center/cover no-repeat}
.card .meta{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:12px}

/* Hover card */
.card-hover{transition:transform var(--speed) ease, box-shadow var(--speed) ease}
.card-hover:hover{transform:translateY(-3px);box-shadow:var(--shadow-2)}

/* Section jaune type flyer */
.block-yellow{
  background:linear-gradient(180deg, rgba(242,194,0,.96), rgba(242,194,0,.86));
  border-top:6px solid var(--red);
}
.block-yellow .h2{color:#8c0013}

/* Ruban rouge */
.ribbon{
  margin-top:18px;
  background:var(--red);
  color:white;
  padding:10px 12px;
  border-radius:12px;
  font-weight:850;
  text-align:center;
  box-shadow:0 10px 22px rgba(196,0,26,.20);
}

/* Split sections */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:center;
}

/* Placeholder photo/logo */
.placeholder{
  border:2px dashed rgba(0,0,0,.18);
  border-radius:var(--radius);
  background:rgba(255,255,255,.65);
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:rgba(0,0,0,.45);
  text-align:center;
  padding:18px;
}

.placeholder.small{min-height:220px}

/* Listes */
ul{margin:12px 0 0;padding-left:18px}
li{margin:8px 0;line-height:1.5}

/* Awards */
.awards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.award{
  background:white;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  padding:14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.award img{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
}
.award b{display:block}
.award small{color:var(--muted)}

/* Testimonials */
.testis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.testi{
  background:white;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  padding:16px;
}
.stars{color:var(--yellow);letter-spacing:2px;font-size:1.05rem}
.testi .who{display:flex;gap:10px;align-items:center;margin-top:12px}
.testi .who img{
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  object-fit:cover;
}
.testi .who b{display:block}
.testi .who small{display:block;color:var(--muted)}

/* Forms */
input,select,textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  background:white;
  color:#111;
  outline:none;
  transition:border-color var(--speed) ease, box-shadow var(--speed) ease;
  font:inherit;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(196,0,26,.40);
  box-shadow:0 0 0 4px rgba(196,0,26,.12);
}
textarea{resize:vertical}

/* Footer */
.footer{background:#111;color:#eee;margin-top:40px}
.footer .container{padding:28px 18px}
.footer a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:18px}
.footer .brand img{background:white}
.footer .muted{color:#bfbfbf}

/* Animations: reveal */
.reveal{opacity:0;transform:translateY(14px);transition:.6s ease}
.reveal.show{opacity:1;transform:none}

/* Utilitaires */
.center{text-align:center}
.mt-0{margin-top:0}
.mt-12{margin-top:12px}
.mt-16{margin-top:16px}
.mt-18{margin-top:18px}
.mt-22{margin-top:22px}
.mt-26{margin-top:26px}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr}
  .awards{grid-template-columns:repeat(2,1fr)}
  .testis{grid-template-columns:1fr}
  .menu,.cta{display:none}
  .burger{display:inline-block}
  .footer-grid{grid-template-columns:1fr}
}

@media (max-width: 520px){
  .grid-4{grid-template-columns:1fr}
  .badge{font-size:.82rem}
  .btn{padding:10px 12px}
  .topbar .container{flex-direction:column;align-items:flex-start}
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{transition:none}
  .btn{transition:none}
  .card-hover{transition:none}
}

/* ===== SUPPRESSION TOTALE DES SOULIGNEMENTS DES LIENS ===== */

/* Tous les liens, partout */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none !important;
  outline: none !important;
}

/* Footer: encore plus strict */
.footer a,
.footer a:link,
.footer a:visited,
.footer a:hover,
.footer a:active,
.footer a:focus {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Enleve le focus visuel du navigateur (accessibilité custom) */
a:focus-visible {
  box-shadow: none !important;
}

/* Mobile panel et menu */
.menu a,
.mobile-panel a {
  text-decoration: none !important;
}

/* Pages / Liens (listes) */
.footer-grid a {
  text-decoration: none !important;
}

/* Récompenses - 3 trophées */

.trophies{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  margin-top:26px;
  text-align:center;
}

.trophy-box img{
  max-width:180px;
  margin:0 auto 14px;
}

.trophy-box h3{
  font-size:1.05rem;
  font-weight:900;
  line-height:1.3;
  color:#111;
  text-shadow:0 2px 0 rgba(0,0,0,.08);
}

.trophy-text{
  margin-top:30px;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  line-height:1.7;
}

.trophy-text .highlight{
  margin-top:14px;
  font-weight:900;
}

/* Responsive */
@media (max-width: 900px){
  .trophies{
    grid-template-columns:1fr;
    gap:22px;
  }

  .trophy-box img{
    max-width:150px;
  }
}
/* ===== WhatsApp flottant ===== */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  box-shadow:0 14px 28px rgba(11,122,59,.28);
  border:1px solid rgba(255,255,255,.18);
}
.wa-float:hover{transform:translateY(-1px)}
.wa-ico{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.16);
  font-weight:900;
  letter-spacing:.5px;
}
.wa-txt{font-weight:900}

/* sur mobile, on garde juste le bouton rond */
@media (max-width:520px){
  .wa-txt{display:none}
  .wa-float{padding:12px}
}
