/* MesFichiers — feuille de style unique (accueil, application, connexion) */

:root {
  /* Ciel : fond d'ambiance uniquement, ne porte jamais de texte */
  --sky: #78a9f7;
  /* Bleu profond : seule surface bleue autorisée à porter du texte blanc */
  --sky-surface: #3a70dd;
  --blue: #3a6fd8;
  --blue-strong: #2c5eb8;
  --ink: #202a44;
  --ink-soft: #3b4358;
  --muted: #4d5a74;
  --muted-strong: #4a5670;
  --white: #fff;
  --milk: #f7f9fd;
  --card: #eaf2ff;
  --butter: #ffd334;
  --coral: #cf3a32;
  --r-control: 12px;
  --r-button: 16px;
  --r-card: 19px;
  --r-panel: 28px;
}

* { box-sizing: border-box }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  /* Lisibilité : demi-gras par défaut, le 400 d'Avenir est trop maigre */
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { overflow-wrap: break-word }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }
.left :focus-visible,
.signin > aside :focus-visible,
.login-side :focus-visible,
.modal :focus-visible { outline-color: var(--white) }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px }
.brand img { width: 42px; height: 42px; border-radius: var(--r-control); box-shadow: 0 7px 16px #24395c25 }

/* ---------- Accueil non connecté ---------- */

.signin { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; padding: 0 }
.signin section { background: var(--white); padding: 40px 6vw; display: flex; flex-direction: column; justify-content: center }
.signin .brand { margin-bottom: 26px }

.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--blue) }

.signin h1, .left h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: .94; letter-spacing: -.055em; margin: 10px 0 16px }
.signin h1 span, .left h1 span { color: var(--blue) }

.intro { max-width: 560px; font-size: 16.5px; line-height: 1.55; color: var(--muted) }

.points { list-style: none; margin: 16px 0 2px; padding: 0; max-width: 560px; display: grid; gap: 9px }
.points li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; line-height: 1.55 }
.points li b { color: var(--ink) }
.points li:before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--butter); box-shadow: 0 0 0 3px #ffd33426;
}

.google-love { max-width: 560px; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6 }
.google-love svg { width: 12px; height: 12px; color: var(--coral); vertical-align: -1px; margin-left: 4px }

.apps-row { margin-top: 20px }
.apps-row > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 10px;
  border-radius: var(--r-button); background: var(--milk); color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.store-btn img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 10px #24395c1f }
.store-btn > span { display: flex; flex-direction: column; gap: 1px; text-align: left }
.store-btn b { font-size: 14px; font-weight: 800 }
.store-btn em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600 }
a.store-btn:hover { background: var(--card) }
.store-btn.is-soon { opacity: .85; cursor: default }
.store-btn.is-soon em { color: var(--blue-strong) }

.google {
  display: block; margin-top: 20px; width: min(380px, 100%); padding: 17px;
  border-radius: var(--r-button); background: var(--ink); color: var(--white);
  text-decoration: none; text-align: center; font-weight: 750; min-height: 44px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.google:hover, .google:focus-visible {
  transform: translateY(-2px) scale(1.015);
  background: var(--blue-strong);
  box-shadow: 0 14px 30px #2c5eb852;
}
.google:active { transform: translateY(0) scale(.99) }
.google b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 11px;
  background: var(--white); color: var(--ink); border-radius: 50%; vertical-align: -7px;
  transition: transform .3s ease;
}
.google:hover b { transform: rotate(360deg) }
.signin small { max-width: 380px; color: var(--muted); line-height: 1.5; margin-top: 15px }

.signin > aside {
  background: var(--sky-surface); padding: 40px 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--white);
}
.signin > aside strong { font-size: 32px }
.signin > aside span { margin-top: 12px; line-height: 1.6 }

/* ---------- Démo animée : posé sur l'ordinateur, déjà sur le téléphone ---------- */

.demo { display: flex; align-items: center; gap: 18px; margin-bottom: 46px }

.d-laptop { width: 220px }
.d-screen {
  height: 140px; background: var(--white); border-radius: 14px 14px 4px 4px;
  border: 6px solid #1d3f7f55; border-bottom-width: 0; padding: 16px; display: grid; place-items: center;
}
.d-base { height: 10px; background: #dbe7fb; border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px #1d3f7f4d }
.d-drop {
  width: 100%; height: 100%; border-radius: 12px; background: var(--butter);
  display: grid; place-items: center; position: relative;
  animation: d-drop-glow 7s infinite;
}

.d-file, .d-arrive b {
  width: 40px; height: 50px; background: var(--ink); border-radius: 8px;
  position: relative; display: grid; place-items: center; grid-auto-flow: row; gap: 4px; padding-top: 6px;
}
.d-file b, .d-arrive b:before {
  content: ""; width: 0; height: 0; border-left: 12px solid transparent;
  border-top: 12px solid var(--butter); position: absolute; top: 0; right: 0; border-radius: 0 8px 0 0;
}
.d-file i { width: 18px; height: 3px; border-radius: 2px; background: var(--butter) }
.d-file { animation: d-file-drop 7s cubic-bezier(.34,1.4,.64,1) infinite }

.d-flow { display: flex; flex-direction: column; gap: 7px }
.d-flow i { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0 }
.d-flow i:nth-child(1) { animation: d-dot 7s infinite; animation-delay: 0s }
.d-flow i:nth-child(2) { animation: d-dot 7s infinite; animation-delay: .18s }
.d-flow i:nth-child(3) { animation: d-dot 7s infinite; animation-delay: .36s }

.d-phone {
  width: 120px; height: 200px; background: var(--white); border-radius: 22px;
  border: 6px solid #1d3f7f55; padding: 20px 10px 10px; position: relative;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 40px #1d3f7f4d;
}
.d-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34px; height: 5px; border-radius: 3px; background: #dbe7fb }
.d-row { border-radius: 10px; background: var(--card); min-height: 34px }
.d-ghost { opacity: .45 }
.d-arrive {
  display: flex; align-items: center; gap: 7px; padding: 6px;
  transform: scale(.4); opacity: 0; animation: d-pop 7s cubic-bezier(.34,1.56,.64,1) infinite;
}
.d-arrive b { width: 20px; height: 26px; border-radius: 5px; flex: none }
.d-arrive b:before { border-left-width: 7px; border-top-width: 7px; border-top-color: var(--card); border-radius: 0 5px 0 0 }
.d-arrive span { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0 }
.d-arrive u { display: block; height: 4px; border-radius: 2px; background: #b9cef2; text-decoration: none }
.d-arrive u:last-child { width: 60% }

@keyframes d-file-drop {
  0%       { transform: translateY(-90px) scale(.85); opacity: 0 }
  8%       { opacity: 1 }
  16%      { transform: translateY(0) scale(1); opacity: 1 }
  38%      { transform: translateY(0) scale(1); opacity: 1 }
  46%, 100%{ transform: translateY(0) scale(.7); opacity: 0 }
}
@keyframes d-drop-glow {
  0%, 12%  { box-shadow: 0 0 0 0 #ffd33400 }
  18%      { box-shadow: 0 0 0 10px #ffd3344d }
  26%, 100%{ box-shadow: 0 0 0 0 #ffd33400 }
}
@keyframes d-dot {
  0%, 40%  { opacity: 0; transform: translateX(-8px) }
  48%      { opacity: 1; transform: translateX(0) }
  56%, 100%{ opacity: 0; transform: translateX(8px) }
}
@keyframes d-pop {
  0%, 54%  { transform: scale(.4); opacity: 0 }
  64%      { transform: scale(1.06); opacity: 1 }
  70%      { transform: scale(1); opacity: 1 }
  94%      { transform: scale(1); opacity: 1 }
  100%     { transform: scale(.4); opacity: 0 }
}

@media (prefers-reduced-motion: reduce) {
  .d-file, .d-arrive { animation: none; transform: none; opacity: 1 }
  .d-flow i { animation: none; opacity: .8 }
  .d-drop { animation: none }
}

/* ---------- Application connectée ---------- */

.app { min-height: 100vh; min-height: 100dvh; padding: 30px }
.app header, .shell, .app footer { width: min(1240px, 100%); margin: auto }

.app header {
  min-height: 76px; background: var(--white); display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 0 27px;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
}
.account { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0 }
.account img { width: 32px; height: 32px; border-radius: 50% }
.account > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.account a {
  color: #65738a; text-decoration: none; margin-left: 10px;
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
}
.account a:hover { color: var(--ink); text-decoration: underline }

.shell {
  min-height: 720px; display: grid; grid-template-columns: .9fr 1.1fr;
  /* Le bleu est peint sur le panneau lui-même : la colonne collante ne fait
     que la hauteur de l'écran, le fond, lui, va toujours jusqu'en bas. */
  background: linear-gradient(90deg, var(--sky-surface) 0 45%, var(--white) 45%);
  border-radius: 0 0 var(--r-panel) var(--r-panel); overflow: hidden; box-shadow: 0 30px 70px #244d9e4d;
}

.left {
  background: var(--sky-surface); color: var(--white); padding: 50px 45px;
  display: flex; flex-direction: column;
  /* La liste peut être longue : la colonne reste collée à l'écran, la zone
     jaune de dépôt ne disparaît jamais pendant le défilement. */
  position: sticky; top: 0; align-self: start;
  height: 100vh; height: 100dvh; min-height: 720px;
}
.left .eyebrow { color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px }
.left .eyebrow i { font-style: normal; border: 1px solid #ffffff88; border-radius: 9px; padding: 5px 7px; white-space: nowrap }
.left h1 { font-size: clamp(38px, 4.4vw, 60px) }
.left h1 span { color: #fff3a6 }
.left > p { color: var(--white) }

.drop {
  /* Collé sous le texte d'intro, jamais repoussé au fond de la colonne
     (devenue haute comme l'écran depuis qu'elle est collante). */
  margin-top: 30px; min-height: 280px; border: 0; border-radius: 30px; background: var(--butter);
  padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 18px 34px #294d8e33;
  transition: transform .16s ease; position: relative;
}
.drop:hover { transform: translateY(-2px); box-shadow: 0 24px 44px #294d8e42 }
.drop img {
  width: 86px; border-radius: 21px; margin-bottom: 18px;
  animation: drop-float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px #a8770033);
}
.drop:hover img { animation-duration: 1.4s }
@keyframes drop-float {
  0%, 100% { transform: translateY(0) rotate(0deg) }
  50%      { transform: translateY(-10px) rotate(-2deg) }
}
.drop strong { font-size: 25px }
.drop span { font-size: 12px; color: var(--ink-soft); margin-top: 8px; font-weight: 600 }
.picker { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }

.right { padding: 55px 42px; min-width: 0 }

.title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px }
.title p { font-size: 10px; letter-spacing: .13em; color: var(--blue); font-weight: 800; margin: 0 }
.title h2 { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.04em; margin: 7px 0 }
.title h2 b { font-size: 12px; background: var(--card); color: var(--blue-strong); padding: 7px; border-radius: 9px; vertical-align: middle }
.title small { text-align: right; color: var(--muted-strong); white-space: nowrap }
.title small b { color: var(--coral) }

.files { display: grid; gap: 12px }
.files article {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center;
  gap: 14px; padding: 14px; min-height: 96px; border-radius: var(--r-card); background: var(--card);
  transition: background .15s ease;
}
.files article:hover { background: #d9e7fd }
.files article > div { min-width: 0 }
/* Zone d'aperçu : le nom et les infos ouvrent le fichier */
.files article .peek { cursor: pointer; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; transition: background .13s }
.files article .peek:hover { background: #ffffff9c }
.files article .peek:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px }
.files article .peek .hint {
  font-style: normal; font-weight: 800; font-size: 11px;
  display: inline-block; padding: 3px 11px; border-radius: 20px; margin-left: 8px;
  background: var(--blue-strong); color: var(--white);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.files article .peek:hover .hint, .files article .peek:focus-visible .hint { opacity: 1; transform: none }
.files article.is-selected { background: #cfe0fb; box-shadow: inset 0 0 0 2px var(--blue-strong) }
.glyph {
  position: relative; width: 68px; height: 68px; background: var(--white); border-radius: 15px;
  display: grid; place-items: center; color: var(--blue-strong); font-weight: 800; font-size: 11px;
  overflow: hidden; flex: none;
  border: 0; padding: 0; font: inherit; font-weight: 800; font-size: 11px; cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
/* Loupe : la miniature grossit nettement au survol, par-dessus le reste */
.glyph:hover, .glyph:focus-visible {
  transform: scale(2.1); z-index: 30;
  box-shadow: 0 14px 34px #24395c59, 0 0 0 2px var(--white);
  border-radius: 9px;
}
/* Miniature du fichier fournie par Google Drive ; l'extension reste visible dessous */
.glyph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.glyph.has-thumb b {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: #0e1c25cc; color: var(--white); font-size: 9px; letter-spacing: .04em;
  padding: 3px 0; text-align: center;
}

/* Case de sélection : à gauche de la vignette, jamais par-dessus */
.pick {
  display: flex; align-items: center; cursor: pointer;
  min-height: 64px; padding-left: 2px;
}
.pick input {
  flex: none; width: 20px; height: 20px; margin: 0;
  accent-color: var(--blue-strong); cursor: pointer;
}
.pick:hover input { outline: 2px solid var(--blue-strong); outline-offset: 2px }

/* Barre de sélection multiple */
.bulkbar {
  position: fixed; z-index: 110; left: 50%; bottom: 22px; transform: translate(-50%, 130%);
  display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 20px;
  width: min(560px, calc(100% - 32px)); background: var(--ink); color: var(--white);
  border-radius: 18px; box-shadow: 0 22px 50px #10204566;
  transition: transform .2s cubic-bezier(.34,1.4,.64,1); font-size: 14px; font-weight: 700;
}
.bulkbar.show { transform: translate(-50%, 0) }
.bulkbar > div { display: flex; gap: 8px; margin-left: auto }
.bulkbar button {
  border: 0; border-radius: var(--r-control); min-height: 44px; padding: 0 16px;
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.bulkbar .ghost { background: #ffffff1f; color: var(--white) }
.bulkbar .ghost:hover { background: #ffffff33 }
.bulkbar .primary { background: var(--white); color: var(--ink) }
.bulkbar .primary:hover { background: var(--card) }
.bulkbar .dangerb { background: #c2453c; color: var(--white) }
.bulkbar .dangerb:hover { background: #a83229 }

.sheet-list { margin: 0 0 10px; padding-left: 20px; color: var(--ink); font-weight: 700; font-size: 14px }
.sheet-list li { line-height: 1.5; overflow-wrap: anywhere }
.sheet-link textarea {
  flex: 1; min-width: 0; border: 1px solid #dbe4f0; border-radius: var(--r-control);
  padding: 11px 12px; font: inherit; font-size: 13px; color: var(--ink); background: var(--milk);
  resize: vertical; line-height: 1.5;
}
.sheet-btns button svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 7px }
.files article strong, .files article span { display: block }
.files article strong {
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3;
}
.files article span { font-size: 11px; color: var(--muted-strong); margin-top: 7px }
.files article span b.left-soon { color: var(--coral); font-weight: 700 }
.files article span b.left-ok { color: var(--blue-strong); font-weight: 700 }
.badge-share, .files article span.badge-share {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 0 0 8px; padding: 3px 9px;
  border-radius: 999px; background: var(--white); color: var(--blue-strong);
  font-size: 10px; font-weight: 700; letter-spacing: .02em; vertical-align: -2px;
}
.badge-share svg { width: 11px; height: 11px }
/* Trois actions compactes, alignées sur une seule ligne */
.actions { display: flex; gap: 5px; flex: none }
.actions button {
  border: 0; background: var(--white); color: var(--blue-strong); border-radius: 11px;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  transition: background .13s, color .13s;
}
.actions button svg { width: 16px; height: 16px }
.actions button:hover { background: var(--blue-strong); color: var(--white) }
.actions button.danger { color: #c2453c }
.actions button.danger:hover { background: #c2453c; color: var(--white) }
.actions button.is-shared { background: var(--blue-strong); color: var(--white) }

/* ---------- Feuilles modales (confirmation, partage) ---------- */

.sheet-veil {
  position: fixed; inset: 0; z-index: 120; background: #202a44b3;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .16s, visibility .16s;
}
.sheet-veil.show { opacity: 1; visibility: visible }
.sheet {
  width: min(460px, 100%); background: var(--white); border-radius: 22px;
  padding: 26px 24px; box-shadow: 0 30px 70px #10204566; text-align: left;
}
.sheet h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em }
.sheet p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere }
.sheet .sheet-file { color: var(--ink); font-weight: 700 }
.sheet-link { display: flex; margin: 16px 0 4px }
.sheet-link input {
  flex: 1; min-width: 0; border: 1px solid #dbe4f0; border-radius: var(--r-control);
  padding: 11px 12px; font: inherit; font-size: 13px; color: var(--ink); background: var(--milk);
}
.sheet-btns { display: flex; gap: 10px; margin-top: 22px }
.sheet-btns button {
  flex: 1; border: 0; border-radius: var(--r-control); padding: 0 18px; min-height: 46px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.sheet-btns .ghost { background: var(--milk); color: var(--ink) }
.sheet-btns .ghost:hover { background: #e8eef8 }
.sheet-btns .danger { background: #c2453c; color: var(--white) }
.sheet-btns .danger:hover { background: #a83229 }
.sheet-btns .primary { background: var(--ink); color: var(--white) }
.sheet-btns .primary:hover { background: #2d3959 }
.sheet small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.5 }
.sheet-stop {
  display: block; width: 100%; margin-top: 12px; padding: 12px; border: 0;
  border-radius: var(--r-control); background: none; color: #c2453c;
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.sheet-stop:hover { background: #fff0ee }
.sheet-stop:disabled { opacity: .6; cursor: default }

/* ---------- Page de partage public ---------- */

.share-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px }
.share-card {
  width: min(520px, 100%); background: var(--white); border-radius: var(--r-panel);
  padding: clamp(28px, 6vw, 52px); box-shadow: 0 30px 70px #244d9e4d; text-align: center;
}
.share-card .brand { justify-content: center; margin-bottom: 30px }
.share-card .glyph { margin: 0 auto 18px; width: 84px; height: 84px; border-radius: 20px; background: var(--card); font-size: 14px }
.share-card h1 { font-size: clamp(24px, 4.5vw, 32px); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 8px; overflow-wrap: anywhere }
.share-card .share-meta { color: var(--muted); font-size: 14px; margin: 0 0 4px }
.share-card .share-timer { color: var(--coral); font-weight: 700; font-size: 13px; margin: 0 0 24px }
.share-card a.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; border-radius: var(--r-button); background: var(--ink); color: var(--white);
  text-decoration: none; font-weight: 800;
}
.share-card a.cta:hover { background: #2d3959 }
.share-card .pitch { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e8edf5; color: var(--muted); font-size: 13px; line-height: 1.6 }
.share-card .pitch a { color: var(--blue-strong); font-weight: 700 }
.share-card .report { margin-top: 14px }
.share-card .report button {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px;
  text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 10px;
}
.share-card .report button:hover { color: #c2453c }
.share-card .report-done { margin-top: 14px; color: var(--blue-strong); font-size: 12px; font-weight: 600 }

.empty {
  text-align: center; color: var(--ink); padding: clamp(48px, 12vh, 120px) 20px;
  background: var(--milk); border-radius: 26px; font-weight: 750;
}
.empty span { color: var(--muted); font-weight: 500 }

.app footer { padding: 17px; color: #1a3c78; font-size: 12px; font-weight: 600 }

/* ---------- Surcouches : dépôt global et envoi ---------- */

.dragveil, .modal {
  position: fixed; z-index: 100; inset: 18px; background: #fffdf8f2; border: 3px dashed var(--blue);
  border-radius: 36px; display: flex; opacity: 0; visibility: hidden;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px;
  transition: opacity .16s, visibility .16s;
}
.dragveil.show, .modal.show { opacity: 1; visibility: visible }
.dragveil img { width: 110px; border-radius: 26px; margin-bottom: 25px }
.dragveil strong { font-size: clamp(28px, 5vw, 50px); letter-spacing: -.04em }
.dragveil span { color: var(--muted); margin-top: 8px }

.modal { inset: 0; border: 0; background: #202a44f2; border-radius: 0; color: var(--white) }
/* Vraie jauge : l'anneau se remplit à proportion de l'envoi (--p, de 0 à 100).
   Tant qu'on attend la session Google (--p inconnu), .wait affiche une rotation
   d'attente ; dès le premier octet parti, l'arc jaune progresse réellement. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0 }
.ring {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 25px;
}
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--butter) calc(var(--p, 0) * 1%), #ffffff2e 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 13px), #000 calc(100% - 12px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 13px), #000 calc(100% - 12px));
  transition: --p .25s linear;
}
.ring.wait::before {
  background: conic-gradient(#ffffff2e, var(--butter));
  animation: spin 1.2s linear infinite;
}
.ring b { font-size: 32px }
.modal > strong { font-size: 21px; overflow-wrap: anywhere; max-width: 90% }
.modal > span { margin-top: 8px }

@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Connexion ---------- */

.login-new { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.04fr .96fr }
.login-panel {
  background: var(--white); padding: clamp(28px, 7vw, 110px);
  display: flex; flex-direction: column; justify-content: center;
}
.login-panel .brand { margin-bottom: clamp(45px, 8vh, 95px) }
.login-panel h1 { font-size: clamp(44px, 6.5vw, 92px); line-height: .92; letter-spacing: -.06em; margin: 14px 0 26px }
.login-panel h1 span { color: var(--blue) }
.login-panel .lead { max-width: 580px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0 }
.login-google {
  display: flex; align-items: center; justify-content: center; gap: 13px; width: min(390px, 100%);
  margin-top: 32px; padding: 17px 20px; min-height: 44px; border-radius: var(--r-button);
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 800;
  box-shadow: 0 16px 30px #202a4433; transition: transform .18s, background .18s;
}
.login-google:hover { transform: translateY(-2px); background: #2d3959 }
.login-google b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: #1a56c4; font-size: 17px }
.login-panel small { max-width: 390px; margin-top: 16px; color: var(--muted); line-height: 1.55 }
.login-note {
  width: min(390px, 100%); margin-top: 20px; padding: 13px 15px; border-radius: 13px;
  background: var(--card); color: var(--blue-strong); font-size: 13px; font-weight: 700;
}
.login-note.error { background: #fff0ee; color: #c2453c }
.login-side {
  position: relative; overflow: hidden; background: var(--sky-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--white); padding: 40px;
}
.login-side:before, .login-side:after { content: ""; position: absolute; border-radius: 48px; background: #ffffff10; transform: rotate(-12deg) }
.login-side:before { width: 430px; height: 110px; top: 12%; right: -90px }
.login-side:after { width: 520px; height: 130px; bottom: 8%; left: -160px }
.login-side img { position: relative; width: min(250px, 48vw); border-radius: 56px; box-shadow: 0 40px 75px #1d3f7f66; margin-bottom: 42px }
.login-side strong { position: relative; font-size: 34px; letter-spacing: -.035em }
.login-side p { position: relative; line-height: 1.7; color: var(--white) }
.pending-card { max-width: 520px }
.pending-card .login-note { font-size: 15px; line-height: 1.6 }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 25px; color: var(--muted); text-decoration: none; font-size: 13px }
.back:hover { color: var(--ink); text-decoration: underline }

/* ---------- Hors ligne ---------- */

.offline { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 30px; text-align: center }
.offline-card { background: var(--white); border-radius: var(--r-panel); padding: clamp(32px, 6vw, 60px); max-width: 480px; box-shadow: 0 30px 70px #244d9e4d }
.offline-card img { width: 96px; border-radius: 24px; margin-bottom: 26px }
.offline-card h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1; letter-spacing: -.05em; margin: 0 0 16px }
.offline-card p { color: var(--muted); line-height: 1.6; margin: 0 }
.offline-card button {
  margin-top: 28px; border: 0; width: 100%; min-height: 44px; padding: 16px;
  border-radius: var(--r-button); background: var(--ink); color: var(--white);
  font: inherit; font-weight: 750; cursor: pointer;
}

/* ---------- Pages légales ---------- */

.legal { min-height: 100vh; min-height: 100dvh; padding: clamp(20px, 4vw, 48px) }
.legal-card {
  width: min(860px, 100%); margin: auto; background: var(--white);
  border-radius: var(--r-panel); padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 30px 70px #244d9e4d;
}
.legal-card .brand { margin-bottom: 38px }
.legal-card .brand a { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none }
.legal-card h1 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1; letter-spacing: -.045em; margin: 0 0 10px }
.legal-card .updated { color: var(--muted); font-size: 13px; margin: 0 0 34px }
.legal-card h2 { font-size: 22px; letter-spacing: -.02em; margin: 36px 0 10px }
.legal-card p, .legal-card li { color: var(--ink-soft); line-height: 1.65; font-size: 15px }
.legal-card ul { padding-left: 22px }
.legal-card a { color: var(--blue-strong) }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #e8edf5 }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600 }
.legal-nav a:hover { color: var(--ink); text-decoration: underline }

/* ---------- Indications d'activité : jamais d'attente muette ---------- */

.spin {
  display: inline-block; width: 11px; height: 11px; margin-right: 7px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -1px;
}

.files article.is-busy { background: #dfeafd }
.files article.is-busy .actions button { opacity: .4; cursor: default }
.busy-label {
  display: flex !important; align-items: center; margin-top: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--blue-strong);
}

.bulkbar.is-busy .primary, .bulkbar.is-busy .dangerb { opacity: .6; pointer-events: none }

/* Bandeau de synchronisation, discret, en haut de la liste */
.syncing {
  position: sticky; top: 0; z-index: 5; display: none;
  align-items: center; gap: 0; margin: -6px 0 10px;
  font-size: 12px; font-weight: 700; color: var(--blue-strong);
}
.syncing.show { display: flex }

.sheet-btns button .spin { border-color: currentColor; border-right-color: transparent }

/* ---------- Modération (superadmin) ---------- */

.mod-flash { margin: 0 0 22px; padding: 13px 15px; border-radius: 13px; background: var(--card); color: var(--blue-strong); font-size: 14px; font-weight: 700 }
.mod-list { display: grid; gap: 10px; margin-top: 14px }
.mod-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-card); background: var(--milk);
}
.mod-item.is-susp { background: #fff0ee }
.mod-item > div:first-child { flex: 1; min-width: 220px }
.mod-item strong { display: block; font-size: 15px; overflow-wrap: anywhere }
.mod-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px }
.mod-item form { display: flex; align-items: center; gap: 8px; margin-left: auto }
.mod-item button {
  border: 0; border-radius: var(--r-control); min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.mod-item .ghost { background: var(--white); color: var(--ink) }
.mod-item .ghost:hover { background: var(--card) }
.mod-item .danger { background: #c2453c; color: var(--white) }
.mod-item .danger:hover { background: #a83229 }
.mod-state { font-size: 12px; font-weight: 800; color: #c2453c; letter-spacing: .04em }
.mod-link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--blue-strong); font-weight: 700 }
.mod-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e8edf5; color: var(--muted); font-size: 13px; line-height: 1.6 }
.mod-item .primary { background: var(--blue-strong); color: var(--white) }
.mod-item .primary:hover { background: var(--blue) }

/* ---------- Politique d'accès ---------- */
.acces-form { display: grid; gap: 16px; margin-top: 14px }
.acces-modes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) }
.acces-mode {
  display: block; position: relative; padding: 15px 16px; border-radius: var(--r-card);
  background: var(--milk); cursor: pointer;
  outline: 2px solid transparent; outline-offset: -2px;
}
/* `:has` fait suivre la sélection au clic ; la classe serveur reste le repli. */
.acces-mode.is-on,
.acces-mode:has(input:checked) { background: var(--card); outline-color: var(--blue-strong) }
.acces-modes:has(input:checked) .acces-mode.is-on:not(:has(input:checked)) {
  background: var(--milk); outline-color: transparent;
}
.acces-mode input { position: absolute; opacity: 0; pointer-events: none }
.acces-mode:has(input:focus-visible) { outline-color: var(--blue-strong) }
.acces-mode strong { display: block; font-size: 15px; color: var(--ink) }
.acces-mode span { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.5 }
.acces-liste { display: grid; gap: 7px }
.acces-liste span { font-size: 13px; font-weight: 700; color: var(--ink) }
.acces-liste textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #dde4f0; border-radius: var(--r-card);
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6;
  resize: vertical;
}
.acces-liste textarea:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -1px; border-color: transparent }
.acces-actions { display: flex; justify-content: flex-end }
.acces-actions button {
  border: 0; border-radius: var(--r-control); min-height: 44px; padding: 0 22px;
  background: var(--ink); color: var(--white);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.acces-actions button:hover { background: var(--blue-strong) }

.flash-out {
  max-width: 380px; margin: 14px 0 0; padding: 11px 14px; border-radius: var(--r-control);
  background: var(--card); color: var(--blue-strong); font-size: 13.5px; font-weight: 700;
}
.hbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; line-height: 1;
  border-radius: 12px; background: var(--milk); color: var(--ink); text-decoration: none;
  transition: background .15s ease;
}
.hbtn:hover { background: var(--card) }
.hbtn svg { width: 18px; height: 18px; display: block }
.hbtn b { font-size: 16px; font-weight: 800; line-height: 1; display: block }
.account img[data-tip] { cursor: default }

/* ---------- Recherche + tri de la liste ---------- */
.files-tools { display: flex; gap: 10px; margin: 4px 0 16px }
.files-tools input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #dde4f0; border-radius: var(--r-control);
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
.files-tools input:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -1px; border-color: transparent }
.files-tools button {
  border: 1px solid #dde4f0; border-radius: var(--r-control); background: var(--white);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 0 14px;
  min-height: 44px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.files-tools button:hover { background: var(--milk) }
.files-tools button svg { width: 14px; height: 14px }

/* ---------- Infobulle unique (positionnée par saas.js, bornée à l'écran) ---------- */
#tipbox {
  position: fixed; z-index: 90; max-width: 280px; padding: 8px 12px;
  border-radius: 10px; background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 10px 24px #24395c40;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
#tipbox.show { opacity: 1 }
@media (hover: none) { #tipbox { display: none } }

.foot-links { margin: 10px 0 0; font-size: 12.5px; color: var(--muted) }
.foot-links a { color: var(--blue-strong); font-weight: 700 }
.privacy-link {
  appearance: none; border: 0; padding: 0; background: transparent; color: var(--blue-strong);
  font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.privacy-link:hover { color: var(--ink) }
.legal-nav .privacy-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--muted);
  text-decoration: none; font-size: 13px; font-weight: 600;
}
.legal-nav .privacy-link:hover { color: var(--ink); text-decoration: underline }

/* ---------- Publicité : pages publiques uniquement ---------- */
.ad-zone {
  width: 100%; overflow: hidden; color: var(--muted); text-align: center;
}
.ad-zone.is-filled { border-top: 1px solid #e5eaf2 }
.ad-zone-home { max-width: 560px }
.ad-zone-home.is-filled { margin: 28px 0 0; padding-top: 14px }
.ad-zone-help.is-filled { margin: 38px 0 46px; padding-top: 16px }
.ad-label {
  display: none; margin-bottom: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.ad-zone.is-filled .ad-label { display: block }
.ad-zone .adsbygoogle { width: 100% }

/* ---------- Aide : FAQ + formulaire ---------- */
.faq-search { margin: 18px 0 6px }
.faq-search input {
  width: 100%; padding: 13px 16px; border: 1px solid #dde4f0; border-radius: var(--r-card);
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
.faq-search input:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -1px; border-color: transparent }
.faq { display: grid; gap: 10px; margin: 14px 0 6px }
.faq details { background: var(--milk); border-radius: var(--r-card); padding: 0 18px }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding: 8px 0; font-weight: 800; font-size: 15.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 700; color: var(--blue-strong); flex: none }
.faq details[open] summary::after { content: "–" }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.65 }
.faq-vide { color: var(--muted); font-size: 14px; padding: 8px 2px }
.contact-form { display: grid; gap: 14px; margin-top: 14px }
.contact-form .pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.contact-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) }
.contact-form label { display: grid; gap: 7px }
.contact-form label span { font-size: 13px; font-weight: 700; color: var(--ink) }
.contact-form label em { font-style: normal; font-weight: 500; color: var(--muted) }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #dde4f0; border-radius: var(--r-card);
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.55;
}
.contact-form textarea { resize: vertical }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -1px; border-color: transparent }
.contact-actions { display: flex; justify-content: flex-end }
.contact-actions button {
  border: 0; border-radius: var(--r-control); min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.contact-actions button:hover { background: var(--blue-strong) }
.contact-note { margin: 0; color: var(--muted); font-size: 12.5px }
.contact-err { background: #fff0ee; color: #a83229 }

/* ---------- Modale de durée : ajouter ou réduire ---------- */
.duree-vue {
  margin: 18px 0 16px; padding: 20px 18px; border-radius: var(--r-card);
  background: var(--card); text-align: center;
}
.duree-vue b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--ink) }
.duree-vue span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted) }
.duree-delta {
  display: block; margin-top: 10px; font-style: normal;
  font-size: 13px; font-weight: 800; color: var(--muted);
}
.duree-delta.plus { color: #1f7a45 }
.duree-delta.moins { color: var(--coral) }
.duree-pas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); gap: 8px }
.duree-pas button {
  border: 1px solid #dde4f0; border-radius: var(--r-control); min-height: 48px; padding: 0 10px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.duree-pas button:hover:not(:disabled) { background: var(--milk); transform: translateY(-1px); border-color: var(--blue-strong) }
.duree-pas button:disabled { opacity: .38; cursor: not-allowed }

/* ---------- Destinations de partage ---------- */
.sheet-envoi { margin: 18px 0 8px; font-size: 13px; font-weight: 800; color: var(--ink) }
.sheet-cibles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 8px }
.cible {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #dde4f0; border-radius: var(--r-control); min-height: 48px; padding: 0 14px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.cible:hover { background: var(--milk); transform: translateY(-1px) }
.cible svg { width: 19px; height: 19px; flex: none }
.cible b {
  display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none;
  border-radius: 50%; background: var(--ink); color: var(--white); font-size: 12px;
}
.cible.wa { border-color: #25d36655; color: #128c47 }
.cible.wa:hover { background: #eaf9f0; border-color: #25d366 }
.cible[hidden] { display: none }

/* ---------- Pastille d'échéance (cliquable) et suivi de partage ---------- */
.pill-time {
  display: inline-block; border: 0; padding: 3px 10px; border-radius: 20px;
  background: var(--card); color: var(--blue-strong);
  font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.pill-time:hover:not(:disabled) { background: var(--butter); color: var(--ink); transform: translateY(-1px) }
.pill-time:disabled { cursor: default; opacity: .8 }
.pill-time.soon { background: #fdeceb; color: var(--coral) }
.pill-seen {
  display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 20px;
  background: var(--milk); color: var(--muted); font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.pill-seen.vu { background: #e6f6ec; color: #1f7a45 }

/* ---------- Fichiers partagés avec moi ---------- */
.badge-toi {
  display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 20px;
  background: var(--butter); color: var(--ink); font-size: 10.5px; font-weight: 900;
  letter-spacing: .02em; vertical-align: 1px; white-space: nowrap;
}
article.recu { outline: 2px solid var(--butter); outline-offset: -2px }
article.recu .glyph { background: #ffd33459 }
article.recu a.peek { text-decoration: none; color: inherit }
article.recu .actions a.hbtn { width: 38px; height: 38px; border-radius: 11px }
article.recu .actions svg { width: 16px; height: 16px }
.claim-form { margin: 18px 0 0; display: grid; gap: 8px; justify-items: center }
.claim-form button {
  border: 0; border-radius: var(--r-control); min-height: 46px; padding: 0 20px;
  background: var(--butter); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.claim-form button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px #ffd33459 }
.claim-form span { font-size: 12px; color: var(--muted) }
.claim-note { margin: 16px 0 0; padding: 11px 14px; border-radius: var(--r-control); background: #fff7d6; color: var(--ink); font-size: 13px; font-weight: 600 }
.claim-note a { color: var(--blue-strong); font-weight: 800 }

/* ---------- Administration : onglets ---------- */
.tabs { display: flex; gap: 8px; margin: 4px 0 24px; flex-wrap: wrap }
.tabs button {
  border: 0; border-radius: var(--r-control); min-height: 44px; padding: 0 18px;
  background: var(--milk); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.tabs button:hover { background: var(--card) }
.tabs button.on { background: var(--ink); color: var(--white) }
.tabs button b {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px; background: var(--coral); color: var(--white); font-size: 11.5px;
}
.pan { display: none }
.pan.on { display: block }

/* ---------- Administration : questions reçues ---------- */
.q-item { align-items: flex-start }
.q-texte {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--white);
  color: var(--ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere;
}
.q-form { display: grid !important; gap: 10px; margin: 12px 0 2px; width: 100% }
.q-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #dde4f0; border-radius: 12px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; resize: vertical;
}
.q-form textarea:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -1px; border-color: transparent }
.q-actions { display: flex; justify-content: flex-end; gap: 8px }

/* ---------- Tablette : on empile avant que les titres ne débordent ---------- */

@media (max-width: 980px) {
  .signin { grid-template-columns: 1fr }
  .signin section { padding: 48px 34px }
  .shell { grid-template-columns: 1fr; background: var(--white) }
  .left { position: static; height: auto; min-height: 0 }
  .login-new { grid-template-columns: 1fr }
  .login-side { min-height: 60vh }
  .right { padding: 44px 34px }
  .left { padding: 40px 34px }
}

/* ---------- Mobile : bord à bord ---------- */

@media (max-width: 760px) {
  .signin > aside { display: none }
  .signin section { padding: 35px 24px }
  .signin .brand { margin-bottom: 55px }
  .app { padding: 0 0 env(safe-area-inset-bottom) }
  .app header {
    border-radius: 0;
    padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  }
  .shell { grid-template-columns: 1fr; border-radius: 0; min-height: 100vh; min-height: 100dvh }
  .left { padding: 30px max(20px, env(safe-area-inset-left)) }
  .left h1 { font-size: 44px }
  .drop { min-height: 230px; margin-top: 35px }
  .right { padding: 34px max(20px, env(safe-area-inset-left)) }
  .account > span { display: none }
  .login-panel { padding: 34px 23px }
  .login-side { display: none }
  .login-panel .brand { margin-bottom: 55px }
  .login-panel h1 { font-size: 46px }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important }
  .drop:hover, .login-google:hover { transform: none }
  .ring::before, .ring b { animation: none; transition: none }
  .drop img { animation: none }
}
