/* CIFORS — page d’accueil. Chargée uniquement sur la homepage. */

/* ============ Rythme des fonds ============ */
.section--tint { background: var(--c-bg-tint); }
.section--dark {
  background: linear-gradient(150deg, #041a49 0%, #072868 48%, #0c3a92 100%);
  color: #d7e2f7;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--c-orange-600); }

.grid-1 { grid-template-columns: minmax(0, 620px); justify-content: center; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ============ 1. Hero ============ */
.hero2 {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 5.5vw, 88px) clamp(48px, 6vw, 100px);
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(17, 70, 168, .10), transparent 62%),
    radial-gradient(680px 480px at -8% 108%, rgba(72, 146, 33, .09), transparent 60%),
    var(--c-white);
}
.hero2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.hero2__label {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--c-navy-600);
  background: var(--c-navy-050); border-radius: var(--r-pill);
  padding: 8px 16px; margin-bottom: var(--s-6);
}
.hero2__label i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }

.hero2 h1 {
  font-size: clamp(2.35rem, 4.1vw + .9rem, 4rem);
  line-height: 1.05; letter-spacing: -.032em; margin-bottom: var(--s-6);
}
.hero2 h1 em { font-style: normal; color: var(--c-green); }
.hero2 h1 b  { font-weight: 800; color: var(--c-orange); }

.hero2__lead {
  font-size: clamp(1.02rem, .4vw + .95rem, 1.19rem);
  color: var(--c-text-soft); max-width: 52ch; margin-bottom: var(--s-8);
}
.hero2__actions { margin-bottom: var(--s-8); }
.hero2 .btn { padding: 15px 28px; font-size: var(--fs-base); }

.hero2__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8);
  padding-top: var(--s-6); border-top: 1px solid var(--c-border);
}
.hero2__fact {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-soft);
}
.hero2__fact svg { width: 18px; height: 18px; flex: none; }
.hero2__fact:nth-child(1) svg { color: var(--c-navy-600); }
.hero2__fact:nth-child(2) svg { color: var(--c-green); }
.hero2__fact:nth-child(3) svg { color: var(--c-orange); }

/* Visuel + cartes flottantes */
.hero2__visual { position: relative; }
.hero2__frame {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(7, 40, 104, .20);
  aspect-ratio: 6 / 7;
}
.hero2__frame img { width: 100%; height: 100%; object-fit: cover; }

.hero2__card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--c-border-soft); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(7, 40, 104, .16);
  padding: 12px 16px; max-width: 232px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-navy);
  line-height: 1.35;
}
.hero2__card span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hero2__card svg { width: 17px; height: 17px; color: #fff; }
.hero2__card--a { top: 9%;  left: -34px; }
.hero2__card--b { bottom: 22%; right: -30px; }
.hero2__card--c { bottom: 5%; left: -22px; }
.hero2__card--a span { background: var(--c-navy); }
.hero2__card--b span { background: var(--c-orange); }
.hero2__card--c span { background: var(--c-green); }

@media (max-width: 1180px) { .hero2__card { max-width: 200px; } .hero2__card--a { left: -14px; } .hero2__card--b { right: -12px; } }
@media (max-width: 960px) {
  .hero2__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero2__frame { aspect-ratio: 16 / 12; max-width: 560px; }
  .hero2__card--a { left: 10px; } .hero2__card--b { right: 10px; } .hero2__card--c { display: none; }
}
@media (max-width: 620px) {
  .hero2__card { display: none; }
  .hero2__frame { aspect-ratio: 4 / 3; }
  .hero2 .btn { width: 100%; justify-content: center; }
  .hero2__actions { display: grid; gap: 10px; }
}

/* ============ 2. Bande publics ============ */
.trust { border-block: 1px solid var(--c-border-soft); background: var(--c-white); padding-block: var(--s-8); }
.trust__inner { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; justify-content: center; }
.trust__label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-text-faint); white-space: nowrap;
}
.trust__list { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: center; }
.trust__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-navy);
}
.trust__item svg { width: 17px; height: 17px; color: var(--c-green); flex: none; }
.trust__item:nth-child(even) svg { color: var(--c-navy-600); }
@media (max-width: 720px) { .trust__label { display: none; } .trust__item { font-size: var(--fs-xs); } }

/* ============ 3. Formations phares ============ */
.fcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--c-border); border-radius: 18px;
  box-shadow: var(--sh-1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.fcard:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(7, 40, 104, .13); border-color: #cfdaec; }
.fcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-navy); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fcard:hover .fcard__media img { transform: scale(1.05); }
.fcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 22, 60, .58), rgba(4, 22, 60, 0) 52%);
}
.fcard__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255, 255, 255, .95); color: var(--c-navy);
  font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.fcard__price {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(4, 22, 60, .5);
}
.fcard__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.fcard__body h3 { font-size: 1.24rem; margin: 0; line-height: 1.25; }
.fcard__body h3 a { color: inherit; text-decoration: none; }
.fcard:hover .fcard__body h3 a { color: var(--c-navy-600); }
.fcard__text { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }
.fcard__meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--fs-xs); color: var(--c-text-soft);
  padding-top: var(--s-4); margin-top: auto; border-top: 1px solid var(--c-border-soft);
}
.fcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.fcard__meta svg { width: 15px; height: 15px; color: var(--c-green); flex: none; }
.fcard__link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: var(--s-4);
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--c-navy); text-decoration: none;
}
.fcard__link svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.fcard:hover .fcard__link svg { transform: translateX(4px); }
.fcard__link:hover { color: var(--c-orange); }

/* ============ 4. Pourquoi CIFORS ============ */
.why2 { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
@media (max-width: 940px) { .why2 { grid-template-columns: 1fr; } }
.why2__media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 48px rgba(7, 40, 104, .16); aspect-ratio: 4 / 3; }
.why2__media img { width: 100%; height: 100%; object-fit: cover; }
.why2__points { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.why2__points li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; margin: 0; }
.why2__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; }
.why2__ico svg { width: 21px; height: 21px; color: #fff; }
.why2__points li:nth-child(1) .why2__ico { background: var(--c-navy); }
.why2__points li:nth-child(2) .why2__ico { background: var(--c-green); }
.why2__points li:nth-child(3) .why2__ico { background: var(--c-orange); }
.why2__points li:nth-child(4) .why2__ico { background: var(--c-navy-600); }
.why2__points h3 { font-size: 1.06rem; margin: 0 0 4px; }
.why2__points p { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }

/* ============ 5. Section immersive ============ */
.immersive { position: relative; overflow: hidden; color: #dbe5f8; }
.immersive__bg { position: absolute; inset: 0; }
.immersive__bg img { width: 100%; height: 100%; object-fit: cover; }
.immersive__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4, 22, 60, .95) 8%, rgba(7, 40, 104, .82) 46%, rgba(7, 40, 104, .38) 100%);
}
.immersive__inner { position: relative; padding-block: clamp(64px, 8vw, 116px); max-width: 660px; }
.immersive h2 { color: #fff; }
.immersive p { color: #c2d1ee; font-size: var(--fs-lg); }
.immersive__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s-6) 0 var(--s-8); }
.immersive__tags span {
  font-size: var(--fs-xs); font-weight: 600; padding: 7px 15px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .28); color: #e6edfb;
}

/* ============ 6. Domaines ============ */
.dom {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: var(--s-6); background: #fff; text-decoration: none; overflow: hidden;
  border: 1px solid var(--c-border); border-radius: 16px;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.dom::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--dom-c, var(--c-navy)); opacity: 0;
  transition: opacity .24s var(--ease);
}
.dom:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 40, 104, .11); border-color: #cfdaec; }
.dom:hover::before { opacity: 1; }
.dom__ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-navy-050);
  background: color-mix(in srgb, var(--dom-c, var(--c-navy)) 12%, #fff);
  color: var(--dom-c, var(--c-navy)); margin-bottom: 6px;
  transition: background-color .24s var(--ease), color .24s var(--ease);
}
.dom:hover .dom__ico { background: var(--dom-c, var(--c-navy)); color: #fff; }
.dom__ico svg { width: 23px; height: 23px; }
.dom h3 { font-size: 1.1rem; margin: 0; }
.dom p { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }
.dom__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: var(--s-4);
  font-size: var(--fs-xs); font-weight: 600; color: var(--dom-c, var(--c-navy));
}
.dom__foot svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.dom:hover .dom__foot svg { transform: translateX(4px); }

/* ============ 7. Activités : composition asymétrique ============ */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.acts__lead {
  grid-column: span 1; grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-8); border-radius: 18px; color: #fff;
  background: linear-gradient(160deg, #0b3689 0%, #072868 55%, #041d4d 100%);
  box-shadow: 0 18px 44px rgba(7, 40, 104, .18);
}
.acts__lead .why2__ico { background: rgba(255, 255, 255, .16); margin-bottom: var(--s-5); }
.acts__lead h3 { color: #fff; font-size: 1.3rem; }
.acts__lead p { color: #bccbeb; font-size: var(--fs-sm); margin: 0; }
.act {
  padding: var(--s-6); background: #fff; border: 1px solid var(--c-border); border-radius: 16px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.act:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.act__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s-4); }
.act__ico svg { width: 19px; height: 19px; color: #fff; }
.act:nth-of-type(2n) .act__ico { background: var(--c-green); }
.act:nth-of-type(2n+1) .act__ico { background: var(--c-navy-600); }
.act:nth-of-type(5n) .act__ico { background: var(--c-orange); }
.act h3 { font-size: 1.03rem; margin: 0 0 6px; }
.act p { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }
@media (max-width: 1024px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acts__lead { grid-row: span 1; grid-column: span 2; } }
@media (max-width: 620px) { .acts { grid-template-columns: 1fr; } .acts__lead { grid-column: span 1; } }

/* ============ 8-9. Événements et actualités ============ */
.ecard { display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--sh-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.ecard:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.ecard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-navy); }
.ecard__media img { width: 100%; height: 100%; object-fit: cover; }
.ecard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; text-align: center;
  background: #fff; border-radius: 12px; padding: 8px 12px; min-width: 62px;
  box-shadow: 0 6px 18px rgba(7, 40, 104, .2); font-family: var(--f-display);
}
.ecard__badge b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--c-navy); line-height: 1; }
.ecard__badge i { display: block; font-style: normal; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--c-orange); margin-top: 3px; }
.ecard__body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ecard__body h3 { font-size: 1.12rem; margin: 0; }
.ecard__body h3 a { color: inherit; text-decoration: none; }
.ecard__body h3 a:hover { color: var(--c-navy-600); }
.ecard__body p { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; }
.ecard .meta { margin-top: auto; padding-top: var(--s-3); }
.ecard__cat {
  align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--c-green);
  text-transform: uppercase; letter-spacing: .07em;
}

/* ============ 10. Partenaires : bande compacte ============ */
.pstrip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-4) var(--s-8); padding: var(--s-6) var(--s-8);
  background: #fff; border: 1px solid var(--c-border); border-radius: 18px;
}
.pstrip__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-text-faint); }
.pstrip__item { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-navy); }
.pstrip__item img { max-height: 46px; width: auto; }
.pstrip__item b { font-family: var(--f-display); font-size: 1.02rem; font-weight: 700; }
.pstrip__item small { display: block; font-size: var(--fs-xs); color: var(--c-text-soft); font-weight: 400; }
@media (max-width: 620px) { .pstrip { flex-direction: column; text-align: center; gap: var(--s-4); } }

/* ============ 11. Témoignages ============ */
.quote { position: relative; padding: var(--s-8) var(--s-6) var(--s-6); background: #fff;
  border: 1px solid var(--c-border); border-radius: 16px; margin: 0; }
.quote::before {
  content: "\\201C"; position: absolute; top: 4px; left: 22px;
  font-family: var(--f-display); font-size: 4.2rem; font-weight: 800;
  color: var(--c-navy-050); line-height: 1;
}
.quote p { position: relative; font-size: var(--fs-base); color: var(--c-text); margin: 0 0 var(--s-5); }
.quote footer strong { display: block; font-family: var(--f-display); color: var(--c-navy); font-size: var(--fs-sm); }
.quote footer span { font-size: var(--fs-xs); color: var(--c-text-soft); }

/* ============ 12. CTA final ============ */
.cta2 { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #072868 0%, #0b3689 52%, #10429f 100%); }
.cta2::before, .cta2::after { content: ""; position: absolute; border-radius: 50%; }
.cta2::before { width: 520px; height: 520px; left: -140px; bottom: -260px; border: 1.5px solid rgba(255, 255, 255, .10); }
.cta2::after  { width: 400px; height: 400px; right: -110px; top: -180px; border: 1.5px solid rgba(243, 114, 11, .30); }
.cta2__inner { position: relative; padding-block: clamp(56px, 7vw, 96px); text-align: center; max-width: 720px; margin-inline: auto; }
.cta2 h2 { color: #fff; font-size: clamp(1.85rem, 2.3vw + 1.2rem, 2.7rem); }
.cta2 p { color: #c3d2ef; font-size: var(--fs-lg); margin-bottom: var(--s-8); }
.cta2 .btn-row { justify-content: center; }
.cta2__note { margin-top: var(--s-6); font-size: var(--fs-xs); color: #9db1d9; }
@media (max-width: 560px) { .cta2 .btn { width: 100%; justify-content: center; } .cta2 .btn-row { display: grid; gap: 10px; } }

/* ============ Animations ============ */
.rise { opacity: 0; transform: translateY(14px); }
.is-in.rise, .rise.is-in { opacity: 1; transform: none; }
.rise { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise:nth-child(2) { transition-delay: .07s; }
.rise:nth-child(3) { transition-delay: .14s; }
.rise:nth-child(4) { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }
