.infos-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*gap: 10px 30px;*/

    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1px 1px 1px 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #333;
    max-width: 600px;
    /*margin-top: 20px;*/
   /* margin: auto;*/
    /*margin-left: 12%;*/
    z-index: 10;
    margin-top: 3%;
}

.infos-tiers p {

    padding: 5px 0;
    line-height: 1.4;
}

.infos-tiers strong {
    color: #222;
    font-weight: 600;
}
.single-tiers{
    margin-bottom: 5%;
}
.sed-form {
    max-width: 600px;
    margin: auto;
    font-family: "Segoe UI", sans-serif;
}

.sed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sed-grid input,
.sed-grid select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.sed-grid input:focus,
.sed-grid select:focus {
    border-color: #3498db;
    outline: none;
}

.sed-grid label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.sed-full {
    grid-column: span 2;
}

.sed-submit {
    margin-top: 20px;
    background-color: #002847;
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.sed-submit:hover {
    background-color: #e4332d;
}
#sed-formulaire-contact{
   
}

@media (max-width: 768px) {
    .sed-grid {
        grid-template-columns: 1fr;
    }

    .sed-full {
        grid-column: span 1;
    }
    .ressource-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


.sed-code-form {
    max-width: 500px;
    margin: 5% auto 0 auto;
}

.sed-code-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.sed-code-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.sed-message {
    color: red;
    font-size: 15px;
    margin-top: 10px;
}






.ressource-card:hover {
    transform: scale(1.01);
}

.ressource-image img {
    width: 150px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ressource-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ressource-content h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #333;
}

.btn-telechargement {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

.btn-telechargement:hover {
    background: #005f8d;
}

/* Responsive : 1 par ligne */
@media screen and (max-width: 768px) {
    .ressource-card {
        width: 100%;
        flex-direction: column;
    }

    .ressource-image img {
        width: 100%;
        height: auto;
    }
}




.ressource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.ressource-image img {
    width: 100px;
    height: auto;
    object-fit: cover;
    display: block;
}

.ressource-content {
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ressource-titre {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

/* Bouton panier */
.add-to-cart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    padding: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.add-to-cart-icon:hover {
    background: #005f8d;
}

/* Responsive : 1 par ligne */
@media screen and (max-width: 768px) {
    .ressource-card {
        flex: 1 1 100%;
        max-width: 100%;
        flex-direction: row;
    }

    .ressource-image img {
        width: 80px;
    }
}


.ressource-fichier {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}


.ressource-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;

}
.ressource-badge.lecture {
    background: #ffc107; /* Jaune */
    width: 25%;
}
.ressource-badge.telechargement {
    background: #28a745; /* Vert */
}
.badge-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    width: 25%;
    text-align: center;
}

.badge-lecture {
    background: #0073aa;
}

.badge-telechargement {
    background: #28a745;
}

/* Version Mobile : badge pleine largeur */
@media screen and (max-width: 768px) {
    .badge-type {
        width: 100%;
        display: block;
        margin-top: 5px;
    }
    .ressources-grid {

        flex-wrap: wrap;
        gap: 20px;
    }
    .ressource-card {
        display: flex;
        flex-direction: row;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
    }
    .ressource-card {
        display: flex;
        align-items: center;
        background: #fff;
        border: 2px solid #e0e0e0;
        border-left: 6px solid #0073aa;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);

        box-sizing: border-box;
        padding: 10px;
        position: relative;
    }
}
@media screen and (min-width: 769px) {

    .ressources-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
    }
    .ressource-card {
        display: flex;
        flex-direction: row;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;
        width: calc(50% - 10px); /* Deux par ligne */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
    }
    .ressource-card {
        display: flex;
        align-items: center;
        background: #fff;
        border: 2px solid #e0e0e0;
        border-left: 6px solid #0073aa;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        box-sizing: border-box;
        padding: 10px;
        position: relative;
    }
}
.filtres-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.filtre-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .filtres-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filtre-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .filtre-item label {
        margin-bottom: 5px;
    }

    .filtre-item select {
        width: 100%;
        max-width: 100%;
    }
}

/* ───────── Bloc représentant ───────── */
.sed-representant-info {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 6px;
}

.sed-repr-bloc {
    display: flex;
    flex-wrap: wrap;      /* nom = 1ʳᵉ ligne,   tel+mail = 2ᵉ ligne */
    row-gap: 4px;
    column-gap: 1rem;
}

.sed-repr-nom       { flex: 0 0 100%; font-size: 1.1em; }
.sed-repr-tel,
.sed-repr-mail      { white-space: nowrap; }

/* ─ Mobile : tout empilé ─ */
@media (max-width: 767px) {
    .sed-repr-bloc        { flex-direction: column; }
    .sed-repr-tel,
    .sed-repr-mail        { margin: 0; }
}
