/* ------------------------------------------------------------------ *
 * Thème Antiane — charte commune (couleurs, header, footer, cartes,
 * boutons, fenêtre modale). Importé par toutes les pages du site.
 * ------------------------------------------------------------------ */

:root {
  --navy:        #003861;
  --navy-dark:   #00263f;
  --teal:        #28cabc;
  --teal-dark:   #1fb0a3;
  --blue:        #1391d1;
  --ink:         #1b2733;
  --muted:       #5b6b78;
  --bg:          #eef5f7;
  --card-bg:     #ffffff;
  --border:      #e3e8ec;
  --radius:      14px;
  --shadow:      0 10px 30px -12px rgba(0, 56, 97, .25);
  --shadow-hover:0 18px 40px -14px rgba(0, 56, 97, .35);
  --font: 'Poppins', 'Muli', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

/* Aucun gras sur tout le site */
h1, h2, h3, h4, h5, h6, b, strong { font-weight: 400; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .15);
}
.site-header__logo img { height: 38px; display: block; }
.site-header__link {
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 400;
  opacity: .85;
  transition: opacity .2s;
}
.site-header__link:hover { opacity: 1; }

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  padding: 22px 16px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  background: var(--navy);
}
.site-footer a { color: var(--teal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--teal);
}
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ----- Mise en page commune ----- */
.page {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.hero { text-align: center; margin-bottom: 48px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--navy);
}
.hero h1 span { color: var(--teal); }
.hero__subtitle { margin: 0; font-size: 1.05rem; color: var(--muted); }
.page--narrow { max-width: 620px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 0 auto 44px;
}

/* Panneau de contenu (formulaires, texte) */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.legal h1 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
}
.legal p { margin: 0; line-height: 1.7; color: var(--ink); }

/* ----- Carte (outil / téléchargement) ----- */
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #d7e7ea;
}
.card:hover::before { transform: scaleX(1); }
.card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 14px;
}
.card__media img { max-height: 88px; max-width: 110px; }
.card__title { margin: 0; font-size: 1rem; font-weight: 400; }

/* ----- Fenêtre modale (espace technicien) ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 38, 63, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  display: flex;
  flex-direction: column;
  width: 340px;
  max-width: 88%;
  padding: 30px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4);
}
.modal-title {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 400;
  color: var(--navy);
}
.modal-box label { margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.modal-box input[type="password"] {
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s;
}
.modal-box input[type="password"]:focus { border-color: var(--teal); }
.modal-error { margin: 10px 0 0; font-size: .85rem; color: #d3455b; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-btn {
  padding: 10px 20px;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 400;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s;
}
.modal-btn-cancel { background: #fff; color: var(--muted); }
.modal-btn-cancel:hover { border-color: #cfd6db; }
.modal-btn-submit { background: var(--teal); color: #fff; border-color: var(--teal); }
.modal-btn-submit:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
