
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/polices/unbounded-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/polices/manrope-latin.woff2') format('woff2');
}

:root {
  --ciel-haut:   #FFF2DF;
  --ciel-milieu: #FFD7AE;
  --ciel-bas:    #F7A270;
  --crepuscule:  #7E3F57;
  --nuit:        #3A1F33;

  --encre:       #2A1910;
  --encre-douce: #6E4C37;
  --encre-pale:  #9A765F;
  --carte:       #FFFAF4;
  --carte-bord:  rgba(122, 64, 30, 0.10);
  --soleil:      #FF8A3D;
  --soleil-fort: #E8611E;
  --youtube:     #FF0033;

  --halo:        rgba(255, 240, 210, 0.55);
  --halo-bord:   rgba(255, 196, 140, 0.18);
  --grain:       0.5;
  --grain-mode:  multiply;

  --fond-youtube:     #FFF5F1;
  --fond-instagram:   #FFF3EC;
  --fond-instagram-2: #FFEAF3;
  --fond-courriel:    #FFF4E6;
  --fond-courriel-2:  #FFE2C8;
  --fond-association: #FFF0EE;
  --fond-image:       #F3D9C6;
  --anneau:           rgba(255, 250, 244, 0.7);
  --rose-lien:        #C9306B;
  --voile-bouton:     rgba(110, 76, 55, 0.1);
  --orange-texte:     #B4470F;
  --pied-bas:         #FFF2E6;

  --lueur-filet: rgba(238, 104, 24, 0.85);
  --lueur-fond:  rgba(255, 138, 50, 0.22);

  --titre: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --texte: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r: 28px;
  --r-s: 16px;
  --ombre: 0 1px 1px rgba(90, 40, 10, 0.04), 0 10px 30px -18px rgba(120, 50, 10, 0.35);
  --ombre-haute: 0 2px 4px rgba(90, 40, 10, 0.06), 0 26px 50px -24px rgba(140, 55, 10, 0.55);

  --entree: cubic-bezier(0.1, 0.9, 0.2, 1);
  --douce: cubic-bezier(0.33, 0, 0.67, 1);

  --k: 0;
}

:root[data-theme="sombre"] {
  color-scheme: dark;
  --ciel-haut:   #1A0F14;
  --ciel-milieu: #2A1520;
  --ciel-bas:    #4A2029;
  --crepuscule:  #6A2A2C;

  --encre:       #F7E8DA;
  --encre-douce: #D3B49D;
  --encre-pale:  #A98A76;
  --carte:       #27191D;
  --carte-bord:  rgba(255, 222, 196, 0.08);
  --ombre: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.75);
  --ombre-haute: 0 2px 4px rgba(0, 0, 0, 0.35), 0 28px 54px -24px rgba(0, 0, 0, 0.9);

  --halo:        rgba(255, 140, 70, 0.16);
  --halo-bord:   rgba(255, 110, 60, 0.05);
  --grain:       0.7;
  --grain-mode:  soft-light;

  --fond-youtube:     #301A1E;
  --fond-instagram:   #2B1A1F;
  --fond-instagram-2: #331B28;
  --fond-courriel:    #2C1C19;
  --fond-courriel-2:  #3A231A;
  --fond-association: #311A22;
  --fond-image:       #3A2622;
  --anneau:           rgba(255, 236, 220, 0.12);
  --rose-lien:        #F27A9B;
  --voile-bouton:     rgba(255, 228, 205, 0.1);
  --orange-texte:     #FFB27A;
  --pied-bas:         #F7E8DA;

  --lueur-filet: rgba(255, 138, 61, 0.6);
  --lueur-fond:  rgba(255, 170, 100, 0.16);
}

::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: ouverture 0.7s cubic-bezier(0.45, 0, 0.25, 1) both; mix-blend-mode: normal; }
@keyframes ouverture {
  from { clip-path: circle(0px at var(--cercle-x, 100%) var(--cercle-y, 0px)); }
  to   { clip-path: circle(var(--cercle-r, 150vmax) at var(--cercle-x, 100%) var(--cercle-y, 0px)); }
}
:root.net *, :root.net *::before, :root.net *::after { transition: none !important; }
:root.net .changeur svg { transition: opacity 0.2s var(--douce), transform 0.45s var(--entree) !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; color: var(--encre); background: var(--ciel-haut);
  font: 16px/1.55 var(--texte); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--soleil-fort); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--soleil); color: #fff; }


.ciel {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--ciel-haut), var(--ciel-milieu) calc(var(--k) * 70%)) 0%,
      color-mix(in oklch, var(--ciel-milieu), var(--ciel-bas) calc(var(--k) * 100%)) 58%,
      color-mix(in oklch, var(--ciel-bas), var(--crepuscule) calc(var(--k) * 85%)) 100%);
}
.soleil {
  position: absolute; right: -30vw; top: -35vh; width: 100vw; height: 95vh;
  background: radial-gradient(closest-side, var(--halo), var(--halo-bord) 55%, transparent);
  opacity: calc(1 - var(--k) * 0.3);
  animation: lever 2.4s var(--douce);
}
@keyframes lever { from { opacity: 0; } }
.grain {
  position: absolute; inset: 0; opacity: var(--grain); mix-blend-mode: var(--grain-mode);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .25  0 0 0 0 .1  0 0 0 .09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}


.changeur {
  position: fixed; top: calc(16px + env(safe-area-inset-top)); z-index: 20;
  right: calc(max(0px, (100% - 1180px) / 2) + clamp(18px, 4vw, 40px));
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--carte); color: var(--encre); border: 1px solid var(--carte-bord); box-shadow: var(--ombre);
  transition: box-shadow 0.5s var(--douce), color 0.3s var(--douce), transform 0.35s var(--entree);
  animation: apparait 1s var(--douce) 0.4s both;
}
.changeur svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 0.2s var(--douce), transform 0.45s var(--entree); }
.changeur .icone-jour { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="sombre"] .changeur .icone-nuit { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root[data-theme="sombre"] .changeur .icone-jour { opacity: 1; transform: none; }
.changeur:hover { color: var(--soleil-fort); box-shadow: var(--ombre-haute); }
:root[data-theme="sombre"] .changeur:hover { color: var(--soleil); }
.changeur:active { transform: scale(0.92); transition-duration: 0.12s; }
@keyframes apparait { from { opacity: 0; } }


.page {
  max-width: 1180px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start;
}


.profil { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 22px; animation: monte 1s var(--entree) both; }
.portrait {
  width: 220px; aspect-ratio: 1; border-radius: 36px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 6px var(--anneau), 0 30px 60px -28px rgba(160, 60, 10, 0.7);
  transform: rotate(-2.5deg); transition: transform 0.6s var(--entree);
}
.portrait:hover { transform: rotate(0) scale(1.02); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.profil h1 {
  font-family: var(--titre); font-weight: 800; font-size: clamp(40px, 4.4vw, 54px);
  line-height: 0.98; letter-spacing: -0.035em; color: var(--encre);
}
.raccourcis { display: flex; gap: 10px; }
.raccourci {
  position: relative; isolation: isolate; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--carte); border: 1px solid var(--carte-bord); color: var(--encre); box-shadow: var(--ombre);
  transition: color 0.3s var(--douce), border-color 0.3s var(--douce), box-shadow 0.5s var(--douce), transform 0.35s var(--entree);
}
.raccourci::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; opacity: 0; z-index: -1;
  transition: opacity 0.35s var(--douce);
}
.raccourci svg { width: 22px; height: 22px; }
.raccourci.youtube::before { background: var(--youtube); }
.raccourci.instagram::before { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.raccourci.courriel::before { background: var(--soleil); }
.raccourci:hover { color: #fff; border-color: transparent; box-shadow: var(--ombre-haute); }
.raccourci:hover::before { opacity: 1; }
.raccourci:active { transform: scale(0.92); transition-duration: 0.12s; }
.bulle {
  position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 5px 10px; border-radius: 9px;
  background: var(--encre); color: var(--carte); font: 700 12px/1.3 var(--texte); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity 0.2s var(--douce), transform 0.4s var(--entree);
}
.raccourci:hover .bulle, .raccourci:focus-visible .bulle { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .bulle { display: none; } }


.mosaique { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rubrique {
  grid-column: 1 / -1; font-family: var(--titre); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--encre-douce); margin: 14px 0 -4px 4px;
}
.rubrique:first-child { margin-top: 0; }
.large { grid-column: span 4; }
.demi { grid-column: span 2; }

.carte {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--r);
  padding: 24px; box-shadow: var(--ombre); text-decoration: none;
  transition: box-shadow 0.6s var(--douce), transform 0.35s var(--entree);
  animation: monte 1.1s var(--entree) both; animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}
a.carte:hover, .carte-youtube:hover { box-shadow: var(--ombre-haute); }
a.carte:active { transform: scale(0.99); transition-duration: 0.12s; }
@keyframes monte { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.reveal { isolation: isolate; }
.reveal::before, .reveal::after {
  content: ''; position: absolute; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity 0.5s var(--douce);
}
.reveal::before {
  inset: -1px; z-index: 3; padding: 1px;
  background: radial-gradient(240px circle at var(--rx, -500px) var(--ry, -500px), var(--lueur-filet), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.reveal::after {
  inset: 0; z-index: -1;
  background: radial-gradient(340px circle at var(--rx, -500px) var(--ry, -500px), var(--lueur-fond), transparent 70%);
}
.reveal-groupe.eclaire .reveal::before { opacity: 1; }
.reveal:hover::after { opacity: 1; }
@media (hover: none) { .reveal::before, .reveal::after { display: none; } }

.pastille {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff;
}
.pastille svg { width: 24px; height: 24px; }
.pastille.youtube { background: var(--youtube); }
.pastille.instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.pastille.courriel { background: var(--soleil); }

.grand { font-family: var(--titre); font-weight: 700; font-size: clamp(20px, 2.1vw, 26px); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.petit { font-size: 14px; font-weight: 600; color: var(--encre-pale); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 14px var(--texte); text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--entree), filter 0.25s var(--douce), background-color 0.3s var(--douce), color 0.3s var(--douce), box-shadow 0.3s var(--douce);
}
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton:hover { filter: brightness(1.07); }
.bouton:active { transform: scale(0.96); transition-duration: 0.12s; }
.bouton-youtube { background: var(--youtube); color: #fff; }
.bouton-instagram { background: linear-gradient(90deg, #FD5949, #D6249F); color: #fff; margin-top: auto; }
.bouton-plein { background: var(--encre); color: var(--carte); }
.bouton-clair { background: var(--voile-bouton); color: var(--encre); }


.carte-youtube { background: linear-gradient(180deg, var(--fond-youtube), var(--carte) 60%); gap: 20px; }
.carte-tete { display: flex; align-items: center; gap: 14px; }
.chaine { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; border-radius: var(--r-s); }
.chaine .pastille { transition: transform 0.6s var(--entree); }
.chaine:hover .pastille { transform: rotate(-8deg) scale(1.05); }
.carte-tete .qui { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.carte-tete h3 { font-family: var(--titre); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.carte-tete p { font-size: 14px; color: var(--encre-pale); font-weight: 600; }
.videos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.videos a { display: flex; flex-direction: column; gap: 9px; text-decoration: none; border-radius: var(--r-s); }
.vignette { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--fond-image); }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--entree); }
.videos a:hover .vignette img { transform: scale(1.06); }
.lecture {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; margin: -16px 0 0 -23px; border-radius: 10px;
  background: rgba(255, 0, 51, 0.92); opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.4s var(--entree);
}
.lecture::after { content: ''; position: absolute; left: 19px; top: 9px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.videos a:hover .lecture, .videos a:focus-visible .lecture { opacity: 1; transform: none; }
.titre-video { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--encre); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


.carte-instagram { background: linear-gradient(160deg, var(--fond-instagram) 0%, var(--fond-instagram-2) 100%); min-height: 220px; }
.carte-instagram .grand { margin-top: 6px; }
.carte-instagram .pastille { transition: transform 0.6s var(--entree); }
.carte-instagram:hover .pastille { transform: rotate(-8deg) scale(1.05); }

.carte-courriel { min-height: 220px; background: linear-gradient(160deg, var(--fond-courriel) 0%, var(--fond-courriel-2) 100%); }
.carte-courriel:hover { box-shadow: var(--ombre-haute); }
.adresse {
  align-self: flex-start; max-width: 100%; margin-top: 6px; color: var(--encre); text-decoration: none; overflow-wrap: anywhere;
  font-family: var(--titre); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.02em; line-height: 1.2;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.bouton-soleil { background: linear-gradient(90deg, var(--soleil), var(--soleil-fort)); color: #fff; }
#copier .icone-coche { display: none; }
#copier.copie { background: rgba(255, 138, 61, 0.18); color: var(--orange-texte); }
#copier.copie .icone-copier { display: none; }
#copier.copie .icone-coche { display: block; }
#copier.copie .icone-coche path { stroke-dasharray: 22; animation: trace 0.5s var(--entree) both; }
@keyframes trace { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


.carte-association { justify-content: space-between; min-height: 200px; background: linear-gradient(150deg, var(--fond-association), var(--carte) 70%); }
.carte-association .logo { width: 56px; height: 56px; transition: transform 0.6s var(--entree); }
.carte-association:hover .logo { transform: rotate(-10deg) scale(1.06); }
.lien-texte { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rose-lien); }
.lien-texte svg { width: 18px; height: 18px; transition: transform 0.4s var(--entree); }
.carte-association:hover .lien-texte svg { transform: translate(3px, -3px); }

.photo { padding: 0; overflow: hidden; border: 0; background: var(--fond-image); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--entree); }
.photo:hover img { transform: scale(1.04); }
.photo-haute { grid-row: span 2; }
.photo-panorama { aspect-ratio: 21 / 9; }
.photo-panorama img { object-position: 50% 62%; }

.page-seule { grid-template-columns: 1fr; min-height: 86vh; align-items: center; }
.page-seule .profil { position: static; }


.pied {
  max-width: 1180px; margin: 0 auto; padding: 50px clamp(18px, 4vw, 40px) calc(40px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: color-mix(in oklch, var(--encre-douce), var(--pied-bas) calc(var(--k) * 100%));
}
.pied p { font-family: var(--titre); font-weight: 700; }
.pied a { text-decoration: none; border-bottom: 1px solid currentColor; }


@media (max-width: 1000px) {
  .page { grid-template-columns: 1fr; }
  .profil { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
  .portrait { width: 132px; border-radius: 28px; }
  .profil h1 { font-size: clamp(34px, 6vw, 48px); flex: 1; min-width: 200px; }
  .raccourcis { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .page { padding-top: 26px; gap: 26px; }
  .profil { flex-direction: column; align-items: flex-start; }
  .portrait { width: 116px; border-radius: 26px; }
  .profil h1 { font-size: 40px; }
  .raccourcis { flex-basis: auto; }
  .mosaique { grid-template-columns: 1fr 1fr; gap: 14px; }
  .large, .demi { grid-column: 1 / -1; }
  .photo-haute { grid-row: auto; aspect-ratio: 3 / 4; }
  .photo-panorama { aspect-ratio: 4 / 3; }
  .carte { padding: 20px; border-radius: 24px; }
  .carte.photo { padding: 0; }
  .videos { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .carte-tete { flex-wrap: wrap; }
  .carte-tete .chaine { flex: 1 1 100%; }
  .carte-tete .bouton { flex: 1 1 100%; }
  .carte-instagram, .carte-courriel { min-height: 0; }
  .carte-instagram .bouton-instagram, .carte-courriel .actions { margin-top: 8px; }
  .actions .bouton { flex: 1 1 auto; }
  .soleil { right: -60vw; width: 160vw; height: 70vh; top: -25vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
