/* Bloc « Dans le même rayon » (maillage interne de la ToolBox).
   Placé sous le contenu de chaque outil, avant l'encart publicitaire.
   Les règles sont entièrement qualifiées par .tb-rayon pour ne rien
   hériter des feuilles propres aux outils. Tout changement de ce
   fichier impose de monter le ?v= dans les pages qui l'appellent
   (le cache d'IONOS garde les CSS une semaine). */

.tb-rayon {
    margin: 30px 0 10px;
    padding: 22px 22px 18px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.tb-rayon .tb-rayon__titre {
    margin: 0 0 14px;
    font-size: 1.15em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.tb-rayon .tb-rayon__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.tb-rayon .tb-rayon__liste > li {
    min-width: 0;
    margin: 0;
}

.tb-rayon .tb-rayon__carte {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 16px 14px 14px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #2c3e50;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-rayon .tb-rayon__carte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.tb-rayon .tb-rayon__carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.tb-rayon .tb-rayon__carte:focus-visible {
    outline: 3px solid #5b3a7e;
    outline-offset: 2px;
}

.tb-rayon .tb-rayon__icone {
    flex-shrink: 0;
    font-size: 1.8em;
    line-height: 1;
}

.tb-rayon .tb-rayon__texte {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tb-rayon .tb-rayon__nom {
    font-weight: 600;
    font-size: 1em;
    color: #2c3e50;
}

.tb-rayon .tb-rayon__desc {
    font-size: 0.88em;
    line-height: 1.45;
    color: #495057;
}

.tb-rayon .tb-rayon__tout {
    margin: 14px 0 0;
    font-size: 0.92em;
}

.tb-rayon .tb-rayon__tout a {
    color: #5b3a7e;
    font-weight: 600;
}

@media (max-width: 480px) {
    .tb-rayon {
        padding: 18px 14px 14px;
    }
}

@media print {
    .tb-rayon {
        display: none;
    }
}
