/* ==========================================================================
   AEDIFIMMO — Feuille de style
   Palette extraite du logo : navy #1F4061, gris #666666
   ========================================================================== */

:root {
  --navy: #1F4061;
  --navy-dark: #152C45;
  --navy-darker: #0F1F30;
  --navy-light: #3C6794;
  --navy-tint: #EBF0F5;
  --grey: #666666;
  --grey-light: #9A9A9A;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --text: #22252B;
  --text-muted: #5A5F68;
  --border: #E4E6EA;
  --radius: 4px;
  --max-width: 1140px;
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-darker);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-light);
  margin-bottom: 0.8em;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand__logo {
  height: 34px;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-darker);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--navy);
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-darker);
  white-space: nowrap;
}

.nav__phone svg { flex-shrink: 0; }

.nav__cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.contact__intro {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-darker);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 110px 0 100px;
}

.hero__inner {
  max-width: 680px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 0.4em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 24px;
  color: #fff;
}

/* ---------- À propos ---------- */

.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--navy);
  border: 3px solid var(--navy);
  overflow: hidden;
}

.about__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__ipi {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
}

.about__ipi strong {
  display: block;
  color: var(--navy-darker);
  font-size: 0.95rem;
}

/* ---------- Services ---------- */

.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.service:last-child { padding-bottom: 0; }

.service__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.service h3 {
  margin-bottom: 0.5em;
}

.service__text {
  max-width: 70ch;
  color: var(--text-muted);
}

.service__text strong {
  color: var(--text);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 2px;
}

.contact-info__item a,
.contact-info__item span {
  color: var(--text);
  font-weight: 500;
}

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,64,97,0.12);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form__consent input { width: auto; margin-top: 3px; }

.form__status {
  font-size: 0.9rem;
  margin-top: 4px;
}

.form__status--ok { color: #1a7a42; }
.form__status--err { color: #b3261e; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  font-size: 0.88rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 28px;
  margin-bottom: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.site-footer__brand img { height: 30px; }

.site-footer__brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: #fff; }

.site-footer__col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col li {
  margin-bottom: 8px;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__avatar { margin: 0 auto; }
  .about__ipi { max-width: 260px; margin-left: auto; margin-right: auto; }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__links, .nav__phone--desktop {
    display: none;
  }

  .nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    gap: 18px;
    z-index: 99;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle { position: relative; z-index: 101; }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 16px;
  }

  .nav-toggle { display: block; }

  .section { padding: 64px 0; }

  .service {
    grid-template-columns: 1fr;
  }
  .service__icon { margin-bottom: 8px; }

  .form__row {
    grid-template-columns: 1fr;
  }

  .site-footer__legal {
    flex-direction: column;
  }
}

/* ==========================================================================
   Accueil orienté investissement + page Qui suis-je
   ========================================================================== */
.nav__links a.is-active { color: var(--navy); font-weight: 700; }
.nav__cta { padding: 10px 22px; font-size: 0.9rem; }

.hero { position: relative; overflow: hidden; }
.hero__art { position: absolute; right: -30px; bottom: -10px; width: 520px; max-width: 48%; opacity: .9; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }

.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }
.section-head--center .lead { margin: 0 auto; }

/* Cartes « pourquoi investir » */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.value__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--text-muted); margin: 0; }

/* Méthode en 4 étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 18px; text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.step::after { content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 2px; background: var(--border); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Types de projets */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.project__art { background: linear-gradient(160deg, var(--navy-tint), #fff); height: 140px; display: flex; align-items: flex-end; justify-content: center; }
.project__art svg { width: 100%; height: 130px; }
.project__body { padding: 20px 22px 24px; }
.project h3 { font-size: 1.08rem; }
.project p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* Bandeau d'appel */
.cta-band { background: linear-gradient(135deg, var(--navy-darker), var(--navy)); color: #fff; border-radius: 14px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: var(--navy-tint); color: var(--navy-darker); }

/* ---------- Page Qui suis-je ---------- */
.profile-hero { background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 60%, var(--navy-light) 100%); color: #fff; padding: 80px 0; }
.profile-hero__grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.profile-photo { width: 280px; height: 280px; border-radius: 50%; overflow: hidden; border: 5px solid rgba(255,255,255,.85); box-shadow: 0 20px 50px rgba(0,0,0,.3); background: #fff; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: .2em; }
.profile-hero .role { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 999px; font-size: .86rem; color: #fff; }
.chip:hover { color: #fff; background: rgba(255,255,255,.18); }

.bio { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.bio p { font-size: 1.04rem; }
.facts { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy-darker); }

.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.tl-item.is-edu::before { border-color: var(--navy-light); background: var(--navy-tint); }
.tl-when { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-light); font-weight: 700; }
.tl-item h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.tl-item p { color: var(--text-muted); margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 960px) {
  .values, .pillars { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step::after { display: none; }
  .bio { grid-template-columns: 1fr; }
  .hero__art { opacity: .25; }
}
@media (max-width: 720px) {
  .projects, .steps { grid-template-columns: 1fr; }
  .profile-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .profile-photo { width: 200px; height: 200px; margin: 0 auto; }
  .chips { justify-content: center; }
  .cta-band { padding: 32px 26px; }
  .hero__art { display: none; }
}

/* Texte du hero aligné à gauche dans la grille du site */
.hero .container.hero__inner { max-width: var(--max-width); }
.hero .hero__inner > h1, .hero .hero__inner > p { max-width: 640px; }
