/* Global Styles */
body { 
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
}

body.has-hero {
    padding-top: 0;
}

body.has-hero .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Couleur orange personnalisée pour tous les radio et checkbox cochés */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #FF6600;
}

/* Custom utility for the zoom effect container */
.zoom-container { overflow: hidden; }
.zoom-img { transition: transform 0.5s ease; }
.group:hover .zoom-img { transform: scale(1.1); }

/* Cacher l'icone captcha */
.grecaptcha-badge { visibility: hidden; }

/* Articles
————————————————————————————————————————————————————————————————————————————————————— */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contenu article - RESPONSIVE */
.article-content {
    font-size: 1rem;                    /* 16px sur mobile */
    line-height: 1.7;
    word-wrap: break-word;              /* Coupe les mots longs */
    overflow-wrap: break-word;          /* Support moderne */
}

/* Titres responsive */
.article-content h1 {
    font-size: 1.75rem;                 /* 28px sur mobile */
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.5rem;                  /* 24px sur mobile */
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;                 /* 20px sur mobile */
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Tablette (768px et +) */
@media (min-width: 768px) {
    .article-content {
        font-size: 1.0625rem;           /* 17px sur tablette */
    }
    
    .article-content h1 {
        font-size: 2rem;                /* 32px */
    }
    
    .article-content h2 {
        font-size: 1.75rem;             /* 28px */
    }
    
    .article-content h3 {
        font-size: 1.375rem;            /* 22px */
    }
}

/* Desktop (1024px et +) */
@media (min-width: 1024px) {
    .article-content {
        font-size: 1.125rem;            /* 18px sur desktop */
        line-height: 1.8;
    }
    
    .article-content h1 {
        font-size: 2.5rem;              /* 40px - ta taille d'origine */
    }
    
    .article-content h2 {
        font-size: 2rem;                /* 32px */
    }
    
    .article-content h3 {
        font-size: 1.5rem;              /* 24px */
    }
}

/* Éléments de texte */
.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;               /* Moins de padding sur mobile */
}

@media (min-width: 768px) {
    .article-content ul, 
    .article-content ol {
        padding-left: 2rem;             /* Padding normal sur tablette+ */
    }
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: #7c3aed;
    text-decoration: underline;
    word-break: break-word;             /* Coupe les URLs longues */
}

.article-content a:hover {
    color: #6d28d9;
}

/* Images responsive */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;                     /* Moins de marge sur mobile */
    display: block;                     /* Évite les espaces blancs */
}

@media (min-width: 768px) {
    .article-content img {
        margin: 1.5rem 0;
    }
}

/* Blockquotes responsive */
.article-content blockquote {
    border-left: 4px solid #7c3aed;
    padding-left: 1rem;                 /* Moins de padding sur mobile */
    margin: 1rem 0;
    font-style: italic;
    color: #4b5563;
    font-size: 0.95em;                  /* Légèrement plus petit */
}

@media (min-width: 768px) {
    .article-content blockquote {
        padding-left: 1.5rem;
        margin: 1.5rem 0;
        font-size: 1em;
    }
}

/* Code inline */
.article-content code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;                 /* Relatif au texte parent */
    font-family: 'Courier New', monospace;
    word-break: break-all;              /* Coupe le code long */
}

/* Blocs de code */
.article-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 0.75rem;                   /* Moins de padding sur mobile */
    border-radius: 0.5rem;
    overflow-x: auto;                   /* Scroll horizontal si besoin */
    margin: 1rem 0;
    font-size: 0.875rem;                /* Plus petit sur mobile */
}

@media (min-width: 768px) {
    .article-content pre {
        padding: 1rem;
        margin: 1.5rem 0;
        font-size: 0.9375rem;
    }
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    word-break: normal;                 /* Pas de coupure dans les blocs de code */
}

/* Tableaux responsive (si tu en as) */
.article-content table {
    width: 100%;
    overflow-x: auto;
    display: block;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .article-content table {
        display: table;
    }
}

/* Styles supplémentaires pour la galerie
—————————————————————————————————————————————————————————————————————————————————————
*/
.portfolio-card {
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-modal {
    backdrop-filter: blur(10px);
}

#modalImageContainer {
    min-height: 400px;
    max-height: 70vh;
}

#modalImageContainer img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-portfolio {
        padding: 3rem 0;
    }
    
    .hero-portfolio h1 {
        font-size: 2rem;
    }
    
    #prevPortfolio,
    #nextPortfolio {
        padding: 0.5rem;
    }
    
    #prevPortfolio svg,
    #nextPortfolio svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}