/* ----- Reset & base ----- */
* {
  box-sizing: border-box;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: #1f2a44;
  background: #f9fafb;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1f2a44;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ----- Layout helpers ----- */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}
.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.section--alt {
  background: #e6f0ff;
}
.section__title {
  font-family: "Marcellus", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  margin: 0 0 1rem;
  text-align: center;
}
.section__lead {
  text-align: center;
  color: #334e77;
  margin-bottom: 2rem;
}

/* ----- Header ----- */
.header {
  background: #e6f0ff;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand__img {
  border-radius: 50%;
}
.brand__title {
  font-family: "Marcellus", serif;
  font-size: 1.5rem;
  display: block;
}
.brand__subtitle {
  font-size: 0.85rem;
  color: #4b5563;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
}
.nav__link:hover {
  color: #f59e0b;
}

/* ----- Buttons ----- */
.button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
}
.button--primary {
  background: #f59e0b;
  color: #fff;
}
.button--primary:hover {
  filter: brightness(0.95);
}
.button--ghost {
  background: transparent;
  border-color: #f59e0b;
  color: #f59e0b;
}
.button--ghost:hover {
  background: rgba(245, 158, 11, 0.08);
}

/* ----- Hero ----- */
.hero {
  color: #fff;
  background: url("https://app.grapesjs.com/api/assets/random-image?query=%22little%20prince%20illustration%22&w=1600&h=800")
    center/cover no-repeat;
  text-align: center;
}
.hero__title {
  font-family: "Marcellus", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero__subtitle {
  max-width: 70ch;
  margin: 0 auto 1.25rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Features / Cards ----- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  align-items: start;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.feature__icon {
  flex-shrink: 0;
}
.feature__title {
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.feature__desc {
  margin: 0;
  color: #334e77;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ----- Form ----- */
.form {
  max-width: 560px;
  margin: 0 auto;
}
.form__group {
  margin-bottom: 1rem;
}
.form__label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.form__control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid #f59e0b;
  border-radius: 0.6rem;
  font-size: 1rem;
  background: #fff;
}
.form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.support {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* ----- Footer ----- */
.footer {
  background: #e6f0ff;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__logo {
  border-radius: 50%;
}
.footer__title {
  font-weight: 700;
  margin: 0;
}
.footer__note {
  margin: 0;
  color: #334e77;
}
.footer__links {
  display: flex;
  gap: 1rem;
}
.footer__links a:hover,
.footer__legal a:hover {
  color: #f59e0b;
}
.footer__social {
  display: flex;
  gap: 0.5rem;
}
.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  text-align: center;
  color: #334e77;
}
.footer__legal {
  display: inline-flex;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

/* ----- Responsive tweaks ----- */
@media (max-width: 820px) {
  .header__inner {
    flex-wrap: wrap;
  }
  .nav {
    width: 100%;
    order: 2;
    justify-content: center;
  }
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.team__member strong {
  display: block; /* Met le nom au-dessus de la fonction */
  font-size: 1.1rem;
}

/* Styles Généraux */
body {
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section {
  padding: 40px 0;
}
.section--alt {
  background-color: #f9f9f9;
}
.section__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}
.section__subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

/* Cartes (Activités & Fonctions) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.card h3 {
  color: #2a52be;
  margin-top: 0;
}
.card__list {
  padding-left: 20px;
}

/* FAQ */
.faq__item {
  background: white;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
}
.faq__item summary {
  font-weight: bold;
}

/* Grille Équipe */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.team__member {
  text-align: center;
  padding: 15px;
}

/* Avatars et Acronyme */
.avatar-container {
  position: relative;
  width: 85px;
  height: 85px;
  margin: 0 auto 15px;
  background: #eef2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ddd;
}

.avatar-initial {
  font-size: 1.8rem;
  font-weight: bold;
  color: #444;
}

.acronym-letter {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #2a52be;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Carte "ch" (Technologie) */
.team__member--tech .avatar-container {
  background: #fff;
  border: 2px dashed #2a52be;
}
.team__member--tech strong {
  color: #2a52be;
}

.team__member strong {
  display: block;
  font-size: 1.1rem;
}
.team__member span {
  font-size: 0.9rem;
  color: #777;
}
