/* ============================================================
   Global Internet Solutions — front (dropzone)
   Layout compact : tout tient en 1 écran sans scroll.
   ============================================================ */

:root {
  --text:       #1a1a1a;
  --muted:      #6b6b6b;
  --line:       #bdbdbd;
  --line-soft:  #e4e4e4;
  --bg:         #ffffff;
  --bg-soft:    #fafafa;
  --accent:     #d33;
  --ok:         #1c7c3a;
  --err:        #c1272d;
  --radius:     10px;
  --font:       "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* -------- Header : vertical, centré -------- */
.gis-header {
  padding: 20px 24px 8px;
  display: flex;
  justify-content: center;
}
.gis-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.gis-logo-hex {
  width: 72px;
  height: 72px;
  display: block;
  mix-blend-mode: multiply;   /* efface le fond blanc du JPG */
}
.gis-logo-wordmark {
  height: 32px;
  width: auto;
  max-width: 80vw;
  display: block;
  mix-blend-mode: multiply;
}
.gis-country {
  font-family: inherit;        /* = police paramétrée dans settings */
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;           /* plus de tracking "caps" */
  color: var(--muted);
  margin-top: 2px;
}

/* -------- Main -------- */
.gis-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 16px;
}

/* -------- Dropzone (contient aussi l'intro H1 + sous-titre) -------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 24px 22px;
  border: 2px dashed var(--line);
  border-radius: 28px;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s, transform .05s;
  user-select: none;
}
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--text);
  color: var(--text);
  background: #fff;
}
.dropzone.is-dragover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f5;
}
.dropzone.is-uploading {
  opacity: .7;
  pointer-events: none;
}

/* Intro intégrée à la dropzone */
.dz-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.dz-h1 {
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.3px;
  color: var(--text);
}
.dz-sub {
  font-size: 13px;
  color: var(--muted);
}

/* Icône drop : images natives 48×61 (ratio 0.787) → 60×76 affiché */
.dz-icon {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 76px;
}
.dz-icon img {
  position: absolute;
  inset: 0;
  width: 60px;
  height: 76px;
  display: block;
  mix-blend-mode: multiply;
  transition: opacity .15s ease;
}
.dz-icon-idle   { opacity: 1; }
.dz-icon-active { opacity: 0; }

.dropzone:hover        .dz-icon-idle,
.dropzone:focus-within .dz-icon-idle,
.dropzone.is-dragover  .dz-icon-idle   { opacity: 0; }
.dropzone:hover        .dz-icon-active,
.dropzone:focus-within .dz-icon-active,
.dropzone.is-dragover  .dz-icon-active { opacity: 1; }

.dz-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .3px;
}
.dz-subtitle {
  font-size: 12px;
  color: var(--muted);
}
.dropzone.is-dragover .dz-subtitle { color: var(--accent); }

/* -------- Liste des fichiers -------- */
.file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  background: #fff;
}
.file-list .fi-name  { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fi-size  { color: var(--muted); font-variant-numeric: tabular-nums; }
.file-list .fi-remove {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
}
.file-list .fi-remove:hover { color: var(--err); }

/* -------- Fields --------
   Row 1 : Email | Name         (2 cols)
   Row 2 : Mobile               (full-width, country-select + number)
   Row 3 : Message              (full-width)
   Row 4 : Send                 (centered)
*/
.gis-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 16px;
}
.field-wide { grid-column: 1 / -1; }
.field-phone-wrap { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: .3px;
}
.field .req { color: var(--accent); }
.field .opt { color: var(--line); font-size: 12px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.field textarea {
  resize: vertical;
  min-height: 64px;
}

/* Mobile : sélecteur pays + numéro côte à côte, pleine largeur */
.field-phone {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px;
}
.field-phone select {
  padding-right: 24px;         /* place pour la flèche native */
  font-size: 13px;
  background: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* honeypot invisible */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* -------- Actions -------- */
.gis-actions {
  display: flex;
  align-items: center;
  justify-content: center;      /* bouton centré horizontalement */
  gap: 14px;
  margin-top: 18px;
}
.btn-primary {
  appearance: none;
  border: none;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-primary:hover  { background: #000; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  background: var(--line);
  cursor: not-allowed;
}
#upload-progress {
  flex: 0 0 220px;
  height: 6px;
}

/* -------- Messages -------- */
.form-msg {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}
.form-msg.ok  { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* -------- Footer -------- */
.gis-footer {
  text-align: center;
  color: var(--muted);
  padding: 14px 20px 20px;
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
}

/* -------- Responsive -------- */
@media (max-width: 520px) {
  body                 { font-size: 14px; }
  .gis-header          { padding: 14px 16px 4px; }
  .gis-main            { padding: 4px 16px 14px; }
  .dz-h1               { font-size: 20px; }
  .gis-fields          { grid-template-columns: 1fr; }
  .dropzone            { padding: 18px 14px 16px; }
  .gis-logo-hex        { width: 56px; height: 56px; }
  .gis-logo-wordmark   { height: 26px; }
  .dz-icon             { width: 52px; height: 66px; }
  .dz-icon img         { width: 52px; height: 66px; }
  .field-phone         { grid-template-columns: 140px 1fr; }
}
