/* ============================================
   BADGES DE CONFORMITÉ & ÉTHIQUE
   Bulles arrondies pour pages légales/éthiques
   ============================================ */

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.compliance-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Indicateur rond coloré */
.compliance-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Couleurs spécifiques par type */
.compliance-badge.ia-responsable::before {
    background: #43e97b;
    box-shadow: 0 0 10px rgba(67, 233, 123, 0.5);
}

.compliance-badge.rgpd::before {
    background: #4facfe;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.compliance-badge.cgv::before {
    background: #f093fb;
    box-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}

.compliance-badge.mentions::before {
    background: #feca57;
    box-shadow: 0 0 10px rgba(254, 202, 87, 0.5);
}

.compliance-badge.confidentialite::before {
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .compliance-badges {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .compliance-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   MOBILE FIRST - PROJETS ACTUELS
   Design optimisé 320px → desktop
   ============================================ */

.projects-section {
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Grid mobile-first */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Carte projet mobile-first */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

/* Image projet mobile-first */
.project-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
}

/* Tag projet */
.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Titre projet */
.project-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Description projet */
.project-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Bouton projet */
.project-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px; /* Accessibilité touch */
}

.project-card .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive tablette */
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .projects-section {
        padding: 4rem 2rem;
    }
}

/* Responsive desktop */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-section {
        padding: 6rem 2rem;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
}

/* Carte projet de cœur (span 2 colonnes sur grand écran) */
.project-card.featured {
    border: 2px solid rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.05);
}

@media (min-width: 1024px) {
    .project-card.featured {
        grid-column: span 2;
    }
}

/* ============================================
   MOBILE FIRST - SECTION NOSTALGIE
   "Mes Premières Réalisations Web"
   ============================================ */

.nostalgie-section {
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.nostalgie-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

/* Badge nostalgie */
.nostalgie-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.nostalgie-badge span:first-child {
    font-size: 1.5rem;
}

.nostalgie-badge span:last-child {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    color: #ffd700;
    font-weight: 700;
}

/* Note historique */
.nostalgie-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    border-radius: 0.5rem;
    text-align: left;
}

.nostalgie-note p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Grid nostalgie mobile-first */
.nostalgie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Carte nostalgie */
.nostalgie-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nostalgie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

/* Image nostalgie */
.nostalgie-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: rgba(255, 215, 0, 0.1);
}

/* Contenu carte nostalgie */
.nostalgie-card-content {
    padding: 1.5rem;
}

.nostalgie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.nostalgie-card h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1 1 auto;
}

/* Badge année nostalgie */
.year-badge {
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a2e;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Description carte nostalgie */
.nostalgie-card-type {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.nostalgie-card-tech {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* Bouton nostalgie */
.nostalgie-card .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.nostalgie-card .btn-ghost:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateX(5px);
}

/* Conclusion nostalgie */
.nostalgie-conclusion {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nostalgie-conclusion p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
}

/* Responsive tablette nostalgie */
@media (min-width: 640px) {
    .nostalgie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nostalgie-section {
        padding: 4rem 2rem;
    }
}

/* Responsive desktop nostalgie */
@media (min-width: 1024px) {
    .nostalgie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nostalgie-section {
        padding: 6rem 2rem;
    }
    
    .nostalgie-header {
        margin-bottom: 4rem;
    }
}

/* ============================================
   ACCESSIBILITÉ & TOUCH TARGETS
   Minimum 44x44px pour éléments cliquables
   ============================================ */

@media (max-width: 768px) {
    /* Augmenter taille des boutons sur mobile */
    .btn-primary,
    .btn-ghost,
    .project-card .btn-primary,
    .nostalgie-card .btn-ghost {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Espacement touch-friendly */
    .projects-grid,
    .nostalgie-grid {
        gap: 1.25rem;
    }
}

/* ============================================
   PRINT STYLES (bonus)
   ============================================ */

@media print {
    .compliance-badges,
    .project-card,
    .nostalgie-card {
        border: 1px solid #ddd;
        background: white;
        page-break-inside: avoid;
    }
}
