:root {
    --subvention-background: #f8fafc;
    --subvention-text: #1e293b;
}
body{
    background: #fbfbfb !important;
}

.subvention-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.subvention-form-body {
    background: var(--subvention-background);
    color: var(--subvention-text);
    line-height: 1.5;
}

.subvention-container {
    max-width: 100%;
}

.subventionformcontainer {
    max-width: 100%;
    margin-top: 3.5rem;
}

.subvention-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subvention-header h1 {
    font-size: 2.5rem;
    color: var(--subvention-primary);
    margin-bottom: 1rem;
}

.subvention-section {
    display: none;
    padding: 0rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.subvention-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subvention-group {
    flex: 1;
}

.subvention-btn {
    background: #0e7e70;
    color: white;
    padding: 0.5rem 3rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.subvention-btn-previous{
    background: white;
    color: #6c757d;
    padding: 0.5rem 3rem;
    border: 1px solid #6c757d;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.subvention-btn:hover {
    background: #0a6358;
}
.subvention-btn-previous:hover {
    background: #6c757d;
    color: white;
}
.subvention-btn-group {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.subvention-btn-prev {
    background: #136d43;
}

.subvention-btn-prev:hover {
    background: #136d43;

}


.subvention-required::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
}

.subvention-group-row {
    gap: 20px;
    align-items: flex-start;
}

.subvention-radio-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.subvention-radio {
    margin-right: 5px;
    transform: scale(1.1);
    vertical-align: middle;
}

.subvention-input-date {
    width: 150px;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: var(--subvention-background);
}

.subvention-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--subvention-background);
    transition: border-color 0.2s ease;
}

.subvention-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #bbf7d0;
    border-radius: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .subvention-group-row {
        flex-direction: column;
        gap: 0px !important;
    }

    .subvention-radio-row {
        flex-wrap: wrap;
    }

}

.subvention-group textarea {
    width: 100%;
}

.recap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.recap-table th,
.recap-table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.recap-table th {
    background-color: #f1f5f9;
    font-weight: 600;
}

.before-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f9f9f9;
}

.before-login-container {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.before-login-container h1 {
    font-size: 1.8rem;
    color: #333;
}

.before-login-container p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #4285f4;
    color: #ffffff;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.google-btn:hover {
    background-color: #357ae8;
}

.google-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.custom-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.custom-table thead {
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
}

.custom-table th {
    padding: 15px;
    font-size: 1rem;
    text-align: center;
}

.custom-table tr {
    border-bottom: 1px solid #ddd;
}

.custom-table tr:hover {
    background-color: #f1f1f1;
}

.custom-table td {
    padding: 10px 15px;
    text-align: left;
}

.custom-table input {
    width: 95%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.custom-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.custom-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.custom-section-numbers {
    margin-top: 5rem;
    background: #fbfbfb;
    border-radius: 1rem;
    padding: 2rem;
}
@media (min-width: 1680px) {
    .custom-section-numbers {
        margin-top: 3rem;
    }
}
.custom-section-numbers .title-with-notch {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.custom-section-numbers .title-with-notch .notch {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: -30px;
    background: #800080;
    transform: rotate(45deg);
}

.content-left p {
    margin-bottom: 1rem;
}

.number-bubble {
    background: #E0FFE0;
    text-align: center;
    width: 100%;
}

.background-bubble {
    background-color: #f0f8f0;
}

.custom-section-numbers .content-subvention {
    max-width: 43%;
    margin-right: 10rem;
}

@media (max-width:1023px) {
    .custom-section-numbers .content-subvention {
        max-width: 100%;
        margin-right: 0rem;
        margin-top: 1rem;

    }
    .custom-section-numbers {
    padding: 0rem !important;
}
.subvention-section {
    padding: 0rem 0rem !important;
}

}

.time-button {
    background-color: white;
    color: gray;
    border: 1px solid gray;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 2rem;
    cursor: default !important;
}

.time-button i {
    font-size: 1.2rem;
}

:root {
    --progress: 0;
    /* Pourcentage du remplissage */
}

.progress-container {
    display: inline-block;
    position: relative;
    width: 4rem;
    /* Taille du cercle */
    height: 4rem;
}

.progress-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: conic-gradient(#0e7e70 0% calc(var(--progress)*1%),
            #e0e0e0 calc(var(--progress)*1%) 100%);


    z-index: 1;
}

.progress-container::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
    z-index: 2;
}

.progress-container span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    z-index: 3;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    display: block;
    width: 100%;
    height: 3rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #111827;
    padding: 0 1rem;
    outline: none;
    transition: border-color 0.2s ease;

}
@media (max-width:768px) {
    .form-input {
    font-size: 16px !important; 
}
    
}

.form-input:focus {
    border-color: #d1d5db;
}

.form-label {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1;
    background-color: #ffffff;
    padding: 0 0.25rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-input:placeholder-shown+.form-label {
    top: 34%;
    transform: translateY(-50%);
}
.form-input.invalid:placeholder-shown + .form-label {
top: 25%; 
transform: translateY(-50%);
}


.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: 0;
    transform: translateY(-100%);
    font-size: 0.800rem;
    color: #9ca3af;
    font-weight: 400;
}

textarea.form-input {
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Conteneur des options */
.custom-radio-group {
    display: flex;
    align-items: stretch;
    /* Étire les rectangles pour qu'ils aient la même hauteur */
    gap: 0;
    /* Pas d'espace entre les rectangles */
    width: 85%;
}

/* Masquer les boutons radio */
.custom-radio-group .subvention-radio {
    display: none;
}

/* Style des rectangles */
.custom-radio-group .radio-label {
    border: 2px solid #ccc;
    /* Assure une bordure visible */
    padding: 12px 13px;
    cursor: pointer;
    flex: 1;
    /* Les deux rectangles prennent la même largeur */
    text-align: left;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centrer verticalement le contenu */
    box-sizing: border-box;
    /* Inclure padding et bordure dans les dimensions */
    font-size: 0.7rem;
}

/* Rectangle gauche (premier label) */
.custom-radio-group .radio-label:first-of-type {
    border-radius: 8px 0 0 8px;
    /* Coins arrondis à gauche uniquement */
    font-size: 0.7rem;

}

/* Rectangle droit (dernier label) */
.custom-radio-group .radio-label:last-of-type {
    border-left: none;
    /* Supprime la bordure gauche pour coller les deux rectangles */
    border-radius: 0 8px 8px 0;
    /* Coins arrondis à droite uniquement */
    font-size: 0.7rem;

}

/* Style actif quand le bouton radio est sélectionné */
.custom-radio-group .subvention-radio:checked+.radio-label {
    background-color: #0e7e70;
    /* Vert */
    border-color: #0e7e70;
    color: white;
    font-size: 0.7rem;

}

/* Changer la bordure au survol */
.custom-radio-group .radio-label:hover {
    border-color: #888;
    font-size: 0.7rem;

}

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    font-family: system-ui, sans-serif;
    background: white;
    min-height: 100vh;
}

.timeline-step {
    position: relative;
    width: 23rem;
    margin: 20px 0;
    padding: 24px 24px 24px 55px;
    /* Increased left padding */
    background: #fbfbfb;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: none;
    /* Removed border-left */
    border: 1px solid lightgrey;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 19px;
    /* Adjusted for new bubble position */
    top: 100%;
    height: 35px;
    width: 2px;
    background: #2e8b57;
    opacity: 0.2;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step:hover {
    background: linear-gradient(to right, #fcfffd, #cef7d8) !important;
}

.longformlabel{
font-size: 0.7rem;
}
@media (max-width:1022px) {
.longformlabel{
font-size: 0.6rem;
}
}

.error-message {
display: block;
font-size: 0.85rem;
margin-top: 0.25rem;
margin-bottom: 0.5rem;
color: #ef4444; 
}
.link{
text-decoration: underline;
color: blue;
}


.step-number {
    position: absolute;
    left: -12px;
    /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #2e8b57;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
    font-size: 0.9em;
    z-index: 2;
    /* Ensure bubble appears above other elements */
}

.step-content {
    color: #34495e;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.2px;
}


.timeline-step.active {
    background: linear-gradient(to right, #f0f7f4, white);
    transform: scale(1.02);
}

.timeline-step.active .step-number {
    animation: pulse 0.6s ease-in-out;
    background: #267349;
    /* Slightly darker on active */
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.my-background-section {
    background-color: #fdfdfd;
    background-image: url(./image/imagesec4.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 39rem;
    margin-bottom: 15rem;
    box-shadow: none;
}
.custom-form-group {
display: flex;
gap: 1rem;
align-items: center;
margin-bottom: 1rem;
}

.custom-form-label {
display: none; /* Masquer les labels */
}

.custom-form-input {
padding: 0.5rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
width: 200px;
}

.custom-add-btn {
padding: 0.5rem 1rem;
font-size: 1rem;
color: #fff;
background-color: #0e7e70;
border: none;
border-radius: 5px;
cursor: pointer;
}

.custom-add-btn:hover {
background-color: #5a6268;
}

.custom-organization-list {
background-color: #f1f1f1;
padding: 1rem;
border-radius: 5px;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
margin-top: 1.2rem;
}

.custom-organization-item {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
padding: 0.5rem 1rem;
display: flex;
align-items: center;
gap: 0.1rem;
}

.custom-organization-item span {
font-size: 0.9rem;
}

.custom-organization-item .custom-remove-btn {
padding: 0.2rem 0.5rem;
font-size: 0.8rem;
color: lightgray;
border: none;
border-radius: 5px;
cursor: pointer;
}

.custom-organization-item .custom-remove-btn:hover {
color: gray;
}
.flash-success {
background-color: #d1fae5; /* vert clair */
border: 2px solid #10b981; /* vert plus soutenu */
color: #065f46;
padding: 1rem;
border-radius: 0.5rem;
margin-top: 1rem;
}
.flash-error {
background-color: #fee2e2; /* rouge clair */
border: 2px solid #ef4444; 
color: #b91c1c;
padding: 1rem;
border-radius: 0.5rem;
margin-top: 1rem;
}

@media (min-width:1920px) {
.progress-container {

width: 3rem;
height: 3rem;
}

}
@media (max-width: 768px) {
.subvention-group-row .form-group {
width: 100% !important;
flex: initial !important; /* si le flex:1 te gêne */
}
.step-list-container {
display: none !important;
}
}

.spinner {
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid rgba(0, 0, 0, 0.5); /* couleur de base du spinner */
    border-top-color: #fff; /* spinner blanc */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  



