/* unFouGraphiste — feuille de style unique
   Couleurs : violet #2A1458 · crème #F6F1E8 · corail #FF6B57 · rouge-orangé #EE4B2B */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("../fonts/permanent-marker.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --violet: #2A1458;
  --creme: #F6F1E8;
  --corail: #FF6B57;
  --rouge: #EE4B2B;
  --lavande: #5A4E7A;
  --texte-doux: #4A4166;
  --sur-violet: #DCD5EE;
  --blanc: #FFFFFF;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --feutre: "Permanent Marker", "Bricolage Grotesque", cursive;
  --largeur: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--violet);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: .8; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .conteneur { padding: 0 20px; } }

.sur-titre {
  font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lavande);
}
.feutre { font-family: var(--feutre); font-weight: 400; letter-spacing: 0; color: var(--rouge); }
.feutre-penche { display: inline-block; transform: rotate(-3deg); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}
.bouton:hover { transform: translateY(-2px); opacity: 1; }
.bouton-plein { background: var(--rouge); color: var(--blanc); }
.bouton-contour { border: 1.5px solid var(--violet); color: var(--violet); background: transparent; }
.bouton-violet { background: var(--violet); color: var(--creme); min-height: 46px; padding: 0 22px; }

/* ---------- En-tête ---------- */
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 22px; padding-bottom: 22px;
}
.entete .logo img { height: 58px; width: auto; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font-weight: 600; font-size: 15px; }
.menu a { text-decoration: none; }

/* ---------- Accroche ---------- */
.accroche .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; gap: 64px;
  padding-top: 40px; padding-bottom: 104px;
}
.accroche-texte { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.accroche h1 {
  font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.035em;
}
.accroche h1 .feutre { display: inline-block; margin: 10px 0 4px; font-size: .92em; transform: rotate(-3deg); }
.accroche p { max-width: 540px; font-size: 20px; color: #3E3360; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }

.accroche { overflow-x: clip; }
.collage { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
@media (max-width: 600px) {
  .collage-cadre { width: 86%; }
  .collage .note-feutre { left: 0; right: 0; bottom: -8px; text-align: center; white-space: normal; font-size: 18px; }
}
.collage-cadre { position: relative; width: 440px; max-width: 100%; aspect-ratio: 440 / 500; }
.collage img {
  position: absolute; height: auto; border-radius: 10px; object-fit: cover;
  box-shadow: 0 22px 48px rgba(42, 20, 88, .28);
}
.collage .piece-arriere { right: 0; top: 4%; width: 57%; aspect-ratio: 560 / 740; transform: rotate(7deg); }
.collage .piece-avant { left: 0; top: 14%; width: 61%; aspect-ratio: 600 / 820; transform: rotate(-5deg); }
.collage .note-feutre {
  position: absolute; left: 30%; bottom: 0; font-family: var(--feutre); font-size: clamp(22px, 3vw, 30px);
  color: var(--rouge); transform: rotate(-6deg); white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-blanche { background: var(--blanc); }
.section-violette { background: var(--violet); color: var(--creme); }
.section-violette .sur-titre { color: #CFC6E6; }
.section-violette .feutre { color: var(--corail); }
.section h2 { font-weight: 800; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.03em; }
.section-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 56px; }
.section-tete > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.section-tete > p { flex: 0 1 380px; color: #3E3360; }
.section-violette .section-tete > p, .section-violette .section-tete > div > p { color: var(--sur-violet); font-size: 19px; }

/* Services */
.grille-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.service { border-top: 1.5px solid var(--violet); padding: 26px 28px 34px 0; display: flex; flex-direction: column; gap: 10px; }
.service .numero { font-family: var(--feutre); font-size: 26px; color: var(--rouge); line-height: 1; }
.service h3 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.service p { color: var(--texte-doux); }

/* Réalisations */
.grille-realisations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; }
.realisation { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.realisation .vignette { overflow: hidden; border-radius: 14px; background: #E9E3D6; aspect-ratio: 5 / 6; }
.realisation img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.realisation:hover img { transform: scale(1.03); }
.realisation figcaption { display: flex; flex-direction: column; gap: 4px; }
.realisation .categorie { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavande); }
.realisation h3 { font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.realisation .detail { font-size: 15px; color: var(--lavande); }

/* Méthode */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 48px; }
.etape { display: flex; flex-direction: column; gap: 12px; }
.etape .numero { font-family: var(--feutre); font-size: 64px; line-height: 1; color: var(--corail); }
.etape h3 { font-weight: 800; font-size: 26px; }
.etape p { color: var(--sur-violet); }
.chiffres { display: flex; flex-wrap: wrap; gap: 16px 48px; border-top: 1px solid rgba(246, 241, 232, .25); padding-top: 28px; margin-top: 56px; }
.chiffres > div { flex: 1 1 220px; }
.chiffres strong { display: block; font-weight: 800; font-size: 44px; line-height: 1.05; }
.chiffres span { color: var(--sur-violet); }

/* Témoignages */
.temoignages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.temoignage { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 14px; background: var(--blanc); }
.temoignage .guillemet { font-family: var(--feutre); font-size: 56px; line-height: .6; color: var(--rouge); }
.temoignage blockquote { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 500; }
.temoignage figcaption { margin-top: auto; font-size: 15px; }
.temoignage figcaption strong { display: block; font-weight: 700; }
.temoignage figcaption span { color: var(--lavande); }

/* Contact */
.contact .conteneur { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-infos { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact h2 { font-size: clamp(42px, 5.4vw, 72px); line-height: .98; letter-spacing: -.035em; }
.contact h2 .feutre { display: inline-block; margin-top: 8px; transform: rotate(-3deg); }
.contact-infos > p { font-size: 19px; color: var(--sur-violet); max-width: 440px; }
.coordonnees { display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.coordonnees a { text-decoration: none; }
.coordonnees .mail { font-weight: 700; word-break: break-word; }
.coordonnees .lieu { color: #CFC6E6; }

.formulaire { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 16px; background: var(--creme); color: var(--violet); }
@media (max-width: 600px) { .formulaire { padding: 22px; } }
.ligne { display: flex; flex-wrap: wrap; gap: 18px; }
.champ { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.formulaire > .champ { flex: none; }
.champ label { font-weight: 700; font-size: 14px; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 16px; color: var(--violet); background: var(--blanc);
  border: 1.5px solid #B9B1CF; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentement { font-size: 13px; color: var(--lavande); }
.formulaire .bouton { align-self: flex-start; font-size: 17px; }
.message-retour { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.message-retour.ok { background: #E3F5E9; color: #145A32; }
.message-retour.erreur { background: #FDE7E2; color: #8A2414; }

/* Pied de page */
.pied .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 28px; padding-bottom: 36px; border-top: 1px solid rgba(246, 241, 232, .2);
  font-size: 14px; color: #CFC6E6;
}
.pied img { height: 44px; width: auto; }
.pied a { text-decoration: none; }

/* Pages simples (merci, mentions légales) */
.page-simple { max-width: 760px; margin: 0 auto; padding: 40px 32px 104px; }
.page-simple h1 { font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 24px; }
.page-simple h2 { font-weight: 800; font-size: 22px; margin: 32px 0 8px; }
.page-simple p { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .realisation img { transition: none; }
}

/* =====================================================================
   Version 2 : grain papier, bandeau clients, galeries, mosaïque photo,
   qui suis-je, visionneuse, animations
   ===================================================================== */

/* Grain de papier très discret sur tout le site */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Bandeau clients qui défile */
.bandeau { background: var(--violet); color: var(--creme); padding: 26px 0 30px; overflow: hidden; }
.bandeau-titre {
  text-align: center; font-family: var(--feutre); color: var(--corail); font-size: 22px;
  margin-bottom: 14px; transform: rotate(-2deg);
}
.bandeau-piste { display: flex; width: max-content; animation: defile 48s linear infinite; }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
.bandeau-liste { display: flex; list-style: none; margin: 0; padding: 0; }
.bandeau-liste li {
  display: flex; align-items: center; white-space: nowrap;
  font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.01em; padding-right: 40px;
}
.bandeau-liste li::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--corail); margin-left: 40px;
}
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Vignettes de projets cliquables */
a.vignette { position: relative; display: block; cursor: zoom-in; }
a.vignette:hover { opacity: 1; }
.nb-visuels {
  position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(42, 20, 88, .88); color: var(--creme); font-weight: 700; font-size: 13px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
a.vignette:hover .nb-visuels, a.vignette:focus-visible .nb-visuels { opacity: 1; transform: none; }
@media (hover: none) { .nb-visuels { opacity: 1; transform: none; } }

/* Mosaïque photo */
.mosaique {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px;
  grid-auto-flow: dense; gap: 14px;
}
.tuile { display: block; overflow: hidden; border-radius: 10px; background: #E9E3D6; cursor: zoom-in; }
.tuile:hover { opacity: 1; }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.tuile:hover img { transform: scale(1.04); }
.tuile-haute { grid-row: span 2; }
.tuile-large { grid-column: span 2; }
@media (max-width: 900px) {
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
}

/* Qui suis-je */
.apropos { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.apropos-photo { flex: 1 1 320px; max-width: 440px; margin: 0 auto; }
.apropos-photo img { width: 100%; height: auto; border-radius: 14px; transform: rotate(-2deg); box-shadow: 0 22px 48px rgba(42, 20, 88, .22); }
.apropos-texte { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.apropos-texte p:not(.sur-titre) { color: #3E3360; font-size: 18px; }
.apropos-texte .bouton { align-self: flex-start; margin-top: 8px; }

/* Visionneuse plein écran */
.visionneuse {
  position: fixed; inset: 0; z-index: 100; background: rgba(22, 10, 48, .94);
  display: flex; align-items: center; justify-content: center; padding: 64px 72px;
}
.visionneuse[hidden] { display: none; }
.v-cadre { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.v-image { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.v-legende { color: var(--creme); font-weight: 600; font-size: 15px; text-align: center; }
.visionneuse button {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--creme); color: var(--violet); font: 400 34px/1 var(--sans);
}
.visionneuse button:hover { background: var(--corail); color: var(--blanc); }
.visionneuse button[hidden] { display: none; }
.v-fermer { top: 16px; right: 16px; }
.v-prec { left: 14px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .visionneuse { padding: 72px 12px 24px; }
  .v-prec, .v-suiv { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .v-image { max-height: calc(100vh - 190px); }
}
body.sans-defilement { overflow: hidden; }

/* Animations d'apparition (seulement si JavaScript est actif) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.grille-services .reveal:nth-child(3n+2), .grille-realisations .reveal:nth-child(3n+2), .etapes .reveal:nth-child(2) { transition-delay: .12s; }
.grille-services .reveal:nth-child(3n), .grille-realisations .reveal:nth-child(3n), .etapes .reveal:nth-child(3) { transition-delay: .24s; }
.mosaique .reveal:nth-child(even) { transition-delay: .1s; }

/* Le feutre « se trace » de gauche à droite */
.js .feutre { clip-path: inset(-30% 100% -30% -10%); transition: clip-path 1.1s cubic-bezier(.6, .1, .2, 1) .25s; }
.js .feutre.visible { clip-path: inset(-30% -10% -30% -10%); }

@media (prefers-reduced-motion: reduce) {
  .bandeau-piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .bandeau-liste[aria-hidden="true"] { display: none; }
  .bandeau-liste { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .js .reveal, .js .feutre { opacity: 1; transform: none; clip-path: none; transition: none; }
  .tuile img, .nb-visuels { transition: none; }
}

/* Ajustements v2 */
.js .feutre { display: inline-block; }
@media (max-width: 900px) {
  .mosaique .tuile-haute { grid-row: auto; }
}
