body {
	margin: 0;
	width: 100%;
}

.main-index {
	width: 100%;
	margin-top: 115px;
	margin-bottom: 40px;
	font-family: 'Helvetica', sans-serif;
    color: black;
    padding: 10px 0;
	flex:1;
}

.main-index-titre {
	width: 80%;
	margin: auto;
}

.main-index-tableau {
	width: 80%;
	margin: auto;
	vertical-align: middle;
	text-align: center;
}
.main-index-tableau tr {
	height: 300px;
}

.main-index-tableau img {
	width: 80%; 
	margin: auto;
	border-top-right-radius: 20%;
}
.main-index-tableau img:hover {
	width: 75%; 
	margin: auto;
}

/* Conteneur principal */
.main-login {
  width: 100%;
  min-height: 100vh;              /* prend toute la hauteur de l'écran */
  margin-top: 0;                  /* évite les décalages sur mobile */
  padding: 24px 16px;             /* padding mobile */
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url('../image/fondLog.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Carte de login */
.main-login-log {
  width: 100%;                    /* mobile: plein écran (avec padding du parent) */
  max-width: 420px;               /* limite pour ne pas être trop large */
  background-color: rgba(247, 247, 248, 0.92); /* léger transparent si fond derrière */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Un peu plus d’air sur grand écran */
@media (min-width: 768px) {
  .main-login {
    padding: 60px 24px;
  }
  .main-login-log {
    padding: 30px;
    max-width: 520px;
  }
}

/* Desktop: si tu veux retrouver ton "30%" d'origine */
@media (min-width: 1200px) {
  .main-login-log {
    width: 30%;
    max-width: 560px; /* garde une limite */
  }
}

/* Styles pour la barre de navigation */
.main-nav {
	width: 100%;
	margin-top: 125px;
	overflow: hidden;
	overflow: auto;
	font-family: 'Helvetica', sans serif;
	font-size: 24px;
    background-color: #DDDDDD;
    color: #ffffff;
    padding: 10px 0;
}

.main-gestion {
	width: 95%;
	margin: auto;
	margin-top: 155px;
}

.main-gestion a {
	border: solid 1px #183B50;
	color: black;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}

.main-gestion a:hover {
	background-color: #183B50;
	color: white;
}

.main-nav .container {
    display: flex;
    /* justify-content: center; */
}

.main-nav a{
	text-decoration: none;
	color: black;
	text-align: left;
	padding-left: 10px;
	padding-right: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
	gap: 20px;
	/* width: 100%; */
    /* justify-content: space-between; */
    margin: 0;
    padding: 0;
	color: black;
	text-align: left;
}

.main-nav ul li {
    /* margin-right: 0px; */
	text-decoration: none;
	color: black;
	text-align: left;
	
}

.main-nav-actif {
	border-bottom: solid black 3px;
}

.main-content {
	width: 100%;
	overflow: hidden;
	height: 80vh;
	overflow-y: auto;
	background-color: #f7f7f8;
	display: block;
	font-family: 'Helvetica', sans-serif;
}

.main-content-banner {
	width: 90%;
	margin: auto;
	margin-top: 1%;
	margin-bottom: 1%;
	height: 6vh;
	background-color: #ffffff;
	box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.main-content-banner h1{
	padding: 10px;
}

.main-content-contenu {
	width: 90%;
	margin: auto;
	margin-bottom: 50px;
	display: flex;
}

.left-two-third {
	width: 65%;
	height: 70vh;
	display: block;
}

.right-one-third {
	width: 34%;
	margin-left: 1%;
	height: 70vh;
	display: block;
}

.card-half,
.card-full {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #eef0f4;
	margin-bottom: 1vh;
	box-shadow: 0 6px 20px rgba(0,0,0,.01);
}

.card-half { height: 32.5vh; }
.card-full { height: 67vh; }

.card-content  {
	width: 95%;
	height: 100%;
	margin: auto;
}

.card-content-table {
	width: 100%;
	max-height: 25vh;
	overflow:hidden;
	overflow-y: auto;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.card-content-table table {
	width: 100%;
	text-align: left;
	vertical-align: center;
	border-collapse: collapse;
}

.card-content-table thead {
	position: sticky;
	width: 100%;
}

.card-content-table th {
	font-weight: 900;
	border-top: solid black 2px;
	border-bottom: solid black 2px;
	padding: 5px;
}

.card-content-table td {
	border-bottom: dotted gray 1px;
	padding: 5px;
}

.ligne-tableau {
	border-bottom: dotted gray 1px;
}

.ligne-survol {
	background-color: #DFEDF5;
	cursor: pointer;
}

.recherche {
	width: 50%;
	margin: auto;
	margin-top: 10vh;
	margin-bottom: 10vh;
}

.recherche table{
	width: 100%;
	vertical-align: middle;
}

.lastElement {
	text-align: left;
	width: 95%;
	margin: auto;
	margin-bottom: 50px;
	display: block;
	background-color: white;
	font-family: 'Helvetica', sans-serif;
}

.lastElement h1 {
	text-align: left;
	font-size: 10vh;
}

.lastElement-table {
    width: 100%; /* Le tableau prend toute la largeur du conteneur */
    border-collapse: collapse;
    table-layout: fixed; /* Colonnes de largeur fixe */
    margin-bottom: 40px;
}

.lastElement-table thead {
    background-color: #183B50;
    color: white;
    font-family: 'Helvetica', sans-serif;
}

.lastElement-table thead th {
    padding: 10px;
    border-bottom: solid black 2px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.lastElement-table tbody tr {
    display: table-row; /* Par défaut, pour assurer l'alignement des colonnes */
}

.lastElement-table td {
    padding: 10px;
    border-bottom: solid black 1px;
    width: 20%; /* Largeur égale pour chaque colonne */
}

.suggestions {
	position: absolute;
    width: 35%;
	max-height: 150px;
	background-color: white;
	white-space: nowrap;
	overflow: hidden; 
	text-overflow: ellipsis;
	overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestions li {
    padding: 10px;
    cursor: pointer;
	
}

.suggestions li:hover {
    background-color: #183B50;
	color: white;
}

.suggestions li:last-child:hover {
	background-color: white;
	color: black;
}

.factureMainContent {
	width: 100%;
	margin: auto;
	margin-top: 20px;
	display: flex;
	font-family: 'Helvetica', sans-serif;
}

.factureMainContentMenu {
	width: 20%;
	margin-right: 10px;
	padding-left: 10px;
	height: 70vh;
	background-color: #DFEDF5;
	overflow-y: auto;
	border-radius: 4px;
}

.factureMainContentMenu li {
	padding: 10px;
	width: 80%;
	margin-left: 5%;
	margin-bottom: 10px;
	margin-top: 10px;
	color: black;
	border: solid #183B50 1px;
	border-radius: 8px;
	list-style: none;
	cursor: pointer;
}

.factureMainContentMenu li:hover {
	background-color: #183B50;
	color: #ffffff;
}

.factureMainContentMain {
	flex: 1;
	margin-bottom: 50px;
	height: 60vh;
	overflow-y: auto;
}

.ficheAnimalFactureHeader {
	width: 100%;
	margin: auto;
}

.ficheAnimalFactureHeader table{
	border-collapse: collapse;
	width: 100%;
}

.ficheAnimalFactureHeader thead{
	width: 100%;
	margin: auto;
	text-align: left;
	font-size: 2.4 vh;
	background-color: #183B50;
	font-family: 'Helvetica', sans-serif;
	color: white;
	padding: 3px;
}

.ficheAnimalFactureContenu {
	width: 100%;
	margin: auto;
	font-size: 1.6vh;
	font-family: 'Helvetica', sans-serif;
}

.ficheAnimalFactureContenu table{
	border-collapse: collapse;
	width: 100%;
}
.ficheAnimalFactureContenu tr {
	border-bottom: solid black 1px;
	border-top: solid black 1px;
}

.ficheAnimalFactureContenu td {
	position: relative;
	padding: 3px;	
}

.ficheAnimalFactureContenu img {
	width: 40%;
	margin-left: 30%;
	cursor: pointer;
}

.ficheAnimalFactureReglTotaux {
	width: 80%;
	margin: auto;
	font-size: 1.6vh;
	font-family: 'Helvetica', sans-serif;
	display: flex;
}

.reglementFacture {
	flex: 1;
}

.totauxFacture {
	width: 25%;
	padding: 20px;
}

.fichefamille {
	width: 95%;
	margin: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	display: flex;
	font-family: 'Helvetica', sans-serif;
}

.infoChef {
	width: 45%;
	height: 50vh;
	overflow: hidden;
	padding-left: 2.5%;
	overflow-y: auto;
	background-color: white;
	margin-right: 10px;
	box-shadow: 0 6px 10px rgba(0,0,0,.1);
	position: relative;
}

.configFam {
	flex: 1;
	display: block;
	height: 50vh;
	overflow: hidden;
	overflow-y: auto;
	background-color: white;
	box-shadow: 0 6px 10px rgba(0,0,0,.1);
}

.infoMembre {
	width: 45%;
	height: 73vh;
	overflow: hidden;
	padding-left: 2.5%;
	overflow-y: auto;
	background-color: white;
	margin-right: 10px;
	box-shadow: 0 6px 10px rgba(0,0,0,.1);
	position: relative;
}

.membreRight {
	flex: 1;
	display: block;
	height: 73vh;
	overflow: hidden;
	overflow-y: auto;
	box-shadow: 0 6px 10px rgba(0,0,0,.1);
}

.archiveMembre {
	flex: 1;
	display: block;
	height: 22vh;
	overflow: hidden;
	overflow-y: auto;
	background-color: white;
	box-shadow: 0 6px 10px rgba(0,0,0,.1);
}

.memberFam, .prestaFam {
	height: 20vh;
	width: 95%;
	margin: auto;
	margin-bottom: 1vh;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-y: auto;
}
.memberFam ul, .prestaFam ul {
	width: 100%;
	list-style: none;
}

.memberFam li, .prestaFam li {
	text-decoration: none;
	list-style: none;
	color: black;
	cursor: pointer;
	width: 80%;
	padding: 10px;
	border-top: dotted black 1px;
	border-bottom: dotted black 1px;
}

.memberFam li:hover, .prestaFam li:hover {
	transform: scale(0.98);
	background-color: #183B50;
	color: white;
}

.ficheClient-top {
	width: 100%;
	text-align: left;
	color: black;
}

.ficheClient-detail {
	width: 90%;
	margin-left: 5%;
	text-align: left;
	border-collapse: collapse;
	font-family: 'Helvetica', sans-serif;
	margin-bottom: 20px;
}

.ficheClient-detail thead {
	color: black;
}

.ficheClient-detail th {
	border-bottom: solid black 2px;
}

.ficheClient-detail td {
	padding-bottom: 10px;
	padding-top: 10px;
}

.button-action {
	border: none; 
	width: 100%;
}

.button-action td {
	padding-bottom: 30px;
}

.button-action button {
	width: 90%;
	margin-left: 5%;
	padding: 10px;
	cursor: pointer;
	background-color: white;
	color: black;
	border: solid 1px #183B50;
	border-radius: 4px;
	font-size: 1.3em;
}

.button-action button:hover {
	transform: scale(0.95);
	background-color: #183B50;
	color: white;
	border: none;
}

.stampMembre {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15%;
}

.stampMembre img {
	width: 100%;
}

.act-presta {
	width: 60%;
	margin: auto;
	cursor: pointer;
}

.act-presta:hover {
	transform: scale(0.95);
}

.section-separator {
    border: none;
    border-top: 1px solid #000;
    margin: 20px 0;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
	
  .main-content {
	margin-top: 155px;
  }
  
  /* Layout général */
  .fichefamille {
    width: 100%;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column; /* empilement vertical */
    gap: 12px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Cards: on supprime les hauteurs fixes, on laisse le contenu vivre */
  .infoMembre,
  .membreRight,
  .configFam,
  .archiveMembre,
  .infoChef {
    width: 100% !important;
    height: auto !important;
    min-height: unset;
    margin-right: 0 !important;
    padding: 14px 14px 18px 14px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    overflow: visible;       /* on évite les scroll internes sur mobile */
  }

  /* Le bloc right devient une section normale */
  .membreRight {
    background-color: transparent; /* évite double fond si tu veux */
    box-shadow: none;
    padding: 0;
  }

  /* La configFam redevient une "card" */
  .configFam {
    background-color: white;
  }

  /* En haut: centrer le statut et lui donner ~80% de largeur */
  .stampMembre {
    position: static;      /* on désactive l’absolu */
    width: 80%;
    max-width: 320px;
    margin: 0 auto 14px auto;
    display: block;
  }

  .stampMembre img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Titres + typo un peu plus moderne */
  .infoMembre h1,
  .archiveMembre h1 {
    font-size: 22px;
    margin: 0 0 10px 0;
  }

  .ficheClient-top h2 {
    font-size: 18px;
    margin: 0;
  }

  /* Tables: moins de marges, plus lisible */
  .ficheClient-top {
    width: 100%;
  }

  .ficheClient-detail {
    width: 100%;
    margin-left: 0;
    margin-bottom: 14px;
  }

  .ficheClient-detail td {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 16px; /* lisible sur mobile */
  }

  .ficheClient-detail thead th {
    font-size: 16px;
    padding-bottom: 8px;
  }

  /* Images icônes: éviter trop petit */
  .ficheClient-detail img {
    width: 28px !important;
    height: auto;
  }

  /* ===== Actions: boutons empilés pleine largeur ===== */

  /* On force le tableau en "liste" */
  .button-action,
  .button-action tbody,
  .button-action tr,
  .button-action td {
    display: block;
    width: 100%;
  }

  .button-action td {
    padding: 0 0 10px 0; /* espacement vertical */
  }

  .button-action button {
    width: 100%;
    margin: 0;
    padding: 14px 12px;
    border-radius: 14px;
    font-size: 16px;
    border: 1px solid rgba(24,59,80,.35);
    background-color: white;
  }

  .button-action button:hover {
    transform: none; /* sur mobile pas très utile */
  }

  /* Prestation: icônes plus faciles à cliquer */
  .act-presta {
    width: 28px;
  }

  /* Optionnel: réduire le "white-space: nowrap" qui casse sur mobile */
  .memberFam, .prestaFam {
    white-space: normal;
  }
}

/* ===== Correctif largeur boutons actions (mobile) ===== */
@media (max-width: 768px) {

  /* Neutralise les largeurs inline des <td> */
  .button-action td {
    width: 100% !important;
  }

  /* Neutralise aussi les <tr> si besoin */
  .button-action tr {
    width: 100% !important;
  }

  /* Boutons réellement full width */
  .button-action button {
    width: 100% !important;
    max-width: none;
    box-sizing: border-box;
  }
}
