/*
Theme Name: hello-elementor-child
Template: hello-elementor
Version: 1.2
Author: Olivier Ratafitasoa
Description: Theme enfant de "hello elementor"
*/

:root {
  --bg: #ffffff;
  --bg-alt: #f0f3f8;
  --fg: #1B2A4A;
  --fg-light: #3a4d6e;
  --muted: #6b7a94;
  --accent: #2E5090;
  --accent-light: #e8eef7;
  --white: #ffffff;
  --border: rgba(27, 42, 74, 0.1);
  --border-strong: rgba(27, 42, 74, 0.2);
  --tricolor-blue: #0055a4;
  --tricolor-red: #ef4135;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-text: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --t-display: clamp(2.75rem, 7vw, 5.5rem);
  --t-h1: clamp(2rem, 5vw, 3.5rem);
  --t-h2: clamp(1.5rem, 3.5vw, 2.5rem);
  --t-h3: clamp(1.125rem, 2vw, 1.5rem); 
  --t-body: clamp(1rem, 1.1vw, 1.125rem);
  --t-small: 0.875rem;

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-6: 3rem; --s-8: 5rem; --s-12: 8rem; --s-16: 12rem;

  --max-w: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg) !important;
  color: var(--fg) !important;
  font-family: var(--font-text) !important;
  font-size: var(--t-body) !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased !important;
  overflow-x: hidden !important;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Header ── */
.header-site {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: var(--s-2);
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out-expo);
}
.header-site.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.header-logo { display: flex; align-items: center; gap: var(--s-2); }
.header-logo img { height: 48px; width: auto; }
.header-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--fg); line-height: 1.2; }
.header-logo-sub { font-family: var(--font-text); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; gap: var(--s-3); align-items: center; }
.nav a { font-size: var(--t-small); font-weight: 500; color: var(--fg-light); transition: color 0.3s; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.4s var(--ease-out-expo); }
.nav a:hover::after { width: 100%; }
.nav-cta { background: var(--accent) !important; color: var(--white) !important; padding: 8px 20px; border-radius: 999px; transition: background 0.3s, transform 0.3s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--fg) !important; transform: translateY(-1px); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: all 0.3s; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: var(--s-4); gap: var(--s-3); border-bottom: 1px solid var(--border); }
  .nav.is-open { display: flex; }
  .nav a::after { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 12px 28px; font-weight: 500; font-size: var(--t-body);
  border-radius: 999px; transition: all 0.4s var(--ease-out-expo); cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--fg); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-white { background: var(--white); color: var(--accent); }
.btn-white:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 120px; padding-bottom: var(--s-8);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(165deg, var(--bg) 0%, var(--accent-light) 40%, var(--bg) 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-size: var(--t-small); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}
.hero-title {
  font-family: var(--font-display); font-size: var(--t-display);
  line-height: 1; letter-spacing: -0.02em; font-weight: 700;
  margin-bottom: var(--s-4); color: var(--fg);
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  max-width: 55ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--fg-light); margin-bottom: var(--s-6); line-height: 1.7;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.6s forwards;
}
.hero-cta {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

/* ── Tricolor bar ── */
.tricolor { display: flex; height: 4px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--tricolor-blue); }
.tricolor span:nth-child(2) { background: var(--white); border-top: 1px solid var(--border); }
.tricolor span:nth-child(3) { background: var(--tricolor-red); }

/* ── Section base ── */
.section { padding-block: var(--s-12); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--fg); color: var(--white); }
.section-head { text-align: center; margin-bottom: var(--s-8); }
.section-eyebrow {
  display: inline-block; font-size: var(--t-small); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2);
}
.section-title {
  font-family: var(--font-display); font-size: var(--t-h1);
  line-height: 1.1; letter-spacing: -0.015em; font-weight: 700;
}
.section-sub { max-width: 60ch; margin-inline: auto; color: var(--muted); margin-top: var(--s-2); }

/* ── Messages clés ── */
.messages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.message-card {
  padding: var(--s-4) var(--s-3); border: 1px solid var(--border);
  border-radius: 12px; background: var(--white);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.message-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(27,42,74,0.08); }
.message-num {
  font-family: var(--font-display); font-size: 2.5rem;
  color: var(--accent); font-weight: 700; margin-bottom: var(--s-2); line-height: 1;
}
.message-card h3 { font-size: var(--t-h3); font-weight: 600; margin-bottom: var(--s-2); line-height: 1.3; }
.message-card p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 768px) { .messages-grid { grid-template-columns: 1fr; } }

/* ── Axes du projet ── */
.axes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.axe-card {
  padding: var(--s-4); border-radius: 12px; background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.axe-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(27,42,74,0.06); }
.axe-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--s-3);
  font-size: 1.4rem; color: var(--accent);
}
.axe-card h3 { font-size: var(--t-h3); font-weight: 600; margin-bottom: var(--s-2); }
.axe-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.axe-card.full { grid-column: 1 / -1; }
@media (max-width: 768px) { .axes-grid { grid-template-columns: 1fr; } }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
  line-height: 1; color: var(--accent); margin-bottom: var(--s-1);
}
.stat-label { font-size: var(--t-small); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }

/* ── Team ── */
.team-president {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-6);
  align-items: center; margin-bottom: var(--s-8);
  padding: var(--s-6); border-radius: 16px; background: var(--accent-light);
}
.team-president-photo {
 background: url(https://www.ffhg-2026.fr/wp-content/uploads/2026/05/jean-luc-blache.jpeg);
 background-size: cover;
  width: 100%; aspect-ratio: 1; border-radius: 12px;
  /*background: var(--border);*/ display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--accent);
}
.team-president h3 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 700; margin-bottom: var(--s-1); }
.team-president .role { color: var(--accent); font-weight: 500; margin-bottom: var(--s-3); }
.team-president p { color: var(--fg-light); line-height: 1.7; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.team-member {
  cursor: pointer;
  text-align: center; padding: var(--s-3); border-radius: 12px;
  border: 1px solid var(--border); transition: transform 0.3s var(--ease-out-expo);
}
.team-member:hover { transform: translateY(-4px); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-light); margin: 0 auto var(--s-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent); font-weight: 600;overflow:hidden;
}
.team-member h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.team-member .origin { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 768px) {
  .team-president { grid-template-columns: 1fr; text-align: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Manifeste ── */
.manifesto {
  padding-block: var(--s-12); border-block: 1px solid var(--border);
  text-align: center;
}
.manifesto-text {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.3; letter-spacing: -0.01em; max-width: 28ch;
  margin-inline: auto; font-weight: 700;
}
.manifesto-text em { font-style: normal; color: var(--accent); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--border-strong);
}
.timeline-item { position: relative; margin-bottom: var(--s-6); }
.timeline-dot {
  position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date { font-size: var(--t-small); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.timeline-item h3 { font-size: var(--t-h3); font-weight: 600; margin-bottom: 4px; }
.timeline-item p { color: var(--muted); }

/* ── Article / Lettres ── */
.articles-list { display: grid; gap: var(--s-4); }
.article-card {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4);
  padding: var(--s-4); border-radius: 12px; border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(27,42,74,0.06); }
.article-badge {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.article-card h3 { font-size: var(--t-h3); font-weight: 600; margin-bottom: 4px; }
.article-meta { font-size: var(--t-small); color: var(--muted); margin-bottom: 8px; }
.article-card p { color: var(--fg-light); font-size: 0.95rem; }

/* ── Contact / Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.form-group { margin-bottom: var(--s-3); }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: var(--t-small); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-family: var(--font-text); font-size: var(--t-body);
  background: var(--white); color: var(--fg); transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info { padding: var(--s-6); background: var(--accent); color: var(--white); border-radius: 16px; }
.contact-info h3 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 700; margin-bottom: var(--s-4); }
.contact-info-item { margin-bottom: var(--s-3); }
.contact-info-item strong { display: block; font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin-bottom: 4px; }
.contact-info a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── CTA Final ── */
.cta-final {
  padding-block: var(--s-12); text-align: center;
  background: var(--fg); color: var(--white);
}
.cta-final h2 {
  font-family: var(--font-display); font-size: var(--t-h1);
  line-height: 1.1; font-weight: 700; margin-bottom: var(--s-2);
}
.cta-final p { color: rgba(255,255,255,0.7); margin-bottom: var(--s-4); max-width: 50ch; margin-inline: auto; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--s-6) var(--s-4); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-4); }
.footer-brand { display: flex; align-items: center; gap: var(--s-2); }
.footer-brand img { height: 56px; }
.footer-col h4 {
  font-size: var(--t-small); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2);
}
.footer-col p, .footer-col a { font-size: var(--t-small); color: var(--fg-light); line-height: 1.8; }
.footer-col a:hover { color: var(--accent); }
.footer-bot {
  display: flex; justify-content: space-between; font-size: var(--t-small);
  color: var(--muted); padding-top: var(--s-3); border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; gap: 4px; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
button.profil { font-size: 14px; color: var(--accent); }
button.profil:hover { color: var(--fg); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.hidden { display: none; }
.show { display: block !important; }
.popup-overlay {
   position: fixed;
    inset: 0;
    background: rgb(181 181 181 / 11%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
}
.popup-avatar {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    background: transparent;

    cursor: pointer;
}

/* les 2 barres de la croix */

.popup-close::before,
.popup-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: white;
    transform-origin: center;
}

.popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--fg);
}
.popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
     background: var(--fg);
}

div#popupInfo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 588px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
    background:var(--bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
}
div#popupJlInfo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
    background:var(--bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
}
/* largeur scrollbar */

::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--fg);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg);
}

.popupContent {
    display: flex;
    flex-direction: column;
    gap:15px;
}
p.job {
    font-style: italic;
}
p.prensentation {
    quotes: "« " " »";
}
p.prensentation::before {
    content: open-quote;
}

p.prensentation::after {
    content: close-quote;
}
/* ── Page header (sous-pages) ── */
.page-header {
  padding-top: 140px; padding-bottom: var(--s-8);
  background: linear-gradient(165deg, var(--bg) 0%, var(--accent-light) 60%, var(--bg) 100%);
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display); font-size: var(--t-h1);
  font-weight: 700; margin-bottom: var(--s-2);
}
.page-header p { color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: var(--s-4); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-8 { margin-bottom: var(--s-8); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


div.pum-container.popmake {
    border-radius: 15px;
    border: 1px solid rgb(255 255 255 / 2%);
}
button.pum-close.popmake-close {
    border-radius: 0 15px 0 0 !important;
}

figure.wp-block-image {
    margin-bottom: 20px;
}

figure.wp-block-image img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 133px;
}
.pum-content.popmake-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

p.wp-block-paragraph {
    color: var(--fg);
}

p.wp-block-paragraph strong {
    font-size: 1.125rem;
}
p.wp-block-paragraph:last-child {
    margin-top: -10px;
}