/* ==========================================================================
   Imprimex & Co — mise en page générale (maquette de la future page d'accueil)
   Direction : l'atelier d'impression. Noir encre, magenta, papier offset,
   repères de coupe et de repérage comme ornements.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--encre);
  color: var(--blanc);
  font: 400 var(--t-m)/1.6 var(--f-texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grain papier sur toute la page */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h2 { font-size: var(--t-xl); }
h2 em, h1 em { font-style: normal; color: var(--magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }

/* ---------- Petits éléments ---------- */
.surtitre {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem;
  font: 500 var(--t-xs)/1 var(--f-texte); letter-spacing: .32em; text-transform: uppercase; color: var(--gris-clair);
}
.surtitre--sombre { color: #5b5b63; }
.pastille { width: .5rem; height: .5rem; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px var(--magenta-voile); }

.bouton {
  --fond: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 var(--t-s)/1 var(--f-texte); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .2s, background .3s, color .3s, box-shadow .3s; background: var(--fond);
}
.bouton:hover { transform: translateY(-2px); }
.bouton--magenta { --fond: var(--magenta); color: var(--blanc); box-shadow: 0 10px 30px -10px rgba(228,0,124,.7); }
.bouton--magenta:hover { --fond: var(--magenta-clair); box-shadow: 0 14px 40px -10px rgba(228,0,124,.9); }
.bouton--ligne { border-color: rgba(255,255,255,.3); color: var(--blanc); }
.bouton--ligne:hover { border-color: var(--blanc); }
.bouton--petit { padding: .75rem 1.2rem; font-size: var(--t-xs); }
.bouton--plein { width: 100%; }

/* Repères de repérage (cible) */
.repere { position: absolute; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; z-index: 1; }
.repere::before, .repere::after { content: ""; position: absolute; background: rgba(255,255,255,.35); }
.repere::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.repere::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.repere--hg { top: 110px; left: 28px; }
.repere--hd { bottom: 40px; right: 28px; }

/* Traits de coupe autour d'une carte */
.coupe { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.coupe::before, .coupe::after { content: ""; position: absolute; background: currentColor; opacity: .55; }
.coupe::before { width: 1px; height: 16px; }
.coupe::after { height: 1px; width: 16px; }
.coupe--hg { top: -26px; left: -26px; } .coupe--hg::before { right: 0; top: 0; } .coupe--hg::after { bottom: 0; left: 0; }
.coupe--hd { top: -26px; right: -26px; } .coupe--hd::before { left: 0; top: 0; } .coupe--hd::after { bottom: 0; right: 0; }
.coupe--bg { bottom: -26px; left: -26px; } .coupe--bg::before { right: 0; bottom: 0; } .coupe--bg::after { top: 0; left: 0; }
.coupe--bd { bottom: -26px; right: -26px; } .coupe--bd::before { left: 0; bottom: 0; } .coupe--bd::after { top: 0; right: 0; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gouttiere); transition: background .4s, padding .4s; }
.entete.is-defile { background: rgba(11,11,13,.82); backdrop-filter: blur(14px); padding-block: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.entete__barre { max-width: var(--largeur); margin: auto; display: flex; align-items: center; gap: 2rem; }
.entete__logo img { width: 168px; height: auto; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { font: 400 var(--t-s)/1 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gris-clair); position: relative; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--magenta); transition: right .3s; }
.nav a:hover { color: var(--blanc); }
.nav a:hover::after { right: 0; }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--blanc); transition: transform .3s; }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 130px var(--gouttiere) 80px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(228,0,124,.22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(228,0,124,.08), transparent 70%),
    var(--encre);
}
/* Trame de points (similigravure) qui s'estompe */
.hero__trame {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle, rgba(228,0,124,.55) 1.1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(55% 60% at 80% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(55% 60% at 80% 45%, #000 0%, transparent 75%);
}
.hero__grille { position: relative; z-index: 2; max-width: var(--largeur); width: 100%; margin: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__titre { font-size: var(--t-xxl); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 1.8rem; }
.hero__titre .ligne { display: block; opacity: 0; transform: translateY(40%); animation: monte .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__titre .ligne:nth-child(2) { animation-delay: .08s; }
.hero__titre .ligne:nth-child(3) { animation-delay: .16s; }
.hero__titre .ligne:nth-child(4) { animation-delay: .24s; }
.ligne--magenta { color: var(--magenta); }
.ligne--fine { font: 300 .42em/1.4 var(--f-texte); letter-spacing: .3em; text-transform: uppercase; color: var(--gris-clair); margin-top: .9rem; }
@keyframes monte { to { opacity: 1; transform: none; } }

.hero__intro { max-width: 34rem; color: var(--gris-clair); font-weight: 300; font-size: 1.12rem; margin: 0 0 2.2rem; animation: apparait 1s .4s both; }
.hero__intro strong { color: var(--blanc); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; animation: apparait 1s .5s both; }
.hero__preuves { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; padding: 0; margin: 2.6rem 0 0; color: var(--gris); font-size: var(--t-s); animation: apparait 1s .6s both; }
.hero__preuves b { color: var(--blanc); font-family: var(--f-titre); font-weight: 700; margin-right: .2rem; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scène de la carte */
.hero__scene { position: relative; display: grid; justify-items: center; gap: 2.6rem; animation: apparait 1.2s .3s both; }
.vitrine { position: relative; width: min(100%, 470px); color: var(--blanc); perspective: 1400px; }
.vitrine__ombre { position: absolute; left: 8%; right: 8%; bottom: -46px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); filter: blur(6px); }
.vitrine__legende { display: flex; align-items: center; gap: 1.4rem; font-size: var(--t-s); color: var(--gris-clair); letter-spacing: .08em; }
.vitrine__nom { min-width: 9rem; text-align: right; font-family: var(--f-titre); font-weight: 600; color: var(--blanc); transition: opacity .3s; }
.vitrine__puces { display: flex; gap: .55rem; }
.vitrine__puces button { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.22); cursor: pointer; transition: background .3s, width .3s; }
.vitrine__puces button.is-actif { background: var(--magenta); width: 44px; }
/* Gamme de contrôle CMJN */
.gamme { position: absolute; right: -10px; top: 50%; translate: 0 -50%; display: grid; gap: 4px; }
.gamme i { width: 10px; height: 26px; }
.gamme i:nth-child(1) { background: var(--cyan); } .gamme i:nth-child(2) { background: var(--magenta); }
.gamme i:nth-child(3) { background: var(--jaune); } .gamme i:nth-child(4) { background: #111; outline: 1px solid #333; }

/* Carte 3D (commune à la vitrine et à l'épreuve) */
.carte3d { position: relative; width: 100%; aspect-ratio: 85 / 55; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.carte3d.is-verso { transform: rotateY(180deg); }
.carte3d__face { position: absolute; inset: 0; border-radius: 5px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--ombre-carte); background: #1a1a1e; }
.carte3d__face img { width: 100%; height: 100%; object-fit: cover; }
.carte3d__face--verso { transform: rotateY(180deg); }
/* Reflet satiné qui suit l'inclinaison */
.carte3d__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%); background-size: 250% 100%; background-position: var(--reflet, 60%) 0; mix-blend-mode: soft-light; }

/* ---------- Bandeau défilant ---------- */
.bandeau { background: var(--magenta); overflow: hidden; padding: 1.05rem 0; transform: rotate(-1.2deg); margin: -1.2rem -2% 0; position: relative; z-index: 3; }
.bandeau__piste { display: flex; gap: 2.2rem; width: max-content; animation: defile 38s linear infinite; font: 600 var(--t-l)/1 var(--f-titre); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.bandeau i { font-style: normal; font-size: .5em; align-self: center; opacity: .65; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Titres de section ---------- */
.titre-section { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.titre-section p:not(.surtitre) { font-weight: 300; font-size: 1.1rem; margin: 1.4rem 0 0; color: #55555d; }
.titre-section--clair p:not(.surtitre) { color: var(--gris-clair); }
.titre-section--ligne { display: grid; grid-template-columns: 1fr 1fr; max-width: none; gap: 1rem 4rem; align-items: end; }
.titre-section--ligne .surtitre { grid-column: 1 / -1; }

/* ---------- Garanties ---------- */
.garanties { padding: var(--section) 0; background: var(--encre); position: relative; }
.garanties__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--encre-3); }
.garanties__liste li { padding: 2.2rem 2rem 2.4rem 0; border-bottom: 1px solid var(--encre-3); position: relative; }
.garanties__liste li:not(:nth-child(3n)) { border-right: 1px solid var(--encre-3); }
.garanties__liste li:not(:nth-child(3n+1)) { padding-left: 2rem; }
.garanties__num { font: 300 var(--t-xs)/1 var(--f-texte); letter-spacing: .3em; color: var(--magenta); }
.garanties__liste h3 { font-size: 1.3rem; margin: 1.2rem 0 .8rem; line-height: 1.15; }
.garanties__liste p { margin: 0; color: var(--gris-clair); font-weight: 300; font-size: .98rem; }
.garanties__liste li::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--magenta); transition: width .6s; }
.garanties__liste li:not(:nth-child(3n+1))::before { left: 2rem; }
.garanties__liste li:hover::before { width: 3.5rem; }

/* ---------- Prestations ---------- */
.prestations { padding: var(--section) 0; background: var(--encre-2); }
.prestations__grille {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 14px;
  grid-template-areas: "a b c" "a e d" "f f d";
}
.presta:nth-child(1) { grid-area: a; } .presta:nth-child(2) { grid-area: b; } .presta:nth-child(3) { grid-area: c; }
.presta:nth-child(4) { grid-area: d; } .presta:nth-child(5) { grid-area: e; } .presta:nth-child(6) { grid-area: f; }
.presta { position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--encre-3); isolation: isolate; }
.presta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .6s; filter: saturate(.85); z-index: -1; }
.presta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,11,13,.92) 0%, rgba(11,11,13,.25) 55%, transparent 80%); }
.presta:hover img { transform: scale(1.06); filter: saturate(1.05); }
.presta__texte { position: absolute; inset: auto 0 0; padding: 1.6rem; }
.presta__texte span { font: 300 var(--t-xs)/1 var(--f-texte); letter-spacing: .3em; color: var(--magenta); }
.presta__texte h3 { font-size: 1.55rem; margin: .6rem 0 .5rem; }
.presta__texte p { margin: 0; font-size: .92rem; color: var(--gris-clair); font-weight: 300; max-width: 30ch; }
.presta--typo { background: var(--encre); border: 1px solid var(--encre-3); }
.presta--typo::after { display: none; }
.presta--typo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1.5px); background-size: 12px 12px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 60%); mask-image: linear-gradient(135deg, #000, transparent 60%); }
.presta--magenta { background: var(--magenta); border-color: var(--magenta); }
.presta--magenta .presta__texte span, .presta--magenta .presta__texte p { color: rgba(255,255,255,.85); }

/* ---------- Témoignage ---------- */
.temoignage { background: var(--magenta); padding: clamp(4rem, 9vw, 7rem) 0; position: relative; overflow: hidden; }
.temoignage::before { content: "“"; position: absolute; right: 4%; top: -.15em; font: 800 clamp(14rem, 30vw, 26rem)/1 var(--f-titre); color: rgba(0,0,0,.12); }
.temoignage blockquote { margin: 0; max-width: 56rem; position: relative; }
.temoignage p { font: 600 clamp(1.4rem, 1rem + 1.6vw, 2.3rem)/1.3 var(--f-titre); letter-spacing: -.01em; margin: 0 0 1.8rem; }
.temoignage footer { font-size: var(--t-s); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Contact & pied ---------- */
.contact { padding: var(--section) 0; }
.contact__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact h2 { margin-bottom: 2.2rem; }
.contact__infos { list-style: none; margin: 0; padding: 0; }
.contact__infos li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--encre-3); }
.contact__infos span { font-size: var(--t-xs); letter-spacing: .28em; text-transform: uppercase; color: var(--gris); padding-top: .3rem; }
.contact__infos a, .contact__infos address, .contact__infos p { font-style: normal; text-decoration: none; margin: 0; font-size: 1.15rem; }
.contact__infos a:hover { color: var(--magenta); }
.pied { border-top: 1px solid var(--encre-3); padding: 2.2rem 0; font-size: var(--t-s); color: var(--gris); }
.pied__grille { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.pied nav { display: flex; gap: 1.5rem; margin-left: auto; }
.pied a { text-decoration: none; } .pied a:hover { color: var(--blanc); }
.pied p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(28px); transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1); }
.revele.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .entete__barre > .bouton { display: none; }
  .entete.is-ouvert { background: var(--encre); }
  .entete.is-ouvert .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--encre); padding: 1rem var(--gouttiere) 2rem; gap: 1.2rem; border-bottom: 1px solid var(--encre-3); }
  .entete.is-ouvert .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .entete.is-ouvert .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .hero__grille { grid-template-columns: 1fr; }
  .hero__scene { order: -1; margin-top: 1rem; }
  .vitrine { width: min(86%, 420px); }
  .garanties__liste { grid-template-columns: 1fr 1fr; }
  .garanties__liste li { padding: 1.8rem 1.4rem 2rem !important; border-right: 0 !important; }
  .garanties__liste li:nth-child(odd) { border-right: 1px solid var(--encre-3) !important; }
  .garanties__liste li::before { left: 1.4rem !important; }
  .prestations__grille { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "a c" "d e" "d f"; }
  .titre-section--ligne { grid-template-columns: 1fr; }
  .contact__grille { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 100px; }
  .repere { display: none; }
  .gamme { display: none; }
  .garanties__liste { grid-template-columns: 1fr; }
  .garanties__liste li { border-right: 0 !important; }
  .prestations__grille { grid-template-columns: 1fr; grid-auto-rows: 280px; grid-template-areas: "a" "b" "c" "d" "e" "f"; }
  .contact__infos li { grid-template-columns: 1fr; gap: .3rem; }
  .pied nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
