/* LEROYER — Design system v1.2.1 */

:root {
  --le-ink:        #0B1F33;
  --le-navy:       #13355E;
  --le-azur:       #2C6DAC;
  --le-azur-soft:  #E8F0F9;
  --le-sky:        #A8C4DE;
  --le-cream:      #FAF7F0;
  --le-paper:      #F4EEE0;
  --le-white:      #FFFFFF;
  --le-line:       #E0D8C5;
  --le-muted:      #6B7A89;
  --le-gold:       #B08848;

  --le-serif: 'Fraunces', Georgia, serif;
  --le-sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  --le-r-sm: 6px;
  --le-r-md: 12px;
  --le-r-lg: 20px;
  --le-r-xl: 28px;

  --le-shadow-sm: 0 1px 2px rgba(11,31,51,0.04), 0 1px 1px rgba(11,31,51,0.03);
  --le-shadow-md: 0 4px 12px rgba(11,31,51,0.06), 0 2px 4px rgba(11,31,51,0.04);
  --le-shadow-lg: 0 12px 40px rgba(11,31,51,0.08), 0 4px 12px rgba(11,31,51,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--le-sans); background: var(--le-cream); color: var(--le-ink); font-size: 17px; line-height: 1.6; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, h5, h6 { font-family: var(--le-serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--le-ink); font-variation-settings: 'opsz' 144, 'SOFT' 30; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--le-azur); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select, button { font: inherit; }

.skip-link { position: absolute; top: -100px; left: 16px; background: var(--le-navy); color: var(--le-cream); padding: 10px 16px; border-radius: var(--le-r-sm); z-index: 9999; }
.skip-link:focus { top: 16px; color: var(--le-cream); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.site-main { flex: 1; }
.section { padding: 100px 0; position: relative; }
.section-paper { background: var(--le-paper); }
.section-cream { background: var(--le-cream); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-eyebrow { display: inline-block; font-family: var(--le-sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--le-azur); font-weight: 600; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: 20px; }
.section-head h2 em { font-style: italic; color: var(--le-navy); }
.section-head p { font-size: 1.1rem; color: var(--le-muted); line-height: 1.7; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 240, 0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: all 0.3s ease; }
.site-header.scrolled { border-bottom-color: var(--le-line); background: rgba(250, 247, 240, 0.95); }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 12px; font-family: var(--le-serif); font-weight: 500; font-size: 1.2rem; color: var(--le-ink); flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { white-space: nowrap; }
@media (max-width: 580px) { .brand-text { display: none; } }

.site-menu { display: flex; gap: 2rem; align-items: center; }
.site-menu a { font-family: var(--le-sans); font-size: 0.95rem; font-weight: 500; color: var(--le-ink); position: relative; padding: 8px 0; white-space: nowrap; }
.site-menu a::after { content: ""; position: absolute; bottom: 2px; left: 0; width: 0; height: 1.5px; background: var(--le-azur); transition: width 0.3s ease; }
.site-menu a:hover::after, .site-menu .current-menu-item > a::after, .site-menu .current_page_item > a::after { width: 100%; }
.site-menu .current-menu-item > a, .site-menu .current_page_item > a { color: var(--le-navy); }

.nav-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-toggle { display: none; padding: 10px; flex-direction: column; gap: 4px; border-radius: var(--le-r-sm); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--le-ink); transition: all 0.3s; border-radius: 2px; }

@media (max-width: 900px) {
  .site-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--le-cream); border-bottom: 1px solid var(--le-line); padding: 20px 0; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all 0.3s ease; }
  .site-header.menu-open .site-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-menu li { width: 100%; }
  .site-menu a { display: block; padding: 12px 32px; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
}

/* BUTTONS */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; font-family: var(--le-sans); font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; white-space: nowrap; text-decoration: none; line-height: 1; }
.btn-primary, .wp-block-button__link { background: var(--le-navy); color: var(--le-cream); }
.btn-primary:hover { background: var(--le-ink); color: var(--le-cream); transform: translateY(-1px); box-shadow: var(--le-shadow-md); }
.btn-ghost { background: transparent; color: var(--le-ink); border-color: var(--le-ink); }
.btn-ghost:hover { background: var(--le-ink); color: var(--le-cream); }
.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.lang-switch { display: inline-flex; background: var(--le-white); border: 1px solid var(--le-line); border-radius: 100px; padding: 3px; font-size: 0.82rem; font-weight: 500; }
.lang-switch a { padding: 6px 14px; border-radius: 100px; color: var(--le-muted); }
.lang-switch .active { background: var(--le-navy); color: var(--le-cream); }

/* HERO */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 10%; right: -15%; width: 500px; height: 500px; background: radial-gradient(circle, var(--le-azur-soft) 0%, transparent 70%); border-radius: 50%; opacity: 0.8; pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--le-azur-soft); color: var(--le-navy); border-radius: 100px; font-size: 0.82rem; font-weight: 500; margin-bottom: 28px; }
.hero-badge::before { content: ""; width: 6px; height: 6px; background: var(--le-azur); border-radius: 50%; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.02; margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--le-azur); }
.hero-subtitle { font-size: 1.15rem; line-height: 1.65; color: var(--le-muted); margin-bottom: 40px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--le-line); font-size: 0.9rem; color: var(--le-muted); }
.hero-meta div strong { display: block; font-family: var(--le-serif); font-size: 1.5rem; font-weight: 500; color: var(--le-ink); margin-bottom: 2px; }
.hero-portrait { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 460px; margin-left: auto; }
.hero-portrait-frame { position: absolute; inset: 0; border-radius: var(--le-r-lg); overflow: hidden; box-shadow: var(--le-shadow-lg); transform: rotate(-1.5deg); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: linear-gradient(135deg, var(--le-navy), var(--le-azur)); }
.hero-portrait:hover .hero-portrait-frame { transform: rotate(0deg); }
.hero-portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,31,51,0.4) 100%); pointer-events: none; }
.hero-portrait-label { position: absolute; bottom: 24px; left: 24px; right: 24px; color: var(--le-cream); font-family: var(--le-serif); z-index: 2; }
.hero-portrait-label small { display: block; font-family: var(--le-sans); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 500; opacity: 0.7; margin-bottom: 4px; }
.hero-portrait-label strong { font-size: 1.2rem; font-weight: 500; font-style: italic; line-height: 1.25; }
.hero-badge-float { position: absolute; bottom: -24px; left: -32px; background: var(--le-cream); padding: 16px 20px; border-radius: var(--le-r-md); box-shadow: var(--le-shadow-lg); border: 1px solid var(--le-line); z-index: 3; transform: rotate(-3deg); display: flex; align-items: center; gap: 12px; font-size: 0.88rem; }
.hero-badge-float-dot { width: 10px; height: 10px; background: var(--le-azur); border-radius: 50%; animation: le-pulse 2s ease-in-out infinite; }
@keyframes le-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }

/* PILIERS */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { background: var(--le-cream); border: 1px solid var(--le-line); border-radius: var(--le-r-lg); padding: 36px 32px; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--le-navy), var(--le-azur)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--le-shadow-lg); border-color: var(--le-sky); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon { width: 56px; height: 56px; background: var(--le-azur-soft); border-radius: var(--le-r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--le-navy); }
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: 14px; }
.pillar p { color: var(--le-muted); line-height: 1.65; font-size: 0.98rem; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about-visual { position: relative; aspect-ratio: 3 / 4; border-radius: var(--le-r-lg); overflow: hidden; background: linear-gradient(135deg, var(--le-navy), var(--le-azur)); box-shadow: var(--le-shadow-lg); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,31,51,0.5) 100%); pointer-events: none; }
.about-quote { position: absolute; bottom: 32px; left: 32px; right: 32px; color: var(--le-cream); font-family: var(--le-serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; z-index: 2; }
.about-quote-mark { font-size: 4rem; line-height: 0.5; opacity: 0.3; margin-bottom: 8px; display: block; }
.about-visual-graphic { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; }
.about-visual-graphic::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(250,247,240,0.12) 0%, transparent 50%); pointer-events: none; }
.about-visual-inner { position: relative; z-index: 1; color: var(--le-cream); }
.about-visual-eyebrow { font-family: var(--le-sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--le-sky); margin-bottom: 28px; }
.about-visual-big { font-family: var(--le-serif); font-size: clamp(3rem, 6vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--le-cream); margin-bottom: 24px; }
.about-visual-big .plus { color: var(--le-sky); font-style: italic; }
.about-visual-sep { width: 48px; height: 2px; background: var(--le-sky); margin-bottom: 20px; }
.about-visual-small { font-family: var(--le-serif); font-style: italic; font-size: 1.1rem; line-height: 1.45; color: rgba(250, 247, 240, 0.8); max-width: 280px; }
.about-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 24px; }
.about-content h2 em { font-style: italic; color: var(--le-azur); }
.about-content > p { font-size: 1.08rem; line-height: 1.75; color: var(--le-muted); margin-bottom: 20px; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--le-line); }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight-dot { width: 6px; height: 6px; background: var(--le-azur); border-radius: 50%; flex-shrink: 0; margin-top: 9px; }
.highlight strong { display: block; font-family: var(--le-serif); font-weight: 500; color: var(--le-ink); font-size: 1.05rem; margin-bottom: 2px; }
.highlight span { font-size: 0.9rem; color: var(--le-muted); }
.about-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--le-navy); font-weight: 500; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.about-link:hover { color: var(--le-azur); }

/* POSTS */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--le-cream); border-radius: var(--le-r-lg); padding: 28px; border: 1px solid var(--le-line); transition: all 0.3s ease; }
.post-card:hover { border-color: var(--le-azur); transform: translateY(-3px); box-shadow: var(--le-shadow-md); }
.post-date { font-size: 0.8rem; color: var(--le-muted); letter-spacing: 0.05em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.post-date::before { content: ""; width: 20px; height: 1px; background: var(--le-azur); }
.post-card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 14px; line-height: 1.25; }
.post-card p { font-size: 0.95rem; color: var(--le-muted); line-height: 1.6; margin-bottom: 18px; }
.post-read { color: var(--le-navy); font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* CTA FINAL */
.cta-final { background: var(--le-navy); color: var(--le-cream); border-radius: var(--le-r-xl); padding: 80px 60px; text-align: center; position: relative; overflow: hidden; margin-bottom: 100px; }
.cta-final::before { content: ""; position: absolute; top: -50%; left: -20%; width: 140%; height: 200%; background: radial-gradient(circle at 20% 30%, rgba(168,196,222,0.15) 0%, transparent 40%); pointer-events: none; }
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; color: var(--le-cream); margin-bottom: 20px; line-height: 1.1; }
.cta-final h2 em { font-style: italic; color: var(--le-sky); }
.cta-final p { color: rgba(250,247,240,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; line-height: 1.65; }
.cta-final .btn-primary { background: var(--le-cream); color: var(--le-navy); }
.cta-final .btn-primary:hover { background: var(--le-white); color: var(--le-ink); }

/* FOOTER */
.site-footer { background: var(--le-ink); color: var(--le-paper); padding: 36px 0 20px; font-size: 0.92rem; line-height: 1.5; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid rgba(244,238,224,0.1); }
.footer-brand-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand-line .site-brand { color: var(--le-cream); font-size: 1.05rem; }
.footer-brand-line .brand-mark { width: 36px; height: 36px; background: var(--le-cream); border-radius: var(--le-r-sm); padding: 3px; }
.footer-tagline { color: rgba(244,238,224,0.5); font-size: 0.82rem; font-style: italic; font-family: var(--le-serif); padding-left: 16px; border-left: 1px solid rgba(244,238,224,0.15); }
.footer-nav .footer-menu { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav .footer-menu a { color: rgba(244,238,224,0.75); font-size: 0.9rem; }
.footer-nav .footer-menu a:hover { color: var(--le-cream); }
.footer-socials { display: flex; gap: 10px; align-items: center; }
.footer-socials a { width: 32px; height: 32px; background: rgba(244,238,224,0.06); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(244,238,224,0.7); transition: all 0.2s ease; }
.footer-socials a:hover { background: var(--le-azur); color: var(--le-cream); }
.footer-bottom { padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.82rem; color: rgba(244,238,224,0.5); }
.footer-bottom a { color: rgba(244,238,224,0.6); }
.footer-bottom a:hover { color: var(--le-cream); }
.footer-sep { color: rgba(244,238,224,0.25); }

@media (max-width: 720px) {
  .footer-main { gap: 20px; flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-bottom .footer-sep { display: none; }
}

/* ARTICLES */
.page-hero { padding: 80px 0 40px; background: var(--le-cream); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; margin-bottom: 20px; max-width: 900px; }
.page-hero h1 em { font-style: italic; color: var(--le-azur); }
.page-hero-meta { color: var(--le-muted); font-size: 0.95rem; margin-bottom: 12px; }
.page-hero-lead { font-size: 1.2rem; color: var(--le-muted); line-height: 1.7; max-width: 720px; }
.article-content { max-width: 740px; margin: 0 auto; padding: 40px 0 100px; font-size: 1.1rem; line-height: 1.75; color: var(--le-ink); }
.article-content h2 { font-size: 2rem; margin: 48px 0 16px; }
.article-content h3 { font-size: 1.5rem; margin: 36px 0 14px; }
.article-content p { margin-bottom: 1.2em; }
.article-content a { color: var(--le-navy); border-bottom: 1.5px solid var(--le-azur-soft); }
.article-content blockquote { border-left: 3px solid var(--le-azur); padding: 12px 28px; margin: 28px 0; font-family: var(--le-serif); font-style: italic; color: var(--le-navy); font-size: 1.2rem; line-height: 1.55; background: var(--le-azur-soft); border-radius: 0 var(--le-r-md) var(--le-r-md) 0; }
.article-content img { margin: 28px auto; border-radius: var(--le-r-md); box-shadow: var(--le-shadow-md); }
.article-content ul, .article-content ol { margin: 1em 0 1.5em; padding-left: 1.5em; }
.article-content ul li, .article-content ol li { list-style: inherit; margin-bottom: 0.5em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

/* CV */
.cv-main { max-width: 960px; margin: 0 auto; padding: 60px 32px 100px; }
.cv-header { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--le-line); margin-bottom: 48px; }
.cv-header h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); margin-bottom: 14px; }
.cv-header .cv-tagline { color: var(--le-azur); font-family: var(--le-sans); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; font-weight: 600; margin-bottom: 16px; }
.cv-header p { font-size: 1.05rem; line-height: 1.7; color: var(--le-muted); }
.cv-contact { font-family: var(--le-sans); font-size: 0.92rem; background: var(--le-paper); padding: 24px; border-radius: var(--le-r-md); }
.cv-contact dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--le-azur); font-weight: 600; margin-bottom: 4px; }
.cv-contact dd { margin: 0 0 14px; color: var(--le-ink); }
.cv-contact dd a { color: var(--le-navy); }
.cv-section { margin-bottom: 56px; }
.cv-section h2 { font-size: 1.85rem; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 2px solid var(--le-azur); display: inline-block; }
.cv-job { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--le-line); }
.cv-job:first-of-type { border-top: 0; }
.cv-job-period { font-family: var(--le-sans); font-size: 0.9rem; color: var(--le-azur); font-weight: 600; }
.cv-job h3 { font-size: 1.2rem; margin-bottom: 4px; }
.cv-job h4 { font-family: var(--le-sans); font-size: 0.95rem; font-weight: 500; color: var(--le-muted); margin-bottom: 12px; font-style: italic; }
.cv-job p { margin-bottom: 8px; color: var(--le-ink); }
.cv-job ul { list-style: disc; padding-left: 20px; margin-top: 10px; }
.cv-job li { margin-bottom: 6px; color: var(--le-ink); list-style: disc; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.text-center { text-align: center; }

/* ========================================================================
   FICHE ECRIT v1.2.1 : résumé prioritaire, métadonnées en bande dessous
   ======================================================================== */
.le-single-wrap { font-family: var(--le-sans); }

/* Layout ROW 1 : couverture + résumé */
.le-single-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 60px;
}
.le-single-cover-col { position: sticky; top: 100px; }

/* Flip card */
.le-flip-card { perspective: 1600px; aspect-ratio: 2 / 3; max-width: 260px; margin: 0 auto; cursor: pointer; outline: none; }
.le-flip-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); transform-style: preserve-3d; border-radius: 8px; }
.le-flip-card:not(.single-side):hover .le-flip-inner { transform: rotateY(180deg); }
.le-flip-card.is-flipped .le-flip-inner { transform: rotateY(180deg); }
.le-flip-card.single-side { cursor: default; }
.le-flip-card.single-side .le-flip-inner { transform: none !important; }
.le-flip-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(11,31,51,.12); background: linear-gradient(135deg, var(--le-navy), var(--le-azur)); }
.le-flip-face img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.le-flip-back { transform: rotateY(180deg); }
.le-flip-hint { display: block; text-align: center; font-family: var(--le-sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--le-muted); margin-top: 14px; opacity: 0.7; font-weight: 500; }
.le-flip-card.single-side + .le-flip-hint { display: none; }
@media (hover: none) { .le-flip-card:not(.single-side):hover .le-flip-inner { transform: none; } }

/* Colonne résumé (à la place des méta) */
.le-single-info-col { padding-top: 4px; }

.le-single-summary {
    font-family: var(--le-serif);
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--le-ink);
    font-variation-settings: 'opsz' 72;
}
.le-single-summary p { margin-bottom: 1.15em; }
.le-single-summary p:first-of-type::first-line {
    font-weight: 500;
    color: var(--le-navy);
}
.le-single-summary p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--le-navy);
}
.le-single-summary strong { color: var(--le-ink); font-weight: 600; }
.le-single-summary em { color: var(--le-azur); }
.le-single-summary blockquote { border-left: 3px solid var(--le-azur); padding-left: 22px; font-style: italic; color: var(--le-navy); margin: 24px 0; }
.le-single-summary ul, .le-single-summary ol { margin: 1em 0; padding-left: 1.5em; }
.le-single-summary li { list-style: disc; margin-bottom: 0.4em; color: var(--le-ink); }

.le-single-no-summary { padding: 20px; background: var(--le-paper); border-radius: var(--le-r-md); text-align: center; }

/* Boutons d'action sous le résumé */
.le-single-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--le-line);
    max-width: 420px;
}
.le-single-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-radius: 100px; font-family: var(--le-sans); font-weight: 500; font-size: 0.95rem; text-decoration: none !important; transition: all .25s cubic-bezier(.4,0,.2,1); line-height: 1; border: 1px solid transparent; }
.le-single-btn-primary { background: var(--le-navy); color: var(--le-cream); }
.le-single-btn-primary:hover { background: var(--le-ink); color: var(--le-cream); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,31,51,.15); }
.le-single-btn-ghost { background: transparent; color: var(--le-ink); border-color: var(--le-line); }
.le-single-btn-ghost:hover { border-color: var(--le-navy); background: var(--le-azur-soft); }

/* Bouton SDM à la charte */
.le-ecrit-sdm a, .le-ecrit-sdm .sdm_download {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 22px !important;
    border-radius: 100px !important;
    background: var(--le-navy) !important;
    color: var(--le-cream) !important;
    font-family: var(--le-sans) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border: 0 !important;
    transition: all .25s cubic-bezier(.4,0,.2,1) !important;
    cursor: pointer;
    line-height: 1 !important;
    box-sizing: border-box;
}
.le-ecrit-sdm a:hover { background: var(--le-ink) !important; transform: translateY(-1px); }

/* ROW 2 : Bande métadonnées horizontale */
.le-single-meta-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 36px;
    background: var(--le-paper);
    border-radius: var(--le-r-lg);
    border: 1px solid var(--le-line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px 36px;
}
.le-meta-cell {
    position: relative;
    padding-left: 16px;
}
.le-meta-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--le-azur);
    border-radius: 2px;
}
.le-meta-cell dt {
    font-family: var(--le-sans);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--le-azur);
    font-weight: 600;
    margin-bottom: 6px;
}
.le-meta-cell dd {
    font-family: var(--le-serif);
    font-size: 1.15rem;
    color: var(--le-ink);
    margin: 0;
    font-weight: 500;
    line-height: 1.25;
    font-variation-settings: 'opsz' 48;
}
.le-meta-cell dd.le-mono {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .le-single-layout { grid-template-columns: 240px 1fr; gap: 40px; }
}
@media (max-width: 720px) {
    .le-single-layout { grid-template-columns: 1fr; gap: 32px; }
    .le-single-cover-col { position: static; max-width: 220px; margin: 0 auto; }
    .le-single-meta-bar { padding: 24px; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
}
@media (max-width: 480px) {
    .le-single-meta-bar { grid-template-columns: 1fr; gap: 18px; }
}

/* ============ ECRITS / ENTREPRISES GRID ============ */
.le-ecrits, .le-entreprises { display: grid; gap: 28px; font-family: var(--le-sans); color: var(--le-ink); }
.le-ecrits.le-cols-1, .le-entreprises.le-cols-1 { grid-template-columns: 1fr; }
.le-ecrits.le-cols-2, .le-entreprises.le-cols-2 { grid-template-columns: repeat(2, 1fr); }
.le-ecrits.le-cols-3, .le-entreprises.le-cols-3 { grid-template-columns: repeat(3, 1fr); }
.le-ecrits.le-cols-4, .le-entreprises.le-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
    .le-ecrits.le-cols-3, .le-ecrits.le-cols-4, .le-entreprises.le-cols-3, .le-entreprises.le-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .le-ecrits, .le-entreprises { gap: 22px; }
    .le-ecrits.le-cols-2, .le-ecrits.le-cols-3, .le-ecrits.le-cols-4, .le-entreprises.le-cols-2, .le-entreprises.le-cols-3, .le-entreprises.le-cols-4 { grid-template-columns: 1fr; }
}

/* RESPONSIVE GLOBAL */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-portrait { max-width: 380px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 400px; margin: 0 auto; aspect-ratio: 4/5; }
  .cv-header { grid-template-columns: 1fr; gap: 24px; }
  .cv-job { grid-template-columns: 1fr; gap: 8px; }
  .pillars, .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 50px 0 70px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .pillars, .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-highlights { grid-template-columns: 1fr; }
  .cta-final { padding: 56px 28px; margin-bottom: 60px; }
}
@media (max-width: 580px) {
  .hero h1 { font-size: 2.3rem; }
  .hero-badge-float { left: 0; bottom: -20px; font-size: 0.75rem; padding: 12px 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-meta { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
