/* Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #2f1f3f;
  background: #f4effc;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  cursor: pointer;
  border: 0;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 999;
  background: linear-gradient(90deg, #f6b8f5 0%, #af4bc3 100%);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}
#nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
}
#nav > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
#nav p {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  transform: translateY(2px);
}
#nav img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
}

/* Footer logo */
#footernav img,
footer #footernav div:first-child img {
  width: 10px;
  height: 10px;
  max-width: 10px;
  object-fit: contain;
  border-radius: 12px;
}

#footernav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#footernav > div:last-child {
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  flex-direction: row !important;
}

#footernav > div:last-child a {
  display: inline-block !important;
  margin: 0 !important;
}

#footernav > div:last-child a div {
  display: inline-block !important;
  margin: 0 !important;
}
#nav > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding-top: 10px;
  transform: translateY(2px);
}
#nav > div:last-child a {
  margin: 0;
}

#nav > div:last-child a div {
  padding: 10px 14px;
}
#nav > div:last-child a div {
  color: #ffffff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.25s ease;
}
#nav > div:last-child a div:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Hero */
body > #accueil {
  margin-top: 120px;
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/image_accueil.jpg") center/cover no-repeat;
}
body > #accueil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
#accueil img {
  display: none;
}
#accueil button {
  position: relative;
  z-index: 2;
  background: #c130f9;
  color: #fff;
  border-radius: 10px;
  border: 2px solid #e6a6ff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.23);
  transition: 0.3s ease;
}
#accueil button:hover {
  transform: translateY(-2px);
  background: #ff34f1;
}

/* Sections */
main,
h2 {
  max-width: 1200px;
  margin: 0 auto;
}
h2 {
  color: #332f3d;
  margin: 44px 24px 18px;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#nos_services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 24px 14px;
}
#nos_services > div {
  background: #af4bc3;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  text-align: center;
  color: #ffffff;
}
#nos_services > div div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
#nos_services img {
  width: 44px;
  height: 44px;
}
#nos_services h3 {
  font-size: 1.1rem;
  color: #000000;
  margin: 0;
}
#nos_services p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #000000;
}

#ce_qu_ils_disent_de_nous {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  padding: 0 24px 14px;
}
#programme_fidelite {
  background: linear-gradient(135deg, #f6b8f5 0%, #f8d9ff 100%);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 16px;
}
#programme_fidelite h3 {
  color: #702372;
  font-size: 1.55rem;
}
#programme_fidelite img {
  width: 120px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
#programme_fidelite p {
  color: #432952;
  font-size: 1rem;
}
#programme_fidelite button {
  background: #9d2fd7;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
}

#note {
  display: grid;
  gap: 12px;
}
#note > div {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.1);
}
#note img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
#note p {
  margin-left: 10px;
  font-weight: 700;
  color: #401347;
}
#note > div div:last-child {
  width: auto;
  color: #f4c429;
  font-size: 1.1rem;
}

#espace_apprentissage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 20px;
  padding: 36px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  background: #f7f6ff;
  border-radius: 20px;
}
#espace_apprentissage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: transparent;
}

#espace_apprentissage a {
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}
#espace_apprentissage a div {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
}
#espace_apprentissage a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#espace_apprentissage img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
#espace_apprentissage img:hover {
  transform: scale(1.04);
}

/* Footer */
footer {
  margin-top: 30px;
  background: #f2c8ff;
  color: #48276d;
  padding: 22px 0;
}
#footernav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#footernav a {
  color: #d7c6f0;
  margin-left: 14px;
}
#footernav a:hover {
  color: #fff;
}
#footernav p {
  font-size: 0.95rem;
  font-weight: 800;
}
#footernav .footer-link-purple {
  color: #6b1fb6 !important;
  font-weight: 700;
}
#footernav .footer-link-purple:hover {
  color: #8f3bed !important;
}