/* =========================================================
   GAMAX — Site principal (HTML/CSS/JS)
   Harmonisé avec le configurateur : noir + blanc + bronze
========================================================= */

:root{
  --bg:#f5f1ea;
  --card:#ffffff;

  --text:#0d0d0d;
  --muted:#5a5a5a;

  --line:rgba(13,13,13,.14);

  --accent:#c8a96a;
  --accent-dark:#9f7c34;

  --shadow:0 18px 45px rgba(13,13,13,.12);
  --shadow-soft:0 10px 28px rgba(13,13,13,.10);

  --radius:18px;
  --radius-lg:26px;

  --max:1120px;

  --black:#0b0b0b;
  --black-2:#111111;
  --white:#ffffff;
}

/* ---------- Global ---------- */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(200,169,106,.14), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(13,13,13,.08), transparent 60%),
    var(--bg);
  line-height:1.5;
}

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

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.muted{color:var(--muted)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:650;
  letter-spacing:.2px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}

.btn-primary{
  background:linear-gradient(180deg, var(--accent), var(--accent-dark));
  color:#0d0d0d;
  box-shadow:0 14px 30px rgba(200,169,106,.25);
}
.btn-primary:hover{box-shadow:0 16px 36px rgba(200,169,106,.32)}

.btn-ghost{
  background:rgba(255,255,255,.78);
  border-color:rgba(13,13,13,.20);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{background:rgba(255,255,255,.92)}

.btn-sm{padding:10px 12px; font-size:14px}

/* Boutons ghost sur fond noir */
.on-dark .btn-ghost{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.20);
  color:#fff;
}
.on-dark .btn-ghost:hover{background:rgba(255,255,255,.14)}

/* =========================================================
   HEADER NOIR
========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, var(--black), var(--black-2));
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.brand-logo{
  height:48px;
  width:auto;
  object-fit:contain;
  filter: brightness(1.08) contrast(1.02);
  opacity:.98;
}

.brand-text{display:flex; flex-direction:column; line-height:1.05}
.brand-name{font-size:20px; font-weight:900; letter-spacing:1.6px; color:#fff}
.brand-tag{font-size:12.5px; color:rgba(255,255,255,.72); font-weight:600}

/* NAV : hover + actif */
.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a[data-nav]{
  position:relative;
  font-weight:650;
  color:rgba(255,255,255,.90);
  padding:10px 2px;
}
.nav a[data-nav]::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, rgba(200,169,106,.95), transparent);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .16s ease, opacity .16s ease;
  opacity:0;
}
.nav a[data-nav]:hover{ color:#fff; }
.nav a[data-nav]:hover::after{
  transform:scaleX(1);
  opacity:.9;
}
.nav a[data-nav].is-active{ color:#fff; }
.nav a[data-nav].is-active::after{
  transform:scaleX(1);
  opacity:1;
  box-shadow:0 0 0 1px rgba(200,169,106,.12), 0 10px 22px rgba(200,169,106,.18);
}

/* Bouton burger */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:#fff;
  margin:4px auto;
  border-radius:2px;
}

/* Drawer mobile */
.nav-drawer{
  border-top:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, var(--black), var(--black-2));
}
.nav-drawer-inner{
  display:grid;
  gap:10px;
  padding:14px 0 18px;
}
.nav-drawer a{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
}
.nav-contact{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.nav-contact-item{
  font-weight:650;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:8px 12px;
  color:#fff;
}

/* =========================================================
   SECTIONS / TITRES
========================================================= */
.section{padding:56px 0}
.section-title{
  font-size:34px;
  line-height:1.1;
  margin:0;
  letter-spacing:-.5px;
}
.section-sub{
  margin:10px 0 0;
  color:var(--muted);
  max-width:72ch;
}

/* =========================================================
   HERO
========================================================= */
.hero-full{
  padding:0;
  border-bottom:1px solid rgba(13,13,13,.12);
}

.hero-photo{
  position:relative;
  overflow:hidden;
  border-radius:0;
  min-height:clamp(240px, 34vh, 360px);
  display:flex;
  align-items:center;
}

.hero-full-bg{
  position:absolute;
  inset:0;
  background:url("/assets/hero-home.jpg") center/cover no-repeat;
  transform:scale(1.03);
}

.hero-full-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 45%, rgba(0,0,0,.65)),
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25));
}

.hero-full-inner{
  position:relative;
  z-index:2;
  padding:36px 0 34px;
}

.hero-kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
  font-size:13px;
  color:#fff;
  opacity:.95;
}

.hero-title{
  font-size:44px;
  letter-spacing:-1px;
  margin:14px 0 8px;
  line-height:1.12;
  color:#fff;
}

.hero-subtitle{
  margin:0 0 12px;
  font-weight:850;
  letter-spacing:-.3px;
  color:rgba(255,255,255,.92);
  font-size:18px;
}

.hero-p{
  margin:0;
  color:rgba(255,255,255,.86);
  font-size:16.5px;
  max-width:72ch;
}

.hero-p-inline{ white-space:nowrap; }

.hero-cta{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================================================
   ✅ PATCH COULEUR HERO — UNIQUEMENT POUR PAGE BUREAU D’ÉTUDES
   (nécessite <body class="page-bureau-etudes">)
========================================================= */
.page-bureau-etudes .hero-full-overlay{
  /* on garde l’image mais on rend l’overlay très clair pour laisser lire du noir */
  background:
    linear-gradient(180deg, rgba(245,241,234,.92), rgba(245,241,234,.70) 55%, rgba(245,241,234,.92)),
    linear-gradient(90deg, rgba(245,241,234,.92), rgba(245,241,234,.55));
}

.page-bureau-etudes .hero-kicker{
  background:rgba(13,13,13,.06);
  border-color:rgba(13,13,13,.14);
  color:rgba(13,13,13,.90);
}

.page-bureau-etudes .hero-title{
  color:rgba(13,13,13,.98);
}

.page-bureau-etudes .hero-subtitle{
  color:rgba(13,13,13,.86);
}

.page-bureau-etudes .hero-p{
  color:rgba(13,13,13,.72);
}

/* boutons dans le hero bureau d’études : ghost lisibles */
.page-bureau-etudes .hero-full .btn-ghost{
  background:rgba(255,255,255,.78);
  border-color:rgba(13,13,13,.20);
  color:rgba(13,13,13,.92);
}
.page-bureau-etudes .hero-full .btn-ghost:hover{
  background:rgba(255,255,255,.92);
}

/* =========================================================
   2 SPÉCIALITÉS (PANELS)
========================================================= */
.hero-specialties{
  padding:18px 0 34px;
  position:relative;
}

.hero-specialties::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-18px;
  height:220px;
  pointer-events:none;
  background:
    radial-gradient(600px 180px at 15% 10%, rgba(200,169,106,.16), transparent 60%),
    radial-gradient(520px 200px at 85% 15%, rgba(13,13,13,.10), transparent 62%);
  opacity:.95;
}

.specialties-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:stretch;
}

/* Base card */
.panel,
.card{
  background:rgba(255,255,255,.90);
  border:1px solid rgba(13,13,13,.14);
  border-radius:var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding:18px;
}

/* Panel spec : verre + hover */
.panel-spec{
  padding:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
}

.panel-spec::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(520px 220px at 10% 0%, rgba(200,169,106,.18), transparent 55%),
    radial-gradient(520px 240px at 90% 10%, rgba(13,13,13,.10), transparent 60%);
  opacity:.75;
}

.panel-spec::after{
  content:"";
  position:absolute;
  left:18px;
  top:18px;
  width:56px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(200,169,106,.95), transparent);
  opacity:.9;
  pointer-events:none;
}

.panel-spec:hover{
  transform: translateY(-2px);
  border-color: rgba(200,169,106,.34);
  box-shadow: 0 18px 42px rgba(13,13,13,.12);
}

.panel-title{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:.2px;
  font-weight:950;
  position:relative;
  z-index:1;
}

.panel p{
  margin:0;
  color:var(--muted);
  position:relative;
  z-index:1;
}

.panel ul{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  color:var(--muted);
  position:relative;
  z-index:1;
  display:grid;
  gap:8px;
}

.panel li{
  margin:0;
  padding-left:28px;
  position:relative;
}

.panel li::before{
  content:"";
  position:absolute;
  left:0;
  top:4px;
  width:18px;
  height:18px;
  border-radius:8px;
  background: rgba(200,169,106,.16);
  border: 1px solid rgba(13,13,13,.14);
}

.panel li::after{
  content:"";
  position:absolute;
  left:6px;
  top:9px;
  width:8px;
  height:4px;
  border-left:2px solid rgba(159,124,52,.95);
  border-bottom:2px solid rgba(159,124,52,.95);
  transform: rotate(-45deg);
  opacity:.95;
}

.panel-cta{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}

/* =========================================================
   GRIDS + CARDS
========================================================= */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.card h3{margin:0 0 8px; font-weight:900}
.card p{margin:0; color:var(--muted)}
.card .card-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}

.iconline{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.icon{
  width:42px; height:42px;
  border-radius:14px;
  background:rgba(200,169,106,.16);
  border:1px solid rgba(13,13,13,.18);
  display:grid;
  place-items:center;
  font-size:18px;
  flex:0 0 auto;
}

/* =========================================================
   ✅ RUBAN ENGAGEMENTS (fond bronze très clair + badges)
   -> volontairement différent des 2 panels
========================================================= */
.quality-section{
  position: relative;
  padding: 26px 0 28px;
  border-top: 1px solid rgba(13,13,13,.08);
  border-bottom: 1px solid rgba(13,13,13,.08);
  background:
    linear-gradient(180deg, rgba(200,169,106,.22), rgba(200,169,106,.10)),
    radial-gradient(900px 260px at 15% 0%, rgba(200,169,106,.28), transparent 62%),
    radial-gradient(800px 260px at 90% 40%, rgba(13,13,13,.06), transparent 66%);
}

/* étiquette "Nos engagements" */
.quality-section::after{
  content: "Nos engagements";
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 12px;
  color: rgba(13,13,13,.85);
  background: rgba(245,241,234,.95);
  border: 1px solid rgba(200,169,106,.48);
  box-shadow: 0 10px 24px rgba(13,13,13,.06);
}

/* 4 colonnes desktop */
.quality-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  align-items: stretch;
}

/* badges compacts */
.quality-card{
  position: relative;
  overflow: hidden;
  padding: 14px 14px !important;
  border-radius: 16px !important;

  background: rgba(255,255,255,.74) !important;
  border: 1px dashed rgba(200,169,106,.70) !important;
  box-shadow: none !important;

  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

/* neutralise les anciens effets */
.quality-card::before,
.quality-card::after{
  content:none !important;
}

.quality-card.iconline{
  gap: 12px !important;
  align-items: center !important;
}

.quality-icon{
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(13,13,13,.06) !important;
  border: 1px solid rgba(13,13,13,.10) !important;
  box-shadow:
    inset 0 0 0 2px rgba(200,169,106,.28),
    0 12px 22px rgba(200,169,106,.12) !important;
  font-size: 18px !important;
}

.quality-card h3{
  margin: 0 0 4px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  letter-spacing: .1px;
}

.quality-card p{
  margin: 0 !important;
  font-size: 13px !important;
  color: rgba(13,13,13,.70) !important;
  line-height: 1.35 !important;
}

.quality-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(200,169,106,.92) !important;
}

/* =========================================================
   BANDEAU ACCOMPAGNEMENT
========================================================= */
.gc-accompagnement{
  background: linear-gradient(180deg, rgba(245,240,232,0.92), rgba(245,240,232,0.75));
  border: 1px solid rgba(200,169,106,0.28);
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.gc-accompagnement__inner{ max-width:1100px; margin:0 auto; }
.gc-accompagnement__head{ margin-bottom:14px; }

.gc-accompagnement__badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:7px 12px;
  border-radius:999px;
  background: rgba(200,169,106,0.12);
  border: 1px solid rgba(200,169,106,0.26);
  color:#2a241b;
  font-weight:600;
  font-size:13px;
}
.gc-accompagnement__dot{
  width:8px; height:8px;
  border-radius:50%;
  background:#c8a96a;
  box-shadow:0 0 0 4px rgba(200,169,106,0.18);
}
.gc-accompagnement__title{
  margin:10px 0 6px;
  font-size:22px;
  letter-spacing:.2px;
  color:#111;
}
.gc-accompagnement__lead{
  margin:0;
  max-width:72ch;
  color: rgba(17,17,17,0.78);
  line-height:1.55;
}

.gc-accompagnement__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.gc-accompagnement__card{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 16px;
  padding: 14px 14px 12px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gc-accompagnement__card:hover{
  transform: translateY(-2px);
  border-color: rgba(200,169,106,0.40);
  box-shadow: 0 10px 26px rgba(0,0,0,0.07);
}
.gc-accompagnement__icon{
  width:36px; height:36px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(200,169,106,0.14);
  border: 1px solid rgba(200,169,106,0.26);
  font-size:18px;
  margin-bottom:8px;
}
.gc-accompagnement__card h3{
  margin:0 0 6px;
  font-size:16px;
  color:#111;
}
.gc-accompagnement__card p{
  margin:0;
  color: rgba(17,17,17,0.75);
  line-height:1.5;
  font-size:14px;
}

.gc-accompagnement__cta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.gc-accompagnement__hint{
  color: rgba(17,17,17,0.62);
  font-size:13px;
  margin-left:6px;
}

/* mini boutons gc */
.gc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
}
.gc-btn--primary{
  background:#c8a96a;
  color:#111;
  border-color: rgba(0,0,0,0.06);
}
.gc-btn--ghost{
  background: rgba(17,17,17,0.06);
  color:#111;
  border-color: rgba(17,17,17,0.08);
}
.gc-btn--ghost:hover{ background: rgba(17,17,17,0.08); }

/* ===== FOOTER GAMAX (isolé / anti-conflits) ===== */

.site-footer .gc-footer{
  padding: 18px 0 10px;
}

.site-footer .gc-footer__top{
  display: grid;
  grid-template-columns: 1fr 320px; /* coord à gauche, liens à droite */
  gap: 18px;
  align-items: start;
}

.site-footer .gc-footer__title{
  font-weight: 850;
  margin-bottom: 10px;
  color: #fff;
}

.site-footer .gc-footer__line{
  color: rgba(255,255,255,.86);
  line-height: 1.35;
  margin-top: 6px;
}

.site-footer .gc-footer__line a{
  color: rgba(255,255,255,.90);
}
.site-footer .gc-footer__line a:hover{ color:#fff; }

.site-footer .gc-footer__dot{
  opacity: .45;
  margin: 0 8px;
}

/* Mail sur 1 seule ligne */
.site-footer .gc-footer__line--nowrap{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.site-footer .gc-footer__email{ white-space: nowrap; }

/* Cartons */
.site-footer .gc-footer__card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px 16px;
}

/* Liens */
.site-footer .gc-footer__links{
  justify-self: end;
  width: 320px;
}
.site-footer .gc-footer__linksList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer .gc-footer__linksList a{
  color: rgba(255,255,255,.86);
}
.site-footer .gc-footer__linksList a:hover{ color:#fff; }

/* Marque dessous à gauche */
.site-footer .gc-footer__brandRow{
  display: flex;
  justify-content: flex-start;
  padding: 12px 0 8px;
}
.site-footer .gc-footer__brandCard{
  width: min(560px, 100%);
}
.site-footer .gc-footer__brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer .gc-footer__logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.02);
  opacity: .98;
}
.site-footer .gc-footer__brandName{
  font-weight: 900;
  letter-spacing: .6px;
  color: #fff;
}
.site-footer .gc-footer__brandSub{
  color: rgba(255,255,255,.70);
  font-weight: 650;
  font-size: 13px;
}

/* Bas */
.site-footer .gc-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 10px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.80);
}

/* Responsive */
@media (max-width: 980px){
  .site-footer .gc-footer__top{
    grid-template-columns: 1fr;
  }
  .site-footer .gc-footer__links{
    justify-self: start;
    width: min(420px, 100%);
  }
  .site-footer .gc-footer__line--nowrap{
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .site-footer .gc-footer__bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== Ajustement Footer propre ===== */

.footer-line {
  margin-top: 6px;
  color: rgba(255,255,255,.85);
}

.footer-line a {
  color: rgba(255,255,255,.90);
}

.footer-dot {
  margin: 0 8px;
  opacity: .4;
}

/* Empêche le mail de se couper */
.footer-nowrap {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-email {
  white-space: nowrap;
}

/* Réduction hauteur footer */
.site-footer {
  padding-top: 24px;
}

.footer-grid {
  padding-bottom: 18px;
}

