/* === COULEURS ================================================ */

:root {
    --couleur-froide-fonce: #0b81b8;  /* var(--couleur-froide-fonce); */
    --couleur-froide-clair: #8ccdeb; /* var(--couleur-froide-clair); */
    --couleur-froide-clair2: #c8e8f75c; /* var(--couleur-froide-clair2); */

    --couleur-chaude-fonce: #ea6a0c ; /* var(--couleur-chaude-fonce); */
    --couleur-chaude-clair: #f5a977; /* var(--couleur-chaude-clair); */
    --couleur-chaude-clair2: #f1d0ba; /* var(--couleur-froide-clair2); */

}

/* === GÉNÉRAL ================================================ */

body {
  font-family:
  "Inter",
  "Segoe UI",
  "Arial",
  "Apple Color Emoji",
  "Segoe UI Emoji",
  "Noto Color Emoji",
  system-ui, 
  sans-serif;

  margin: 0;
  padding: 0;
  background: #f8f8f8; /* couleur du background général */
}

.container {
    max-width: 800px;
    margin: auto auto 5em auto;
    padding: 0.5em;
}

@media (max-width: 600px) {
    .container {
        padding: 0.5em;
    }
}

/* === HEADER STRUCTURE =============================================== */


header {
  background: var(--couleur-froide-fonce);
  color: #fff;
  text-align: center;
  padding: 0;
}

header h1 {
  display: flex;
  align-items: center;
  justify-content: center; /* centrage de l'accroche */
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  font-size: 1.2em;
  line-height: 1.2;
  min-height: 60px;
  box-sizing: border-box;
}

/* Logo à gauche */
.logo-center-row {
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 0;
  color: #FFF;
  flex: 0 0 auto;
  z-index: 1;
}

/* Logo container */
#logo-container {
  display: flex;
  align-items: center; /* ✅ vertical centering */
  height: auto;         /* ✅ pas besoin de 100% */
  max-width: 100%;
  cursor: pointer;
}

#logo-container svg {
  display: block;
  height: auto;
  max-height: 100%;
  transform: translateY(6px);
}

/* Bouton Commencer */
.btn-header-start {
  flex: 0 0 auto;
  margin-left: auto;
  text-decoration: none;
  z-index: 100;
}

.btn-header-start .btn {
  font-weight: 700;
  font-size: 1em;
  padding: 0.4em 1em;
  max-width: 114px;
  white-space: nowrap;
}

/* Accroche centrée */

/*
.accroche {
  position: absolute;
  left: 50%;
  bottom: 0;                     
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  font-weight: bold;
  color: white;
  height: auto;                  
  display: flex;
  align-items: flex-end;          
  justify-content: center;
  padding: 0.3em 1em;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 280px);  
  z-index: 0;
}
*/

.accroche {
  font-family: 'Caveat', cursive;
  font-weight: 1000;
  font-size: 2em;
  position: absolute;
  left: 50%;
  top: 50%;                         /* ✅ on passe du bottom au top */
  transform: translate(-50%, -50%); /* ✅ centrage horizontal ET vertical */
  white-space: nowrap;
  text-align: center;
  color: white;
  display: flex;
  align-items: center;              /* ✅ centre verticalement le texte */
  justify-content: center;
  padding: 0.3em 1em;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 280px);
  z-index: 0;
}

/* === TAG DEV FIXE EN HAUT ============================================ */

.tagdev {
  position: fixed;
  width: 50px;
  text-align: center;
  top: 30px;
  left: 10px;
  background: rgba(255, 0, 0, 0.85);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  z-index: 9999;
}

/* === HEADER IMG / SMALL ============================================ */

header img {
  max-height: 40px;
  vertical-align: middle;
}

header small {
  font-size: 0.65em;
  vertical-align: middle;
  margin-left: 0.5em;
}

/* === RESPONSIVE ≤ 800px ============================================= */

@media (max-width: 800px) {

  .btn-header-start {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    z-index: 9999;
    padding: 0;
    height: auto;
  }

  .btn-header-start .btn {
    width: 120px;            /* ✅ réduit uniquement la largeur */
    font-size: 1em;          /* même taille que desktop */
    padding: 0.4em 1em;      /* même padding que desktop */
    line-height: normal;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1;
    margin-right: 10px;

    }

  .logo-center-row {
    position: absolute;
    left: 4px;
    top: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 999;
    width: auto;
    max-width: fit-content;
    box-sizing: border-box;
  }

  #logo-container {
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
  }

  #logo-container svg {
    max-height: 60px;
    height: auto;
    width: auto;
    transform: none;
  }

  .accroche {
    font-weight: 1000;
    font-size: 1.2em;   
    padding-left: 1em;
    padding-right: 1em;
    max-width: 100%;
  }

  header h1 {
    padding-left: 0;
    /*padding-right: 160px;*/
    min-height: 50px;
  }
}

/* === RESPONSIVE ≤ 600px ============================================= */
 
@media (max-width: 600px) {

  .btn-header-start {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    padding: 0;
    z-index: 9999;
  }

  .btn-header-start .btn {
    width: 85px;            
    font-size: 0.70em;
    padding: 0.3em 0.5em;      
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.3;
    margin-right: -8px;
  }
 
   .accroche {
    font-weight: 1000;
    font-size: 1.05em;   
    padding-left: 1em;
    padding-right: 1em;
    max-width: 100%;
  }
}
 
/* === FOOTER ======================================================== */


footer {
  background: var(--couleur-froide-fonce);
  color: #fff;
  text-align: center;
  padding: 6px;
  margin: 0; 
  font-size: 1em; 
  text-align: center;
}

footer a {
    color: #fff; /* couleur des liens texte dans le footer */
    text-decoration: underline;
    margin: 0 0.2em;
}

footer a:hover {
    text-decoration: none;
}

footer p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === BARRE DE BOUTONS DE LA WEB APP =============================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff; /* boutons du footer de la webapp : background */
    border-top: 1px solid #ddd; /* ligne de séparation en haut du footer */
    z-index: 1000;
    padding: 0; /* plus besoin d'espace ici */
}

.bottom-nav .container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: 0.85em;
    color: #444; /* boutons du footer de la webapp : couleur des texte */
    text-decoration: none;
    padding: 8px 0;
}

.bottom-nav a:hover {
    background: #f5f5f5; /* boutons du footer de la webapp : changement de couleur au survol des boutons  */
}

.bottom-nav a.active {
    color: var(--couleur-chaude-fonce);
    font-weight: bold;
}

.bottom-nav i {
    display: block;
    font-size: 1.2em;
    margin-bottom: 2px;
}


/* === BOUTONS ====================================================== */
.btn {
    display: block;
    width: 200px;
    margin: 1em auto;
    padding: 0.7em;
    font-size: 1em;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* Bouton chaud */
.btn-chaud {
    background-color: var(--couleur-chaude-fonce);
    color: white;
}

.btn-chaud:hover {
    background: linear-gradient(var(--couleur-chaude-fonce),var(--couleur-chaude-clair));
}

/* Bouton froid */
.btn-froid {
    background-color: var(--couleur-froide-fonce);
    color: white;
}

.btn-froid:hover {
    background: linear-gradient(var(--couleur-froide-fonce), var(--couleur-froide-clair));
}

/* Ligne de boutons côte à côte */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: nowrap;
    max-width: 400px;
    margin: 0 auto;
}

.btn-row .btn {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 180px;
    padding: 0.8em;
    font-size: 1em;
    white-space: nowrap;
}

.btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* === Boutons : CHOIX UTILISATEUR (type MBTI) ================================= */

.btn-choice {
    padding: 1em 2em;
    font-size: 1em;
    border: 2px solid #bbb;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
    margin-bottom: 0.3em;
}

.btn-choice:hover {
    border-color: var(--couleur-froide-fonce);
    background-color: var(--couleur-froide-clair);
}

.btn-choice.selected {
    border-color: var(--couleur-chaude-fonce);
    background-color: var(--couleur-chaude-clair);
    font-weight: bold;
}

/* === BARRE DE PROGRESSION =================================================== */

.progress-container {
    width: 100%;
    background-color: #ddd;
    height: 6px;
    margin-bottom: 1.5em;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #FFDAB9, var(--couleur-chaude-fonce));
    transition: width 0.4s ease;
}

/* === CHAMPS =================================================== */

.field {
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.field:focus {
  border-color: var(--couleur-chaude-fonce);
  outline: none;
  box-shadow: 0 0 0 2px var(--couleur-chaude-fonce); /* effet 3px sans reflow */
}

/* === Titre des pages de la webapp quand connecté =================================================== */

.iivvii-header {
    display: flex;
    align-items: center;
    justify-content: center; /* ← centré horizontalement */
    max-width: 500px;
    margin: 0 auto 1em auto;
    padding: 0.4em 1em 0em 1em;
    font-size: 1.4em;
    font-weight: bold;
    color: var(--couleur-froide-fonce);
}

.iivvii-header i {
    font-size: 1.6em;
    margin-right: 10px;
    color: var(--couleur-froide-fonce);
}

/* === Pages : contact et messages =================================================== */

.contacts { max-width: 800px; margin: 1.5em auto; }

.item{
  display: block;
  /* grid-template-columns: minmax(0,1fr) auto; */
  position: relative;

  gap: 12px;
  align-items: start;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  border: 2px solid var(--couleur-froide-fonce);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}

.item:hover{ transform: scale(1.012); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }

.col-person{ min-width:0; }

.person-name{
  font-weight:700; font-size:1.05rem; color: var(--couleur-chaude-fonce);
  display:flex; align-items:center; gap:.5em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.badge-new{
  background:var(--couleur-chaude-fonce); color:#fff; border-radius:999px; padding:.15em .6em; font-size:.78rem;
}

.place-line{
  color:#666; font-size:.9rem; margin-top:4px;
  display:flex; align-items:center; gap:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.place-emoji{ font-size:1.05rem; }
.col-action{ text-align:right; }

.btn-open{
    display:inline-block; 
    padding:.55em 1.0em; 
    border:none; 
    border-radius:999px;
    background:var(--couleur-froide-fonce); color:#fff; text-decoration:none; font-weight:600;
    white-space:nowrap;
    position: absolute;
    top: 6px;    /* même que le padding-top de .item */
    right: 6px;  /* même que le padding-right de .item */
    z-index: 1;
}

.btn-open:hover{ 
color:#fff; 
background: linear-gradient(var(--couleur-froide-fonce),var(--couleur-froide-clair));
}

@media (max-width:700px){
  .btn-open { padding:.45em .9em; font-size:.95em; }
}
@media (max-width:360px){
  .item { grid-template-columns: 1fr; gap:8px; }
  .col-action { text-align:left; }
}

/* === Mises en forme =================================================== */

.msg-line{
  margin-top:6px; background: #f1f1f1; border:1px solid var(--couleur-froide-clair); border-radius:10px;
  padding:8px 10px; color: #000; font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* === PAGE ACCUEIL === */
.home-banner {
    text-align: center;
    padding: 0em;
}

.home-banner h2 {
    font-size: 1.4em;
    margin-bottom: 1em;
}

.home-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 6px;
}

/* === LIENS & TERMES === */
.terms {
    font-size: 0.85em;
    margin-top: 1em;
}

.terms a {
    color: #000;
    text-decoration: underline;
}

/* Bouton bleu clair */
.btn-primary {
    background-color: #4A849F;
    color: white;
}

.btn-primary:hover {
    background-color: #A7D7E9;
}


/* Bouton désactivé */
.btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}


/* === AFFICHAGE DU RAYON (slider UI) === */
#radius-display {
    text-align: center;
    margin-top: 1em;
    font-weight: bold;
}