/* =========================================================
   HOMWEB Photo — universes.css
   Étape 01 « Ton univers » : cartes de choix (hero de la landing et
   formulaire) et les quatre aperçus de mini-sites (js/universes.js).
   Les aperçus sont dessinés en unités de conteneur (cqw) : un seul
   dessin, net à toutes les tailles, du hero (≈120 px) au formulaire
   (≈340 px). Tokens de la DA HOMWEB Photographe (--acc-*) avec repli.
   ========================================================= */

.uv-picker{
  --uv-ink:var(--acc-ink, #1A1A1A);
  --uv-label:var(--acc-label, #66625B);
  --uv-rule:var(--acc-rule, #D6D1C8);
  --uv-red:var(--acc-red, #D7261E);
  --uv-paper:#FBFAF7;
  --uv-ease:cubic-bezier(.22,.61,.36,1);
  border:0; margin:0; padding:0; min-width:0;
}
.uv-picker .uv-sr,.uv-picker .uv-input{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.uv-picker .uv-legend{ padding:0; }
.uv-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; }

/* -------- Carte -------- */
.uv-card{ position:relative; display:flex; flex-direction:column; gap:10px; cursor:pointer; min-width:0; -webkit-tap-highlight-color:transparent; }
.uv-frame{ position:relative; display:block; border:1px solid var(--uv-rule); background:var(--uv-paper); overflow:hidden;
  transition:border-color .25s var(--uv-ease), box-shadow .35s var(--uv-ease), transform .35s var(--uv-ease), opacity .3s var(--uv-ease), filter .3s var(--uv-ease); }
.uv-meta{ display:grid; grid-template-columns:auto 1fr; column-gap:7px; row-gap:1px; align-items:baseline; transition:opacity .3s var(--uv-ease); }
.uv-n{ font-family:var(--acc-mono, ui-monospace, monospace); font-size:10px; letter-spacing:.06em; color:var(--uv-label); }
.uv-name{ font-size:14px; font-weight:500; line-height:1.25; color:var(--uv-ink); }
.uv-desc,.uv-traits{ grid-column:2; font-size:12.5px; line-height:1.35; color:var(--uv-label); }
.uv-traits{ font-size:12px; margin-top:4px; opacity:.85; }
.uv-check{ position:absolute; top:8px; right:8px; width:22px; height:22px; border-radius:50%; background:var(--uv-ink); opacity:0; transform:scale(.6); transition:opacity .2s var(--uv-ease), transform .3s cubic-bezier(.34,1.56,.64,1); z-index:3; box-shadow:0 0 0 2px var(--uv-paper); }
.uv-check::after{ content:""; position:absolute; left:7.5px; top:5px; width:5px; height:9px; border:solid #fff; border-width:0 1.8px 1.8px 0; transform:rotate(45deg); }

@media (hover:hover){
  .uv-card:hover .uv-frame{ border-color:#BDB7AC; transform:translateY(-2px); box-shadow:0 14px 28px -18px rgba(26,26,26,.45); }
}
/* Un choix fait : les autres cartes s'effacent légèrement — la sélection se lit d'un coup d'œil. */
.uv-picker.has-choice .uv-card:not(.is-selected) .uv-frame{ opacity:.62; filter:saturate(.7); }
.uv-picker.has-choice .uv-card:not(.is-selected) .uv-meta{ opacity:.7; }
.uv-picker.has-choice .uv-card:not(.is-selected):hover .uv-frame,
.uv-picker.has-choice .uv-card:not(.is-selected):hover .uv-meta{ opacity:1; filter:none; }
.uv-card.is-selected .uv-frame{ border-color:var(--uv-ink); box-shadow:0 0 0 1px var(--uv-ink), 0 16px 30px -20px rgba(26,26,26,.5); }
.uv-card.is-selected .uv-check{ opacity:1; transform:none; }
.uv-input:focus-visible + .uv-frame{ outline:2px solid var(--uv-ink); outline-offset:3px; }

/* -------- « Je te laisse choisir » -------- */
/* « Je ne sais pas encore » : une bande pleine largeur, pointillée — une sortie
   possible, pas un cinquième univers. Pastille « ? », flèche qui avance au survol. */
.uv-free{ display:flex; align-items:center; gap:12px; width:100%; margin-top:16px; padding:10px 14px; min-height:48px; border:1px dashed var(--uv-free-line, #B9B3A8); background:transparent; color:var(--uv-ink); cursor:pointer; font-size:14px; line-height:1.35; -webkit-tap-highlight-color:transparent;
  transition:border-color .25s var(--uv-ease), background-color .25s var(--uv-ease); }
.uv-free-icon{ flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1px solid currentColor; font-family:var(--acc-mono, ui-monospace, monospace); font-size:12px; font-weight:500; opacity:.75; }
.uv-free-text{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; min-width:0; flex:1; }
.uv-free-label{ font-weight:500; }
.uv-free-desc{ font-size:13px; color:var(--uv-label); }
.uv-free-arrow{ flex:none; font-size:16px; opacity:.6; transition:transform .3s var(--uv-ease), opacity .3s var(--uv-ease); }
.uv-free:hover,.uv-free.is-selected{ border-style:solid; border-color:var(--uv-ink); background:var(--uv-free-hover, rgba(26,26,26,.03)); }
.uv-free:hover .uv-free-arrow,.uv-free.is-selected .uv-free-arrow{ transform:translateX(4px); opacity:1; }
.uv-free .uv-input:focus-visible ~ .uv-free-icon{ outline:2px solid var(--uv-ink); outline-offset:3px; }

.uv-picker .uv-error{ margin:12px 0 0; font-size:13px; color:var(--uv-red); }
.uv-picker.has-error .uv-frame{ border-color:#C9A39E; }

/* =========================================================
   Aperçus — quatre pages d'accueil miniatures.
   Tout est en cqw : 100 de large, 69 de haut.
   ========================================================= */
.uv-prev{ position:relative; display:block; aspect-ratio:100 / 69; overflow:hidden; container-type:inline-size; isolation:isolate; font-style:normal; background:#fff; }
.uv-prev i{ display:block; font-style:normal; }
.uv-body{ position:absolute; inset:0; display:block; overflow:hidden; }
.uv-photo{ position:absolute; display:block; overflow:hidden; background:#D8D3CA; }
.uv-photo img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .9s var(--uv-ease, cubic-bezier(.22,.61,.36,1)); }
.uv-card:hover .uv-main img,.uv-card.is-selected .uv-main img{ transform:scale(1.05); }

/* 01 — Minimaliste */
.uv-prev--minimaliste .uv-body{ background:#FCFCFA; color:#111; }
.uv-prev--minimaliste .uv-bar{ position:absolute; left:6cqw; right:6cqw; top:4.2cqw; display:flex; align-items:baseline; justify-content:space-between; }
.uv-prev--minimaliste .uv-logo{ font-family:var(--acc-mono, ui-monospace, monospace); font-weight:500; font-size:2.9cqw; letter-spacing:.24em; }
.uv-prev--minimaliste .uv-nav{ display:flex; gap:3.2cqw; font-size:2.5cqw; color:#8A8780; }
.uv-prev--minimaliste .uv-nav span:first-child{ color:#111; border-bottom:.4cqw solid #111; padding-bottom:.5cqw; }
.uv-prev--minimaliste .uv-main{ left:33cqw; top:13cqw; width:34cqw; height:45cqw; box-shadow:0 3cqw 6cqw -3cqw rgba(0,0,0,.28); z-index:2; }
.uv-prev--minimaliste .uv-main img{ filter:grayscale(1) contrast(1.05); }
.uv-prev--minimaliste .uv-side{ top:19cqw; width:25cqw; height:33cqw; opacity:.42; }
.uv-prev--minimaliste .uv-side img{ filter:grayscale(1); }
.uv-prev--minimaliste .uv-side--l{ left:2cqw; }
.uv-prev--minimaliste .uv-side--r{ right:2cqw; }
.uv-prev--minimaliste .uv-cap{ position:absolute; left:0; right:0; top:61.5cqw; display:flex; justify-content:center; gap:2.6cqw; font-size:2.6cqw; letter-spacing:.1em; color:#8A8780; }
.uv-prev--minimaliste .uv-cap-n{ font-family:var(--acc-mono, ui-monospace, monospace); color:#111; }

/* 02 — Éditorial : image à fond perdu, titre géant qui la traverse */
.uv-prev--editorial .uv-body{ background:#E3E5E7; color:#111214; }
.uv-prev--editorial .uv-head{ position:absolute; left:5cqw; right:5cqw; top:3.4cqw; z-index:4; display:flex; gap:2.2cqw; align-items:baseline; padding-bottom:1.7cqw; border-bottom:.4cqw solid #111214; font-family:var(--acc-mono, ui-monospace, monospace); font-size:2.3cqw; letter-spacing:.12em; text-transform:uppercase; color:#5E6268; }
.uv-prev--editorial .uv-head b{ font-weight:500; color:#111214; }
.uv-prev--editorial .uv-head-r{ margin-left:auto; }
.uv-prev--editorial .uv-main{ left:47cqw; right:0; top:8.6cqw; bottom:0; }
.uv-prev--editorial .uv-side-label{ position:absolute; left:43.6cqw; top:60cqw; z-index:2; transform:rotate(-90deg); transform-origin:left top; font-family:var(--acc-mono, ui-monospace, monospace); font-size:2.1cqw; letter-spacing:.2em; text-transform:uppercase; color:#5E6268; white-space:nowrap; }
/* Le titre s'inverse là où il passe sur la photo (difference) */
.uv-prev--editorial .uv-mast{ position:absolute; left:4cqw; top:10cqw; z-index:3; font-family:Georgia, 'Times New Roman', serif; font-size:27cqw; line-height:.9; letter-spacing:-.055em; color:#E3E5E7; mix-blend-mode:difference; transition:letter-spacing .7s var(--uv-ease, ease); }
.uv-card:hover .uv-prev--editorial .uv-mast,.uv-card.is-selected .uv-prev--editorial .uv-mast{ letter-spacing:-.035em; }
.uv-prev--editorial .uv-it{ position:absolute; left:5cqw; top:36.5cqw; font-family:Georgia, 'Times New Roman', serif; font-style:italic; font-size:4.6cqw; color:#D2301C; white-space:nowrap; }
.uv-prev--editorial .uv-col{ position:absolute; left:5cqw; top:44cqw; width:30cqw; display:flex; flex-direction:column; gap:1.7cqw; }
.uv-prev--editorial .uv-col i{ height:.7cqw; background:#A9ADB2; }
.uv-prev--editorial .uv-col i:nth-child(2){ width:88%; }
.uv-prev--editorial .uv-col i:last-child{ width:54%; }
.uv-prev--editorial .uv-thumb{ left:5cqw; top:52.5cqw; width:11cqw; height:13cqw; }
.uv-prev--editorial .uv-thumb img{ filter:grayscale(1) contrast(1.05); }
.uv-prev--editorial .uv-next{ position:absolute; left:18.5cqw; top:53cqw; display:flex; flex-direction:column; gap:.9cqw; font-size:2.6cqw; line-height:1.1; color:#5E6268; }
.uv-prev--editorial .uv-next b{ font-family:var(--acc-mono, ui-monospace, monospace); font-weight:500; font-size:2.1cqw; letter-spacing:.14em; text-transform:uppercase; color:#111214; }
.uv-prev--editorial .uv-next-link{ margin-top:1.4cqw; color:#111214; text-decoration:underline; text-underline-offset:.8cqw; text-decoration-thickness:.3cqw; }

/* 03 — Audacieux */
.uv-prev--audacieux .uv-body{ background:#0D0D0D; color:#D9FF3C; }
.uv-prev--audacieux .uv-menu{ position:absolute; right:4.5cqw; top:3.8cqw; z-index:5; padding:1.1cqw 2.6cqw; border:.4cqw solid #D9FF3C; border-radius:99px; font-family:var(--acc-mono, ui-monospace, monospace); font-size:2.2cqw; letter-spacing:.12em; }
.uv-prev--audacieux .uv-big{ position:absolute; left:4cqw; top:3cqw; z-index:1; display:flex; flex-direction:column; font-family:Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Hanken Grotesk', sans-serif; font-weight:800; font-size:23cqw; line-height:.84; letter-spacing:-.02em; text-transform:uppercase; }
.uv-prev--audacieux .uv-big span:last-child{ color:transparent; -webkit-text-stroke:.5cqw #D9FF3C; }
.uv-prev--audacieux .uv-block{ position:absolute; right:7cqw; top:13cqw; width:36cqw; height:44cqw; background:#3D2BFF; transform:rotate(5deg); z-index:2; }
.uv-prev--audacieux .uv-main{ right:11cqw; top:10.5cqw; width:36cqw; height:45cqw; transform:rotate(-4deg); z-index:3; box-shadow:0 0 0 .6cqw #0D0D0D; }
.uv-prev--audacieux .uv-sticker{ position:absolute; left:39cqw; top:42cqw; z-index:4; display:grid; place-items:center; width:14cqw; height:14cqw; border-radius:50%; background:#FF3C2E; color:#0D0D0D; font-family:var(--acc-mono, ui-monospace, monospace); font-weight:500; font-size:3.1cqw; letter-spacing:.06em; transform:rotate(-14deg); }
.uv-prev--audacieux .uv-marquee{ position:absolute; left:0; right:0; bottom:0; z-index:5; height:6.4cqw; display:flex; align-items:center; overflow:hidden; background:#D9FF3C; color:#0D0D0D; font-family:var(--acc-mono, ui-monospace, monospace); font-weight:500; font-size:2.5cqw; letter-spacing:.14em; white-space:nowrap; }
.uv-prev--audacieux .uv-marquee span{ display:inline-block; padding-left:3cqw; }
.uv-card:hover .uv-prev--audacieux .uv-marquee span,.uv-card.is-selected .uv-prev--audacieux .uv-marquee span{ animation:uvMarquee 9s linear infinite; }
.uv-card:hover .uv-prev--audacieux .uv-sticker{ transform:rotate(8deg) scale(1.06); }
.uv-prev--audacieux .uv-sticker{ transition:transform .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes uvMarquee{ to{ transform:translateX(-33.333%); } }

/* 04 — Naturel */
.uv-prev--naturel .uv-body{ background:#DDE4D2; color:#2F3B2C; }
.uv-prev--naturel .uv-brand{ position:absolute; left:0; right:0; top:3.6cqw; text-align:center; font-family:Georgia, 'Times New Roman', serif; font-style:italic; font-size:3.6cqw; color:#2F3B2C; z-index:3; }
.uv-prev--naturel .uv-sun{ position:absolute; right:7cqw; top:9cqw; width:22cqw; height:22cqw; border-radius:50%; background:#E8B892; opacity:.8; }
.uv-prev--naturel .uv-blob{ position:absolute; left:-8cqw; bottom:-15cqw; width:58cqw; height:42cqw; border-radius:58% 42% 50% 50% / 60% 55% 45% 40%; background:#A9B892; opacity:.75; }
.uv-prev--naturel .uv-main{ left:9cqw; top:11cqw; width:32cqw; height:47cqw; border-radius:16cqw 16cqw 1.5cqw 1.5cqw; z-index:1; }
.uv-prev--naturel .uv-main img{ filter:saturate(.95); }
.uv-prev--naturel .uv-round{ left:33cqw; top:43cqw; width:16cqw; height:16cqw; border-radius:50%; z-index:2; box-shadow:0 0 0 1cqw #DDE4D2; }
.uv-prev--naturel .uv-round img{ filter:sepia(.2) saturate(.9); }
.uv-prev--naturel .uv-script{ position:absolute; left:53cqw; top:17cqw; z-index:2; display:flex; flex-direction:column; font-family:Georgia, 'Times New Roman', serif; font-style:italic; font-size:9.4cqw; line-height:1.02; letter-spacing:-.01em; color:#2F3B2C; }
.uv-prev--naturel .uv-script span:last-child{ padding-left:5.5cqw; color:#B9623A; }
.uv-prev--naturel .uv-col{ position:absolute; left:54cqw; top:40.5cqw; width:30cqw; display:flex; flex-direction:column; gap:1.7cqw; }
.uv-prev--naturel .uv-col i{ height:.7cqw; background:#A7B397; }
.uv-prev--naturel .uv-col i:last-child{ width:64%; }
.uv-prev--naturel .uv-pill{ position:absolute; left:54cqw; top:50cqw; padding:1.8cqw 4.4cqw; border-radius:99px; background:#2F3B2C; color:#EEF2E6; font-size:3.2cqw; letter-spacing:.02em; white-space:nowrap; transition:transform .4s var(--uv-ease, ease), background-color .3s; }
.uv-card:hover .uv-prev--naturel .uv-pill{ transform:translateY(-.8cqw); background:#B9623A; }

@media (prefers-reduced-motion:reduce){
  .uv-card:hover .uv-prev--audacieux .uv-marquee span,.uv-card.is-selected .uv-prev--audacieux .uv-marquee span{ animation:none; }
  .uv-prev--audacieux .uv-sticker,.uv-prev--naturel .uv-pill{ transition:none; }
  .uv-card:hover .uv-main img,.uv-card.is-selected .uv-main img{ transform:none; }
}

/* -------- Variante formulaire (écran « Ton univers ») -------- */
.uv-picker--full .uv-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:28px 22px; }
.uv-picker--full .uv-card{ gap:14px; }
.uv-picker--full .uv-name{ font-size:17px; }
.uv-picker--full .uv-desc{ font-size:14px; }
.uv-picker--full .uv-check{ top:12px; right:12px; width:26px; height:26px; }
.uv-picker--full .uv-check::after{ left:9px; top:6px; width:6px; height:11px; }
.uv-picker--full .uv-free{ margin-top:30px; padding:14px 18px; }

/* -------- Variante hero : mêmes aperçus 4:3, textes un peu plus compacts -------- */
.uv-picker--hero .uv-card{ gap:8px; }

/* Choisir, c'est continuer : la carte choisie « répond » au clic, les autres s'effacent. */
.uv-picker.is-picking{ pointer-events:none; }
.uv-picker.is-picking .uv-card:not(.is-picked) .uv-frame,
.uv-picker.is-picking .uv-card:not(.is-picked) .uv-meta{ opacity:.35; filter:saturate(.5); transition-duration:.25s; }
.uv-card.is-picked .uv-frame{ animation:uvPick .46s cubic-bezier(.34,1.56,.64,1) both; }
.uv-card.is-picked .uv-check{ opacity:1; transform:none; }
.uv-free.is-picked{ animation:uvPickFree .46s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes uvPick{ 0%{ transform:scale(1); } 35%{ transform:scale(.965); } 100%{ transform:scale(1.015); box-shadow:0 0 0 1px var(--uv-ink), 0 22px 40px -22px rgba(26,26,26,.55); } }
@keyframes uvPickFree{ 35%{ transform:scale(.985); } 100%{ transform:none; } }

@media (max-width:767px){
  .uv-picker--full .uv-grid{ gap:22px 12px; }
  .uv-picker--full .uv-traits{ display:none; }
  .uv-picker--full .uv-name{ font-size:15px; }
  .uv-picker--full .uv-desc{ font-size:13px; }
}

@media (prefers-reduced-motion:reduce){
  .uv-card.is-picked .uv-frame,.uv-free.is-picked{ animation:none; }
  .uv-frame,.uv-photo img,.uv-check,.uv-free,.uv-free-arrow,.uv-meta{ transition:none; }
  .uv-card:hover .uv-frame{ transform:none; }
  .uv-card:hover .uv-photo img{ transform:none; }
}

/* Audacieux avec le nom du visiteur : seconde ligne pleine (le contour devient illisible en petit). */
.uv-prev--audacieux .uv-big--name{ line-height:.92; }
.uv-prev--audacieux .uv-big--name span:last-child{ color:#D9FF3C; -webkit-text-stroke:0; }
