/* Styles spécifiques à la page Outils et méthodes */


/* Styles des sections - cohérent avec les autres pages */
.outils-content {
    padding: 12px 0; /* Réduit de 66% (36px -> 12px) */
}

.outils-section {
    margin-bottom: 48px; /* Réduit de 40% (80px -> 48px) */
    scroll-margin-top: 100px; /* Pour le scroll des ancres */
    background-color: transparent; /* Suppression de tout fond de couleur */
    padding: 0; /* Réduction padding de 50% - mise à zéro si pas défini avant */
}

/* Utilisation du style section-header existant */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px; /* Réduit de 40% (40px -> 24px) */
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem; 
    color: var(--primary);
}

/* Les styles .section-logo sont déjà définis dans style.css */

.outil-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outil-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Style titre article plus doux */
.outil-item h3 {
    background: linear-gradient(135deg, #f1f8fe 0%, #e8f2fd 100%); /* Fond 2x plus clair */
    color: var(--primary);
    padding: 15px 19px; /* Réduit de 25% (20px -> 15px, 25px -> 19px) */
    margin: 0;
    font-size: 0.975rem; /* Réduit de 25% (1.3rem -> 0.975rem) */
    line-height: 1.4;
    font-weight: 600;
    border-left: 2px solid var(--secondary); /* Réduit de 2px (4px -> 2px) */
}

.content-block {
    padding: 25px;
}

.content-block.with-visual {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.visual-left {
    flex: 0 0 150px;
    max-width: 150px;
}

.visual-left img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.visual-left img:hover {
    transform: scale(1.05);
}

.visual-right {
    flex: 0 0 150px;
    max-width: 150px;
}

.visual-right img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.visual-right img:hover {
    transform: scale(1.05);
}
.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text);
}

.text-content p:last-child {
    margin-bottom: 0;
}
.info-links-container{
    padding: 20px 25px;
    background-color: #f8f9fa;
}
.info-links-container p{
    margin-bottom: 15px;
}

.info-links {
    margin: 0;
    list-style: none;
}

.info-links li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.info-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.info-links li:last-child {
    margin-bottom: 0;
}

.info-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Blocs pleine largeur */
.visual-fullwidth-block, .video-fullwidth-block {
    margin: 0; /* Suppression de toutes les marges */
    padding: 30px;
    background-color: transparent; /* Zero background de couleur */
    border-radius: 12px;
    /* Suppression de border-left */
}

.visual-fullwidth-block h4, .video-fullwidth-block h4 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 13.5px; /* Réduit de 25% (18px -> 13.5px) */
    font-weight: 600;
    text-align: center;
}

/* Images pleine largeur avec effet zoom */
.image-full-width {
    margin: 0; 
    text-align: center;
}

.image-full-width img {
    width:66%;
    max-width: 66%;
    height: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-full-width img:hover {
    transform: scale(1.02);
}

/* Vidéo embed pleine largeur - centrée sans shadow */
.video-fullwidth-block {
    margin:  0;
    text-align: center;
}

.video-fullwidth-block h4 {
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

.video-embed {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.video-embed iframe {
    width: 800px !important;
    height: 550px !important;
    border: none;
}

/* Grid pour thumbnails - vignettes carrées */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0; /* Suppression margin top/bottom */
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.thumbnail-item {
    text-align: center;
    transition: all 0.3s ease;
    max-width: 70%; /* Réduit les vignettes de 30% */
    margin: 0 auto; /* Centre les vignettes dans leur cellule */
}

.thumbnail-item:hover {
    transform: translateY(-5px);
}

.thumbnail-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force le format carré */
    object-fit: cover; /* Coupe l'image sans la déformer */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbnail-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.thumbnail-item .caption {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text);
    font-weight: 400;
    line-height: 1.4;
    padding: 0 5px;
}

/* Message de configuration */
.no-content-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-content-message strong {
    color: #0066cc;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .outil-item h3 {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .content-block {
        padding: 20px;
    }
    
    .content-block.with-visual {
        flex-direction: column;
    }
    
    .visual-left {
        flex: none;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .info-links {
        padding: 15px 20px;
    }
    
    /* Responsive pour blocs pleine largeur */
    .visual-fullwidth-block, .video-fullwidth-block {
        margin: 0; /* Suppression des marges même en responsive */
        padding: 20px;
    }
    
    .visual-fullwidth-block h4, .video-fullwidth-block h4 {
        font-size: 12px; /* Réduit de 25% de 16px -> 12px */
        margin-bottom: 15px;
    }
    
    .image-full-width img {
        max-width: 100%;
    }
    
    .video-embed {
        max-width: 100%;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
        margin: 30px 0;
    }
    
    .thumbnail-item .caption {
        font-size: 13px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
        margin: 20px 0;
    }
    
    .thumbnail-item .caption {
        font-size: 12px;
        margin-top: 10px;
    }
}
