/*body {
  background: red !important;
/*}

/* ============================= */
/* BASE MOBILE – PRIORITÉ PISTE */
/* ============================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 112%;   /* ≈ 18px de base */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.35rem;  /* ≈ 22–23px */
  line-height: 1.5;
  background: #f7f7f7;
  color: #222;
}

/* ============================= */
/* STRUCTURE */
/* ============================= */

.container {
  width: 100%;
  padding: 1rem;
}

.section {
  max-width: 92vw;   /* utilise presque tout l'écran */
  margin: auto;
  text-align: center;
}
.section.wide {
  max-width: 100%;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header img {
  max-width: 90%;
  height: auto;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

/* ============================= */
/* TEXTE */
/* ============================= */

p {
  font-size: 1.2rem;
  margin: 1rem 0;
}

/* ============================= */
/* IMAGES */
/* ============================= */

img {
  max-width: 100%;
  height: auto;
}

/* ============================= */
/* BOUTON ACTION */
/* ============================= */

.cta-button {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.3rem;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: #005eff;
  border-radius: 12px;
}
.cta-button.small {
  width: auto;
  display: inline-block;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
}
.actions {
  text-align: center;
  margin-top: 1rem;
}

/* ============================= */
/* PC / TABLETTE */
/* ============================= */

@media (min-width: 1024px) {
  body {
    font-size: 1.3rem;
  }

  .section {
    max-width: 520px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header img {
  max-width: 120px;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.subtitle {
  font-size: 1rem;
  color: #555;
}

/* Formulaire */
.mass-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.mass-form input {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input {
  padding: 1.2rem;
  font-size: 1.3rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Bouton principal */
.cta {
  margin-top: 1.2rem;
  padding: 1.1rem;
  font-size: 1.2rem;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 10px;
}
.cta-button.primary {
  font-size: 1.6rem;
  padding: 1.6rem;
  margin-top: 2rem;
  background: #d60000;          /* rouge sécurité */
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Navigation retour */
.nav-back {
  margin-top: 3rem;
  text-align: center;
}

.back-button {
  display: inline-block;
  padding: 1rem 1.4rem;
  font-size: 1.2rem;
  color: #0066cc;
  border: 2px solid #0066cc;
  border-radius: 10px;
  text-decoration: none;
}
/* ============================= */
/* TABLE INFO AÉRONEF */
/* ============================= */

.aircraft-info {
  width: 100%;
  display: flex;
  justify-content: center;
}

.info-aircraft {
  border-collapse: collapse;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 700px;
}

.info-aircraft th,
.info-aircraft td {
  padding: 0.8rem;
  text-align: center;
}
/* ============================= */
/* ORIENTATION SMARTPHONE */
/* ============================= */

@media (orientation: portrait) {
  .landscape-only {
    display: none;
  }
  .rotate-message {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    padding: 2rem;
  }
}

@media (orientation: landscape) {
  .rotate-message {
    display: none;
  }
}

/* ============================= */
/* GRAPHIQUE
/* ============================= */

 .abaque-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

#moncanvas {
  width: 100%;
  height: auto;
  display: block;
}
/* ============================= */
/* AMÉLIORATION LISIBILITÉ MOBILE */
/* (SAFE – sans modifier le HTML) */
/* ============================= */

/* Palette renforcée aviation */
:root {
  --green-ok: #1b7f3a;
  --red-alert: #b00020;
  --blue-info: #0b4fa3;
  --bg-card: #ffffff;
  --bg-soft: #f2f4f7;
  --text-main: #1c1c1c;
  --border-soft: #dcdfe3;
}

/* Fond général plus doux */
body {
  background: var(--bg-soft);
  color: var(--text-main);
}

/* Cartes / sections */
.section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Titres plus lisibles sur mobile */
h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

/* Texte courant */
p {
  font-size: 1.25rem;
  line-height: 1.55;
}

/* ============================= */
/* TABLES (INFO AÉRONEF, RÉSULTATS) */
/* ============================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th {
  background: #eef2f6;
  font-weight: 700;
  padding: 0.9rem;
  border-bottom: 2px solid var(--border-soft);
}

td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.2rem;
}

/* Alternance douce */
tr:nth-child(even) td {
  background: #fafbfc;
}

/* ============================= */
/* COULEURS EXISTANTES RENFORCÉES */
/* ============================= */

.green {
  color: var(--green-ok);
  font-weight: 800;
}

.red {
  color: var(--red-alert);
  font-weight: 900;
}

.blue {
  color: var(--blue-info);
  font-weight: 700;
}

/* ============================= */
/* FORMULAIRES */
/* ============================= */

input,
select {
  font-size: 1.35rem;
  padding: 1.2rem;
  border-radius: 10px;
  border: 2px solid #cfd6df;
}

input:focus,
select:focus {
  outline: none;
  border-color: #005eff;
  box-shadow: 0 0 0 3px rgba(0,94,255,0.15);
}

/* ============================= */
/* BOUTONS */
/* ============================= */

.cta-button.primary {
  background: linear-gradient(180deg, #d60000, #a80000);
  box-shadow: 0 8px 18px rgba(168,0,0,0.35);
  letter-spacing: 0.03em;
}

/* Bouton retour plus visible */
.back-button {
  font-weight: 700;
  background: #ffffff;
}

/* ============================= */
/* MESSAGE ORIENTATION */
/* ============================= */

.rotate-message {
  background: #fff4cc;
  border: 2px solid #ffd24d;
  border-radius: 14px;
  color: #5c4700;
  font-weight: 700;
}

/* ============================= */
/* MODE PORTRAIT — CONFORT MAX */
/* ============================= */

@media (orientation: portrait) {

  body {
    font-size: 1.4rem;
  }

  h1 {
    font-size: 2rem;
  }

  td,
  th {
    font-size: 1.25rem;
  }
}
 
