/*===================================
  GENERAL
===================================*/

*{
    font-family: "Poppins", sans-serif;
}

body { 
    background-color: rgb(213, 220, 226); /* Couleur de fond de la page */
}

a {
    text-decoration: none; /* Supprime le soulignement des liens */
    color: black; /* Couleur des liens */
}

@media (max-width:480px) {

    a {
        text-decoration: none;
        color:black
    }

    .InformationsGrid .Information {
        text-decoration: none;
        color:black;
    }

    .Services .TitresServices {
        text-decoration: none;
        color:white;
    }

}

/*===================================
  HEADER
===================================*/

header { 
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #141455;
    border: white 2px solid;
    border-radius: 10px;
    height: fit-content;
}

@media (max-width:480px) {
    header {
        width: 100%;
        max-width: 480px;
    }
}

header > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    header > div:first-child {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    header > div:first-child {
        padding: 5px;
    }
}

/*===================================
  LOGO CAF
===================================*/

.Accueil1 {
    padding: 10px 0 10px 10px; 
    height: 60px;
    width: 60px;
}
@media (max-width:768px) {
    .Accueil1 {
        height: 50px;
        width: 50px;
        padding: 10px 5px;
    }
}

@media (max-width:480px) {
    .Accueil1 {
        height: 35px;
        width: 35px;
        padding: 5px;
    }
}

/*===================================
  CAF.FR
===================================*/

.Accueil2 { 
    color: white;
    text-decoration: none;
    font-size: 32px;
    margin-left: 0; /* Collé au logo */
    padding-left: 8px; /* Juste un petit espace */
}
@media (max-width:768px) {
    .Accueil2 {
        font-size: 28px;
    }
}

@media (max-width:480px) {
    .Accueil2 {
        font-size: 24px;
    }
}

/*===================================
  BOUTON MALVOYANT
===================================*/

.BoutonMalvoyant { 
    background-color: #141455;
    border: none;
    padding: 8px; /* Réduit le padding */
    cursor: pointer;
    display: inline-flex; /* Important ! */
    align-items: center;
    justify-content: center;
}

.BoutonMalvoyant:hover {
    border: 2px solid white;
}

@media (max-width:768px) {
    .BoutonMalvoyant {
        padding: 6px;
    }
}

@media (max-width:480px) {
    .BoutonMalvoyant {
        padding: 5px;
    }
}

/*===================================
  IMAGE MALVOYANT
===================================*/

.ImgMalvoyant {
    height: 40px;
    width: 40px;
}

@media (max-width:768px) {
    .ImgMalvoyant {
        height: 35px;
        width: 35px;
    }
}

@media (max-width:480px) {
    .ImgMalvoyant {
        height: 30px;
        width: 30px;
    }
}

/*===================================
  BOUTON CONNEXION
===================================*/

.BoutonConnexion { 
    background-color: #141455;
    border: none;
    padding: 8px; /* Réduit le padding */
    cursor: pointer;
    display: inline-flex; /* Important ! */
    align-items: center;
    justify-content: center;
}

.BoutonConnexion:hover {
    border:2px solid white; 
}

@media (max-width:768px) {
    .BoutonConnexion {
        padding: 6px;
    }
}

@media (max-width:480px) {
    .BoutonConnexion {
        padding: 5px;
    }
}

.ImgConnexion {
    height: 40px;
    width: 40px;
}

@media (max-width:768px) {
    .ImgConnexion {
        height: 35px;
        width: 35px;
    }
}

@media (max-width:480px) {
    .ImgConnexion {
        height: 30px;
        width: 30px;
    }
}

/*===================================
  BOUTON RECHERCHE
===================================*/

.BoutonRecherche { 
    background-color: #141455;
    border: none;
    padding: 8px; /* Réduit le padding */
    cursor: pointer;
    display: inline-flex; /* Important ! */
    align-items: center;
    justify-content: center;
}

.BoutonRecherche:hover {
    border:2px solid white;
}

@media (max-width:768px) {
    .BoutonRecherche {
        padding: 6px;
    }
}

@media (max-width:480px) {
    .BoutonRecherche {
        padding: 5px;
    }
}

/*===================================
  IMAGE RECHERCHE
===================================*/

.ImgRecherche {
    height: 40px;
    width: 40px;
}

@media (max-width:768px) {
    .ImgRecherche {
        height: 35px;
        width: 35px;
    }
}

@media (max-width:480px) {
    .ImgRecherche {
        height: 30px;
        width: 30px;
    }
}

/*===================================
  POP UP CONNEXION
===================================*/

    /*===================================
    POP UP CONNEXION
    ===================================*/

.PopUpConnexion {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #141455;
    overflow-y: auto; /* Permet le scroll sur tout l'écran */
}

@media (max-width:769px){
 .PopUpConnection {
        top: 0;
    }
}
@media (max-width:480px) {
    .PopUpConnexion {
        background:scroll ;
        top: -35;
        width: 330px;
        margin: 10px;
        justify-content: center;
    }
}

    /*===================================
    CONTENU POP UP
    ===================================*/

.ContenuPopUpConnexion {
    background-color:#e3e3f1;
    margin: 1% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* Permet le scroll sur tout l'écran */
    
}

@media (max-width:480px) {
    .ContenuPopUpConnexion {
        background-color:#e3e3f1;
        margin: 10% auto;
        padding: 20px;
        border: 2px solid black;
        border-radius: 10px;
        width: 95%;
        max-width: 330px;
        position: relative;
        box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    }
}

    /*===================================
    TITRE POP UP
    ===================================*/

.TitrePopUpConnexion {
    background-color: #141455;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px;
}

@media (max-width:480px) {
    .TitrePopUpConnexion {
        margin: 30px 5px 5px 5px;
        padding: 15px;
        font-size: 22px;
    }
}

    /*===================================
    ICONE FERMER POP UP
    ===================================*/

.FermerConnexion {
    position: absolute;
    right: 25px;
    top: 5px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

@media (max-width:480px) {
    .FermerConnexion {
        position: absolute;
        right: 20px;
        top: 5px;
    }
}

.FermerConnexion:hover {
    color:#000;
}

    /*===================================================
    POP UP TITRE CONNEXION ALLOCATAIRE + IDENTIFIANTS CAF
    ====================================================*/

.FormulaireTitre2Connexion {
    color: #141455;
}
    /*===================================
    POP UP MOT CHAMPS REQUIS
    ===================================*/

.FormulaireAttentionConnexion {
    color: red;
    text-align: center;
}

    /*===================================
    POP UP FORMULAIRE CONNEXION
    ===================================*/

.FormulaireConnexion label {
    display: block;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #141455;
    text-align: center;
}

.FormulaireConnexion input {
    height: 30px;
    width: 200px;
    background-color: whitesmoke;
    border: 2px solid #141455;
    font-size: 18px;
    padding: 15px;
    text-align: center;
    display: block;
    margin: auto;
}

.BoutonSCConnexion {
    margin-top: 25px;
    display: flex;
    margin: auto;
    padding: 10px;
    font-size: 18px;
    color: #e3e3f1;
    background-color: #141455;
    border-radius: 10px;
    transition: background-color 0.3s ease; /* Transition douce */
}

.BoutonSCConnexion:hover {
    background-color: #e3e3f1;
    border: 2px solid #141455;
    color: #141455;
    cursor: pointer;
}

    /*===================================
    POP UP CONNEXION BOUTON FRANCE CONNECT
    ===================================*/

.BoutonFCConnexion {
    display: flex;
    margin: auto;
    border:none;
    background-color: #e3e3f1;
    transition: background-color 0.3s ease; /* Transition douce */
}

.BoutonFCConnexion:hover {
    border: 2px solid #141455;
    border-radius: 10px;
    cursor: pointer;
}

/*===================================
  BODY - DESCRIPTION
===================================*/

.BodyViePersonnelle {
    padding: 5px 15px 5px 15px; /* Espace autour de la div */
    background-color: lightpink; /* Couleur de fond de la div */
    margin: 30px 180px 0 180px; /* Marge autour de la div */
    max-width: calc(100% - 40px); /* S'adapte à la largeur de l'écran */
    border: none; /* Pas de bordure */
    box-shadow: 10px 10px 20px grey; /* Ombre portée de la div */
    border-radius: 15px; /* Bords arrondis */
    box-sizing: border-box; /* Inclut padding et border dans la width */
    display: flex;
    justify-content: space-around;
    height: 150px;
    align-items: center;
}

.divAllocationsFamiliales {
    margin: 30px 180px 0 180px; /* Marge autour de la div */ /* Marge autour de la div */
    max-width: calc(100% - 40px); /* S'adapte à la largeur de l'écran */
    padding: 10px 20px 10px 20px; /* Espace interne */
    border: none; /* Pas de bordure */
    background-color: #e3e3f1; /* Couleur de fond */
    box-shadow: 10px 10px 20px grey; /* Ombre portée */
    border-radius: 15px; /* Bords arrondis */
    box-sizing: border-box; /* Inclut padding et border dans la width */
}

@media (max-width: 480px) {
    .BodyViePersonnelle {
        padding: 10px; /* Réduit le padding sur mobile */
        margin: 15px; /* Réduit la marge sur mobile */
        height: auto; /* Permet à la hauteur de s'adapter au contenu */
        flex-direction: column; /* Empile les éléments verticalement */
    }

    .divAllocationsFamiliales {
        margin: 15px; /* Réduit la marge sur mobile */
        padding: 10px; /* Réduit le padding sur mobile */
    }
}

.Resume {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: whitesmoke;
    padding: 0 15px;
    border: 2px solid black;
}

.Texte {
    background-color: whitesmoke;
    padding: 15px;
}

.Lien {
    background:none;
    border: none;
    color: #141455;
    margin: 0;
    padding: 0;
}

.Lien:hover {
    cursor: pointer;
    text-decoration: underline;
}

.Capture1AF, .Capture2AF {
    background-color: whitesmoke;
    padding: 15px;
    border: 2px solid black;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

.TexteAllocataire {
    background-color: #b9b9dd;
    padding: 20px;
    border: 2px solid #141455;
}

/*===================================
  QUESTIONS
===================================*/

.FaqQuestion1, .FaqQuestion2, .FaqQuestion3, .FaqQuestion4, .FaqQuestion5 {
    background-color: #141455; /* Couleur de fond */
    color:white; /* Couleur du texte */
    padding: 15px; /* Espace interne */
    cursor: pointer; /* Change le curseur au survol */
    transition: background-color 0.3s ease; /* Transition douce */
    margin:15px;
    text-align: center;
    width:70%;
    margin: 10 auto;
    font-size: 18px;
}

.FaqQuestion1:hover, .FaqQuestion2:hover, .FaqQuestion3:hover, .FaqQuestion4:hover, .FaqQuestion5:hover {
    background-color:#e3e3f1; /* Couleur de fond au survol */
    color: #141455; /* Couleur du texte au survol */
    border: 2px solid #141455;
}

/* Responsive : Réduction du padding sur petits écrans */
@media (max-width: 480px) {
    .FaqQuestion1, .FaqQuestion2, .FaqQuestion3, .FaqQuestion4, .FaqQuestion5  {
        padding: 10px; /* Padding réduit pour mobiles */
        font-size: 18px; /* Taille de police réduite */
        width: fit-content;
    }
}

.FaqReponse1, .FaqReponse2, .FaqReponse3, .FaqReponse4, .FaqReponse5 {
    display: none; /* Cachée par défaut */
    background-color: whitesmoke; /* Couleur de fond */
    border: 3px solid #141455;
    color: black;
    padding: 15px; /* Espace interne */
    margin-top: 5px; /* Marge en haut */
    font-size: 18px;
}

/* Responsive : Réduction du padding sur petits écrans */
@media (max-width: 480px) {
    .FaqReponse1:hover, .FaqReponse2:hover, .FaqReponse3:hover, .FaqReponse4:hover, .FaqReponse5:hover  {
        padding: 10px; /* Padding réduit pour mobiles */
        font-size: 18px; /* Taille de police réduite */
    }
}


/*===================================
  FOOTER
===================================*/

/*===================================
  FOOTER
===================================*/

    /*===================================
    DIV FOOTER
    ===================================*/

.divFooter {
    background-color: #141455;
    color: white;
    padding: 5px 15px 15px 15px;
    margin: 20px;
    justify-content: space-around;
    display: flex;
}

@media (max-width:768px) {
    .divFooter {
        display: inline-block;
        margin: 10px;
    }
}

@media (max-width:480px) {
    .divFooter {
        display: flex;
        flex-direction: column;
        margin: 5px;
    }
}

    /*===================================
    CONTACT - RESEAUX SOCIAUX
    ===================================*/

.ReseauxSociaux {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px;
}

.Facebook {
    background-color: white;
    padding: 8px; /* Réduit le padding */
    cursor: pointer;
    display: inline-flex; /* Important ! */
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: background-color 0.3s ease; /* Transition douce */
}

.Facebook:hover {
    background-color: #b9b9dd;
}

.X {
    background-color: white;
    padding: 8px; /* Réduit le padding */
    cursor: pointer;
    display: inline-flex; /* Important ! */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease; /* Transition douce */
}

.X:hover {
    background-color: #b9b9dd;
}

.NousContacter {
    background-color: white;
    color: black;
    border: none;
    padding: 20px 8px; /* Réduit le padding */
    cursor: pointer;
    display: inline-flex; /* Important ! */
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease; /* Transition douce */
    margin-left: 5px;
}

.NousContacter:hover {
    background-color: #b9b9dd;
    color: #141455;
}

    /*===================================
    INFORMATIONS GENERALES
    ===================================*/

.Liensfooter{
    font-size: 16px;
    border: none;
    background-color: #141455;
    color: white;
}

.LiensFooter:hover {
    text-decoration: underline;
    width: fit-content;
    cursor: pointer;
}

/*=====================AUTRES SITES===============*/

.LiensAutresSites {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.LiensAutresSites:hover {
    text-decoration: underline;
    width: fit-content;
    cursor: pointer;
}