/* ============================================================
   Centre Architox Jacques Palombier — feuille de styles
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #5ac6ea;
  outline-offset: 3px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: #26225c;
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ===== En-tête ===== */
header {
  background-color: #26225c;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 60px;
  width: auto;
}

.site-name {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.site-baseline {
  display: block;
  font-size: .85rem;
  opacity: .8;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
  color: #5ac6ea;
}

/* ===== Fil d'Ariane ===== */
.fil-ariane {
  background-color: #eef2f7;
  padding: 12px 0;
  font-size: .88rem;
  color: #5f5f6b;
}

.fil-ariane a {
  color: #26225c;
}

/* ===== Bannière ===== */
.banner {
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
              url('/centre-architox-jacques-palombier.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.banner .baseline {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: #5ac6ea;
  color: #10233a;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .3s;
}

.btn:hover {
  background-color: #47a8c9;
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.page-titre {
  padding: 55px 0 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h1,
.section-title h2 {
  font-size: 2rem;
  color: #26225c;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2.petit {
  font-size: 1.5rem;
}

.section-title h1::after,
.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: #5ac6ea;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.intro-page {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1rem;
  color: #4a4a55;
}

/* ===== Blocs texte + image ===== */
.presentation-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.presentation-text {
  flex: 1;
}

.presentation-text h2,
.presentation-text h3 {
  color: #26225c;
  margin: 25px 0 10px;
}

.presentation-text h2:first-child,
.presentation-text h3:first-child {
  margin-top: 0;
}

.presentation-text p {
  margin-bottom: 15px;
}

.presentation-text ul {
  margin: 0 0 15px 22px;
}

.presentation-text li {
  margin-bottom: 8px;
}

.presentation-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.presentation-image img {
  width: 100%;
  display: block;
}

/* ===== Cartes ===== */
.fond-clair {
  background-color: #f0f9ff;
}

.fond-blanc {
  background-color: #fff;
}

.cartes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.carte {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
  transition: transform .3s;
}

.carte:hover {
  transform: translateY(-8px);
}

.carte h2,
.carte h3 {
  color: #26225c;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.carte p {
  margin-bottom: 12px;
}

.carte ul {
  margin-left: 22px;
}

.carte li {
  margin-bottom: 6px;
}

/* ===== Équipe ===== */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.membre {
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.membre-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-color: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #3e8ba6;
  font-weight: 600;
}

.membre h2,
.membre h3 {
  color: #26225c;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.membre .role {
  color: #3e8ba6;
  font-weight: 600;
  margin-bottom: 15px;
}

.organigramme {
  background-color: #f0f9ff;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 50px;
}

.organigramme-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.niveau-directeur {
  background-color: #26225c;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  width: 300px;
}

.niveau-directeur h3 {
  font-size: 1.15rem;
}

.niveau-equipe {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.membre-organigramme {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  width: 200px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}

.membre-organigramme h3 {
  font-size: 1.05rem;
  color: #26225c;
}

/* ===== Journal ===== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.journal-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
  border-top: 4px solid #5ac6ea;
}

.journal-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.journal-card h2,
.journal-card h3 {
  color: #26225c;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.journal-card h2 a,
.journal-card h3 a {
  color: inherit;
  text-decoration: none;
}

.journal-card h2 a:hover,
.journal-card h3 a:hover {
  text-decoration: underline;
}

.date {
  display: block;
  color: #3e8ba6;
  font-size: .85rem;
  margin-bottom: 12px;
}

.journal-card p {
  margin-bottom: 15px;
}

.lire {
  margin-top: auto;
  color: #26225c;
  font-weight: 600;
  text-decoration: none;
}

.lire:hover {
  text-decoration: underline;
}

/* ===== Actualités ===== */
.actualites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.actualite-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
  transition: transform .3s;
}

.actualite-card:hover {
  transform: translateY(-5px);
}

.actualite-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.actualite-content {
  padding: 20px;
}

.actualite-content h2,
.actualite-content h3 {
  color: #26225c;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.actualite-content h2 a,
.actualite-content h3 a {
  color: inherit;
  text-decoration: none;
}

.actualite-content h2 a:hover,
.actualite-content h3 a:hover {
  text-decoration: underline;
}

/* ===== Articles ===== */
.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-image {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: #5f5f6b;
  font-size: .9rem;
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.8;
}

.article-body h2 {
  color: #26225c;
  margin: 35px 0 15px;
  font-size: 1.4rem;
}

.article-body h3 {
  color: #26225c;
  margin: 28px 0 12px;
  font-size: 1.15rem;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.encadre {
  background-color: #f0f9ff;
  border-left: 4px solid #5ac6ea;
  padding: 20px 25px;
  border-radius: 0 8px 8px 0;
  margin: 35px 0;
}

.encadre h2 {
  font-size: 1.05rem;
  color: #26225c;
  margin: 0 0 10px;
}

.encadre ul {
  margin: 0 0 0 22px;
}

.encadre a {
  color: #26225c;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #26225c;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== Tableau ===== */
.tableau-outils {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
  border-radius: 8px;
  overflow: hidden;
}

.tableau-outils th,
.tableau-outils td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e6ebf1;
  vertical-align: top;
}

.tableau-outils th {
  background-color: #26225c;
  color: #fff;
  font-weight: 600;
}

.tableau-outils tr:last-child td {
  border-bottom: 0;
}

.tableau-wrap {
  overflow-x: auto;
}

/* ===== Pied de page ===== */
footer {
  background-color: #1a1745;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h2 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #5ac6ea;
}

.footer-section p,
.footer-section a {
  color: #d5d5e0;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

.mention-fiction {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  margin-bottom: 15px;
  font-size: .82rem;
  line-height: 1.7;
  color: #a9a9bd;
  max-width: 920px;
}

.mention-fiction a {
  color: #8fd4ec;
  text-decoration: underline;
  display: inline;
}

.copyright {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #a9a9bd;
  font-size: .9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-container {
    flex-direction: column;
    margin-bottom: 12px;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px 8px;
  }
}

@media (max-width: 768px) {
  .presentation-content {
    flex-direction: column;
  }

  .banner {
    padding: 80px 0;
  }

  .banner h1 {
    font-size: 1.85rem;
  }

  section {
    padding: 50px 0;
  }

  .article-image {
    height: 210px;
  }

  .organigramme {
    padding: 25px 15px;
  }

  .niveau-equipe {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .carte:hover,
  .actualite-card:hover {
    transform: none;
  }
}
