/* ========================================
   ABOUT.CSS - Styles page À propos
   Version finale avec fix débordement
======================================== */
/* Fix global page about */
html {
    overflow-x: clip !important;
}

body {
    overflow-x: clip !important;
}

/* Fix header about - classes avec underscores */
.header .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

.header__inner {
    justify-content: space-between !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

.brand {
    flex-shrink: 0 !important;
}

.nav {
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.header__mobile-actions {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* Hero */
.about-hero {
    position: relative;
    padding: 120px 0 0px;
    text-align: center;
    margin-bottom: 10px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 140, 255, .15), transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.about-hero__content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.about-hero__subtitle {
    font-size: 17px;
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* Présentation */
.about-intro-full {
    max-width: 1100px;
    margin: 0 auto 48px auto;
}

.about-intro__text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}

.about-intro__text:last-child {
    margin-bottom: 0;
}

.about-intro__text strong {
    font-weight: 600;
    color: var(--accent);
}

/* Stack technique */
.about-stack-horizontal {
    padding: 32px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .about-stack-horizontal {
    background: #FFFFFF;
    border-color: #E1E4E8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.about-stack__title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 24px;
    color: var(--text);
    text-align: center;
}

.stack-horizontal-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.stack-group {
    display: flex;
    flex-direction: column;
}

.stack-group__title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin: 0 0 12px;
    opacity: 0.7;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
}

.stack-item:hover {
    border-color: rgba(79, 140, 255, .35);
    background: rgba(79, 140, 255, .08);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(79, 140, 255, .15);
}

.stack-item img,
.stack-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

[data-theme="light"] .stack-item {
    border-color: #E1E4E8;
    background: #F8F9FA;
}

[data-theme="light"] .stack-item:hover {
    border-color: rgba(79, 140, 255, .4);
    background: rgba(79, 140, 255, .06);
    box-shadow: 0 2px 8px rgba(79, 140, 255, .12);
}

.stack-item img.icon-invert {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .stack-item img.icon-invert {
    filter: none;
}

.icon-color-lr { filter: brightness(0) saturate(100%) invert(47%) sepia(99%) saturate(1745%) hue-rotate(176deg) brightness(103%) contrast(101%); }
.icon-color-analytics { filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(1865%) hue-rotate(358deg) brightness(101%) contrast(101%); }
.icon-color-pagespeed { filter: brightness(0) saturate(100%) invert(47%) sepia(92%) saturate(1749%) hue-rotate(184deg) brightness(98%) contrast(101%); }
.icon-color-chatgpt { filter: brightness(0) saturate(100%) invert(57%) sepia(33%) saturate(1683%) hue-rotate(122deg) brightness(93%) contrast(89%); }
.icon-color-claude { filter: brightness(0) saturate(100%) invert(61%) sepia(37%) saturate(603%) hue-rotate(329deg) brightness(91%) contrast(87%); }
.icon-color-perplexity { filter: brightness(0) saturate(100%) invert(63%) sepia(90%) saturate(1342%) hue-rotate(154deg) brightness(94%) contrast(101%); }

[data-theme="light"] .icon-color-lr,
[data-theme="light"] .icon-color-analytics,
[data-theme="light"] .icon-color-pagespeed,
[data-theme="light"] .icon-color-chatgpt,
[data-theme="light"] .icon-color-claude,
[data-theme="light"] .icon-color-perplexity {
    filter: none;
}

/* Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    padding: 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all .25s ease;
}

.skill-card:hover {
    border-color: rgba(79, 140, 255, .25);
    background: rgba(255, 255, 255, .03);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 140, 255, .12);
}

[data-theme="light"] .skill-card {
    background: #FFFFFF;
}

[data-theme="light"] .skill-card:hover {
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(79, 140, 255, .1);
}

.skill-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(79, 140, 255, .08);
    color: var(--accent);
    margin-bottom: 14px;
    transition: all .25s ease;
}

.skill-card:hover .skill-card__icon {
    background: rgba(79, 140, 255, .15);
}

.skill-card__title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--text);
}

.skill-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

/* Pourquoi */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all .2s ease;
}

.why-item:hover {
    border-color: rgba(79, 140, 255, .2);
    background: rgba(255, 255, 255, .025);
}

[data-theme="light"] .why-item {
    background: #FFFFFF;
}

[data-theme="light"] .why-item:hover {
    background: var(--surface);
}

.why-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.why-item:hover .why-number {
    opacity: 0.6;
}

.why-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.why-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: var(--text);
}

.why-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

/* CTA Box */
.cta-box {
    text-align: center;
    padding: 48px 40px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(79, 140, 255, .2);
    background: linear-gradient(135deg, rgba(79, 140, 255, .08), rgba(107, 92, 255, .04));
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 140, 255, .1), transparent 50%);
    animation: about-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes about-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-box__title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.cta-box__text {
    font-size: 16px;
    color: var(--muted);
    max-width: 50ch;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.cta-box__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.about-cta {
    text-align: center;
    margin-top: 32px;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .about-hero { padding: 100px 0 50px; }
    .stack-horizontal-wrapper { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .about-stack-horizontal { padding: 24px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .about-hero { padding: 80px 0 40px; }
    .stack-horizontal-wrapper { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .about-stack-horizontal { padding: 20px; }
    .stack-item { padding: 7px 10px; font-size: 11px; }
    .skills-grid { grid-template-columns: 1fr; }
    .why-item { gap: 12px; padding: 16px; }
    .why-number { font-size: 20px; width: 32px; }
    .cta-box { padding: 32px 24px; }
    .cta-box__title { font-size: 22px; }
    .cta-box__text { font-size: 14px; }
    .cta-box__actions { flex-direction: column; width: 100%; }
    .cta-box__actions .btn { width: 100%; }
}

/* Fix débordement éléments spécifiques */
.container,
.about-stack-horizontal,
.stack-horizontal-wrapper,
.stack-group,
.stack-items,
.stack-item,
.skills-grid,
.why-grid {
    max-width: 100%;
    box-sizing: border-box;
}

.stack-item {
    min-width: 0;
    overflow: hidden;
}

.stack-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
