@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

/* ============================= */
/* ROOT VARIABLES + GLOBAL RESET */
/* ============================= */

:root {
    --primary: #097b4f;
    --secondary: #cc2a35;
    --white: #fff;
    --text-clr: #5b6475;
    --header-clr: #25273d;
    --next-btn-hover: #367f63;
    --back-btn-hover: #d34f5a;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
	list-style: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(../img/evasionCenter3-min.png) center/cover repeat;
}

/* container side header */
.content-with-sidebars {
    display:flex;
    flex-wrap:wrap;
}


.content-with-sidebars img {
  border-radius: 8px;
}

/* columns */
.content-with-sidebars > * {
    width:100%;
    /* padding:1rem 1rem 0rem 1rem; */
	text-align:center; 
	margin-top:10px 0;
}

/* tablet breakpoint */
@media (min-width:500px) {
    .content-with-sidebars > * {
        width:50%;
    }
    .content-with-sidebars > *:nth-child(1) {
        width:100%;
    }
}

/* desktop breakpoint */
@media (min-width:768px) {
    .content-with-sidebars > * {
        width:60%;
		margin:0%;
		order:1;
    }
    .content-with-sidebars > *:nth-child(1) {
        width:20%;
		margin-top:0%;
		order:0;
    }
    .content-with-sidebars > *:nth-child(2) {
		width:20%;
		margin:0%;
        order:2;
    }
}


/* ============================= */
/* MAIN CONTAINER                */
/* ============================= */

.container {
    width: 100%;
    max-width: 1180px;
    background: rgba(0, 0, 0, 0.5);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255,255,255,0.25);
    max-height: 95vh;
    overflow-y: auto;
}

.container .content-with-sidebars button {
    background-color: Transparent;
    background-repeat:no-repeat;
    border: none;
    cursor:pointer;
    overflow: hidden; 
	margin-left:10px;
	margin-right:10px;
}
 
/* ============================= */
/* MULTI-STEP HEADER             */
/* ============================= */

.header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.header ul {
    display: flex;
    gap: 120px;
}

.header ul li {
    position: relative;
    text-align: center;
}

.header ul li::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 100%; /* auto LTR / RTL */
    width: 120px;
    height: 2px;
    background: var(--secondary);
    transform: translateY(-50%);
}

.header ul li:last-child::before {
    display: none;
}

.header ul li p {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    line-height: 48px;
    font-weight: 600;
}

.header ul li.active p {
    background: var(--primary);
}

.header ul li.active::before {
    background: var(--primary);
}

/* ============================= */
/* FORM BUTTONS                  */
/* ============================= */

.erreur_center {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f44336; /* rouge vif */
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Icône d'erreur */
.common_btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.common_btns button {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn_next:disabled {
    background-color: gray;
    cursor: not-allowed;
}

/* Messages d'erreur */
.common_btns > div[class*="_erreur_center"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f44336;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.common_btns > div[class*="_erreur_center"] i {
    margin-right: 6px;
    font-size: 16px;
}

.common_btns > div[class*="_erreur_center"].show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive mobile */
@media (max-width: 480px) {
	.header ul li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100%);
    width: 60px;
    height: 2px;
    background: var(--secondary);
	}
    .common_btns {
        flex-direction: column;
        align-items: stretch;
    }
    .common_btns > div[class*="_erreur_center"] {
        width: 100%;
        margin: 10px 0;
    }
}



.btns_wrap .common_btns {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btns_wrap button {
    border: none;
    padding: 12px 15px;
    width: 140px;
    font-size: 16px;
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_next,
.btn_done {
    background: var(--primary);
}

.btn_back {
    background: var(--secondary);
}

.btn_next:hover,
.btn_done:hover {
    background: var(--next-btn-hover);
}

.btn_back:hover {
    background: var(--back-btn-hover);
}
.container .btns_wrap .common_btns button.btn_next .icon{
    display: flex;
    margin-left: 10px;
}
.container .btns_wrap .common_btns button.btn_back .icon{
    display: flex;
    margin-right: 10px;
}
/* ============================= */
/* FORM FIELDS                   */
/* ============================= */

.form-title {
	
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 10px;
    text-shadow: 2px 2px 2px #000;
    padding-bottom: 8px;
    border-bottom: 1px solid white;
	
}

.main-user-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
     /* padding: 25px 0; */
}

.user-input-box,
.user-input-box-3
.user-input-box-total {
    width: 100%;
}

.user-input-box label,
.user-input-box-3 label,
.user-input-box-total label {
    color: white;
    font-size: 17px;
    margin-bottom: 6px;
    display: block;
}

.user-input-box input,
.user-input-box select,
.user-input-box-3 input,
.user-input-box-3 select,
.user-input-box-total input {
    width: 100%;
    height: 42px;
    border-radius: 7px;
    border: 1px solid #cc2a35;
    padding: 0 12px;
    background: #fff;
}

/* Responsive 2 columns on tablet/desktop */
@media (min-width: 600px) {
    .user-input-box {
        width: calc(50% - 10px);
    }
	
	.user-input-box-center {
        width: calc(70% - 10px);
    }
	
	.user-input-box-3 {
        width: calc(30% - 10px);
    }
	
	
}


.CA_3ANS {
    transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
    opacity: 1;
    max-height: 200px; /* doit être suffisant pour le contenu */
    overflow: hidden;
	}

.CA_3ANS.hidden {
	opacity: 0;
	max-height: 0;
	margin: 0;
	padding: 0;
}

.center-container {
    display: flex;
    justify-content: center; /* centre horizontalement */
    /* align-items: center; optionnel si vous voulez centrer verticalement dans le container parent */
    margin-top: 40px; /* espace par rapport aux éléments précédents */
}

/* Style du champ total */
#montant_investissement_total {
	font-weight: bold;  /* texte en gras */
    color: #ffce00;    /* couleur du texte */
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #cc2a35;
    box-sizing: border-box;
    font-size: 18px;    /* taille par défaut desktop */
    background-color: #097b4f;
}

#fonds_propres_minimum {
    font-weight: bold;        /* texte en gras */
    color: #cc2a35;           /* couleur du texte */
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 18px;          /* taille par défaut desktop */
}

/* Style du placeholder (pour certains navigateurs) */
#montant_investissement_total::placeholder {
    font-weight: bold;        /* placeholder en gras */
    color: #097b4f;           /* placeholder en vert */
	
}

#fonds_propres_minimum::placeholder {
    font-weight: bold;        /* placeholder en gras */
    color: #cc2a35;           /* placeholder en vert */
	
}	
	
/* ============================= */
/* TOOLTIP INFO                  */
/* ============================= */

/* Style de base */
/* Style de base 
a.info {
    position: relative;
    color: #ffce00;
    text-decoration: none;
    border-bottom: 1px dotted gray;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Infobulle cachée par défaut 
a.info span {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

/* Desktop : hover sur toute la balise <a> 
@media screen and (min-width: 769px) {
    a.info:hover span {
        display: block;
        opacity: 1;
        position: absolute;
        bottom: 28px;
        left: 10px;
        background: white;
        color: black;
        padding: 8px 12px;
        border: 2px solid green;
        width: 260px;
        font-size: 14px;
        border-radius: 6px;
        white-space: normal;
        z-index: 100;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        transform: translateY(0);
    }
}

/* Mobile & tablette : afficher uniquement sur l'icône <i> 
@media screen and (max-width: 768px) {
    a.info {
        flex-direction: column;
        align-items: flex-start;
    }

    /* l'infobulle apparaît lorsque l'icône est active ou focus 
    a.info i:hover + span,
    a.info i:focus + span {
        display: block;
        opacity: 1;
        position: absolute; 
        bottom: 100%; 
        left: -900%;
        background: white;
        color: black;
        padding: 8px 12px;
        border: 2px solid green;
        border-radius: 6px;
        font-size: 14px;
        white-space: normal;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transform: translateY(0);
        width: 260px;
        z-index: 100;
    }
	
	
}

*/
/* Container du bouton info */
a.info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
	color:#ffce00;
}

/* Tooltip */
a.info span {
    position: absolute;
    bottom: 28px; /* valeur par défaut : au-dessus */
    left: 0;
    display: none;
    width: 360px;

    background: white;
    color: black;
    padding: 8px 12px;
    border: 2px solid green;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    
    z-index: 200;
	
	white-space: normal;
    opacity: 0;
    /* transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none; */
}

/* Flèche */
a.info span::after {
    content: "";
    position: absolute;
    left: 20px;
    
    content: "";
    position: absolute;
    left: 20px;

    bottom: var(--arrowBottom, -10px);
    top: var(--arrowTop, auto);

    width: 0;
    height: 0;

    border-left: 8px solid transparent;
    border-right: 8px solid transparent;

    /* direction automatique */
    border-top: var(--arrowDirectionBottom, 10px solid green);
    border-bottom: var(--arrowDirectionTop, 0);
}

/* Hover desktop */
a.info i:hover + span {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



/* Mobile &  */
@media screen and (max-width: 480px) {
	a.info span {
    width: 260px;
}
	.user-input-box-3 {
        width: calc(90% - 10px);
	}
	
	 #montant_investissement_total {
        font-size: 14px;
        padding: 6px;
    }
	
	#montant_investissement_total::placeholder {
        content: "Montant total";
    }
}

/* Tablette */
@media (max-width: 992px) {
    #montant_investissement_total {
        font-size: 16px;
        padding: 8px;
    }
}
/* ============================= */
/* MODAL SUCCESS                 */
/* ============================= */

.modal_container {
    position: fixed;
    inset: 0;
    visibility: hidden;
}

.modal_container .shadow {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    transition: .2s ease;
}

.success_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -600px);
    background: white;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: .4s ease;
}

.modal_container.active {
    visibility: visible;
}

.modal_container.active .shadow {
    opacity: 1;
}

.modal_container.active .success_container {
    transform: translate(-50%, -50%);
}

.modal_container .modal_icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group {
	
	width: 95%;
    display: flex;
    align-items: center;
    position: relative;
	
}

/*style error message */

.input-group span {
    position: absolute;
    bottom: 12px;
    font-size: 14px;
    color: red;
    inset-inline-end: 40px; /* remplace left/right */
}

.input-group span i {
	color: seagreen;
	
}



/* ============================= */
/* FULL RESPONSIVE LAYOUT        */
/* ============================= */

@media (max-width: 480px) {
    .container {
        padding: 18px;
    }

    .header ul {
        gap: 20px;
    }

    .header ul li p {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 15px;
    }

    .success_container {
        width: 90%;
        flex-direction: column;
        text-align: center;
    }
}

.gender-title {
	color: var(--primary);;
}
.gender-category {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne suivante */
    gap: 10px; /* Espacement entre les éléments */
}

/* Style des paires input+label */
.gender-pair {
    display: flex;
    align-items: center; /* Aligne l'input et le label verticalement */
    width: auto; /* Pour que deux paires tiennent sur la même ligne si nécessaire */
	gap: 8px;
}



/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .gender-pair {
        width: 100%; /* Chaque paire prend toute la ligne */
        margin-bottom: 10px;
    }
}


/* Forme 4 */


/* ===================== CSS compilé ===================== */

:/* ===================== Variables ===================== */
.pricing-cards {
  --n: 3;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 1.5rem;
  margin-top: 20px;
}

.pricing-cards article {
  --bg: var(--grad);
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--bg));
  box-shadow: 0 15px 40px -10px rgba(0,0,0,0.3);
  transform: translateY(calc(var(--i) * 10px));
  transition: 0.3s ease;
}

.pricing-cards article:hover {
  transform: translateY(0) scale(1.02);
}

.pricing-cards header h3 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.pricing-cards .price {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.pricing-cards ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.pricing-cards ul li {
  margin-bottom: .5rem;
  font-size: 1rem;
}

.pricing-cards button {
  width: 100%;
  padding: .7rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
}

.pricing-cards button:hover {
  background: #fff;
}
