
/* ===================== */
/* RESET DE BASE         */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== */
/* THÈMES                */
/* ===================== */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #0077ff;
}

[data-theme="dark"] {
  --bg-color: #0d1117;
  --text-color: #e6edf3;
  --accent-color: #1f6feb;
}

/* ===================== */
/* BASE DU BODY          */
/* ===================== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-y: scroll;
  margin: 0;
}

/* ===================== */
/* HEADER & FOOTER FULL WIDTH */
/* ===================== */
header, footer {
  width: 100%;
  border-radius: 0;
  padding: 2rem 0;
  text-align: center;
}

header {
  background: linear-gradient(135deg, #0059b3, #0077ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

footer {
  background-color: #f2f4f8;
  color: #333;
  font-size: 0.95rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem 0;
}

/* ===================== */
/* HEADER & NAVIGATION   */
/* ===================== */
header h1 {
  font-size: 2.3rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}

nav a:hover {
  color: #ddeeff;
}

/* ===================== */
/* BOUTONS CLASSIQUES    */
/* ===================== */
button:not(.accordion-button) {
  background-color: #ffffff;
  color: #0059b3;
  font-weight: 600;
  border: 2px solid #0059b3;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
button:not(.accordion-button):hover {
  background-color: #0059b3;
  color: #fff;
}

/* ===================== */
/* SECTIONS PRINCIPALES  */
/* ===================== */
main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.profiles {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.profiles section {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ===================== */
/* PROJETS COMMUNS       */
/* ===================== */
.projects-shared {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.05), rgba(0, 119, 255, 0.02));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  flex: 1 1 calc(25% - 1rem);
  min-width: 200px;
  position: relative;
  border: 1px solid rgba(0, 119, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background-color: #f9fbff;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card.expanded {
  flex: 1 1 100%;
  width: 100%;
}

.project-card .accordion-button {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* ===================== */
/* ACCORDÉONS            */
/* ===================== */
.accordion-button {
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--accent-color);
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  width: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button:hover {
  background-color: #0055cc;
}

.accordion-button.in-progress {
  background-color: #ffbb00;
  color: #333;
}

.accordion-content {
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border-left: 4px solid #0077ff;
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
  line-height: 1.6;
}

/* ===================== */
/* TITRES                */
/* ===================== */
h1, h2 {
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 768px) {
  .profiles {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    flex: 1 1 100%;
  }
}

/* ===================== */
/* THÈME SOMBRE LISIBILITÉ */
/* ===================== */
[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

[data-theme="dark"] .accordion-content {
  background-color: #1c1c1c;
  color: var(--text-color);
  border-left-color: var(--accent-color);
}

[data-theme="dark"] .project-card {
  background-color: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .accordion-button {
  background-color: var(--accent-color);
  color: #fff;
}

[data-theme="dark"] .accordion-button.in-progress {
  background-color: #ffc107;
  color: #000;
}

[data-theme="dark"] header,
[data-theme="dark"] footer {
  background: #0d1117;
  color: #ffffff;
}

[data-theme="dark"] nav a {
  color: #ffffff;
}

[data-theme="dark"] nav a:hover {
  color: #58a6ff;
}
