/* ============================================================
   AMORE GT — Feuille de styles commune — style.css
   ============================================================ */

:root {
  --bg: #070707;
  --bg-elev: #101010;
  --bg-soft: #151515;
  --card: #121212;
  --text: #f3f3f3;
  --muted: #aaaaaa;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 24px 70px rgba(0,0,0,0.45);
  --radius: 22px;
  --container: 1180px;
}

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

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 22%),
    radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 18%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  min-height: 100vh;
}

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

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

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,7,7,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: grayscale(100%) contrast(115%) brightness(1.25);
  transition: transform 0.35s ease;
  flex: 0 0 auto;
}

.brand:hover .brand-logo { transform: scale(1.05) rotate(1.5deg); }

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--white);
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active-page { color: var(--white); }
.nav-links a.active-page::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #101010;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active { background: var(--white); color: var(--black); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--muted);
  font-size: 1.05rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--white); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: #d9d9d9; border-color: #d9d9d9; box-shadow: 0 8px 24px rgba(255,255,255,0.12); }

.btn-secondary { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-secondary:hover { background: #191919; border-color: #4a4a4a; }

/* ============================================================
   HERO (index uniquement)
   ============================================================ */
.hero-wrap { position: relative; overflow: hidden; }

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 30px auto auto 50%;
  transform: translateX(-50%);
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(255,255,255,0.035), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.watermark {
  position: absolute;
  right: -80px;
  top: 70px;
  width: min(42vw, 520px);
  opacity: 0.045;
  filter: grayscale(100%) contrast(130%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  padding: 72px 0 30px;
}

.hero-copy { padding: 42px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: #d2d2d2;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-copy p {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-side {
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.stat-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-card:hover { border-color: var(--line-strong); transform: translateX(4px); }

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.1rem;
}

.stat-card span { color: var(--muted); line-height: 1.65; font-size: 0.96rem; }

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
main { padding-bottom: 80px; }
section { padding-top: 28px; }

.section-head { margin-bottom: 22px; }

.section-head h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-head p { color: var(--muted); line-height: 1.75; max-width: 72ch; }

/* PAGE HERO (pages internes) */
.page-hero {
  padding: 60px 0 30px;
}

.page-hero-card {
  padding: 52px;
}

.page-hero-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 18px;
}

.page-hero-card .lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
  max-width: 72ch;
  font-weight: 300;
}

/* ============================================================
   SERVICE CARDS (index)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 24px;
  cursor: pointer;
  outline-offset: 4px;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #484848;
  box-shadow: 0 28px 68px rgba(0,0,0,0.58);
}

.service-card:focus-visible { outline: 2px solid rgba(255,255,255,0.5); }

.service-card.active {
  border-color: #646464;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}

.service-card h3 { margin-bottom: 10px; font-size: 1.18rem; }
.service-card > p { color: var(--muted); line-height: 1.75; }

.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.service-detail-inner { overflow: hidden; }

.service-card.active .service-detail { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }

.service-detail-box {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.service-detail-box strong { color: var(--white); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.service-detail-box span { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

/* ============================================================
   DETAIL CARDS
   ============================================================ */
.detail-card { padding: 38px; }

.detail-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.detail-intro { color: var(--muted); line-height: 1.85; font-size: 1.02rem; margin-bottom: 14px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.sub-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.sub-card h3 { margin-bottom: 16px; font-size: 1.1rem; }
.sub-card p { color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.sub-card p:last-child { margin-bottom: 0; }

.values-list,
.missions-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.values-list li,
.missions-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
  line-height: 1.75;
  color: var(--muted);
  font-size: 0.93rem;
  transition: border-color 0.2s ease;
}

.values-list li:hover,
.missions-list li:hover { border-color: var(--line-strong); }

.values-list strong,
.missions-list strong { color: var(--white); display: block; margin-bottom: 4px; }

/* Lien discret dans un bloc de texte */
.inline-link {
  color: var(--white);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}
.inline-link:hover { border-color: var(--white); }

/* ============================================================
   CONTACT (page dédiée)
   ============================================================ */
.contact-card { padding: 34px; }

.contact-meta {
  margin-bottom: 22px;
  padding: 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.contact-meta p { margin-bottom: 8px; color: var(--muted); line-height: 1.7; font-size: 0.96rem; }
.contact-meta p:last-child { margin-bottom: 0; }
.contact-meta strong { color: var(--white); }
.contact-meta a { color: var(--muted); border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.contact-meta a:hover { color: var(--white); border-color: var(--white); }

form { display: grid; gap: 14px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #0c0c0c;
  color: var(--white);
  font: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: #5e5e5e;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

textarea { min-height: 140px; resize: vertical; }

.form-message {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 12px;
  display: none;
}

.form-message.success { display: block; background: rgba(29,158,117,0.12); border: 1px solid rgba(29,158,117,0.3); color: #5dcaa5; }
.form-message.error   { display: block; background: rgba(216,90,48,0.12);  border: 1px solid rgba(216,90,48,0.3);  color: #f0997b; }

/* ============================================================
   GT PASSION — page dédiée
   ============================================================ */
.passion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.passion-grid.full { grid-template-columns: 1fr; }

.article-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.article-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
  line-height: 1.75;
  color: var(--muted);
  font-size: 0.93rem;
  transition: border-color 0.2s ease;
}

.article-list li:hover { border-color: var(--line-strong); }
.article-list li strong { color: var(--white); display: block; margin-bottom: 4px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }
.back-link::before { content: "←"; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0 44px;
}

.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-sep {
  width: 36px;
  height: 1px;
  background: var(--line);
  margin: 6px auto;
}

/* ============================================================
   LANG / VISIBILITY
   ============================================================ */
[data-lang]         { display: none; }
[data-lang].visible { display: block; }
.inline             { display: none; }
.inline.visible     { display: inline; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.shown { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero, .content-grid, .passion-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .watermark { width: min(58vw, 420px); right: -60px; top: 100px; }
}

@media (max-width: 820px) {
  .nav { padding: 14px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 42px; }
  .hero-copy, .detail-card, .contact-card, .page-hero-card { padding: 26px; }
  .input-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .brand-logo { width: 46px; height: 46px; }
  .brand-text strong { font-size: 0.92rem; }
  .brand-subtitle { font-size: 0.78rem; }
  .hero-copy, .page-hero-card { padding: 20px; }
  .hero-side, .detail-card, .contact-card { padding: 18px; }
  h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .cta-row { flex-direction: column; }
  .btn { width: 100%; }
}

/* stat-card h2 — taille visuelle identique à l'ancien <strong> */
.stat-card .stat-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
  margin-bottom: 8px;
}
