/* M&L Atelier 3D & Textile — Dark Prestige V2
   Améliorations: typographie distinctive, portfolio photo-first,
   micro-interactions raffinées, sections humaines.
   Backend AWS + Turnstile inchangé.
*/

/* ─── Google Fonts import ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root{
  --bg: #0f1115;
  --bg2:#12151b;
  --card:#151922;
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.86);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.46);
  --accent: #c6a75e;
  --accent2: rgba(198,167,94,.18);
  --shadow: 0 20px 50px rgba(0,0,0,.50);
  --radius: 18px;
  --radius2: 26px;
  --max: 1160px;
  /* NEW */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(198,167,94,.055), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(255,255,255,.025), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0b0d11 100%);
  color: var(--text);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color: rgba(255,255,255,.96); }
small{ color: var(--muted2); }

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

/* ─── Skip link ──────────────────────────────────────── */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 14px;
  background:var(--card); border:1px solid var(--line); border-radius:999px;
}

/* ─── Header ─────────────────────────────────────────── */
header{
  position:fixed; top:0; left:0; width:100%; z-index:9999;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: linear-gradient(180deg, rgba(15,17,21,.92) 0%, rgba(15,17,21,.64) 100%);
  border-bottom:1px solid var(--line);
  transition: background 0.3s ease;
}
main{ padding-top:90px; }

.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; gap:16px;
}

.brand{ display:flex; align-items:flex-start; gap:12px; }
.mark{
  width:34px; height:34px; border-radius:10px; flex-shrink:0;
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg, rgba(198,167,94,.95), rgba(198,167,94,.25));
  box-shadow: 0 10px 30px rgba(198,167,94,.14);
}

/* Logo image — navbar & footer */
.mark-logo{
  width:36px; height:36px; border-radius:10px; overflow:hidden;
  background:#000; border:0.5px solid rgba(255,255,255,.12);
  flex-shrink:0; display:flex; align-items:center; justify-content:center;
}
.mark-logo img{
  width:34px; height:34px; object-fit:contain; display:block;
}
.footer-logo{
  width:96px; height:96px; border-radius:14px; overflow:hidden;
  background:#000; border:0.5px solid rgba(255,255,255,.10);
  display:flex; align-items:center; justify-content:center;
}
.footer-logo img{
  width:92px; height:92px; object-fit:contain; display:block;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-text strong{ letter-spacing:.3px; font-weight:600; font-size:14px; }
.brand-text span{ font-size:11px; color: var(--muted); margin-top:2px; }

.nav{ display:flex; gap:4px; align-items:center; }
.nav a{
  font-size:12.5px; letter-spacing:.3px; text-transform:uppercase; font-weight:500;
  color: var(--muted);
  padding:8px 12px; border-radius:999px;
  transition: background .2s, color .2s;
}
.nav a:hover{ background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); }
.nav .cta{
  border:1px solid rgba(198,167,94,.45);
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(198,167,94,.16), rgba(198,167,94,.06));
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  margin-left:6px;
}
.nav .cta:hover{
  background: linear-gradient(180deg, rgba(198,167,94,.24), rgba(198,167,94,.09));
  border-color: rgba(198,167,94,.6);
}

.lang{ display:flex; gap:6px; align-items:center; }
.lang a{
  font-size:11px; letter-spacing:.4px; text-transform:uppercase; font-weight:500;
  color: var(--muted2); padding:7px 10px; border-radius:999px;
  border:1px solid transparent; transition: all .2s;
}
.lang a[aria-current="page"]{
  color: rgba(255,255,255,.9);
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}
.lang a:hover{ background: rgba(255,255,255,.06); color: rgba(255,255,255,.86); }

/* ─── Hero ───────────────────────────────────────────── */
.hero{
  padding:80px 0 48px;
  position:relative;
  overflow: hidden;
}

/* Subtle noise texture overlay */
.hero::before{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity:.025; z-index:0;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:32px;
  align-items:center;
  position:relative; z-index:1;
}

/* ── Display typography ── */
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  line-height:1.04;
  margin:0 0 18px;
  letter-spacing:-.5px;
  color: rgba(255,255,255,.95);
  font-weight:400; /* DM Serif Display looks best at regular */
}
.hero h1 em{
  font-style:italic;
  color: var(--accent);
}

.hero p.lead{
  font-size: 16px; font-weight:300;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 52ch;
  line-height:1.7;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size:11.5px; text-transform:uppercase; letter-spacing:.6px; font-weight:500;
  color: rgba(255,255,255,.65);
  margin-bottom:16px;
}
.kicker .dot{
  width:6px; height:6px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(198,167,94,.15);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(198,167,94,.15); }
  50%       { box-shadow: 0 0 0 9px rgba(198,167,94,.05); }
}

.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:24px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 22px; border-radius:999px;
  font-size:12.5px; letter-spacing:.5px; text-transform:uppercase; font-weight:500;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  transition: all .25s var(--ease-out-expo);
}
.btn:hover{
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.btn.primary{
  border-color: rgba(198,167,94,.55);
  background: linear-gradient(160deg, rgba(198,167,94,.2), rgba(198,167,94,.06));
}
.btn.primary:hover{
  background: linear-gradient(160deg, rgba(198,167,94,.28), rgba(198,167,94,.10));
  border-color: rgba(198,167,94,.7);
}
.btn.ghost{ color: var(--muted); }

/* ─── Hero card (image principale) ───────────────────── */
.hero-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(21,25,34,.95), rgba(15,17,21,.6));
  box-shadow: var(--shadow), 0 0 0 1px rgba(198,167,94,.06);
  padding:6px;
  display:flex; flex-direction:column; gap:0;
  overflow:hidden;
}
.hero-card .frame{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    url("images/Hero_atelier_textile_3d.png"),
    linear-gradient(135deg, rgba(198,167,94,.14), rgba(15,17,21,.8));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* BIGGER — the photo deserves space */
  height: 340px;
  position:relative; overflow:hidden;
}
.hero-card .frame::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(15,17,21,.55) 0%, transparent 50%);
}
.hero-card-meta{
  padding:16px 14px 14px;
  display:grid; grid-template-columns: 1fr 1fr; gap:10px;
}
.hero-card h3{
  display:none; /* replaced by card-meta grid */
}
.spec{
  border:1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  border-radius: 14px; padding:10px 12px;
}
.spec strong{ display:block; font-size:10.5px; letter-spacing:.5px; text-transform:uppercase; color: rgba(255,255,255,.7); }
.spec span{ display:block; font-size:12px; color: var(--muted); margin-top:3px; }

/* ─── Sections ───────────────────────────────────────── */
.section{
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:28px;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: 22px; font-weight:400; letter-spacing:.1px;
  color: rgba(255,255,255,.92);
}
.section-head p{ color: var(--muted); max-width:64ch; }

/* ─── Proof strips ───────────────────────────────────── */
.proof{
  display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px;
}
.proof .mini{
  border:1px solid rgba(198,167,94,.22);
  background: rgba(198,167,94,.08);
  border-radius: 16px; padding:16px;
  transition: border-color .25s, background .25s;
}
.proof .mini:hover{
  border-color: rgba(198,167,94,.42);
  background: rgba(198,167,94,.12);
}
.mini strong{
  font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; font-weight:600;
  color: var(--accent);
}
.mini span{ display:block; color: rgba(255,255,255,.82); margin-top:6px; font-size:13px; }

/* ─── Craft cards ────────────────────────────────────── */
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.card{
  border:1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:22px;
  transition: border-color .25s, transform .3s var(--ease-out-expo);
}
.card:hover{
  border-color: rgba(198,167,94,.28);
  transform: translateY(-2px);
}
.card .tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; font-weight:500;
  color: rgba(255,255,255,.7); margin-bottom:12px;
}
.card .tag .pill{
  width:24px; height:24px; border-radius:8px;
  background: rgba(198,167,94,.16); border:1px solid rgba(198,167,94,.35);
}
.card h3{
  font-family: var(--font-display);
  font-weight:400; font-size:18px; letter-spacing:.1px;
  margin:0 0 10px; color: rgba(255,255,255,.92);
}
.card p{ margin:0 0 14px; color: var(--muted); font-size:14px; }
.bullets{ margin:0; padding-left:18px; color: rgba(255,255,255,.72); }
.bullets li{ margin:7px 0; font-size:13.5px; }

/* ─── Portfolio ──────────────────────────────────────── */
.portfolio{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.work{
  grid-column: span 6;
  border:1px solid rgba(255,255,255,.09);
  border-radius: 22px; overflow:hidden;
  background: rgba(255,255,255,.025);
  transition:
    border-color .35s ease,
    box-shadow .35s ease,
    transform .4s var(--ease-out-expo);
}
.work:hover{
  border-color: rgba(198,167,94,.55);
  box-shadow:
    0 0 0 1px rgba(198,167,94,.18),
    0 28px 56px rgba(0,0,0,.55),
    0 0 40px rgba(198,167,94,.08);
  transform: translateY(-4px);
}
.work .thumb-wrap{
  overflow: hidden;
  border-bottom:1px solid rgba(255,255,255,.06);
  aspect-ratio: 4 / 3;
  position: relative;
}
.work .thumb{
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  transition: transform .65s var(--ease-out-expo);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.work:hover .thumb{
  transform: scale(1.07);
}
.work .body{ padding:16px 18px 20px; }
.work .meta{
  display:flex; gap:8px; flex-wrap:wrap;
  color: var(--muted2); font-size:11px; text-transform:uppercase; letter-spacing:.5px;
  margin-bottom:8px;
}
.work .meta span:first-child{
  color: var(--accent); font-weight:500;
}
.work h4{
  font-family: var(--font-display);
  font-weight:400; font-size:16px; letter-spacing:.1px;
  margin:0 0 8px; color: rgba(255,255,255,.9);
}
.work p{ margin:0; color: var(--muted); font-size:13px; }

/* ─── Process ────────────────────────────────────────── */
.process{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.step{
  grid-column: span 4;
  border:1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
  border-radius: 18px; padding:18px;
  transition: border-color .25s, background .25s;
}
.step:hover{
  border-color: rgba(198,167,94,.25);
  background: rgba(198,167,94,.03);
}
.step .num{
  width:36px; height:36px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(198,167,94,.35);
  background: rgba(198,167,94,.12);
  color: var(--accent); font-weight:600; font-size:15px;
  margin-bottom:12px;
}
.step h4{
  font-family: var(--font-display);
  font-weight:400; font-size:16px; margin:0 0 6px;
}
.step p{ margin:0; color: var(--muted); font-size:13px; }

/* ─── "À propos" human section ───────────────────────── */
.about-strip{
  display:flex; align-items:center; gap:32px; flex-wrap:wrap;
  padding:36px;
  border:1px solid rgba(198,167,94,.2);
  background: linear-gradient(135deg, rgba(198,167,94,.06) 0%, rgba(198,167,94,.02) 100%);
  border-radius: var(--radius2);
}
.about-strip .avatar{
  width:72px; height:72px; border-radius:999px; flex-shrink:0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, rgba(198,167,94,.7), rgba(198,167,94,.2));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size:24px; color: rgba(255,255,255,.9);
  border:2px solid rgba(198,167,94,.4);
}
.about-strip .about-text{ flex:1; min-width:220px; }
.about-strip .about-text p{
  color: var(--muted); font-size:14.5px; line-height:1.7; margin:0;
  font-weight:300;
}
.about-strip .about-text strong{
  display:block; margin-bottom:8px;
  font-size:15px; color: rgba(255,255,255,.88);
}

/* ─── Quote form ─────────────────────────────────────── */
.form-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
}
form{
  border:1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius2); padding:24px;
}
label{
  display:block;
  font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; font-weight:500;
  color: rgba(255,255,255,.82);
  margin: 14px 0 6px;
}
label:first-child{ margin-top:0; }
input, select, textarea{
  width:100%;
  padding:12px 14px; border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
  outline:none;
  font-family: var(--font-body); font-size:14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder{
  color: rgba(255,255,255,.38);
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(198,167,94,.55);
  box-shadow: 0 0 0 4px rgba(198,167,94,.10);
  background: rgba(255,255,255,.09);
}
select{
  appearance:none; -webkit-appearance:none; cursor:pointer;
  color: rgba(255,255,255,.92);
}
/* Style the select options (browser support limited but helps on supported browsers) */
select option{
  background: #1a1f2a;
  color: rgba(255,255,255,.88);
}
textarea{ min-height: 110px; resize: vertical; }

.note{
  border:1px solid rgba(198,167,94,.3);
  background: rgba(198,167,94,.07);
  border-radius: 20px; padding:22px;
  color: rgba(255,255,255,.88);
  align-self: start;
}
.note strong{
  display:block; margin-bottom:10px;
  font-size:15px; color: rgba(255,255,255,.95);
  letter-spacing:.1px;
}
.note p{
  margin:0; color: rgba(255,255,255,.78);
  font-size:14px; line-height:1.65;
}
.note a{ color: var(--accent); }
.note a:hover{ text-decoration:underline; }
.note small{ color: rgba(255,255,255,.62); font-size:13px; }

/* ─── Bouton copier courriel (anti-spam) ─────────────── */
.copy-email-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid rgba(198,167,94,.3);
  border-radius: 999px; padding: 7px 14px;
  color: var(--accent); font-size: 12px; letter-spacing: .3px;
  font-family: var(--font-body); cursor: pointer;
  transition: background .2s, border-color .2s;
  margin-top: 4px;
}
.copy-email-btn:hover {
  background: rgba(198,167,94,.08);
  border-color: rgba(198,167,94,.55);
}
.copy-email-btn .icon { font-size: 13px; }
.copy-email-btn.copied {
  color: #7ec87e;
  border-color: rgba(126,200,126,.4);
}
footer{
  padding:28px 0 36px;
  border-top:1px solid rgba(255,255,255,.06);
  color: var(--muted2);
}
.footer-grid{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-grid .left{ max-width:70ch; }
.footer-grid a{ color: rgba(255,255,255,.72); transition: color .2s; }
.footer-grid a:hover{ color: rgba(255,255,255,.92); }

/* ─── Reveal animations ──────────────────────────────── */
.reveal{
  opacity:0; transform: translateY(16px);
  transition: opacity .75s var(--ease-out-expo), transform .75s var(--ease-out-expo);
}
.reveal.in{ opacity:1; transform: translateY(0); }

/* ─── Mobile toggle ──────────────────────────────────── */
.mobile-toggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px; padding:10px 14px;
  color: rgba(255,255,255,.86); font-size:13px; font-family: var(--font-body);
  cursor:pointer;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-card .frame{ height: 260px; }
  .proof{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .form-wrap{ grid-template-columns: 1fr; }
  .work{ grid-column: span 12; }
  .step{ grid-column: span 12; }
  .nav{ display:none; }
  .mobile-toggle{ display:inline-flex; align-items:center; gap:8px; }
  .nav.open{
    display:flex;
    position:absolute; right:24px; top:70px;
    flex-direction:column;
    background: rgba(15,17,21,.98);
    border:1px solid var(--line); border-radius:18px;
    padding:12px; width: min(320px, calc(100% - 48px));
  }
  .nav.open a{ width:100%; }
  .about-strip{ flex-direction:column; text-align:center; }
}

@media (max-width: 480px){
  .hero h1{ font-size:32px; }
  .container{ width: calc(100% - 32px); }
}