/* ============================================================
   ARTCERAM — Version Premium
   Noir profond, blanc, hairlines, accent bleu logo (#4e97dc).
   Typo : Outfit (800/300 = ART/CERAM) + Inter.
   Signature : photos en noir & blanc qui se colorent au survol,
   filets bleus fins, monogramme typographique oversize.
   ============================================================ */

:root {
  --noir: #0b0d10;
  --panneau: #14171c;
  --panneau-2: #1a1e24;
  --blanc: #f5f6f7;
  --gris: #8b929c;
  --bleu: #4e97dc;
  --filet: rgba(245,246,247,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--noir);
  color: var(--blanc);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: 'Outfit', sans-serif; line-height: 1.08; letter-spacing: -0.015em; }
.mot-fort { font-weight: 800; }
.mot-fin { font-weight: 300; }

.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--bleu);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--bleu); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,13,16,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.barre {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 18px 28px;
}
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque svg { height: 34px; width: auto; }
.marque .nom { font-family: 'Outfit', sans-serif; font-size: 1.3rem; letter-spacing: 0.05em; }
nav.principale { display: flex; gap: 30px; align-items: center; }
nav.principale a {
  text-decoration: none; font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 0.95rem; color: var(--gris); padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
nav.principale a:hover, nav.principale a:focus-visible { color: var(--blanc); }
nav.principale a.active { color: var(--blanc); border-bottom-color: var(--bleu); }
nav.principale a.cta {
  color: var(--noir); background: var(--blanc); padding: 10px 22px;
  border-radius: 999px; font-weight: 600; border: 1px solid var(--blanc);
  transition: background .15s, color .15s;
}
nav.principale a.cta:hover { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }

.burger { display: none; }
@media (max-width: 900px) {
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--filet); color: var(--blanc);
    border-radius: 8px; width: 44px; height: 44px; font-size: 1.25rem; cursor: pointer;
  }
  nav.principale {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--noir); border-bottom: 1px solid var(--filet);
    flex-direction: column; align-items: flex-start; padding: 18px 28px 24px; gap: 16px;
  }
  nav.principale.ouverte { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero .monogramme {
  position: absolute; right: -60px; top: 40px;
  font-family: 'Outfit', sans-serif; font-size: clamp(9rem, 22vw, 20rem);
  line-height: 0.85; color: transparent;
  -webkit-text-stroke: 1px rgba(245,246,247,0.07);
  user-select: none; pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem); max-width: 18ch; margin: 26px 0 24px;
}
.hero h1 .bleu { color: var(--bleu); }
.hero p.chapo { color: var(--gris); font-size: 1.15rem; max-width: 56ch; margin-bottom: 40px; }

.boutons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.98rem; padding: 15px 32px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-plein { background: var(--blanc); color: var(--noir); border: 1px solid var(--blanc); }
.btn-plein:hover { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.btn-contour { border: 1px solid var(--filet); color: var(--blanc); }
.btn-contour:hover { border-color: var(--bleu); color: var(--bleu); }

/* ---------- Photos : N&B → couleur ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--filet); background: var(--panneau);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter .5s ease, transform .5s ease;
}
.photo:hover img, .photo:focus-within img { filter: grayscale(0); transform: scale(1.025); }
.photo .tag {
  position: absolute; left: 14px; bottom: 14px;
  font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(11,13,16,0.82); border: 1px solid var(--filet);
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Sections ---------- */
section.bloc { padding: 96px 0; border-top: 1px solid var(--filet); }
.entete-section { max-width: 760px; margin-bottom: 56px; }
.entete-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 22px; }
.entete-section p { color: var(--gris); margin-top: 16px; }

/* ---------- Grilles ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.grille-3 > * { background: var(--noir); padding: 38px 32px; }
@media (max-width: 940px) { .grille-3 { grid-template-columns: 1fr; } }

.grille-services { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.grille-services > * { background: var(--noir); padding: 40px 36px; }
@media (max-width: 760px) { .grille-services { grid-template-columns: 1fr; } }

.num {
  font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 2rem;
  color: var(--bleu); display: block; margin-bottom: 14px;
}
.grille-3 h3, .grille-services h3 { font-size: 1.28rem; margin-bottom: 12px; }
.grille-3 p, .grille-services p { color: var(--gris); font-size: 0.98rem; }

ul.prestations { list-style: none; margin-top: 20px; }
ul.prestations li {
  padding: 10px 0; color: #cfd4da; font-size: 0.96rem;
  border-bottom: 1px solid var(--filet); display: flex; gap: 12px; align-items: baseline;
}
ul.prestations li:last-child { border-bottom: none; }
ul.prestations li::before { content: "—"; color: var(--bleu); flex-shrink: 0; }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.galerie .photo { aspect-ratio: 4/3; }
@media (max-width: 940px) { .galerie { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .galerie { grid-template-columns: 1fr; } }

/* ---------- Frise ---------- */
.frise { border-left: 1px solid var(--filet); margin-left: 8px; padding-left: 44px; }
.etape { position: relative; padding-bottom: 56px; }
.etape:last-child { padding-bottom: 0; }
.etape::before {
  content: ""; position: absolute; left: -49px; top: 10px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--bleu);
  box-shadow: 0 0 0 5px rgba(78,151,220,0.15);
}
.etape .date {
  font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 1.6rem; color: var(--bleu);
}
.etape h3 { font-size: 1.3rem; margin: 8px 0 10px; }
.etape p { color: var(--gris); max-width: 62ch; }

/* ---------- Contact ---------- */
.panneau { background: var(--panneau); border: 1px solid var(--filet); border-radius: 6px; padding: 40px 36px; }
.fiche-contact dt {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--bleu); margin-top: 24px;
}
.fiche-contact dt:first-child { margin-top: 0; }
.fiche-contact dd { margin-top: 6px; font-size: 1.08rem; }
.fiche-contact dd a { text-decoration: none; border-bottom: 1px solid var(--bleu); }
table.horaires { width: 100%; border-collapse: collapse; }
table.horaires td { padding: 12px 4px; border-bottom: 1px solid var(--filet); }
table.horaires td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #cfd4da; }
table.horaires tr.ferme td { color: var(--gris); }
.grille-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .grille-contact { grid-template-columns: 1fr; } }

/* ---------- Bande CTA ---------- */
.bande-cta { padding: 110px 0; text-align: center; border-top: 1px solid var(--filet); }
.bande-cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 20px 0 16px; }
.bande-cta p { color: var(--gris); margin-bottom: 36px; }

/* ---------- Marquee France : défilement continu ---------- */
.bande-france {
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
  padding: 22px 0; overflow: hidden; white-space: nowrap;
}
.bande-france .piste {
  display: inline-flex;
  animation: defile 28s linear infinite;
  will-change: transform;
}
.bande-france:hover .piste { animation-play-state: paused; }
.bande-france span {
  font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 1.05rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gris);
  padding-right: 0.24em;
}
.bande-france b { color: var(--bleu); font-weight: 600; }
@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Animations d'entrée du hero ---------- */
@keyframes montee {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anime-hero > * { animation: montee .8s cubic-bezier(.22,.8,.3,1) both; }
.anime-hero > *:nth-child(1) { animation-delay: .05s; }
.anime-hero > *:nth-child(2) { animation-delay: .18s; }
.anime-hero > *:nth-child(3) { animation-delay: .32s; }
.anime-hero > *:nth-child(4) { animation-delay: .46s; }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.grille-3 > .reveal:nth-child(2) { transition-delay: .12s; }
.grille-3 > .reveal:nth-child(3) { transition-delay: .24s; }
.grille-3 > .reveal:nth-child(4) { transition-delay: .10s; }
.grille-3 > .reveal:nth-child(5) { transition-delay: .20s; }
.grille-3 > .reveal:nth-child(6) { transition-delay: .30s; }

/* ---------- Survol des cellules de grille ---------- */
.grille-3 > div, .grille-services > div { transition: background .3s ease; }
.grille-3 > div:hover, .grille-services > div:hover { background: var(--panneau); }
.grille-3 h3, .grille-services h3 { transition: color .3s ease; }
.grille-3 > div:hover h3, .grille-services > div:hover h3 { color: var(--bleu); }

@media (prefers-reduced-motion: reduce) {
  .bande-france .piste { animation: none; }
  .anime-hero > * { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero Histoire : mer de Sète en fond ---------- */
.hero-mer {
  background:
    linear-gradient(180deg, rgba(11,13,16,0.86) 0%, rgba(11,13,16,0.72) 55%, var(--noir) 100%),
    url("img/mer-sete-nb.jpg") center 62% / cover no-repeat;
  border-bottom: 1px solid var(--filet);
}

/* ---------- Fonds N&B fondus ---------- */
.hero-atelier {
  background:
    linear-gradient(180deg, rgba(11,13,16,0.90) 0%, rgba(11,13,16,0.78) 55%, var(--noir) 100%),
    url("img/atelier-panorama-nb.jpg") center 45% / cover no-repeat;
  border-bottom: 1px solid var(--filet);
}
.hero-stellites {
  background:
    linear-gradient(180deg, rgba(11,13,16,0.90) 0%, rgba(11,13,16,0.80) 55%, var(--noir) 100%),
    url("img/stellites-nb.jpg") center 38% / cover no-repeat;
  border-bottom: 1px solid var(--filet);
}
.bloc-usineuse {
  background:
    linear-gradient(90deg, rgba(11,13,16,0.94) 0%, rgba(11,13,16,0.80) 60%, rgba(11,13,16,0.92) 100%),
    url("img/usinage-disque-nb.jpg") center 35% / cover no-repeat;
}
.cta-mallette {
  background:
    linear-gradient(180deg, var(--noir) 0%, rgba(11,13,16,0.84) 45%, var(--noir) 100%),
    url("img/mallette-nb.jpg") center 55% / cover no-repeat;
}

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--filet); padding: 70px 0 40px; }
footer.site .conteneur { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
footer.site h4 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; margin-bottom: 12px; }
footer.site p { color: var(--gris); font-size: 0.95rem; }
footer.site a { color: var(--blanc); text-decoration: none; border-bottom: 1px solid var(--bleu); }
footer.site .colophon {
  width: 100%; margin-top: 30px; padding-top: 24px;
  border-top: 1px solid var(--filet); font-size: 0.82rem; color: var(--gris);
}

:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
