/* ============================================================
   DragonDefer Studio — styles.css
   Design : clean tech / productivity, palette charbon + ambre
   Police : Syne (titres) + DM Sans (corps)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0e0e10;
  --bg-2:        #141416;
  --bg-3:        #1c1c20;
  --bg-card:     #18181c;
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.16);

  --text:        #f0ede8;
  --text-2:      #a8a49e;
  --text-3:      #6b6763;

  --accent:      #f59e0b;      /* ambre principal */
  --accent-dark: #d97706;
  --accent-glow: rgba(245,158,11,0.18);

  --green:       #22c55e;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --teal:        #14b8a6;

  --tag-etudes:    #1e3a5f;
  --tag-etudes-t:  #60a5fa;
  --tag-habitudes: #14332a;
  --tag-habitudes-t:#4ade80;
  --tag-projets:   #3a2a10;
  --tag-projets-t: #fbbf24;

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5);

  --transition:  0.2s ease;
  --font-title:  'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;

  --max-w: 1120px;
  --section-py: 96px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.15; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-2);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  padding: 11px 22px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: #0e0e10;
  font-weight: 600;
}
.btn--primary:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn--sm  { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg  { padding: 14px 28px; font-size: 1rem; }

/* Spinner dans le bouton submit */
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0e0e10;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn--loading .btn__label { opacity: 0.4; }
.btn--loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.tag--etudes    { background: var(--tag-etudes);    color: var(--tag-etudes-t); }
.tag--habitudes { background: var(--tag-habitudes); color: var(--tag-habitudes-t); }
.tag--projets   { background: var(--tag-projets);   color: var(--tag-projets-t); }

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,16,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--accent);
  color: #0e0e10;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--text);
}
.logo__sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--bg-3); }

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 8px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 30%, transparent 80%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-weight: 500;
}
.badge__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__proof span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ── Hero Mockup ─────────────────────────────────────────────  */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.mockup {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(245,158,11,0.06);
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.mockup__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}
.mockup__dot:nth-child(1) { background: #ef4444; }
.mockup__dot:nth-child(2) { background: #f59e0b; }
.mockup__dot:nth-child(3) { background: #22c55e; }

.mockup__body {
  display: flex;
  height: 260px;
}

.mockup__sidebar {
  width: 56px;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ms__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 8px;
}
.ms__item {
  width: 32px; height: 6px;
  border-radius: 3px;
  background: var(--border-hover);
}
.ms__item--active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.mockup__content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mc__header { display: flex; flex-direction: column; gap: 6px; }
.mc__title  { height: 10px; width: 45%; background: var(--text-3); border-radius: 4px; }
.mc__subtitle { height: 7px; width: 30%; background: var(--border-hover); border-radius: 4px; }

.mc__cards { display: flex; gap: 8px; }
.mc__card {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mc__card--accent { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.05); }
.mc__label { height: 5px; width: 60%; background: var(--border-hover); border-radius: 3px; }
.mc__value { height: 8px; width: 40%; background: var(--text-3); border-radius: 3px; }
.mc__bar   { height: 3px; background: var(--border); border-radius: 2px; margin-top: 4px; }
.mc__bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.mc__card--accent .mc__bar-fill { box-shadow: 0 0 6px var(--accent-glow); }

.mc__table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.mc__row {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── TRUST ──────────────────────────────────────────────────── */
.trust {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust > .container > .section-label { display: block; text-align: center; margin-bottom: 40px; }

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.trust__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.trust__icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.trust__card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.trust__card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── PRODUCTS ───────────────────────────────────────────────── */
.products { padding: var(--section-py) 0; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e0e10;
  font-weight: 700;
}
.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Products grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card.is-hidden { display: none; }

.product-card__img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-3);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }

.product-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.product-card__tags {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px;
}

.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-size: 1.05rem; font-weight: 700; }
.product-card__desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; flex: 1; }

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-card__price {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

/* Product placeholders (SVG mockups) */
.ph-mockup { width: 100%; max-width: 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; padding: 10px; }
.ph-mockup--1 { }
.ph-row { height: 8px; background: var(--border-hover); border-radius: 4px; margin-bottom: 8px; }
.ph-row--head { background: var(--text-3); width: 60%; }
.ph-cols { display: flex; gap: 8px; }
.ph-col { background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.ph-col--sm { width: 40%; min-height: 60px; }
.ph-col--lg { flex: 1; min-height: 60px; }

.ph-mockup--2 .ph-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 4px;
  max-width: 120px;
  margin: auto;
}
.ph-cell { height: 28px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--border); }
.ph-cell--done    { background: rgba(34,197,94,0.25); border-color: rgba(34,197,94,0.5); }
.ph-cell--todo    { background: var(--bg-3); }
.ph-cell--pending { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); }

.ph-mockup--3 { padding: 14px 10px; }
.ph-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; justify-content: center; }
.ph-bar { flex: 1; max-width: 18px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: 0.7; }
.ph-bar:nth-child(even) { opacity: 0.4; }

/* ── SERVICES ───────────────────────────────────────────────── */
.services {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services__process {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto 56px;
}

.process-step {
  display: flex;
  gap: 28px;
  position: relative;
  padding-bottom: 40px;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--border), transparent);
}
.process-step:last-child::before { display: none; }

.process-step__num {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(245,158,11,0.3);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.process-step__body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  padding-top: 8px;
}
.process-step__body p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.services__examples-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
  margin-bottom: 20px;
}

.examples__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.example-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition);
}
.example-chip:hover { border-color: var(--border-hover); color: var(--text); }

/* ── PORTFOLIO ──────────────────────────────────────────────── */
.portfolio { padding: var(--section-py) 0; }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.portfolio-item:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.portfolio-item__img {
  height: 160px;
  overflow: hidden;
  background: var(--bg-3);
}
.portfolio-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover .portfolio-item__img img { transform: scale(1.04); }

.portfolio-item__info {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.portfolio-item__name { font-size: 0.875rem; font-weight: 600; }

/* Portfolio placeholders */
.portfolio-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.pp--blue  { background: linear-gradient(135deg, #1e3a5f 0%, #0f1e33 100%); }
.pp--teal  { background: linear-gradient(135deg, #14332a 0%, #0a1f1a 100%); }
.pp--amber { background: linear-gradient(135deg, #3a2a10 0%, #1e1508 100%); }
.pp--slate { background: linear-gradient(135deg, #1e1e2a 0%, #10101a 100%); }

.pp-inner { width: 100%; max-width: 140px; }
.pp-row { height: 7px; background: rgba(255,255,255,0.12); border-radius: 4px; margin-bottom: 7px; }
.pp-row--head { background: rgba(255,255,255,0.25); width: 55%; }
.pp-row--short { width: 40%; }

.pp-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pp-dot { width: 20px; height: 20px; border-radius: 4px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.pp-dot--on { background: rgba(20,184,166,0.5); border-color: rgba(20,184,166,0.7); }

.pp-kanban { display: flex; gap: 8px; }
.pp-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pp-k-card { height: 22px; background: rgba(255,255,255,0.08); border-radius: 4px; border: 1px solid rgba(255,255,255,0.12); }
.pp-k-card--accent { background: rgba(245,158,11,0.25); border-color: rgba(245,158,11,0.5); }

.pp-grid-cells {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5px;
}
.pp-grid-cells span {
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.pp-grid-cells span.on {
  background: rgba(96,165,250,0.3);
  border-color: rgba(96,165,250,0.6);
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.contact__info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.contact__info-card h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text);
}
.contact__links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
}
.contact__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.contact__link svg { flex-shrink: 0; }

.contact__discord-note {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.contact__discord-note strong { color: var(--text-2); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

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

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}
.form-group label span { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b6763' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form__submit-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__notice { font-size: 0.8rem; color: var(--text-3); }

.form__success,
.form__error {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
}
.form__success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); }
.form__error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  }
.form__success[hidden], .form__error[hidden] { display: none; }
.form__success strong, .form__error strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.form__success p, .form__error p { font-size: 0.875rem; color: var(--text-2); }
.form__error a { color: var(--accent); text-decoration: underline; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { padding: var(--section-py) 0; }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-item__q:hover { background: var(--bg-3); }
.faq-item__q[aria-expanded="true"] { background: var(--bg-3); color: var(--accent); }

.faq-item__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-3);
}
.faq-item__q[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item__a {
  padding: 0 20px 18px;
  background: var(--bg-card);
}
.faq-item__a[hidden] { display: none; }
.faq-item__a p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ── PAGES LEGALES ─────────────────────────────────────────── */
.legal-page {
  padding: 72px 0 var(--section-py);
}

.legal-page__header {
  max-width: 760px;
  margin-bottom: 40px;
}

.legal-page__header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.legal-page__header p,
.legal-section p,
.legal-section li {
  color: var(--text-2);
}

.legal-page__content {
  max-width: 820px;
  display: grid;
  gap: 18px;
}

.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.legal-section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  list-style: disc;
  padding-left: 20px;
}

.legal-note {
  color: var(--accent);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer__brand { max-width: 280px; }
.footer__tagline { font-size: 0.875rem; color: var(--text-3); margin-top: 14px; line-height: 1.6; }

.footer__links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer__col a { font-size: 0.875rem; color: var(--text-2); transition: color var(--transition); }
.footer__col a:hover { color: var(--accent); }
.footer__link--highlight { color: var(--accent) !important; font-weight: 500; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 0.8rem; color: var(--text-3); transition: color var(--transition); }
.footer__legal a:hover { color: var(--text-2); }

/* ── ANIMATIONS entrée ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ── MOBILE NAV ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    z-index: 99;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 16px; border-radius: 8px; font-size: 1rem; }

  .header__actions .btn--primary { display: none; }

  /* Hero */
  .hero { padding: 56px 0 48px; min-height: unset; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .mockup__body { height: 200px; }

  /* Trust */
  .trust__grid { grid-template-columns: 1fr 1fr; }

  /* Products */
  .products__grid { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio__grid { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact__layout { grid-template-columns: 1fr; }
  .contact__info-card { position: static; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .footer__links { grid-template-columns: 1fr; }
}

@media (max-width: 900px) and (min-width: 769px) {
  .products__grid { grid-template-columns: 1fr 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(245,158,11,0.3); }
