
/* =========================================
   PAGE
   ========================================= */

body {
    margin: 0;
    padding: 30px 15px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f2eb;
    color: #444;
}

.page-carnet {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}


/* =========================================
   EN-T\FFFDTE
   ========================================= */

.entete-carnet {
    text-align: center;
    margin-bottom: 30px;
}

.entete-carnet h1 {
    margin-bottom: 12px;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: normal;
    color: #655853;
}

.intro-carnet {
    margin: 0;
    line-height: 1.7;
    color: #666;
}


/* =========================================
   BLOCS DU CARNET
   ========================================= */

.bloc-carnet {
    margin-bottom: 22px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #d8d1c5;
    border-radius: 8px;
}

.bloc-carnet h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: normal;
    color: #655853;
}

.bloc-carnet p {
    line-height: 1.6;
}


/* =========================================
   BOUTONS
   ========================================= */

.bouton-carnet {
    margin-top: 5px;
    padding: 9px 18px;
    font-size: 15px;
    color: #554a46;
    background: #eee9df;
    border: 1px solid #bdb4a5;
    border-radius: 5px;
    cursor: pointer;
}

.bouton-carnet:hover {
    background: #e5ded2;
}

.bouton-secondaire-carnet {
    margin-right: 8px;
    padding: 9px 18px;
    font-size: 15px;
    background: #fff;
    border: 1px solid #bdb4a5;
    border-radius: 5px;
    cursor: pointer;
}


/* =========================================
   FORMULAIRES
   ========================================= */

.formulaire-contact,
.formulaire-groupe,
.formulaire-rappel {
    display: none;
    margin-top: 22px;
    padding: 20px;
    background: #faf8f4;
    border: 1px solid #ddd5c8;
    border-radius: 6px;
}

.formulaire-contact.visible,
.formulaire-groupe.visible,
.formulaire-rappel.visible {
    display: block;
}

.formulaire-contact h3,
.formulaire-groupe h3,
.formulaire-rappel h3 {
    margin-top: 0;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: normal;
    color: #655853;
}

.champ-contact {
    margin-bottom: 15px;
}

.champ-contact label {
    display: block;
    margin-bottom: 6px;
}

.champ-contact input,
.champ-contact select {
    width: 100%;
    max-width: 420px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 15px;
}

.facultatif {
    font-size: 13px;
    color: #888;
}

.actions-contact {
    margin-top: 20px;
}


/* =========================================
   PETITES INFORMATIONS
   ========================================= */

.aucun-element,
.exemple-carnet {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 14px;
    color: #777;
}


/* =========================================
   FAVORIS
   ========================================= */

.grille-favoris {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 18px;
    margin-top: 24px;
}

.favori-item {
    text-align: center;
}

.favori-item img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #cfc6b8;
}

.favori-categorie {
    margin: 9px 0 4px;
    font-family: Georgia, serif;
    font-size: 15px;
    color: #655853;
}

.favori-actions {
    margin: 0;
    font-size: 13px;
}

.favori-actions a {
    color: #6c5d58;
    text-decoration: none;
}

.favori-actions a:hover {
    text-decoration: underline;
}

.favori-actions span {
    padding: 0 4px;
    color: #aaa;
}


/* =========================================
   PAGINATION FAVORIS
   ========================================= */

.pagination-favoris {
    margin-top: 30px;
    text-align: center;
}

.pagination-favoris a,
.pagination-favoris span {
    display: inline-block;
    margin: 2px;
    padding: 6px 9px;
    color: #6c5d58;
    text-decoration: none;
}

.pagination-favoris a:hover {
    text-decoration: underline;
}

.pagination-favoris .page-active {
    font-weight: bold;
    border: 1px solid #bdb4a5;
    border-radius: 4px;
    background: #eee9df;
}

.pagination-favoris .page-precedente,
.pagination-favoris .page-suivante {
    padding-left: 12px;
    padding-right: 12px;
}


/* =========================================
   RETOUR
   ========================================= */

.retour-cartes {
    margin: 28px 0;
    text-align: center;
}

.retour-cartes a {
    color: #6c5d58;
    text-decoration: none;
}

.retour-cartes a:hover {
    text-decoration: underline;
}


/* =========================================
   PIED DE PAGE
   ========================================= */

.pied-carnet {
    margin-top: 35px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #d8d1c5;
    color: #777;
    font-size: 14px;
}

.pied-carnet .devise {
    font-family: Georgia, serif;
    font-style: italic;
}
			
/* =========================================
   CONTACTS - LISTE DE D\FFFDMONSTRATION
   ========================================= */

#liste-contacts {
    margin-top: 18px;
}

.contact-enregistre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    padding: 12px 14px;
    background: #faf8f4;
    border: 1px solid #ddd5c8;
    border-radius: 5px;
}

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-infos strong {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: normal;
    color: #655853;
}

.contact-infos span {
    font-size: 14px;
}

.contact-groupe {
    color: #777;
}

.contact-actions {
    white-space: nowrap;
    font-size: 13px;
}

.contact-actions span {
    padding: 0 4px;
    color: #aaa;
}

.lien-contact {
    padding: 0;
    font: inherit;
    color: #6c5d58;
    background: none;
    border: 0;
    cursor: pointer;
}

.lien-contact:hover {
    text-decoration: underline;
}

/* =========================================
   CARNET D'ADRESSES - DESTINATAIRES
   ========================================= */

.bouton-lien-carnet {
    padding: 0;
    margin-right: 18px;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
}

.choix-carnet-destinataires {
    margin-top: 18px;
    padding: 18px;
    background: #faf8f4;
    border: 1px solid #ddd5c8;
    border-radius: 6px;
}

.choix-carnet-destinataires h4 {
    margin-top: 0;
}

.choix-contact-carnet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid #e4ded4;
}

.choix-contact-carnet:last-child {
    border-bottom: 0;
}

.bouton-ajouter-contact-carte,
.bouton-ajouter-groupe-carte {
    padding: 6px 11px;
    white-space: nowrap;
    cursor: pointer;
}

/* =========================================
   INSCRIPTION AU CARNET D'ADRESSES
   ========================================= */

.page-carnet-inscription {
    width: 760px;
    margin: 40px auto;
    padding: 30px 45px;
    background: #faf8f3;
    border: 1px solid #c9c2b3;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #3f3b35;
}

.page-carnet-inscription h1 {
    margin: 0 0 18px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: normal;
    color: #665d50;
}

.intro-carnet-inscription {
    margin: 0 auto 20px;
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
}


/* LES TROIS AVANTAGES */

.avantages-carnet {
    margin: 25px auto 30px;
    padding: 18px 25px;
    text-align: left;
    background: #f1eee6;
    border-top: 1px solid #d3ccbd;
    border-bottom: 1px solid #d3ccbd;
}

.avantages-carnet p {
    margin: 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: normal;
    color: #5c6655;
}


/* FORMULAIRE */

.bloc-inscription-carnet {
    width: 480px;
    margin: 0 auto;
}

.bloc-inscription-carnet label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.bloc-inscription-carnet input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #aaa391;
    box-sizing: border-box;
    font-size: 16px;
    background: #ffffff;
}

.bloc-inscription-carnet p {
    margin: 0 0 18px;
}

.bouton-inscription-carnet {
    padding-top: 8px;
    text-align: center;
}

.bouton-inscription-carnet button {
    padding: 10px 24px;
    border: 1px solid #81796c;
    background: #ebe7dc;
    color: #3f3b35;
    font-size: 16px;
    cursor: pointer;
}

.bouton-inscription-carnet button:hover {
    background: #dfd9cc;
}


/* DÉJÀ UN CARNET */

.deja-carnet {
    margin: 25px 0 0;
    text-align: center;
    font-size: 19px;
}


/* CONFIDENTIALITÉ */

.confidentialite-carnet {
    margin: 30px auto 0;
    padding: 17px 22px;
    background: #f5f3ed;
    border: 1px solid #d3ccbd;
    font-size: 17px;
    line-height: 1.6;
}

.confidentialite-carnet strong {
    display: block;
    margin-bottom: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    color: #5c6655;
}

.confidentialite-carnet p {
    margin: 0;
} 

/* =========================================
   AFFICHER / MASQUER LE MOT DE PASSE
   ========================================= */

.champ-mot-passe {
    position: relative;
    display: block;
}

.champ-mot-passe input {
    padding-right: 45px;
}

.oeil-mot-passe {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    padding: 3px 5px;

    border: 0;
    background: transparent;

    font-size: 19px;
    cursor: pointer;
}

.icone-oeil {
    display: inline-block;
    width: 18px;
    height: 11px;
    border: 2px solid #6c655c;
    border-radius: 50% / 60%;
    position: relative;
    box-sizing: border-box;
}

.icone-oeil::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6c655c;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.facultatif {
    font-size: 13px;
    font-weight: normal;
    color: #777;
}

/* =========================================
   CORRECTIONS PAGE INSCRIPTION CARNET
   ========================================= */

/* Lien "Accéder à mon carnet" */

.deja-carnet a {
    color: #6c5d58;
    text-decoration: none;
}

.deja-carnet a:hover {
    text-decoration: underline;
}


/* Encadré confidentialité */

.confidentialite-carnet {
    width: 620px;
    max-width: 90%;
    margin: 30px auto;
    box-sizing: border-box;
}

/* Mot de passe oublié */

.mot-passe-oublie {
    text-align: center;
}

.mot-passe-oublie a {
    color: #6c5d58;
    text-decoration: none;
}

.mot-passe-oublie a:hover {
    text-decoration: underline;
}