/* ============================================================
   MAILLARD CUSTODY — Feuille de style principale
   Inspiration : Pictet & Cie, Lombard Odier
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
    --ivory:        #F7F5F2;
    --ivory-dark:   #EEEAE4;
    --bordeaux:     #6B1A2A;
    --bordeaux-dk:  #4A1120;
    --gold:         #C5A059;
    --gold-lt:      #D4B472;
    --text:         #2C2C2C;
    --text-mid:     #5A5A5A;
    --text-dim:     #7A7A7A;
    --white:        #FFFFFF;
    --border:       #E0DAD2;
    --border-lt:    #EDE9E3;

    --header-h:     76px;
    --max-w:        860px;
    --max-w-wide:   1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--ivory);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Langue ── */
body.en .fr { display: none !important; }
body.fr .en { display: none !important; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(44,44,44,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    gap: 32px;
}

/* Logo — Monogramme CSS */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mono {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.8rem;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.header-logo:hover .logo-mono { color: var(--bordeaux); }

.logo-wordmark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bordeaux-dk);
    line-height: 1.5;
}

.logo-wordmark em {
    display: block;
    font-style: normal;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.3em;
    font-size: 0.62rem;
}

/* Navigation principale */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 18px;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: var(--bordeaux);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header-nav a:hover { color: var(--bordeaux); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav a.active { color: var(--bordeaux); font-weight: 500; }
.header-nav a.active::after { transform: scaleX(1); }

/* Séparateur entre liens */
.header-nav a + a::before {
    content: '·';
    position: absolute;
    left: -2px;
    color: var(--border);
    font-size: 1rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

/* Sélecteur de langue */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 2px;
    transition: color 0.2s ease;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--bordeaux); font-weight: 500; }

.lang-sep {
    color: var(--border);
    font-size: 0.9rem;
    user-select: none;
}

/* Burger mobile */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* ════════════════════════════════════════
   MAIN CONTENT WRAPPER
════════════════════════════════════════ */
main {
    margin-top: var(--header-h);
    flex: 1;
}

/* ════════════════════════════════════════
   HERO — index.html
════════════════════════════════════════ */
.hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 100px 40px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gold));
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
  	text-align: center;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    color: var(--bordeaux-dk);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 780px;
    margin: 0 auto 28px;
}

.hero-title em {
    font-style: italic;
    color: var(--bordeaux);
}

.hero-sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-mid);
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bordeaux);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 16px 36px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
    background: var(--bordeaux-dk);
    box-shadow: 0 8px 32px rgba(107,26,42,0.2);
}

.hero-cta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform 0.25s ease;
}

.hero-cta:hover svg { transform: translateX(4px); }

/* Index — Bloc de pilliers */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: var(--ivory);
}

.pillar {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease;
}

.pillar:hover { background: var(--white); }

.pillar-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 16px;
}

.pillar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--bordeaux-dk);
    margin-bottom: 12px;
    line-height: 1.3;
}

.pillar p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0;
}

/* ════════════════════════════════════════
   PAGE HERO (pages internes)
════════════════════════════════════════ */
.page-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 72px 40px 64px;
    text-align: center;
}

.page-hero-eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.page-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 300;
    color: var(--bordeaux-dk);
    line-height: 1.2;
    max-width: 680px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

.page-hero-title em {
    font-style: italic;
    color: var(--bordeaux);
}

/* ════════════════════════════════════════
   SECTION DE CONTENU
════════════════════════════════════════ */
.content-area {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 72px 40px 100px;
}

/* Card */
.card {
    background: var(--white);
    border: 1px solid var(--border-lt);
    border-left: 3px solid var(--bordeaux);
    padding: 52px 56px;
    margin-bottom: 28px;
    box-shadow: 0 2px 20px rgba(44,44,44,0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 32px rgba(44,44,44,0.08);
}

.card:last-child { margin-bottom: 0; }

/* Card avec bordure or (variante) */
.card.card-gold {
    border-left-color: var(--gold);
}

/* Titres dans card */
.card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--bordeaux-dk);
    margin: 0 0 20px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card h2::before {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.card h2 + h2,
.card p + h2,
.card ul + h2 {
    margin-top: 44px;
}

/* Texte */
.card p {
    font-size: 0.97rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.card p:last-child { margin-bottom: 0; }

/* Listes */
.card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.card ul li {
    position: relative;
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid var(--border-lt);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
}

.card ul li:first-child { border-top: 1px solid var(--border-lt); }

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: var(--gold);
}

.card ul li strong {
    color: var(--bordeaux-dk);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

/* Bouton téléchargement */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--bordeaux);
    color: var(--bordeaux);
    background: transparent;
    padding: 13px 28px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 16px;
    transition: background 0.25s ease, color 0.25s ease;
}

.download-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.download-btn:hover {
    background: var(--bordeaux);
    color: var(--white);
}

.download-btn:hover svg { transform: translateY(2px); }

/* ════════════════════════════════════════
   SÉPARATEUR DÉCORATIF
════════════════════════════════════════ */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 56px auto;
    max-width: 200px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
    background: var(--bordeaux-dk);
    color: rgba(247,245,242,0.55);
    padding: 52px 40px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 2;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-logo img {
    height: 140px;
    width: auto;
    opacity: 0.92;
}

.site-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.site-footer a:hover { color: var(--gold-lt); }

.footer-sep {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(197,160,89,0.3);
    margin: 20px auto;
}

.footer-legal {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 16px;
}

/* ════════════════════════════════════════
   MOBILE NAV OVERLAY
════════════════════════════════════════ */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    padding: calc(var(--header-h) + 40px) 40px 40px;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-lt);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--bordeaux);
    padding-left: 8px;
}

.mobile-nav a.active { color: var(--bordeaux); }

/* ════════════════════════════════════════
   ANIMATIONS D'ENTRÉE
════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* Délais en cascade */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.24s; }
.fade-up:nth-child(4) { transition-delay: 0.36s; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
    .header-nav { display: none; }
    .burger { display: flex; }

    .pillars { grid-template-columns: 1fr; }

    .card { padding: 36px 28px; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }

    .header-inner { padding: 0 20px; }

    .hero { padding: 60px 20px 56px; }
    .page-hero { padding: 52px 20px 44px; }
    .content-area { padding: 48px 20px 72px; }
    .card { padding: 28px 20px; }

    .pillar { padding: 32px 24px; }

    .site-footer { padding: 40px 20px; }
}
