/* Interface mobile France Crashes 39-45.
   Priorite : lisibilite en plein soleil -> fort contraste, texte fonce sur fond clair.
   Le jaune du site (#D7D5AE) est reserve aux zones decoratives (bandeau, accents). */

:root {
  --jaune: #d7d5ae;
  --jaune-fonce: #b5b27f;
  --fond: #ffffff;
  --carte: #d7d5ae;      /* fond des blocs de la fiche, couleur du site */
  --texte: #14181d;      /* quasi noir pour le contraste */
  --label: #3b4149;      /* gris fonce lisible au soleil */
  --trait: #c9c7b4;
  --accent: #2f3a45;
  --focus: #1f5b64;
  --separateur-equip: #8a8763;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, "Times New Roman", Tahoma, Verdana, "Arial Black", serif;
  /* Fond ciel/nuages repris du site principal ; les cartes restent blanches
     opaques pour preserver la lisibilite en plein soleil. */
  background-color: #bcdcee;
  background-image: url("cielbleu.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-attachment: fixed;
  background-size: cover;
  color: var(--texte);
  line-height: 1.5;
  font-size: 17px; /* un peu plus grand pour l'exterieur */
}

/* Bandeau centre avec lisere noir, a la maniere du site : le ciel bleu du fond
   (cielbleu.jpg) reste visible autour du bandeau. */
header.bandeau {
  padding: 12px 8px;
  display: flex;
  justify-content: center;
  background: transparent;
}
header.bandeau .bandeau-cadre {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 90px;
  box-sizing: border-box;
  background: var(--jaune-fonce) url("banniere.png") center center / cover no-repeat;
  border: 3px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
header.bandeau .bandeau-texte {
  color: #000;
  font-weight: bold;
  letter-spacing: .5px;
  text-align: center;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  /* halo clair pour garder le texte noir lisible sur les zones sombres du ciel */
  text-shadow: 0 1px 3px rgba(255, 255, 255, .7), 0 0 6px rgba(255, 255, 255, .6);
}
header.bandeau .bandeau-titre { font-size: 1.6rem; }
header.bandeau .bandeau-sous-titre { font-size: .95rem; margin-top: 2px; }

main { max-width: 680px; margin: 0 auto; padding: 16px; }

.carte {
  background: var(--carte);
  border: 2px solid var(--trait);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

label { display: block; font-size: .95rem; font-weight: bold; color: var(--label); margin: 0 0 6px; }
.champ { margin-bottom: 14px; }

input {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  border: 2px solid var(--trait);
  border-radius: 8px;
  background: #fff;
  color: var(--texte);
}
input:focus { outline: 3px solid var(--focus); border-color: var(--focus); }

button {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: var(--focus);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
button:active { opacity: .9; }

.lien-site {
  display: block;
  text-align: center;
  margin-top: 6px;
  padding: 13px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: var(--focus);
}

/* Resultats */
.resultat {
  background: #fff;
  border: 2px solid var(--trait);
  border-left: 6px solid var(--jaune-fonce);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.resultat:active { background: #faf9f0; }
.resultat .nom { font-weight: bold; font-size: 1.05rem; }
.resultat .meta { font-size: .9rem; color: var(--label); margin-top: 3px; }

/* Blocs fiche */
.bloc-titre {
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0 0 12px;
}

.ligne { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.ligne:last-child { border-bottom: none; }
/* Libelles en normal, valeurs en gras (demande du client) */
.ligne .k { flex: 0 0 44%; color: var(--label); font-weight: normal; }
.ligne .v { flex: 1; word-break: break-word; font-weight: bold; color: var(--texte); }

/* Separation nette entre membres d'equipage (demande du client) */
.membre {
  padding: 14px;
  margin-bottom: 14px;
  border: 2px solid var(--trait);
  border-top: 4px solid var(--separateur-equip);
  border-radius: 8px;
  background: #f1f0dd; /* un peu plus clair que le bloc pour separer les membres */
}
.membre:last-child { margin-bottom: 0; }

/* Etat mis en evidence */
.membre .ligne.etat .v { font-weight: bold; }

.barre { display: flex; gap: 10px; margin-bottom: 14px; }
.barre button, .barre a {
  flex: 1; width: auto; font-size: .95rem; padding: 12px;
  text-align: center; text-decoration: none; border-radius: 8px;
}
.btn-retour { background: var(--focus); color: #fff; border: none; font-weight: bold; }
.btn-fiche { background: var(--focus); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.info {
  text-align: center;
  color: var(--texte);
  font-weight: bold;
  padding: 18px;
  background: var(--carte);
  border: 2px solid var(--trait);
  border-radius: 10px;
}
.hidden { display: none; }
