/* === Thème EFREI Blanc & Bleu — par ChatGPT pour Paul Cohen === */

/* ============================================================= */
/* === COULEURS & BASE ========================================= */
/* ============================================================= */

:root {
  --efrei-primary: #1677ff;
  --efrei-primary-dark: #0f5cd1;
  --efrei-neon: #00c8ff;
  --efrei-ink: #0f172a;
  --efrei-muted: #64748b;
  --efrei-line: #e5e7eb;
  --efrei-surface: #ffffff;
  --efrei-bg: #f8fafc;
}

body {
  background: var(--efrei-bg);
  color: var(--efrei-ink);
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animation douce de fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

//* === HEADER PLUS GRAND + STYLE VERRE DÉPOLI === */
/* === HEADER PLUS GRAND + STYLE VERRE DÉPOLI === */
header, .wp-site-blocks header, header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid #e5e7eb;
  height: 110px; /* 🔥 hauteur du header */
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Logo plus grand et bien centré */
.wp-block-site-logo img {
  height: 54px; /* 🔥 agrandis ici ton logo */
  width: auto;
  margin-left: 30px;
}

/* Liens de navigation */
.wp-block-navigation a {
  color: #0f172a;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.2s ease;
}
.wp-block-navigation a:hover {
  color: #1677ff;
}

/* Alignement parfait entre logo et menu */
.wp-block-navigation {
  margin-left: auto;
  margin-right: 40px;
}

/* Ajoute un léger effet quand on scrolle */
header.scrolled {
  background: rgba(255,255,255,0.9);
  height: 90px; /* header rétréci au scroll */
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Empêcher le défilement horizontal */
body {
  overflow-x: hidden;
}

/* Overlay bleu transparent */
.efrei-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,59,145,0.65), rgba(11,59,145,0.35));
  z-index: 1;
}

/* Contenu du Hero */
.efrei-hero__content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: fadeInHero 1.3s ease forwards;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

.efrei-hero__content h1 {
  font-size: 80px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
}

.efrei-hero__content p {
  font-size: 26px;
  color: #dce9ff;
  margin: 0;
}

/* Effet parallax */
.efrei-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.08);
  z-index: 0;
  transition: transform .4s ease;
}
.efrei-hero:hover::before { transform: scale(1.12); }

/* ============================================================= */
/* === BOUTONS NÉON ============================================ */
/* ============================================================= */

.efrei-neon-btn {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--efrei-primary-dark), var(--efrei-primary));
  box-shadow: 0 0 15px var(--efrei-neon), 0 0 40px rgba(22,119,255,0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.efrei-neon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--efrei-neon), 0 0 60px rgba(22,119,255,0.6);
}

/* ============================================================= */
/* === FEATURES / AVANTAGES ==================================== */
/* ============================================================= */

.efrei-section { padding: 64px 0; }
.efrei-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.efrei-feature {
  background: var(--efrei-surface);
  border: 1px solid var(--efrei-line);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.efrei-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(22,119,255,0.25);
}
.efrei-feature h3 {
  color: var(--efrei-primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.efrei-feature p { color: var(--efrei-muted); }

/* Responsive */
@media (max-width: 900px) { .efrei-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .efrei-features { grid-template-columns: 1fr; } }

/* ============================================================= */
/* === SECTION SPLIT =========================================== */
/* ============================================================= */

.efrei-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1150px;
  margin: 70px auto;
  padding: 0 24px;
}
.efrei-split__media img {
  width: 100%;
  border-radius: 18px;
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg,#1677ff,#62a8ff) border-box;
  box-shadow: 0 14px 40px rgba(22,119,255,0.25);
}
.efrei-split__content h2 {
  font-size: 36px;
  color: var(--efrei-primary-dark);
}
.efrei-split__content p {
  color: var(--efrei-muted);
  margin-bottom: 16px;
}

/* ============================================================= */
/* === STATS / TEAM / CTA ====================================== */
/* ============================================================= */

.efrei-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 18px;
  text-align: center;
  max-width: 950px;
  margin: 60px auto;
}
.efrei-stat {
  background: var(--efrei-surface);
  border: 1px solid var(--efrei-line);
  border-radius: 16px;
  padding: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.efrei-stat:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(22,119,255,0.15); }
.efrei-stat__num { font-size: 38px; font-weight: 800; color: var(--efrei-primary); }
.efrei-stat__label { color: var(--efrei-muted); }

/* Équipe */
.efrei-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}
.efrei-card {
  background: var(--efrei-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(22,119,255,0.1);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.efrei-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(22,119,255,0.25); }
.efrei-card img { width: 100%; height: 240px; object-fit: cover; }
.efrei-card__role { color: var(--efrei-primary); font-weight: 700; margin: 6px 0; }
.efrei-card__bio { color: var(--efrei-muted); }

/* CTA */
.efrei-cta {
  background: linear-gradient(135deg,#1677ff,#62a8ff);
  color:#fff;
  text-align:center;
  border-radius:22px;
  padding:80px 0;
  margin:80px auto;
  max-width:1000px;
  box-shadow:0 15px 45px rgba(22,119,255,.25);
}
.efrei-cta h3 { font-size:32px; margin-bottom:18px; }

/* ============================================================= */
/* === ÉLÉMENTS HIGH TECH SUPPLÉMENTAIRES ====================== */
/* ============================================================= */

/* Particules bleues animées dans le hero */
.efrei-hero::after {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 30% 70%, rgba(0,200,255,.1), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(22,119,255,.1), transparent 50%);
  mix-blend-mode: screen;
  animation: pulseGlow 6s ease-in-out infinite alternate;
  z-index:1;
}
@keyframes pulseGlow {
  from { opacity:.6; transform:scale(1); }
  to { opacity:1; transform:scale(1.05); }
}

/* Scroll Reveal */
.reveal{opacity:0; transform:translateY(26px) scale(.98); transition:opacity .7s ease, transform .7s ease}
.reveal--show{opacity:1; transform:translateY(0) scale(1)}

/* === SECTION PRÉSENTATION ÉQUIPE (haute qualité visuelle) === */
.efrei-profile {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: var(--efrei-bg, #f8fafc);
}

/* Carte principale */
.efrei-profile__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(22, 119, 255, 0.15);
  backdrop-filter: blur(12px) saturate(140%);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Animation légère au survol */
.efrei-profile__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(22, 119, 255, 0.25);
}

/* === IMAGE À GAUCHE === */
.efrei-profile__image {
  flex: 1;
  min-width: 40%;
  overflow: hidden;
}

.efrei-profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 2px solid rgba(22, 119, 255, 0.15);
}

/* === TEXTE À DROITE === */
.efrei-profile__content {
  flex: 1.2;
  padding: 40px 60px;
}

.efrei-profile__content h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.efrei-profile__content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1677ff;
  margin-bottom: 18px;
}

.efrei-profile__content p {
  font-size: 17px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* === BOUTON MODERNE === */
.efrei-profile__btn {
  display: inline-block;
  background: linear-gradient(135deg, #1677ff, #62a8ff);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.25);
}
.efrei-profile__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .efrei-profile__card {
    flex-direction: column;
  }
  .efrei-profile__image img {
    border-right: none;
    border-bottom: 2px solid rgba(22, 119, 255, 0.15);
  }
  .efrei-profile__content {
    padding: 30px 25px;
    text-align: center;
  }
}


.efrei-map-card{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:22px;
  box-shadow:0 12px 30px rgba(2,6,23,.08);
  max-width:1100px;
  margin:28px auto;
}
.efrei-map-info h3{margin:0 0 6px;font-size:22px;color:#0f172a;}
.efrei-map-info p{margin:6px 0 14px;color:#475569;line-height:1.5;}
.efrei-map-info small{color:#64748b;}
.efrei-map-embed iframe{
  width:100%;
  height:280px;
  border:0;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(22,119,255,.12);
}
.efrei-map-btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#1677ff,#62a8ff);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  transition:transform .15s ease,box-shadow .2s ease;
  box-shadow:0 10px 20px rgba(22,119,255,.25);
}
.efrei-map-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(22,119,255,.35);
}
@media (max-width: 900px){
  .efrei-map-card{grid-template-columns:1fr;}
  .efrei-map-embed iframe{height:240px;}
}