/* =========================================================
   FCPE Collège Les Goussons — feuille de style
   Charte graphique reprise du site national fcpe.asso.fr
   ========================================================= */

:root {
  /* Couleurs officielles FCPE */
  --fcpe-green: #64b055;
  --fcpe-green-dark: #458945;
  --fcpe-green-light: #eaf5e7;
  --fcpe-navy: #293075;
  --fcpe-navy-light: #373389;
  --fcpe-orange: #f1a93a;
  --fcpe-pink: #d84f61;

  --ink: #2b2b2b;
  --ink-soft: #5a5f66;
  --line: #e3e2e2;
  --bg: #ffffff;
  --bg-alt: #f7f9f6;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(41, 48, 117, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(41, 48, 117, 0.15);

  --font-head: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-tag: "Amatic SC", cursive;

  --container: 1140px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--fcpe-navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Utilitaires ---------- */
.eyebrow {
  font-family: var(--font-tag);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fcpe-pink);
  display: inline-block;
  margin-bottom: 0.2em;
  letter-spacing: 0.5px;
}
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--fcpe-orange); color: #3a2500; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #e69a26; }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-navy { background: var(--fcpe-navy); color: var(--white); }
.btn-navy:hover { background: var(--fcpe-navy-light); }
.btn-green { background: var(--fcpe-green); color: var(--white); }
.btn-green:hover { background: var(--fcpe-green-dark); }
.btn-block { width: 100%; justify-content: center; }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill-green { background: var(--fcpe-green-light); color: var(--fcpe-green-dark); }
.pill-orange { background: #fdf1de; color: #a26317; }
.pill-pink { background: #fbe8ea; color: var(--fcpe-pink); }

.notice {
  border: 2px dashed var(--fcpe-orange);
  background: #fffaf0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #7a4c0e;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; color: var(--fcpe-navy); font-weight: 800; }
.brand-text span { font-size: 0.78rem; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--fcpe-navy); background: var(--fcpe-green-light); }
.main-nav a.active { color: var(--fcpe-navy); }
.main-nav a.active { position: relative; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 3px;
  background: var(--fcpe-orange);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 8px;
  background: var(--fcpe-green);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--fcpe-green-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fcpe-navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--fcpe-navy) 0%, var(--fcpe-navy-light) 55%, #3a3a9a 100%);
  color: var(--white);
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: var(--fcpe-green);
  opacity: 0.25;
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  left: -80px; bottom: -140px;
  width: 300px; height: 300px;
  background: var(--fcpe-orange);
  opacity: 0.2;
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow { color: var(--fcpe-orange); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5em;
}
.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  background: linear-gradient(160deg, var(--fcpe-navy) 0%, var(--fcpe-navy-light) 100%);
  color: var(--white);
  padding: 64px 0 74px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--fcpe-green); opacity: 0.22;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.5rem); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; position: relative; z-index: 1; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--fcpe-orange); font-weight: 600; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon-badge { margin-bottom: 16px; }

.photo-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; }
.photo-gallery figure { margin: 0; flex: 1 1 180px; max-width: 430px; }
.photo-gallery img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--fcpe-green-light);
  color: var(--fcpe-green-dark);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.navy { background: #eceafc; color: var(--fcpe-navy); }
.icon-badge.orange { background: #fdf1de; color: #a26317; }
.icon-badge.pink { background: #fbe8ea; color: var(--fcpe-pink); }

.card-accent { border-top: 4px solid var(--fcpe-green); }
.card-accent.navy { border-top-color: var(--fcpe-navy); }
.card-accent.orange { border-top-color: var(--fcpe-orange); }
.card-accent.pink { border-top-color: var(--fcpe-pink); }

/* Highlight callouts (home) */
.highlight-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.highlight-card {
  border-radius: var(--radius);
  padding: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.highlight-card.green { background: linear-gradient(135deg, var(--fcpe-green), var(--fcpe-green-dark)); }
.highlight-card.orange { background: linear-gradient(135deg, var(--fcpe-orange), #c9852a); }
.highlight-card h3 { color: var(--white); font-size: 1.3rem; }
.highlight-card p { color: rgba(255,255,255,0.92); }
.highlight-card .btn-outline { margin-top: 10px; }
.highlight-meta { display: flex; gap: 18px; margin: 16px 0; flex-wrap: wrap; }
.highlight-meta div { font-size: 0.85rem; }
.highlight-meta strong { display: block; font-size: 1rem; }

/* Values grid */
.value-card { text-align: center; }
.value-card .icon-badge { margin: 0 auto 14px; }

/* Timeline (actions / calendrier) */
.timeline { position: relative; padding-left: 34px; border-left: 3px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -43px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--fcpe-orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--fcpe-orange);
}
.timeline-item .date-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fcpe-navy);
  background: var(--fcpe-green-light);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.timeline-item p { color: var(--ink-soft); margin-bottom: 0; }

/* Bureau (team) */
.team-card { text-align: center; padding: 30px 22px; }
.team-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--fcpe-navy), var(--fcpe-navy-light));
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
}
.team-card .role { color: var(--fcpe-pink); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.team-card .name { font-weight: 700; color: var(--fcpe-navy); font-size: 1.02rem; }

/* Contact links list */
.link-group h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fcpe-pink);
  margin-bottom: 14px;
}
.link-list li { border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: none; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.link-list a:hover { color: var(--fcpe-navy); padding-left: 6px; }
.link-list a svg { opacity: 0.5; flex-shrink: 0; }

.contact-box {
  background: linear-gradient(135deg, var(--fcpe-navy), var(--fcpe-navy-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-box h3 { color: var(--white); }
.contact-box .email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
.contact-box .email:hover { background: rgba(255,255,255,0.2); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--fcpe-green), var(--fcpe-navy));
  border-radius: var(--radius);
  padding: 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }

/* Footer */
.site-footer { background: var(--fcpe-navy); color: rgba(255,255,255,0.85); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--fcpe-orange); }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-2, .highlight-grid { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; flex-shrink: 0; }
  .brand-text span { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 30px;
    gap: 2px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
