/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.7);
  --line: rgba(255,255,255,0.12);
  --container: 1100px;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }.ellipse-top {
  position: absolute;
  top: 40px;         /* distance depuis le haut */
  right: 0;
  width: 300px;
  height: 500px;
  background: url("assets/ellipse-top.png") no-repeat top right;
  background-size: contain;
  opacity: 100;
  pointer-events: none;
  z-index: 0;
}

.ellipse-bottom {
  position: absolute;
  bottom: -2300px;      /* distance depuis le bas */
  left: 0;
  width: 300px;
  height: 500px;
  background: url("assets/ellipse-bottom.png") no-repeat bottom left;
  background-size: contain;
  opacity: 100;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .ellipse-top,
  .ellipse-bottom {
    width: 180px;
    height: 90px;
    opacity: 100;
  }
}


body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}



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

/* Titres */
h2 {
  font-size: 2rem;       /* plus grand */
  margin-bottom: 32px;   /* plus d’espace */
  font-weight: 700;
  text-align: center;    /* centré */
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Sections plus aérées */
.section {
  padding: 80px 0;       /* plus de respiration */
  border-bottom: 1px solid var(--line);
}

/* Cartes (offres, projets) */
.offer-card, .project-card, .founder-card {
  margin-bottom: 30px;   /* plus d’espace entre blocs */
}

/* Texte secondaire */
p, li {
  color: var(--muted);
}


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

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

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { font-weight: 700; font-size: 1.1rem }

.logo {
  height: 100px;
  width: auto;
  margin-right: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.brand-name {
  font-weight: 700;
}


.nav-toggle {
  display: none; background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.nav-list { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0 }
.nav-list a { font-weight: 600 }

.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: 2.2rem; margin: 0 0 12px; font-weight: 700;
}
.hero p { margin: 0; color: var(--muted) }

.section { padding: 56px 0; border-bottom: 1px solid var(--line) }
h2 { font-size: 1.8rem; margin: 0 0 20px; font-weight: 700 }
h3 { font-size: 1.1rem; margin: 0 0 10px; font-weight: 600 }

.block {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; background: #0b0b0b;
}
ul { margin: 0; padding-left: 18px }
li { margin-bottom: 6px }

.grid.two {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.stack { display: grid; grid-template-columns: 1fr; gap: 20px }

.offers h2 {
  text-align: center;
  margin-bottom: 40px;
}

.offer-card {
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.offer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.offer-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-card li {
  margin-bottom: 8px;
  color: var(--muted);
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
}

.scroll-vertical {
  max-height: 300px; /* hauteur visible */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 10px; /* petit espace pour scrollbar */
  scroll-behavior: smooth;
}


.projects h2 {
  text-align: center;
  margin-bottom: 40px;
}

.project-card {
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.project-card .date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.project-card p {
  margin-bottom: 8px;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
}

.project-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}


.confiance h2 {
  text-align: center;
  margin-bottom: 40px;
}

.grid.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 140px;
}

.logo-item img {
  height: 60px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.logo-item img:hover {
  opacity: 1;
}

.logo-item p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}


/* Section fondateurs avec image de fond */
.founders {
  background: url("assets/founders-bg.png") center/cover no-repeat;
  position: relative;
  color: var(--text);
}

/* Assombrir légèrement l’image pour garder lisibilité */
.founders::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.founders .container {
  position: relative;
  z-index: 1;
}

/* Liens des fondateurs */
.founder-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.founder-link:hover {
  border-color: var(--text);
}

.founder-card {
  text-align: center;
}

.founder-photo {
  width: 100px;       /* taille de la photo */
  height: 100px;
  border-radius: 50%; /* cercle */
  object-fit: cover;  /* recadre proprement */
  margin-bottom: 12px;
  border: 2px solid var(--text); /* contour blanc */
}

.founder-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.founder-link:hover {
  border-color: var(--text);
}


.contact-list p { margin: 0 0 10px }

/* Section Contact avec logo en filigrane */
#contact {
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: "";
  position: absolute;
  bottom: 20px;   /* position verticale */
  right: -300px;    /* position horizontale (tu peux mettre left:20px si tu préfères à gauche) */
  width: 1000px;   /* taille du logo */
  height: 500px;
  background: url("assets/logo.png") no-repeat center/contain;
  opacity: 0.1;  /* transparence faible pour effet discret */
  pointer-events: none; /* ne bloque pas les clics */
}

.form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px }
.form input, .form textarea {
  background: #0b0b0b; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}
.btn {
  background: var(--text); color: var(--bg);
  border: none; border-radius: 8px; padding: 10px 16px; font-weight: 700; cursor: pointer;
}
.btn:hover { opacity: 0.9 }

/*.site-footer { padding: 24px 0; text-align: center; color: var(--muted) }

.socials {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.socials svg {
  width: 24px;
  height: 24px;
  transition: opacity 0.2s;
}
.socials svg:hover {
  opacity: 0.7;
}*/

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-copy {
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1); /* rend les icônes blanches */
  opacity: 100;
  transform: translateY(-4px);
  transition: opacity 0.2s;
}

.footer-socials img:hover {
  opacity: 100;
}


@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr }
}
@media (max-width: 650px) {
  .nav-list { display: none }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px }
  .nav-list[aria-expanded="true"] {
    display: flex; flex-direction: column; gap: 12px; padding: 12px 0;
  }
  .hero h1 { font-size: 1.7rem }
}

/* Images adaptatives */
img {
  max-width: 100%;
  height: auto;
}

/* Grille fluide */
.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  overflow-x: auto;
}

/* Logo filigrane responsive dans la section Contact */
@media (max-width: 1024px) {
  #contact::after {
    right: -150px;
    width: 600px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  #contact::after {
    right: -80px;
    width: 350px;
    height: 180px;
    opacity: 0.08;
  }
}

@media (max-width: 480px) {
  #contact::after {
    right: 50%;
    transform: translateX(50%);
    width: 220px;
    height: 120px;
    opacity: 0.07;
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast.hidden {
  display: none;
}