/* ====================================================
   CONTENEUR
==================================================== */

.cds-evenements {
    width: 100%;
    margin: 0 auto 50px;
    color: #333;
}



/* ====================================================
   MOIS
==================================================== */

.cds-mois {
    margin: 35px 0 12px;
    padding: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}


/* ====================================================
   TABLEAU
==================================================== */

.cds-tableau-evenements {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    margin: 0;
}


/* ====================================================
   EN-TÊTES
==================================================== */

.cds-tableau-evenements th {
    padding: 13px 10px;
    background: #f2f2f2;
    color: #333;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.cds-tableau-evenements tr th,
.cds-tableau-evenements tr td {
    border-top: 2px solid #d8cfc2;
    border-bottom: 2px solid #d8cfc2;
}

.cds-tableau-evenements tr th:first-child,
.cds-tableau-evenements tr td:first-child {
    border-left: 2px solid #d8cfc2;
    border-radius: 8px 0 0 8px;
}

.cds-tableau-evenements tr th:last-child,
.cds-tableau-evenements tr td:last-child {
    border-right: 2px solid #d8cfc2;
    border-radius: 0 8px 8px 0;
}
/* ====================================================
   CELLULES
==================================================== */

.cds-tableau-evenements td {
    padding: 17px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: middle;
}


/* ====================================================
   LARGEUR COLONNES
==================================================== */

.cds-tableau-evenements th:nth-child(1),
.cds-tableau-evenements td:nth-child(1) {
    width: 12%;
}

.cds-tableau-evenements th:nth-child(2),
.cds-tableau-evenements td:nth-child(2) {
    width: 14%;
}

.cds-tableau-evenements th:nth-child(3),
.cds-tableau-evenements td:nth-child(3) {
    width: 24%;
}

.cds-tableau-evenements th:nth-child(4),
.cds-tableau-evenements td:nth-child(4) {
    width: 11%;
}

.cds-tableau-evenements th:nth-child(5),
.cds-tableau-evenements td:nth-child(5) {
    width: 25%;
}

.cds-tableau-evenements th:nth-child(6),
.cds-tableau-evenements td:nth-child(6) {
    width: 14%;
    text-align: center;
}

/* ====================================================
   CENTRAGE DES 4 PREMIÈRES COLONNES
==================================================== */

.cds-tableau-evenements th:nth-child(1),
.cds-tableau-evenements td:nth-child(1),

.cds-tableau-evenements th:nth-child(2),
.cds-tableau-evenements td:nth-child(2),

.cds-tableau-evenements th:nth-child(3),
.cds-tableau-evenements td:nth-child(3),

.cds-tableau-evenements th:nth-child(4),
.cds-tableau-evenements td:nth-child(4) {

    text-align: center;
    vertical-align: middle;
}


/* ====================================================
   PRECISIONS À GAUCHE
==================================================== */

.cds-tableau-evenements th:nth-child(5),
.cds-tableau-evenements td:nth-child(5) {

    text-align: left;
    vertical-align: center;
}


/* ====================================================
   DATES
==================================================== */

.cds-date {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--sauge);
}


.cds-mois-date {
    margin-top: 3px;
    font-size: 12px;
    color: #777;
}


.cds-heures {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}


/* ====================================================
   LIEUX
==================================================== */

.cds-ville {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--marron);
}


.cds-departement {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
     color: var(--marron);
}


.cds-adresse {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.3;
    color: #666;
}

/* ====================================================
   POPUP LIEU
==================================================== */

.lieu-popup-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lieu-popup {
    position: absolute;
    z-index: 99999;

    left: 50%;
    bottom: calc(100% + 10px);

    transform: translateX(-50%);

    width: 320px;
    max-width: 80vw;

    box-sizing: border-box;

    padding: 14px 18px;

    background: #fff;
    color: #000;

    border: 1px solid #ddd;
    border-radius: 6px;

    box-shadow: 0 5px 20px rgba(0,0,0,.25);

    line-height: 1.4;
    text-align: left;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .15s ease;
}


/* ====================================================
   POPUP SURVOL
==================================================== */

.lieu-popup-hover {
    display: block;
}

.lieu-popup-trigger:hover .lieu-popup-hover {
    opacity: 1;
    visibility: visible;
}


/* ====================================================
   POPUP CLIC
==================================================== */

.lieu-popup-click {
    display: none;
}


/*
 * Après clic :
 * - on cache le popup survol
 * - on affiche le popup clic
 */

.lieu-popup-trigger.popup-open .lieu-popup-hover {
    opacity: 0 !important;
    visibility: hidden !important;
}

.lieu-popup-trigger.popup-open .lieu-popup-click {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ====================================================
   CONTENU
==================================================== */

.popup-lieu-adresse {
    margin-bottom: 5px;
    color: var(--marron)
}

.popup-lieu-ville {
    color: var(--marron);
}


/* ====================================================
   BOUTON ITINERAIRE
==================================================== */

.popup-itineraire {
    display: inline-block;

    margin-top: 10px;
    padding: 7px 14px;

    background: #333;
    color: #fff !important;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none !important;
}

.popup-itineraire:hover {
    background: #555;
    color: #fff !important;
}

/* ====================================================
   FORMATEUR
==================================================== */

.cds-formateur {
    margin-bottom: 7px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--sauge);
}


.cds-contact {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    color: var(--bleuroi);
}


.cds-contact a {
    color: inherit;
    text-decoration: none;
}


.cds-contact a:hover {
    text-decoration: underline;
}


.cds-icone {
    display: inline-block;
    margin-right: 3px;
}


.cds-contacter {
    margin-top: 7px;
}


.cds-contacter a {
    font-size: 13px;
    color: inherit;
    text-decoration: underline;
}


/* ====================================================
   TARIF
==================================================== */

.cds-col-tarif strong {
    font-size: 16px;
}


/* ====================================================
   PRECISIONS
==================================================== */

.cds-col-precision p {
    margin: 0 0 8px;
}


.cds-col-precision p:last-child {
    margin-bottom: 0;
}


/* ====================================================
   ERREURS
==================================================== */

.cds-erreur {
    padding: 15px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}


.cds-aucun-evenement {
    padding: 20px;
    background: #f7f7f7;
}

/* ====================================================
   POPUP ORGANISATEUR
==================================================== */

.organisateur-popup-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.organisateur-popup {
    position: absolute;
    z-index: 99999;

    left: 50%;
    bottom: calc(100% + 10px);

    transform: translateX(-50%);

    width: 320px;
    max-width: 450px;
    box-sizing: border-box;

    padding: 14px 18px;

    background: #fff;
    color: var(--sauge);

    border: 1px solid #ddd;
    border-radius: 6px;

    box-shadow: 0 5px 20px rgba(0,0,0,.25);

    line-height: 1.4;
    text-align: left;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .15s ease;
}

.organisateur-popup-trigger:hover .organisateur-popup {
    opacity: 1;
    visibility: visible;
}

.popup-pratique {
    margin: 3px 0;
    white-space: normal;
}
/* FIN POPUP */
  

/* ====================================================
   MOBILE
==================================================== */

@media screen and (max-width: 800px) {

 .cds-titre-categorie {
font-size: 26px;
    }

    .cds-sous-titre {
font-size: 21px;
    }

    .cds-mois {
font-size: 20px;
    }

    /* ====================================================
   Transformation en blocs
==================================================== */

.cds-tableau-evenements {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cds-tableau-evenements tbody {
    display: block;
    width: 100%;
}

.cds-tableau-evenements thead {
    display: none;
}

/* ====================================================
   UN CADRE PAR EVENEMENT
==================================================== */

.cds-tableau-evenements tr {
    display: block;
    width: 100% !important;
    box-sizing: border-box;

    margin-bottom: 25px;
    padding: 5px 0;

    border: 2px solid #d8cfc2 !important;
    border-radius: 10px;
     overflow: visible;
}

/* ====================================================
   CELLULES EMPILEES SANS AUCUNE LIGNE
==================================================== */

.cds-tableau-evenements td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;

    position: relative;
    min-height: 45px;

    padding: 12px 15px 12px 42%;

    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;

    text-align: left !important;
    vertical-align: top;
}

    /* Nom de la colonne */

    .cds-tableau-evenements td::before {
content: attr(data-label);

position: absolute;
left: 15px;
top: 12px;
width: 34%;

font-weight: 600;
text-align: left;
    }


    /* Formateur à gauche */

    .cds-formateur,
    .cds-contact,
    .cds-contacter {
text-align: left;
    }
}

/* ====================================================
   BOUTON INSCRIPTION
==================================================== */

.cds-bouton-inscription {
    display: inline-block;
    padding: 8px 12px;
    background: #5E7A76;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.cds-bouton-inscription:hover {
    background: #D99A3B;
    color: #fff !important;
}

/* ====================================================
   BOUTON DESCRIPTION
==================================================== */

.cds-bouton-description {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    background: #ffffff;
    color: #000 !important;
    border: 1px solid #000000;    
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.cds-bouton-description:hover {
    background: #D99A3B;
    color: #fff !important;
}

