/* Page de dépôt de fichiers — cloud.ouraya.org
   N'utilise que les jetons de la charte (ouraya.css) : le mode sombre suit donc
   automatiquement, sans une seule couleur écrite en dur ici. */

.depot-hero { padding-bottom: 72px; }

.depot-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: start;
}

.depot-texte h1 { margin-bottom: 14px; }
.depot-texte .chapo { margin-bottom: 30px; }

/* Les garanties : pas de puces, l'intitulé en gras porte l'information */
.depot-garanties { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }

.depot-garanties li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--encre-douce);
  max-width: 52ch;
}

.depot-garanties li strong { color: var(--encre); font-weight: 600; }

.depot-garanties li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--ambre);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------ carte */

.depot-carte {
  padding: 26px 24px 28px;
  gap: 16px;
  box-shadow: 0 18px 48px -18px var(--ombre-portee);
  position: sticky;
  top: 96px;
}

.depot-carte > [data-etape] { display: grid; gap: 16px; }
.depot-carte > [data-etape][hidden] { display: none; }

.depot-titre { font-size: 21px; font-weight: 650; letter-spacing: -.015em; margin: 0; }

/* La charte ne stylait que les champs courriel et les zones de texte */
.champ span { font-weight: 600; font-size: 15px; }

.champ input[type=text],
.champ input[type=email],
.champ textarea {
  font: 400 16px/1.55 var(--titre);
  color: var(--encre);
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
}

.champ input:focus, .champ textarea:focus {
  border-color: var(--ambre);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .22);
}

.champ-code {
  font: 600 26px/1.2 var(--mono) !important;
  letter-spacing: .34em;
  text-align: center;
  padding: 15px 12px !important;
}

.depot-bouton { width: 100%; justify-content: center; text-align: center; }

.depot-message {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(200, 60, 40, .09);
  color: var(--encre);
  border: 1px solid rgba(200, 60, 40, .28);
}

.depot-message[data-ton="info"] {
  background: var(--papier-creuse);
  border-color: var(--filet);
  color: var(--encre-douce);
}

/* ------------------------------------------------------------ zone de dépôt */

.depot-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 190px;
  padding: 26px 24px;
  border: 2px dashed var(--filet);
  border-radius: 12px;
  background: var(--papier-creuse);
  color: var(--encre);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.depot-zone:hover, .depot-zone:focus-visible, .depot-zone.survol {
  border-color: var(--ambre);
  background: var(--surface);
}

.depot-zone.survol { border-style: solid; }

.depot-plus {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ambre);
  color: var(--sur-ambre);
}

.depot-plus svg { width: 26px; height: 26px; display: block; }

.depot-libelle { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.depot-sous { font-size: 14.5px; color: var(--gris); max-width: 32ch; }

/* --------------------------------------------------------- liste et jauges */

.liste-fichiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.fichier {
  position: relative;
  border: 1px solid var(--filet);
  border-radius: 10px;
  padding: 11px 34px 11px 13px;
  background: var(--surface);
  display: grid;
  gap: 7px;
}

.fichier-tete { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

.fichier-nom {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fichier-poids, .fichier-etat { font-size: 12.5px; color: var(--gris); white-space: nowrap; }
.fichier-etat { font-family: var(--mono); }

.jauge { height: 4px; border-radius: 999px; background: var(--papier-creuse); overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--ambre); transition: width .25s ease; }

.fichier-retirer {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--papier-creuse);
  color: var(--gris);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.fichier-retirer:hover { background: var(--filet); color: var(--encre); }

/* ------------------------------------------------------------------- fin */

.depot-fin { text-align: center; justify-items: center; }

.depot-coche {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--vivant);
  color: var(--papier);
}

.depot-coche svg { width: 32px; height: 32px; display: block; }

@media (max-width: 900px) {
  .depot-grille { grid-template-columns: 1fr; gap: 38px; }
  .depot-carte { order: -1; position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .depot-zone, .jauge i { transition: none; }
}

/* ------------------------------------------------- lien de retrait et partage */

.retrait-partage { display: grid; gap: 12px; width: 100%; }

.retrait-partage input[type=text] {
  font: 400 14px/1.5 var(--mono);
  color: var(--encre-douce);
  background: var(--papier-creuse);
  border: 1px solid var(--filet);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
}

.retrait-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.retrait-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

/* ------------------------------------------------------ page de retrait */

.retrait-w { max-width: 760px; }
.retrait-w h1 { margin-bottom: 12px; }

.retrait-mot {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ambre);
  background: var(--papier-creuse);
  border-radius: 0 10px 10px 0;
  font: 400 16px/1.6 var(--titre);
  color: var(--encre-douce);
}

.retrait-carte { margin-top: 28px; gap: 22px; }

.retrait-carte .fichier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  flex-wrap: wrap;
}

.retrait-carte .fichier-tete { flex: 1 1 240px; display: grid; gap: 2px; }
.retrait-carte .fichier-nom { white-space: normal; overflow-wrap: anywhere; }
.retrait-un { flex: 0 0 auto; padding: 9px 18px; font-size: 14.5px; }

/* ------------------------------------------------ invitation à utiliser l'outil

   Sur la page de retrait uniquement : celui qui reçoit un fichier est le mieux
   placé pour devenir expéditeur à son tour. On reste sobre, un panneau, deux
   phrases, un bouton. */

.invite {
  margin-top: 34px;
  padding: 30px 32px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.invite-texte { flex: 1 1 320px; }

.invite h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--panneau-texte);
}

.invite p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--panneau-doux);
  max-width: 46ch;
}

/* Sur le panneau sombre, le bouton de la charte est encre sur encre : invisible.
   On le passe en ambre, qui est de toute façon la couleur d'action du site. */
.invite-bouton {
  flex: 0 0 auto;
  background: var(--ambre);
  border-color: var(--ambre);
  color: var(--sur-ambre);
}

.invite-bouton:hover {
  background: #F0B357;
  border-color: #F0B357;
  color: var(--sur-ambre);
}

@media (max-width: 620px) {
  .invite { padding: 26px 22px; }
  .invite-bouton { width: 100%; justify-content: center; text-align: center; }
}

/* ------------------------------------------------------- logo Ouraya Cloud

   On ne remplace le logotype QUE dans la barre du haut : le pied de page garde
   celui d'Ouraya, puisqu'il parle du collectif et non de cet outil.
   La charte cible `.marque .vertical` ; on passe devant avec `.barre .marque`.
   Les fichiers sont détourés, donc pas de rectangle blanc sur le papier crème
   ni sur le panneau sombre. */

.barre .marque .vertical { background-image: url(/logo-cloud-vertical.png); }
.barre .marque .horizontal { background-image: url(/logo-cloud-horizontal.png); }

:root[data-theme="sombre"] .barre .marque .vertical { background-image: url(/logo-cloud-vertical-sombre.png); }
:root[data-theme="sombre"] .barre .marque .horizontal { background-image: url(/logo-cloud-horizontal-sombre.png); }
