/* Aux Cartes Virtuelles - preparation de la carte
   Version responsive pour ordinateur, tablette et telephone */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 24px 15px 45px;
    overflow-x: hidden;
    background: #eee9df;
    color: #4f4944;
    font-family: Arial, Helvetica, sans-serif;
}

img,
audio {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

.page-envoi {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
}

.entete-envoi {
    margin-bottom: 28px;
    text-align: center;
}

.navigation-retour {
    margin-bottom: 22px;
    text-align: left;
}

.navigation-retour p {
    margin: 0 0 7px;
}

.retour-cartes {
    color: #526248;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: bold;
    text-decoration: underline;
}

.entete-envoi h1 {
    margin: 0 0 12px;
    color: #9a4f62;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: normal;
}

.explication-etape {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.55;
}

.preparation-carte {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

.bloc-carte {
    width: 820px;
    max-width: 100%;
    margin: 0 auto 30px;
    text-align: center;
}

.grande-carte {
    display: block;
    width: 820px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid #c9c1b2;
    box-shadow: 0 3px 12px rgba(70, 60, 45, 0.16);
}

.bloc-formulaire {
    width: 820px;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px;
    background: #faf8f2;
    border: 1px solid #c9c1b2;
    box-shadow: 0 3px 12px rgba(70, 60, 45, 0.12);
}

.section-style-message {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px 18px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f3eee5;
    border: 1px solid #d8d0c3;
    border-radius: 6px;
}

.section-style-message > div {
    min-width: 145px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

select,
input[type="text"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px 11px;
    color: #403b33;
    background: #ffffff;
    border: 1px solid #bfb7aa;
    border-radius: 5px;
}

select:focus,
input:focus,
textarea:focus {
    border-color: #6b795f;
    outline: 2px solid rgba(82, 98, 72, 0.18);
}

#message {
    min-height: 170px;
    resize: vertical;
    text-align: center;
}

.section-formulaire {
    min-width: 0;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #d8d0c3;
}

.section-formulaire h3 {
    margin: 0 0 15px;
    color: #655853;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
}

.deux-champs,
.destinataire {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.destinataire {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dotted #cfc6b9;
}

.action-destinataire {
    grid-column: 1 / -1;
}

.personnalisation-fiche {
    min-width: 0;
    margin-top: 16px;
    padding: 17px 18px;
    overflow-wrap: anywhere;
    background: #f7f3eb;
    border: 1px solid #d8d0c3;
    border-radius: 6px;
}

.personnalisation-fiche h4,
.choix-carnet-destinataires h4 {
    margin: 0 0 10px;
    color: #526248;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.personnalisation-fiche p {
    margin: 7px 0;
}

.aucun-choix,
.facultatif,
.note-confidentialite {
    color: #777069;
}

.actions-poesie,
.actions-musique-preparation,
.actions-timbre,
.liens-carnet {
    line-height: 1.7;
}

.personnalisation-fiche a,
.liens-carnet a,
.bouton-lien-carnet {
    color: #526248;
    font-weight: bold;
}

.separateur-action {
    margin: 0 6px;
    color: #aaa39a;
}

.apercu-timbre {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    margin: 8px 0;
}

.choix-option,
.choix-date {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 12px 0;
    line-height: 1.5;
}

.choix-option input,
.choix-date input {
    flex: 0 0 auto;
    margin-top: 4px;
}

#choix-date-programmee {
    max-width: 310px;
    margin: 14px 0 0 28px;
}

.bouton-secondaire,
.bouton-lien-carnet,
.choix-poesie-integre button,
.choix-musique-integre button {
    min-height: 40px;
    padding: 8px 13px;
    cursor: pointer;
    color: #526248;
    background: #fffdf8;
    border: 1px solid #bfb7aa;
    border-radius: 5px;
}

.bouton-lien-carnet {
    display: block;
    margin-bottom: 10px;
    text-decoration: underline;
}

.liens-carnet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 18px;
}

.choix-carnet-destinataires {
    margin-top: 16px;
    padding: 16px;
    background: #f7f3eb;
    border: 1px solid #d8d0c3;
    border-radius: 6px;
}

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

.bouton-visualiser {
    display: block;
    width: 100%;
    max-width: 390px;
    margin: 30px auto 0;
    padding: 14px 22px;
    cursor: pointer;
    color: #ffffff;
    background: #526248;
    border: 1px solid #414e39;
    border-radius: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: bold;
}

.bouton-visualiser:hover,
.bouton-visualiser:focus {
    background: #6b795f;
}

.note-confidentialite {
    margin: 13px 0 0;
    text-align: center;
    font-size: 14px;
}

.pied-envoi {
    margin-top: 40px;
    padding: 22px 10px;
    text-align: center;
    color: #777069;
    border-top: 1px solid #d8d1c5;
}

.pied-envoi p {
    margin: 6px 0;
}

.devise {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-style: italic;
}

/* Choix integre des citations */
.choix-poesie-integre {
    margin-top: 14px;
    padding: 16px;
    background: #faf8f2;
    border: 1px solid #c9c1b2;
    border-radius: 6px;
}

.titre-choix-poesie {
    margin-bottom: 12px;
    color: #526248;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: bold;
}

.liste-poesie-integree {
    display: grid;
    gap: 12px;
    max-height: 430px;
    padding: 10px;
    overflow-y: auto;
    background: #f5f1e8;
    border: 1px solid #d8d0c3;
    border-radius: 5px;
    scrollbar-gutter: stable;
}

.citation-poesie {
    padding: 13px 15px;
    background: #fffdf8;
    border: 1px solid #d8d0c3;
    border-radius: 5px;
}

.texte-citation-poesie {
    white-space: pre-line;
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.55;
}

.auteur-citation-poesie {
    margin-top: 7px;
    font-size: 16px;
    font-weight: bold;
}

.source-citation-poesie {
    margin-top: 3px;
    font-size: 14px;
    font-style: italic;
}

.actions-citation-poesie,
.fermer-choix-poesie {
    margin-top: 12px;
}

/* Choix integre des musiques */
.choix-musique-integre {
    min-width: 0;
    margin-top: 14px;
}

.categories-musique {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.bouton-categorie-musique {
    color: #4f5c45;
    background: #f7f2e7;
}

.bouton-categorie-musique:hover,
.bouton-categorie-musique.actif {
    background: #ebe4d5;
}

.liste-musique-integree {
    min-width: 0;
    max-height: 390px;
    margin-top: 10px;
    padding: 10px;
    overflow-y: auto;
    background: #fdfbf7;
    border: 1px solid #d7d0c3;
    border-radius: 6px;
}

.titre-liste-musique {
    margin: 2px 0 10px;
    color: #665d4f;
    font-size: 18px;
}

.ligne-musique {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px dotted #d8d0c3;
}

.ligne-musique:last-child {
    border-bottom: 0;
}

.nom-musique {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ligne-musique .musique-choisie,
.ligne-musique .musique-choisie:hover {
    color: #fff;
    background: #526248;
    border-color: #526248;
    font-weight: bold;
}

.ligne-musique .musique-en-ecoute,
.ligne-musique .musique-en-ecoute:hover {
    color: #fff;
    background: #7a674d;
    border-color: #7a674d;
    font-weight: bold;
}

.lecteur-musique-integre {
    width: 100%;
    margin-top: 10px;
}

.fermer-choix-musique {
    margin-top: 10px;
    text-align: right;
}

@media (max-width: 700px) {
    body {
        padding: 12px 9px 35px;
    }

    .navigation-retour {
        margin-bottom: 18px;
    }

    .retour-cartes {
        font-size: 16px;
    }

    .entete-envoi h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .explication-etape {
        font-size: 17px;
    }

    .bloc-carte {
        margin-bottom: 20px;
    }

    .bloc-formulaire {
        padding: 17px 12px;
    }

    .section-style-message {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 13px;
    }

    .section-style-message > div {
        min-width: 0;
    }

    .section-style-message .choix-option {
        margin: 2px 0;
    }

    .section-formulaire {
        margin-top: 23px;
        padding-top: 21px;
    }

    .section-formulaire h3 {
        font-size: 23px;
    }

    .deux-champs,
    .destinataire {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .personnalisation-fiche {
        padding: 15px 12px;
    }

    .personnalisation-fiche h4 {
        font-size: 22px;
    }

    .personnalisation-fiche,
    .personnalisation-fiche a,
    .personnalisation-fiche .aucun-choix,
    .personnalisation-fiche .musique-selectionnee,
    .personnalisation-fiche .texte-poetique {
        font-size: 18px;
        line-height: 1.55;
    }

    .separateur-action {
        display: inline-block;
        margin: 0 3px;
    }

    .liens-carnet {
        display: block;
    }

    .liens-carnet a,
    .bouton-lien-carnet {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: left;
    }

    #choix-date-programmee {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .choix-contact-carnet {
        align-items: stretch;
        flex-direction: column;
    }

    .bouton-visualiser {
        max-width: none;
        font-size: 19px;
    }

    .choix-poesie-integre {
        padding: 13px 9px;
    }

    .liste-poesie-integree {
        max-height: 55vh;
        padding: 8px;
    }

    .texte-citation-poesie {
        font-size: 18px;
        line-height: 1.6;
    }

    .ligne-musique {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ligne-musique .choisir-morceau {
        grid-column: 1 / -1;
        width: 100%;
    }

    .categories-musique button {
        flex: 1 1 135px;
        font-size: 17px;
    }

    .liste-musique-integree {
        padding: 8px 6px;
    }

    .nom-musique {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (max-width: 420px) {
    body {
        padding-right: 6px;
        padding-left: 6px;
    }

    .bloc-formulaire {
        padding-right: 9px;
        padding-left: 9px;
    }

    .ligne-musique {
        grid-template-columns: minmax(0, 1fr);
    }

    .ligne-musique button,
    .ligne-musique .choisir-morceau {
        grid-column: 1;
        width: 100%;
    }

    .actions-poesie a,
    .actions-musique-preparation a,
    .actions-timbre a {
        display: inline-block;
        padding: 5px 0;
    }
}

/* Lecture plus confortable sur telephone, vertical ou horizontal */
@media (max-width: 700px) {
    body {
        font-size: 19px;
        line-height: 1.55;
    }

    .retour-cartes {
        font-size: 18px;
        line-height: 1.5;
    }

    .entete-envoi h1 {
        font-size: 31px;
    }

    .explication-etape {
        font-size: 19px;
        line-height: 1.6;
    }

    label,
    .choix-option,
    .choix-date,
    .facultatif,
    .aucun-choix {
        font-size: 19px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    select,
    textarea,
    button {
        min-height: 48px;
        font-size: 19px;
        line-height: 1.35;
    }

    #message {
        min-height: 210px;
        font-size: 20px;
        line-height: 1.55;
    }

    .section-formulaire h3 {
        font-size: 26px;
        line-height: 1.3;
    }

    .personnalisation-fiche h4,
    .choix-carnet-destinataires h4 {
        font-size: 24px;
    }

    .personnalisation-fiche,
    .personnalisation-fiche a,
    .liens-carnet a,
    .bouton-lien-carnet,
    .actions-poesie,
    .actions-musique-preparation,
    .actions-timbre {
        font-size: 19px;
        line-height: 1.65;
    }

    .bouton-secondaire,
    .bouton-lien-carnet,
    .choix-poesie-integre button,
    .choix-musique-integre button {
        padding: 11px 14px;
        font-size: 18px;
    }

    .bouton-visualiser {
        min-height: 54px;
        font-size: 21px;
    }

    .note-confidentialite {
        font-size: 17px;
        line-height: 1.5;
    }

    .pied-envoi {
        font-size: 17px;
        line-height: 1.5;
    }
}