  :root{
    --ink: #211f1c;
    --ink-2: #2b2823;
    --paper: #faf7f1;
    --paper-dim: #ece5d6;
    --gold: #c1904f;
    --gold-dark: #8f6633;
    --text: #38352f;
    --muted: #726c60;
    --line: rgba(56,53,47,0.12);
    --radius: 4px;
  }
  *{ box-sizing:border-box; margin:0; padding:0; }
  html{ scroll-behavior:smooth; }
  body{
    background:var(--paper); color:var(--text);
    font-family:'Inter', sans-serif; font-size:16px; line-height:1.65;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3{ font-family:'Fraunces', serif; font-weight:500; letter-spacing:-0.01em; line-height:1.15; }
  .mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.03em; }
  a{ color:inherit; text-decoration:none; }
  img{ display:block; max-width:100%; }
  .wrap{ max-width:1160px; margin:0 auto; padding:0 32px; }
  section{ position:relative; }

  a:focus-visible, button:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
  @media (prefers-reduced-motion: reduce){ *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; } }
  .reveal{ opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease; }
  .reveal.is-visible{ opacity:1; transform:none; }

  /* Header */
  header{ position:fixed; top:0; left:0; right:0; z-index:60; transition:background .3s ease, border-color .3s ease; border-bottom:1px solid transparent; }
  header.scrolled{ background:rgba(250,247,241,0.94); backdrop-filter:blur(10px); border-color:var(--line); }
  .nav-row{ display:flex; align-items:center; justify-content:space-between; height:80px; }
  .logo{ font-family:'IBM Plex Mono', monospace; font-size:22px; font-weight:700; letter-spacing:0.04em; display:flex; align-items:center; gap:10px; color:var(--paper); transition:color .3s ease; }
  header.scrolled .logo{ color:var(--ink); }
  .logo-mark{ width:40px; height:40px; }
  .logo-mark img{ width:100%; height:100%; object-fit:contain; }
  nav ul{ list-style:none; display:none; gap:34px; }
  @media(min-width:860px){ nav ul{ display:flex; } }
  nav a{ font-size:14px; color:rgba(250,247,241,0.82); transition:color .3s ease; }
  header.scrolled nav a{ color:var(--muted); }
  nav a:hover{ color:var(--gold) !important; }
  .btn{ display:inline-flex; align-items:center; gap:8px; padding:12px 24px; border-radius:var(--radius); font-size:14px; font-weight:500; transition:all .2s ease; border:1px solid transparent; cursor:pointer; white-space:nowrap; }
  .btn-primary{ background:var(--gold); color:var(--ink); }
  .btn-primary:hover{ background:#d4a266; }
  .btn-outline-light{ border-color:rgba(250,247,241,0.5); color:var(--paper); }
  .btn-outline-light:hover{ border-color:var(--gold); color:var(--gold); }
  .nav-cta{ display:none; }
  @media(min-width:860px){ .nav-cta{ display:inline-flex; } }

  /* HERO */
  .hero{ position:relative; min-height:92vh; display:flex; align-items:flex-end; overflow:hidden; }
  .hero-bg{ position:absolute; inset:0; z-index:0; }
  .hero-bg img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1.4s ease; }
  .hero-bg img.is-active{ opacity:1; }
  .hero-bg::after{ content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(33,31,28,0.55) 0%, rgba(33,31,28,0.35) 40%, rgba(33,31,28,0.92) 100%); }
  .hero-dots{ position:absolute; right:32px; bottom:32px; z-index:2; display:flex; gap:8px; }
  .hero-dots button{ width:8px; height:8px; border-radius:50%; background:rgba(250,247,241,0.35); border:none; cursor:pointer; padding:0; transition:background .3s ease, transform .3s ease; }
  .hero-dots button.is-active{ background:var(--gold); transform:scale(1.25); }
  .hero-content{ position:relative; z-index:1; padding:0 0 88px; width:100%; }
  .eyebrow{ display:inline-flex; align-items:center; gap:10px; font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin-bottom:20px; }
  .eyebrow::before{ content:''; width:22px; height:1px; background:var(--gold); }
  .hero h1{ font-size:clamp(32px, 4.8vw, 54px); color:var(--paper); max-width:16ch; }
  .hero p.lead{ margin-top:22px; font-size:17px; color:rgba(250,247,241,0.82); max-width:48ch; }
  .hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
  .hero-stats{ display:flex; gap:40px; margin-top:52px; flex-wrap:wrap; }
  .hero-stats div{ font-family:'IBM Plex Mono', monospace; }
  .hero-stats .num{ font-size:26px; color:var(--paper); font-weight:600; }
  .hero-stats .lbl{ font-size:11px; color:rgba(250,247,241,0.6); letter-spacing:0.05em; margin-top:2px; text-transform:uppercase; }

  /* Section heads */
  .section-head{ max-width:640px; margin-bottom:52px; }
  .section-head .eyebrow{ color:var(--gold-dark); }
  .section-head h2{ font-size:clamp(26px, 3.2vw, 36px); color:var(--ink); }
  .section-head p{ margin-top:16px; color:var(--muted); font-size:16px; }
  .band{ padding:100px 0; border-top:1px solid var(--line); }
  .band-dark{ background:var(--ink); color:var(--paper); }
  .band-dark .section-head h2{ color:var(--paper); }
  .band-dark .section-head p{ color:rgba(250,247,241,0.65); }
  .band-dark .section-head .eyebrow{ color:var(--gold); }

  /* Intro / constat */
  .intro-grid{ display:grid; grid-template-columns:1fr; gap:44px; align-items:start; }
  @media(min-width:860px){ .intro-grid{ grid-template-columns:0.9fr 1.1fr; } }
  .intro-grid h2{ font-size:clamp(24px,3vw,32px); color:var(--ink); }
  .intro-list{ list-style:none; display:flex; flex-direction:column; gap:22px; }
  .intro-list li{ display:flex; gap:16px; }
  .intro-list .n{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--gold-dark); padding-top:2px; }
  .intro-list h3{ font-size:17px; color:var(--ink); font-weight:500; margin-bottom:4px; }
  .intro-list p{ font-size:14.5px; color:var(--muted); }

  /* Services */
  .services-grid{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
  @media(min-width:760px){ .services-grid{ grid-template-columns:repeat(3,1fr); } }
  .service-card{ background:var(--paper); padding:36px 30px; }
  .service-card h3{ font-size:19px; margin:16px 0 10px; color:var(--ink); }
  .service-card p{ font-size:14.5px; color:var(--muted); }
  .service-foot{ margin-top:20px; padding-top:16px; border-top:1px solid var(--line); font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--gold-dark); }

  /* Réalisations — carrousel horizontal */
  .gallery-wrap{ position:relative; }
  .gallery{
    display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory;
    padding-bottom:8px; scrollbar-width:none;
  }
  .gallery::-webkit-scrollbar{ display:none; }
  .gallery-card{
    flex:0 0 320px; scroll-snap-align:start;
    background:var(--paper); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
    transition:transform .3s ease, box-shadow .3s ease; cursor:pointer;
  }
  @media(min-width:640px){ .gallery-card{ flex-basis:360px; } }
  .gallery-card:hover{ transform:translateY(-5px); box-shadow:0 18px 40px rgba(33,31,28,0.12); }
  .gallery-img{ aspect-ratio:16/10; overflow:hidden; background:var(--ink-2); }
  .gallery-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
  .gallery-card:hover .gallery-img img{ transform:scale(1.04); }
  .gallery-body{ padding:24px 26px; }
  .gallery-tag{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--gold-dark); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
  .gallery-body h3{ font-size:18px; color:var(--ink); margin-bottom:8px; }
  .gallery-body p{ font-size:14px; color:var(--muted); }
  .gallery-note{ margin-top:28px; font-size:13.5px; color:var(--muted); max-width:64ch; }
  .gallery-nav{ display:flex; gap:10px; justify-content:flex-end; margin-bottom:20px; }
  .gallery-nav button{
    width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--paper);
    color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:border-color .2s ease, color .2s ease;
  }
  .gallery-nav button:hover{ border-color:var(--gold-dark); color:var(--gold-dark); }
  .gallery-fade{
    position:absolute; top:0; bottom:8px; width:60px; pointer-events:none;
  }
  .gallery-fade.right{ right:0; background:linear-gradient(90deg, transparent, var(--paper)); }
  @media(min-width:760px){ .gallery-fade.right-dark{ background:linear-gradient(90deg, transparent, var(--paper)); } }

  /* Méthode */
  .steps{ display:grid; grid-template-columns:1fr; gap:0; }
  .step{ display:grid; grid-template-columns:56px 1fr; gap:22px; padding:26px 0; border-top:1px solid rgba(250,247,241,0.14); }
  .step:last-child{ border-bottom:1px solid rgba(250,247,241,0.14); }
  .step-num{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--gold); padding-top:3px; }
  .step h3{ font-size:18px; color:var(--paper); font-weight:500; margin-bottom:6px; }
  .step p{ color:rgba(250,247,241,0.62); font-size:15px; max-width:56ch; }

  /* À propos */
  .about-grid{ display:grid; grid-template-columns:1fr; gap:48px; align-items:start; }
  @media(min-width:860px){ .about-grid{ grid-template-columns:0.85fr 1.15fr; } }
  .about-card{ background:var(--paper-dim); border-radius:var(--radius); padding:28px; }
  .about-card .id-row{ display:flex; justify-content:space-between; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); padding:10px 0; border-bottom:1px solid var(--line); }
  .about-card .id-row:last-child{ border-bottom:none; }
  .about-card .id-row span:last-child{ color:var(--ink); text-align:right; }
  .about-text p{ color:var(--muted); font-size:16px; margin-bottom:16px; max-width:58ch; }
  .about-text p strong{ color:var(--ink); font-weight:500; }

  /* Contact */
  .contact-grid{ display:grid; grid-template-columns:1fr; gap:40px; }
  @media(min-width:860px){ .contact-grid{ grid-template-columns:0.9fr 1.1fr; } }
  .contact-info .row{ padding:16px 0; border-top:1px solid rgba(250,247,241,0.14); }
  .contact-info .row:last-child{ border-bottom:1px solid rgba(250,247,241,0.14); }
  .contact-info .lbl{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:rgba(250,247,241,0.5); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
  .contact-info .val{ font-size:16px; color:var(--paper); }
  .contact-info .val a:hover{ color:var(--gold); }

  form.contact-form{ display:flex; flex-direction:column; gap:16px; }
  .field{ display:flex; flex-direction:column; gap:8px; }
  .field label{ font-size:13px; color:rgba(250,247,241,0.7); }
  .field input, .field textarea{ background:var(--ink-2); border:1px solid rgba(250,247,241,0.18); border-radius:var(--radius); padding:13px 14px; color:var(--paper); font-family:'Inter', sans-serif; font-size:14.5px; transition:border-color .2s ease; }
  .field input[type="file"]{ padding:10px 14px; font-size:13px; }
  .field input[type="file"]::file-selector-button{ background:var(--gold); color:var(--ink); border:none; border-radius:3px; padding:7px 12px; font-size:12.5px; font-weight:500; margin-right:12px; cursor:pointer; }
  .field input:focus, .field textarea:focus{ outline:none; border-color:var(--gold); }
  .field textarea{ resize:vertical; min-height:110px; }
  .contact-form .btn-primary{ align-self:flex-start; margin-top:6px; }
  .form-note{ font-size:12.5px; color:rgba(250,247,241,0.45); margin-top:4px; }

  /* FAQ */
  .faq{ max-width:820px; }
  .faq-item{ border-top:1px solid var(--line); padding:22px 0; }
  .faq-item:last-child{ border-bottom:1px solid var(--line); }
  .faq-item summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:20px; font-size:17px; font-weight:500; color:var(--ink); font-family:'Fraunces', serif; }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item summary::after{ content:'+'; font-family:'IBM Plex Mono', monospace; font-size:20px; color:var(--gold-dark); flex-shrink:0; transition:transform .2s ease; }
  .faq-item[open] summary::after{ content:'−'; }
  .faq-item p{ margin-top:14px; color:var(--muted); font-size:14.5px; max-width:64ch; }

  /* Mentions légales */
  .legal p{ color:var(--muted); font-size:14.5px; margin-bottom:12px; max-width:64ch; }
  .legal strong{ color:var(--ink); }

  /* Lightbox */
  .lightbox{ position:fixed; inset:0; z-index:100; background:rgba(15,14,12,0.92); display:none; align-items:center; justify-content:center; padding:32px; }
  .lightbox.is-open{ display:flex; }
  .lightbox-inner{ max-width:1000px; width:100%; max-height:90vh; display:flex; flex-direction:column; }
  .lightbox-img-wrap{ background:var(--ink-2); border-radius:var(--radius) var(--radius) 0 0; overflow:hidden; max-height:68vh; display:flex; align-items:center; justify-content:center; }
  .lightbox-img-wrap img{ width:100%; height:100%; object-fit:contain; max-height:68vh; }
  .lightbox-body{ background:var(--paper); padding:26px 30px; border-radius:0 0 var(--radius) var(--radius); }
  .lightbox-tag{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--gold-dark); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
  .lightbox-body h3{ font-size:20px; color:var(--ink); margin-bottom:8px; }
  .lightbox-body p{ font-size:14.5px; color:var(--muted); max-width:70ch; }
  .lightbox-close{ position:absolute; top:24px; right:32px; width:40px; height:40px; border-radius:50%; background:rgba(250,247,241,0.1); border:1px solid rgba(250,247,241,0.3); color:var(--paper); font-size:20px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
  .lightbox-close:hover{ background:rgba(250,247,241,0.18); }

  footer{ border-top:1px solid var(--line); padding:36px 0; background:var(--paper); }
  .footer-row{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; font-size:13px; color:var(--muted); }
  .footer-row a:hover{ color:var(--ink); }
  .footer-row .links{ display:flex; gap:24px; flex-wrap:wrap; }

  /* ===== Prestations — tuiles cliquables (7 catégories) ===== */
  .presta-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
  @media(min-width:640px){ .presta-grid{ grid-template-columns:repeat(3,1fr); } }
  @media(min-width:960px){ .presta-grid{ grid-template-columns:repeat(4,1fr); } }
  .presta-tile{
    position:relative; display:block; border-radius:var(--radius); overflow:hidden;
    aspect-ratio:4/5; background:var(--ink-2); border:1px solid var(--line);
    transition:transform .3s ease, box-shadow .3s ease;
  }
  .presta-tile:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(33,31,28,0.16); }
  .presta-tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
  .presta-tile:hover img{ transform:scale(1.06); }
  .presta-tile::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(33,31,28,0.05) 0%, rgba(33,31,28,0.82) 100%); }
  .presta-tile .presta-label{
    position:absolute; left:0; right:0; bottom:0; z-index:2; padding:18px 16px;
    font-family:'Fraunces', serif; font-size:16px; color:var(--paper); line-height:1.25;
  }
  .presta-tile .presta-label .arrow{ display:inline-block; margin-left:6px; color:var(--gold); transition:transform .2s ease; }
  .presta-tile:hover .presta-label .arrow{ transform:translateX(4px); }

  /* ===== Fil d'ariane (catégorie / opération) ===== */
  .crumb{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted); margin-bottom:18px; }
  .crumb a{ color:var(--gold-dark); }
  .crumb a:hover{ text-decoration:underline; }
  .crumb .sep{ margin:0 8px; opacity:.5; }

  /* ===== Page catégorie — liste d'opérations ===== */
  .cat-hero{ padding:150px 0 60px; border-bottom:1px solid var(--line); }
  .cat-hero .eyebrow{ color:var(--gold-dark); }
  .cat-hero h1{ font-size:clamp(28px,4vw,42px); color:var(--ink); max-width:20ch; }
  .cat-hero p{ margin-top:16px; color:var(--muted); font-size:16px; max-width:60ch; }

  .op-grid{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-top:8px; }
  @media(min-width:700px){ .op-grid{ grid-template-columns:repeat(2,1fr); } }
  .op-card{ display:block; background:var(--paper); }
  .op-card-img{ aspect-ratio:16/10; overflow:hidden; background:var(--ink-2); }
  .op-card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
  .op-card:hover .op-card-img img{ transform:scale(1.05); }
  .op-card-body{ padding:22px 24px; }
  .op-card-tag{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--gold-dark); text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
  .op-card-body h3{ font-size:18px; color:var(--ink); margin-bottom:6px; }
  .op-card-body p{ font-size:14px; color:var(--muted); }
  .op-card-placeholder .op-card-img{ display:flex; align-items:center; justify-content:center; color:rgba(250,247,241,0.35); font-family:'IBM Plex Mono', monospace; font-size:12px; text-align:center; padding:20px; }

  /* ===== Page opération — fiche détail ===== */
  .op-hero{ padding:150px 0 0; }
  .op-detail-grid{ display:grid; grid-template-columns:1fr; gap:44px; padding:44px 0 0; }
  @media(min-width:900px){ .op-detail-grid{ grid-template-columns:0.85fr 1.15fr; } }
  .op-info h1{ font-size:clamp(26px,3.4vw,36px); color:var(--ink); margin-bottom:20px; }
  .op-info p.desc{ color:var(--muted); font-size:15.5px; margin-bottom:28px; max-width:52ch; }
  .op-meta{ background:var(--paper-dim); border-radius:var(--radius); padding:24px; }
  .op-meta .row{ display:flex; justify-content:space-between; gap:16px; font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--muted); padding:12px 0; border-bottom:1px solid var(--line); }
  .op-meta .row:last-child{ border-bottom:none; }
  .op-meta .row span:last-child{ color:var(--ink); text-align:right; }

  .op-photos{ display:grid; grid-template-columns:1fr; gap:16px; }
  .op-photos .main-photo{ aspect-ratio:16/10; border-radius:var(--radius); overflow:hidden; background:var(--ink-2); }
  .op-photos .main-photo img{ width:100%; height:100%; object-fit:cover; }
  .op-photos .thumb-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  .op-photos .thumb-row .thumb{ aspect-ratio:4/3; border-radius:var(--radius); overflow:hidden; background:var(--ink-2); cursor:pointer; border:2px solid transparent; }
  .op-photos .thumb-row .thumb img{ width:100%; height:100%; object-fit:cover; }
  .op-photos .thumb-row .thumb:hover{ border-color:var(--gold); }

  .op-nav{ display:flex; justify-content:space-between; align-items:center; padding:48px 0; border-top:1px solid var(--line); margin-top:56px; }
  .op-nav a{ font-size:14px; color:var(--gold-dark); }
  .op-nav a:hover{ text-decoration:underline; }

  .placeholder-note{ background:#fff6e0; border:1px dashed var(--gold-dark); border-radius:var(--radius); padding:14px 16px; font-size:13px; color:var(--gold-dark); margin-bottom:28px; }

  /* ===== Lecteur PDF intégré (PDF.js) ===== */
  .pdf-viewer{ margin-top:48px; }
  .pdf-viewer .section-label{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--gold-dark); text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; }
  .pdf-canvas-wrap{
    background:var(--ink-2); border-radius:var(--radius); border:1px solid var(--line);
    overflow:auto; display:flex; justify-content:center; align-items:flex-start;
    padding:24px; max-height:80vh;
  }
  .pdf-canvas-wrap canvas{ box-shadow:0 8px 30px rgba(0,0,0,0.35); max-width:100%; height:auto; }
  .pdf-controls{
    display:flex; align-items:center; justify-content:center; gap:18px;
    margin-top:16px; font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--muted);
  }
  .pdf-controls button{
    display:inline-flex; align-items:center; gap:6px; padding:9px 16px; border-radius:var(--radius);
    font-size:13px; font-family:'IBM Plex Mono', monospace; border:1px solid var(--line);
    background:var(--paper); color:var(--ink); cursor:pointer; transition:border-color .2s ease, color .2s ease;
  }
  .pdf-controls button:hover:not(:disabled){ border-color:var(--gold-dark); color:var(--gold-dark); }
  .pdf-controls button:disabled{ opacity:.35; cursor:not-allowed; }
  .pdf-controls .page-indicator{ min-width:70px; text-align:center; }
  .pdf-loading{ color:var(--muted); font-size:14px; padding:40px; text-align:center; }
