/* ============================================
   PHIMANILO — Design System
   ============================================ */

:root {
    --gold: #C89211;
    --gold-light: #D4A017;
    --gold-pale: rgba(200, 146, 17, 0.08);
    --brown: #5C3D2E;
    --bg: #FDFCF8;
    --bg-alt: #F5F0E8;
    --text: #2D2D2D;
    --text-sec: #6B6B6B;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.04);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Hachures de fond */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 12px,
        rgba(92, 61, 46, 0.025) 12px,
        rgba(92, 61, 46, 0.025) 13px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ─── TYPO ─── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    background: rgba(253, 252, 248, 0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(92, 61, 46, 0.06);
    transition: var(--transition);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brown);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-sec);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width 0.35s ease;
}

.nav-links a:hover { color: var(--brown); }
.nav-links a:hover::after { width: 100%; }

/* ─── BADGE ─── */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 14px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ─── BOUTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--brown);
    border-color: var(--brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--brown);
    border-color: var(--gold);
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* ─── ENCADRÉ DORÉ ─── */
.gold-box {
    background: linear-gradient(135deg, var(--bg-alt), #F8F1E0);
    border: 1px solid rgba(200, 146, 17, 0.25);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* ─── CARTE BORDURE GAUCHE ─── */
.card-left {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card-left:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ─── CITATION ─── */
.quote {
    padding-left: 24px;
    border-left: 3px solid var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--brown);
}

/* ─── BANDEAU ─── */
.banner {
    background: linear-gradient(90deg, rgba(200,146,17,0.08), rgba(200,146,17,0.14));
    border-radius: var(--radius);
    padding: 20px 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.banner i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ─── SECTIONS ─── */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header {
    max-width: 720px;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-sec);
    line-height: 1.75;
}
.section-header .lead {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--brown);
}

.hero-content .tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content .subtitle {
    font-size: 1.05rem;
    color: var(--text-sec);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.accent-shape {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(200,146,17,0.18);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(200,146,17,0.06), transparent 60%);
}
.accent-shape::before {
    content: '';
    position: absolute;
    inset: 40px;
    border: 1px solid rgba(200,146,17,0.12);
    border-radius: 50%;
}
.accent-shape::after {
    content: '';
    position: absolute;
    inset: 80px;
    border: 1px solid rgba(200,146,17,0.08);
    border-radius: 50%;
}

/* ─── VOCATION ─── */
.vocation-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.vocation-text h2 { margin-bottom: 24px; }
.vocation-text p {
    font-size: 1.05rem;
    color: var(--text-sec);
    margin-bottom: 20px;
    line-height: 1.8;
}
.vocation-text strong { color: var(--gold); font-weight: 600; }

.promise h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--brown);
}
.promise > p {
    color: var(--text-sec);
    margin-bottom: 24px;
    line-height: 1.7;
}
.promise-list {
    list-style: none;
}
.promise-list li {
    padding: 12px 0 12px 28px;
    position: relative;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid rgba(200,146,17,0.15);
}
.promise-list li:last-child { border-bottom: none; }
.promise-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* ─── VISION ─── */
.vision-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vision-card {
    background: var(--white);
    border: 1px solid rgba(92,61,46,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}
.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(200,146,17,0.2);
}
.vision-card .icon {
    width: 52px; height: 52px;
    margin: 0 auto 20px;
    color: var(--gold);
    stroke-width: 1.5;
}
.vision-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--brown);
}
.vision-card p {
    font-size: 0.92rem;
    color: var(--text-sec);
    line-height: 1.7;
}

/* ─── APPROCHE ─── */
.approche-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.approche-item {
    background: var(--white);
    border: 1px solid rgba(92,61,46,0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}
.approche-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: rgba(200,146,17,0.15);
}
.approche-item .icon {
    width: 44px; height: 44px;
    color: var(--gold);
    flex-shrink: 0;
    stroke-width: 1.5;
}
.approche-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--brown);
}
.approche-item p {
    font-size: 0.92rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ─── DIAGNOSTIC ─── */
.diag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.diag-card {
    background: var(--white);
    border: 1px solid rgba(92,61,46,0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}
.diag-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.diag-card .icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    color: var(--gold);
    stroke-width: 1.2;
}
.diag-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--brown);
}
.diag-card p {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ─── PERFORMANCE ─── */
.perf-content.full {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.perf-content.full > .badge,
.perf-content.full > h2 {
    grid-column: 1 / -1;
}

.perf-content h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--brown);
    position: relative;
    padding-bottom: 10px;
}
.perf-content h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--gold);
}
.perf-content ul {
    list-style: none;
    margin-bottom: 32px;
}
.perf-content ul:last-child { margin-bottom: 0; }
.perf-content li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-sec);
    font-size: 0.95rem;
}
.perf-content li::before {
    content: '';
    position: absolute;
    left: 0; top: 15px;
    width: 6px; height: 6px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

/* ─── ÉTAPES ─── */
.etapes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.etape-card {
    background: var(--white);
    border: 1px solid rgba(92,61,46,0.06);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.etape-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(200,146,17,0.15);
}
.etape-card .icon {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    color: var(--gold);
    stroke-width: 1.5;
}
.etape-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--brown);
}
.etape-card p {
    font-size: 0.85rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ─── POURQUOI ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.why-grid .card-left:nth-child(4),
.why-grid .card-left:nth-child(5) {
    grid-column: span 1;
}
.why-grid .card-left:nth-child(4) { justify-self: end; }
.why-grid .card-left:nth-child(5) { justify-self: start; }

.why-grid .card-left h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--brown);
}
.why-grid .card-left p {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ─── CONVICTION ─── */
.conviction-content.centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.conviction-content.centered .quote {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.conviction-content h2 { margin-bottom: 32px; }
.conviction-content .quote { margin-bottom: 24px; }
.conviction-content > p {
    font-size: 1rem;
    color: var(--text-sec);
    line-height: 1.8;
}
.conviction-content strong {
    color: var(--gold);
    font-weight: 600;
}

/* ─── CONTACT ─── */
.contact-section { background: var(--text); color: var(--bg); }
.contact-section .badge {
    border-color: var(--gold-light);
    color: var(--gold-light);
}
.contact-section h2 { color: var(--bg); }
.contact-section .section-header p { color: rgba(253,252,248,0.65); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    background: linear-gradient(135deg, rgba(200,146,17,0.12), rgba(200,146,17,0.06));
    border: 1px solid rgba(200,146,17,0.25);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-info h3 {
    font-size: 1.3rem;
    color: var(--bg);
    margin-bottom: 16px;
}
.contact-info > p {
    color: rgba(253,252,248,0.7);
    margin-bottom: 24px;
    line-height: 1.7;
}
.contact-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-links a {
    color: var(--gold-light);
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.contact-links a:hover { color: var(--bg); }
.contact-links i { width: 18px; height: 18px; }

.contact-propose h3 {
    font-size: 1.1rem;
    color: var(--bg);
    margin-bottom: 20px;
    opacity: 0.9;
}
.contact-propose ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-propose li {
    padding: 14px 0 14px 32px;
    position: relative;
    color: rgba(253,252,248,0.65);
    border-bottom: 1px solid rgba(253,252,248,0.06);
    font-size: 0.95rem;
}
.contact-propose li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

.contact-tagline {
    text-align: center;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(253,252,248,0.08);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* ─── FOOTER ─── */
.footer {
    text-align: center;
    padding: 32px 24px;
    background: #1A1A1A;
}
.footer p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(253,252,248,0.35);
}

/* ─── ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content .subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { max-width: 600px; margin: 0 auto; order: -1; }
    .vocation-grid { grid-template-columns: 1fr; gap: 40px; }
    .vision-cards { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .approche-grid { grid-template-columns: 1fr; }
    .diag-grid { grid-template-columns: 1fr; max-width: 500px; margin: 32px auto; }
    .perf-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .etapes-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .why-grid .card-left:nth-child(4),
    .why-grid .card-left:nth-child(5) { justify-self: stretch; }
    .conviction-content.centered { text-align: left; }
    .conviction-content.centered .quote { margin-left: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav { padding: 0 20px; height: 64px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.7rem; letter-spacing: 1px; }
    .hero { padding-top: 64px; }
    .section { padding: 64px 0; }
    .container { padding: 0 20px; }
    .etapes-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .gold-box { padding: 28px; }
}

@media (max-width: 480px) {
    .btn { width: 100%; }
    .hero-buttons { flex-direction: column; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(200,146,17,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,146,17,0.5); }
