/* 
==========================================================================
UTILITY CLASSES - PORTFOLIO JULIEN PINOT
Classes CSS réutilisables pour remplacer les styles inline
==========================================================================
*/

/* ==================== HERO SECTION STYLES ==================== */
.hero-section--gradient {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content--centered {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-image-wrapper {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.profile-image-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.profile-image-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.profile-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title--large {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle--accent {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description--long {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.scroll-indicator-line {
    width: 2px;
    height: 30px;
    background: var(--primary-blue);
    margin: 0 auto 10px;
    opacity: 0.6;
    animation: scrollPulse 2s infinite;
}

.scroll-indicator-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.section-title--large {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-intro-box {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    padding: 2.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
}

/* ==================== DECORATIVE ELEMENTS ==================== */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.decorative-circle--top-right {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.decorative-circle--bottom-left {
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
}

.decorative-circle--floating-small {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    animation: floatSlow 12s ease-in-out infinite;
}

.decorative-circle--floating-large {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    animation: floatSlow 15s ease-in-out infinite reverse;
}

/* ==================== GRADIENT BACKGROUNDS ==================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.bg-gradient-tertiary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

/* ==================== STAT CARDS CUSTOM ==================== */
.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.stat-card--blue::before {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
}

.stat-card--green::before {
    background: linear-gradient(90deg, var(--accent-emerald), #10b981);
}

.stat-card--orange::before {
    background: linear-gradient(90deg, var(--accent-orange), #fb923c);
}

.stat-card--light-blue::before {
    background: linear-gradient(90deg, var(--primary-blue-light), #60a5fa);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.stat-icon--blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.stat-icon--green {
    background: linear-gradient(135deg, var(--accent-emerald), #10b981);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.stat-icon--orange {
    background: linear-gradient(135deg, var(--accent-orange), #fb923c);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.3);
}

.stat-icon--light-blue {
    background: linear-gradient(135deg, var(--primary-blue-light), #60a5fa);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.stat-value {
    display: block;
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-value--blue {
    color: var(--primary-blue);
}

.stat-value--green {
    color: var(--accent-emerald);
}

.stat-value--orange {
    color: var(--accent-orange);
}

.stat-value--light-blue {
    color: var(--primary-blue-light);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.stat-description {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.stat-divider {
    width: 40px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 2px;
    opacity: 0.3;
}

/* ==================== SKILL CARDS WITH COLORED HEADERS ==================== */
.skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 38, 127, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.skill-card-header {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.skill-card-header--red {
    background: linear-gradient(135deg, #dc2626, #ea580c);
}

.skill-card-header--blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.skill-card-header::before,
.skill-card-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.skill-card-header::before {
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    opacity: 0.6;
}

.skill-card-header::after {
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

.skill-card-header-content {
    position: relative;
    z-index: 2;
}

.skill-card-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.skill-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.skill-card-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.skill-card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.skill-card-body {
    padding: 2rem;
}

.skill-list {
    display: grid;
    gap: 1rem;
}

.skill-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.skill-list-item--red {
    background: rgba(220, 38, 38, 0.08);
    border-left: 4px solid #dc2626;
}

.skill-list-item--blue {
    background: rgba(37, 99, 235, 0.08);
    border-left: 4px solid var(--primary-blue);
}

.skill-list-item:hover {
    transform: translateX(5px);
}

.skill-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.skill-list-icon--red {
    background: linear-gradient(135deg, #dc2626, #ea580c);
}

.skill-list-icon--blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.skill-list-text {
    color: #1e293b;
    font-weight: 600;
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 768px) {
    .hero-title--large {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle--accent {
        font-size: 1.3rem !important;
    }
    
    .profile-image-circle {
        width: 150px !important;
        height: 150px !important;
    }
    
    .section-badge {
        padding: 1rem 2rem;
    }
    
    .section-intro-box {
        padding: 2rem;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-content--centered {
        padding: 0 1rem;
    }
    
    .section-badge {
        padding: 0.75rem 1.5rem;
        gap: 10px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .section-title--large {
        font-size: 1.5rem;
    }
}

/* ==================== ADDITIONAL UTILITY CLASSES ==================== */

/* Section Backgrounds */
.section--bg-gradient-stats {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.section--bg-gradient-profile {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(248, 250, 252, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

/* Container Helpers */
.container--relative {
    position: relative;
    z-index: 2;
}

.container-relative-centered {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge--large {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 3rem;
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.section-icon--emerald {
    background: linear-gradient(135deg, var(--accent-emerald), #10b981);
}

.section-icon--large {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.section-title--gradient {
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #1e40af, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profile Quote */
.profile-quote-container {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(248, 250, 252, 0.95);
    padding: 2.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.profile-quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #1e293b;
    margin: 0;
    position: relative;
}

.quote-mark-left {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: -15px;
    left: -20px;
    font-family: serif;
}

.quote-mark-right {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    bottom: -25px;
    right: -20px;
    font-family: serif;
}

/* Text Highlights */
.text-highlight-blue {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.text-highlight-emerald {
    color: #047857;
    background: rgba(5, 150, 105, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.text-highlight-orange {
    color: #c2410c;
    background: rgba(234, 88, 12, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* Skill Cards */
.skill-card--red {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.skill-card--blue {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.skill-card-header--red {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.skill-card-header--blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.skill-card-decoration-circle-top {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.6;
}

.skill-card-decoration-circle-bottom {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.skill-card-title-wrapper {
    position: relative;
    z-index: 2;
}

.skill-card-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.skill-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.skill-card-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.skill-card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.skill-card-content {
    padding: 2rem;
}

.skill-card-list {
    display: grid;
    gap: 1rem;
}

.skill-list-item--red {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 15px;
    border-left: 4px solid #dc2626;
    transition: all 0.3s ease;
}

.skill-list-item--blue {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.skill-list-item--red:hover,
.skill-list-item--blue:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-list-icon--red {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.skill-list-icon--blue {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Decorative Circles */
.decorative-circle--right {
    top: 20%;
    right: -5%;
}

.decorative-circle--left {
    bottom: 10%;
    left: -10%;
}

.decorative-circle--floating-small {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 12s ease-in-out infinite;
}

.decorative-circle--floating-large {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

/* Additional Helpers */
.text-primary-blue {
    color: var(--primary-blue);
}

.text-accent-emerald {
    color: var(--accent-emerald);
}

.hero-buttons {
    flex-wrap: wrap;
    gap: 1rem;
}

.grid-gap-3 {
    gap: 3rem;
}

/* ==========================================================================
   GENERIC UTILITY CLASSES (added for CSP style-src refactor)
   Replace inline style="" attributes throughout the HTML pages.
   ========================================================================== */

/* ---------- Display & Flex ---------- */
.u-flex { display: flex; }
.u-inline-flex { display: inline-flex; }
.u-block { display: block; }
.u-inline-block { display: inline-block; }
.u-hidden { display: none; }
.u-grid-1 { display: grid; }

.u-items-center { align-items: center; }
.u-items-start  { align-items: flex-start; }
.u-items-end    { align-items: flex-end; }

.u-justify-center  { justify-content: center; }
.u-justify-between { justify-content: space-between; }
.u-justify-around  { justify-content: space-around; }

.u-flex-wrap   { flex-wrap: wrap; }
.u-flex-1      { flex: 1; }
.u-flex-shrink-0 { flex-shrink: 0; }
.u-flex-col    { flex-direction: column; }

/* ---------- Gap ---------- */
.u-gap-025 { gap: 0.25rem; }
.u-gap-03  { gap: 0.3rem; }
.u-gap-05  { gap: 0.5rem; }
.u-gap-075 { gap: 0.75rem; }
.u-gap-1   { gap: 1rem; }
.u-gap-15  { gap: 1.5rem; }
.u-gap-2   { gap: 2rem; }

/* ---------- Margins ---------- */
.u-m-0 { margin: 0; }
.u-mt-025 { margin-top: 0.25rem; }
.u-mt-05  { margin-top: 0.5rem; }
.u-mt-075 { margin-top: 0.75rem; }
.u-mt-1   { margin-top: 1rem; }
.u-mt-15  { margin-top: 1.5rem; }
.u-mt-2   { margin-top: 2rem; }
.u-mt-3   { margin-top: 3rem; }
.u-mb-025 { margin-bottom: 0.25rem; }
.u-mb-05  { margin-bottom: 0.5rem; }
.u-mb-075 { margin-bottom: 0.75rem; }
.u-mb-1   { margin-bottom: 1rem; }
.u-mb-15  { margin-bottom: 1.5rem; }
.u-mb-2   { margin-bottom: 2rem; }
.u-mb-3   { margin-bottom: 3rem; }
.u-ml-05  { margin-left: 0.5rem; }
.u-ml-1   { margin-left: 1rem; }
.u-mr-05  { margin-right: 0.5rem; }
.u-mr-075 { margin-right: 0.75rem; }
.u-mr-1   { margin-right: 1rem; }
.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-my-05  { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.u-my-1   { margin-top: 1rem;   margin-bottom: 1rem; }

/* ---------- Padding ---------- */
.u-p-0   { padding: 0; }
.u-p-05  { padding: 0.5rem; }
.u-p-075 { padding: 0.75rem; }
.u-p-1   { padding: 1rem; }
.u-p-15  { padding: 1.5rem; }
.u-p-2   { padding: 2rem; }
.u-py-04 { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.u-pl-15 { padding-left: 1.5rem; }

/* ---------- Text ---------- */
.u-text-center { text-align: center; }
.u-text-left   { text-align: left; }
.u-text-right  { text-align: right; }

.u-fw-500 { font-weight: 500; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }

.u-fs-075 { font-size: 0.75rem; }
.u-fs-085 { font-size: 0.85rem; }
.u-fs-09  { font-size: 0.9rem; }
.u-fs-1   { font-size: 1rem; }
.u-fs-11  { font-size: 1.1rem; }
.u-fs-12  { font-size: 1.2rem; }

.u-color-primary { color: var(--primary-blue); }
.u-color-warning { color: var(--warning-color); }
.u-color-info    { color: var(--info-color); }
.u-color-success { color: var(--success-color); }
.u-color-emerald { color: var(--accent-emerald); }
.u-color-muted   { color: var(--text-muted); }
.u-color-secondary { color: var(--text-secondary); }
.u-color-white   { color: #fff; }

.u-list-none { list-style: none; }
.u-text-decoration-none { text-decoration: none; }
.u-color-inherit { color: inherit; }

/* ---------- Sizing (icons, blocks) ---------- */
.u-w-100 { width: 100%; }
.u-mw-600 { max-width: 600px; }
.u-mw-700 { max-width: 700px; }
.u-mw-800 { max-width: 800px; }
.u-mw-960 { max-width: 960px; }

.icon-1em { width: 1em; height: 1em; flex-shrink: 0; }
.icon-11em { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }
.icon-40 { width: 40px; height: 40px; }
.icon-48 { width: 48px; height: 48px; }
.icon-64 { width: 64px; height: 64px; }

.icon-white { color: white; }
.icon-primary { color: var(--primary-blue); }
.icon-success { color: var(--success-color); }
.icon-emerald { color: #27AE60; }
.icon-purple  { color: #9B59B6; }
.icon-red     { color: #E74C3C; }
.icon-azure   { color: #4A90E2; }
.icon-amber   { color: #E4A900; }
.icon-msblue  { color: #0078D4; }

.icon-stack { flex-shrink: 0; margin-top: 2px; }

/* ---------- Skill progress widths (competences page) ---------- */
.skill-progress.w-15 { width: 15%; }
.skill-progress.w-20 { width: 20%; }
.skill-progress.w-25 { width: 25%; }
.skill-progress.w-30 { width: 30%; }
.skill-progress.w-35 { width: 35%; }
.skill-progress.w-40 { width: 40%; }
.skill-progress.w-45 { width: 45%; }
.skill-progress.w-50 { width: 50%; }
.skill-progress.w-55 { width: 55%; }
.skill-progress.w-60 { width: 60%; }
.skill-progress.w-65 { width: 65%; }
.skill-progress.w-70 { width: 70%; }
.skill-progress.w-75 { width: 75%; }
.skill-progress.w-80 { width: 80%; }
.skill-progress.w-100 { width: 100%; }

/* ---------- Vertical alignment helpers ---------- */
.u-va-middle { vertical-align: middle; }

/* ---------- Common composed patterns ---------- */
.u-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.u-flex-center-gap-05 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.u-flex-center-gap-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.u-inline-flex-center-gap-05 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.u-inline-flex-center-gap-03 {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.u-flex-row-center-gap-05 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.u-flex-row-center-gap-075 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.u-flex-row-center-gap-15 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.u-flex-start-gap-05 {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* ---------- Specific reused composites ---------- */
.icon-feather-row {            /* icon next to inline text, no shrink */
    width: 1em; height: 1em; flex-shrink: 0;
}

.btn-cta-tryhackme {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-tryhackme:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.note-box-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--warning-color);
    border-radius: 4px;
}

.card-border-warning { border: 3px solid var(--warning-color); }
.card-border-info    { border: 2px solid var(--info-color); opacity: 0.8; }

.text-warning-bold { color: var(--warning-color); font-weight: 600; }
.text-info-bold    { color: var(--info-color);    font-weight: 600; }
.text-primary-bold { color: var(--primary-blue);  font-weight: 600; }
.text-success-bold { color: var(--success-color); font-weight: 600; }

.icon-tile-blue {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}

.feature-icon-large {
    width: 48px; height: 48px;
    color: var(--primary-blue);
    margin: 0 auto 1rem;
}

.feature-icon-xl {
    width: 64px; height: 64px;
    color: var(--primary-blue);
    margin: 0 auto 1.5rem;
}

.list-bullet-icon {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.list-bullet-icon--last {
    padding-left: 1.5rem;
    position: relative;
}

.list-bullet-icon i {
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    color: var(--primary-blue);
}

/* ---------- Hero section (contact) ---------- */
.hero-section--half { height: 50vh; }

/* ---------- Avatar circle (cv) ---------- */
.avatar-100 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

/* ---------- Flag mini-icons (cv) ---------- */
.flag-mini {
    display: inline-block;
    width: 24px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.flag-mini--overflow { overflow: hidden; }

.flag-fr-blue   { position: absolute; top: 0; left: 0;       width: 33.33%; height: 100%; background-color: #0055A4; }
.flag-fr-white  { position: absolute; top: 0; left: 33.33%;  width: 33.33%; height: 100%; background-color: #FFFFFF; }
.flag-fr-red    { position: absolute; top: 0; right: 0;      width: 33.33%; height: 100%; background-color: #EF4135; }

.flag-es-top    { position: absolute; top: 0; left: 0;       width: 100%; height: 25%; background-color: #AA151B; }
.flag-es-mid    { position: absolute; top: 25%; left: 0;     width: 100%; height: 50%; background-color: #F1BF00; }
.flag-es-bot    { position: absolute; bottom: 0; left: 0;    width: 100%; height: 25%; background-color: #AA151B; }

.flag-img {
    width: 24px; height: 16px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: cover;
    border: 1px solid #ddd;
}

.timeline-actions { margin-top: 1rem; }


/* ===== rapport-stage-gigamedia inline -> classes ===== */
.u-fs-08 { font-size: 0.8rem; }
.u-ml-1 { margin-left: 1rem; } /* re-declare safe (idempotent) */
.grid-autofit-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.note-callout-orange {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}
.icon-inline-16 { width: 16px; height: 16px; vertical-align: middle; margin-right: 0.5rem; }

/* ===== rpi gradient icons (replace inline gradient styles) ===== */
.rpi-scope-icon--blue,
.timeline__icon--blue    { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.rpi-scope-icon--violet,
.timeline__icon--violet  { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.rpi-scope-icon--cyan,
.timeline__icon--cyan    { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.rpi-scope-icon--amber   { background: linear-gradient(135deg, #d97706, #fbbf24); }
.rpi-scope-icon--emerald,
.timeline__icon--emerald { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* arch-reason / icon color helpers used outside of arch-reason too */
.icon-color-blue    { color: #2563eb; }
.icon-color-violet  { color: #7c3aed; }
.icon-color-cyan    { color: #0891b2; }
.icon-color-amber   { color: #d97706; }
.icon-color-emerald { color: #16a34a; }
.icon-color-red     { color: #dc2626; }

.icon-cta-block {
    width: 48px; height: 48px;
    color: var(--primary-blue);
    margin: 0 auto 1.25rem;
    display: block;
}
.h-mb-075 { margin-bottom: 0.75rem; }
.cta-paragraph {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 0.97rem;
}

/* ===== cv.html helpers ===== */
.u-mw-560 { max-width: 560px; }
.u-flex-row-center-mb-1 { display: flex; align-items: center; margin-bottom: 1rem; }
.h-color-emerald-mb-05 { color: var(--accent-emerald); margin-bottom: 0.5rem; }
.h-color-primary-m-0 { margin: 0; color: var(--primary-blue); }
.p-color-secondary-m-0 { margin: 0; color: var(--text-secondary); }

/* === Toast / notification (CSP strict — pas de style.cssText) === */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  padding: 0.875rem 1.375rem;
  border-radius: 10px;
  color: #fff;
  font: 500 0.95rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--toast-bg, #2563eb);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--info    { --toast-bg: #2563eb; }
.toast--success { --toast-bg: #10b981; }
.toast--warning { --toast-bg: #f59e0b; }
.toast--error,
.toast--danger  { --toast-bg: #dc2626; }

/* === Honeypot (hors écran, accessibilité) === */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* === Ripple effect (positionné via custom props CSS) === */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transform: scale(0);
  left: var(--ripple-x, 0);
  top: var(--ripple-y, 0);
  width: var(--ripple-size, 100px);
  height: var(--ripple-size, 100px);
  animation: ripple-animation 0.6s ease-out;
}
