/* Improved shared page styles (visual only) */
:root{--page-bg:#f3f7fb;--card-bg:#ffffff;--accent:#0b5fc7;--accent-2:#ff8a23;--muted:#6b7280}

html {
    height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    padding: 32px 48px 24px;
    margin: 0;
    background: linear-gradient(180deg, #f7f9ff 0%, #edf2fb 45%, #e2e8f6 100%);
    background-attachment: fixed;
    color: #062032;
    min-height: 100vh;
    box-sizing: border-box;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media screen and (max-width: 768px) {
    .back-btn {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 0.85em;
    }
}

@media screen and (max-width: 480px) {
    .back-btn {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
        font-size: 0.8em;
        border-radius: 20px;
    }
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 1);
}

@media screen and (max-width: 768px) {
    .back-btn {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 0.85em;
    }
}

@media screen and (max-width: 480px) {
    .back-btn {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
        font-size: 0.8em;
        border-radius: 20px;
    }
}

main {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Inputs & buttons full width but visually improved */
input, button, textarea, select {
    padding: 12px;
    margin: 10px 0;
    width: 100%;
    font-size: 1rem;
    border-radius:8px;
    box-sizing:border-box;
}

button {
    cursor: pointer;
    background-color: var(--accent);
    color: #fff;
    border: none;
    font-weight:700;
}

h2 {
    color: var(--accent-2);
    margin: 0 0 0.6rem 0;
    text-align: center;
    font-size: 1.4em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding: 8px 0;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
}

header{display:flex;justify-content:center;margin-bottom:0.6rem}

img{max-width:100%;height:auto;display:block}

label {
  color: #223249;
  font-weight: 700;
  display:block;
  margin-bottom:6px;
}

#nom{width:100%}

button:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(3,18,36,0.08);
}

button:active{transform:translateY(-1px)}

/* Make sure the Arrivée/Départ text is visible even if other styles conflict */
#btnArrivee, #btnDepart{color:#fff !important}

/* Ensure status text is readable */
#status{color:#06406b;font-weight:600;margin-top:0.6rem}

.pointage-shell{
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.pointage-card{
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(6,32,50,0.12);
  padding: 32px 28px 36px;
  border:1px solid rgba(11,95,199,0.08);
  width: 100%;
}
.pointage-hero{display:flex;gap:8px;align-items:center;justify-content:center;flex-direction:column;text-align:center;margin-bottom:4px}
.pointage-hero-logo{display:flex;flex-direction:column;align-items:center;gap:0;margin-bottom:0}
.pointage-logo{
  width:clamp(180px, 40vw, 280px);
  height:auto;
  filter:drop-shadow(0 8px 20px rgba(15,23,42,0.08));
}
.pointage-chip{margin-top:0!important}
.pointage-hero-text{flex:1 1 auto;width:100%}
.pointage-chip{
  display:inline-block;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.8rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:rgba(11,95,199,0.1);
  color:#0b5fc7;
  font-weight:700;
  margin-bottom:6px;
}
.pointage-sub{
  margin:10px 0 0;
  color:#5a6475;
  line-height:1.55;
  font-size:0.95rem;
}
.pointage-highlights{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0 0 18px;
}
.pointage-highlights li{
  flex:1 1 120px;
  background:rgba(11,95,199,0.06);
  border-radius:10px;
  padding:10px 12px;
  font-size:0.9rem;
  color:#0b3764;
  text-align:center;
  font-weight:600;
}
.pointage-form{
  background:rgba(3,18,36,0.04);
  padding:24px;
  border-radius:16px;
  backdrop-filter:blur(4px);
}
.info-banner{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#f2f6ff;
  border:1px solid rgba(11,95,199,0.15);
  padding:12px 14px;
  border-radius:12px;
  margin:10px 0 6px;
  color:#0b3764;
  font-size:0.9rem;
  line-height:1.4;
}
.info-banner span{font-size:1.2rem}
.actions-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
  margin:16px 0 6px;
}
.btn-arrivee{
  background:linear-gradient(135deg,#0b5fc7,#4f9ef8);
  border:none;
}
.btn-depart{
  background:linear-gradient(135deg,#ff8a23,#ffb347);
  border:none;
}
.help-link{
  margin-top:10px;
  background:transparent;
  border:1px solid rgba(11,95,199,0.3);
  color:#0b5fc7;
  font-weight:600;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
}
.help-link:hover{background:rgba(11,95,199,0.06)}
.status-text{text-align:center;margin-top:18px;font-weight:600;color:#0b3764}
.loading,.refresh{text-align:center;margin-top:16px}
.loading p{color:#5f6b7c;margin-top:10px}
.refresh button{
  background:#0b5fc7;
  color:#fff;
  border:none;
  padding:10px 20px;
  border-radius:999px;
  font-weight:600;
}
@media (max-width:760px){
  body{padding:28px 24px 20px}
  .pointage-shell{max-width:640px}
}

@media (max-width:520px){
  body{padding:20px 14px 16px}
  .pointage-card{padding:24px 20px}
  .pointage-form{padding:20px}
  .pointage-hero{align-items:center;text-align:center;gap:4px;margin-bottom:6px}
  .pointage-logo{width:clamp(180px, 65vw, 240px);margin-bottom:2px}
}
