:root {
  --green-deep: #1a3d2b;
  --green-mid: #2d6a4f;
  --green-accent: #52b788;
  --green-light: #d8f3dc;
  --cream: #f8f5f0;
  --grey: #6b7280;
  --white: #ffffff;
  --font-title: 'Merriweather', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: #1e1e1e;
  font-size: 1rem;
  line-height: 1.7;
}

/*================================================*/ 
/* =================== NAV ====================== */
/*================================================*/ 
nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--green-deep);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul { 
  list-style: none; 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
}
nav ul a { 
  color: rgba(255,255,255,0.75); 
  text-decoration: none; 
  font-weight: 600;
  font-size: 0.85rem; 
  text-transform: uppercase;
  transition: color 0.2s;
}
nav ul a:hover { 
  color: var(--green-accent); 
}

strong {
  color: var(--green-deep);
  font-weight: 700;
  font-size: inherit; 
}

/*================================================*/ 
/* =================== HERO ===================== */
/*================================================*/ 
.hero{
  background: var(--green-mid);
  color: var(--white);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero > * {position:relative;}

.hero-tag {
  display: inline-block;
  background: rgba(82,183,136,0.2);
  border: 1px solid var(--green-accent);
  color: var(--green-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s both;
}

.hero h1{
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.25s both;
}

.hero p{
  font-size: 1.4rem;
  color: rgba(255,255,255,0.75);
  max-width: 740px;
  margin: 0 auto;
  background: rgba(255,255,255,0.07);
  gap: 1.rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-logo {
  height: 60px;
}

/*================================================*/ 
/* ================== WRAPPER =================== */
/*================================================*/ 
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: justify;
}

/*================================================*/ 
/* ================= SECTIONS ====================*/
/*================================================*/ 
section{ padding: 4rem 0; }
section + section { border-top: 1px solid rgba(0,0,0,0.07); }

h2{
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

p { color: var(#374151); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/*================================================*/
/* ================== BLOCKQUOTE =================*/
/*================================================*/
blockquote {
  border-left: 4px solid var(--green-accent);
  border-right: 4px solid var(--green-accent);
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0 0 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
}

/*================================================*/
/* ================== TWO-COL =================== */
/*================================================*/
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* si image à droite, image plus grande */
.two-col-text-img {
  grid-template-columns: 1fr 2fr;
}

/* si image à gauche, image plus grande */
.two-col-img-text {
  grid-template-columns: 2fr 1fr;
}

/*================================================*/
/* ================== IMAGE ===================== */
/*================================================*/
.img-placeholder {
  background: var(--green-light);
  border: 2px dashed var(--green-accent);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.img-placeholder .icon { font-size: 2rem; }

.section-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.screenshots {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

figure {
  margin: 0;
}

figure .section-img {
  width: 55%;
  display: block;
  margin: 0 auto;
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 0.6rem;
  font-style: italic;
}

/*================================================*/
/* ================ CARROUSSEL ================== */
/*================================================*/
.carousel {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  margin: 0;
  text-align: center;
}

.carousel-slide .section-img {
  width: 80%;
  margin: 0 auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: var(--green-deep);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--green-accent);
  transform: scale(1.3);
}

figcaption {
  font-size: 0.85rem;
  color: var(--grey);
  font-style: italic;
  margin-top: 0.6rem;
}

/*================================================*/
/* ============= GRAND ECRAN ==================== */
/*================================================*/
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

#lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  object-fit: contain;
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--green-deep);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.2s;
}

#lightbox-close:hover {
  background: var(--green-accent);
}

/*================================================*/
/* ========== EQUIPE ET ENCADRANT-ES ============ */
/*================================================*/

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.supervisor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.member { text-align: center;}

.card-member {
  background: var(--green-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-avatar {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 0.6rem;
  display: block;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s;
}

.card-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Logo encadrant-es */
.supervisor-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s;
}


.member-name {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 0.9rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 0.2rem;
}

/*================================================*/
/* =================== FOOTER =================== */
/*================================================*/
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 3rem 2rem 2rem;
  font-size: 0.9rem;
}

.footer-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.footer-partners img {
  height: 45px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-partners img:hover { opacity: 1; }

footer p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
footer strong { color: var(--green-accent); }


