:root {
  --bg: #fdfdfd;
  --primary: #5b3cc4;
  /* violet profond */
  --secondary: #00b894;
  /* vert moderne */
  --accent: #1e2a38;
  /* bleu nuit */
  --muted: #6c757d;
  /* gris élégant */
  --gradient: linear-gradient(135deg, #5b3cc4, #00b894);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--accent);
}

/* --- Topbar --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.menu-btn,
.admin-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
}

/* --- Drawer --- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 200;
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 20px;
  border-bottom: 1px solid #ddd;
}

.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-list li {
  padding: 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.drawer-list li:hover {
  background: #f5f5f5;
}

/* --- Viewport --- */
.viewport {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  overflow: hidden;
  background: #fafafa;
}

/* --- Cards --- */
.card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s ease, opacity .4s ease;
  padding: 20px;
}

.card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 1.6em;
  margin-bottom: 12px;
  color: var(--accent);
}

.subtitle {
  font-size: 1.1em;
  color: var(--muted);
}

/* --- Animations swipe --- */
.card.enter-next {
  transform: translate3d(100%, 0, 0);
  opacity: 0;
}

.card.enter-prev {
  transform: translate3d(-100%, 0, 0);
  opacity: 0;
}

.card.active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  z-index: 2;
}

.card.exit-left {
  transform: translate3d(-100%, 0, 0);
  opacity: 0;
}

.card.exit-right {
  transform: translate3d(100%, 0, 0);
  opacity: 0;
}

/* --- HOME --- */
.home-card {
  text-align: center;
}

.home-card .card-title {
  font-size: 2em;
}

.home-card .subtitle {
  opacity: 0.8;
}

/* --- ABOUT --- */
.about-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 20px;
}

/* --- PRESTATIONS --- */
.prestations-card .prestations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.prestation {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.prestation:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.prestation h3 {
  color: var(--primary);
}

/* --- RÉALISATIONS --- */
.realisations-card .projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.realisations-card .projects a {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s;
}

.realisations-card .projects a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}

.realisations-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.realisations-card p {
  padding: .8rem;
  font-weight: bold;
  text-align: center;
  color: var(--secondary);
}

/* --- CONTACT --- */
.contact-card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card input,
.contact-card textarea {
  padding: .9rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 60, 196, .2);
}

.contact-card button {
  align-self: flex-start;
}

/* --- RENDEZVOUS --- */
.rendezvous-card iframe {
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

/* --- ARTICLES --- */
.articles-card .articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.article {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform .3s, box-shadow .3s;
}

.article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article h3 {
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.article p {
  padding: 0 1rem 1rem 1rem;
  font-size: .95rem;
  color: var(--muted);
}

/* --- Boutons --- */
.btn-accent {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 20px;
  transition: all .3s ease;
}

.btn-accent:hover {
  background: var(--primary);
}

/* --- Swipe hint --- */
.swipe-hint {
  background: rgba(30, 42, 56, 0.85);
}

.swipe-hint .hand {
  font-size: 48px;
  animation: swipeAnim 1.5s infinite;
  margin-bottom: 10px;
}

@keyframes swipeAnim {
  0% {
    transform: translateX(40px);
    opacity: 0;
  }

  20% {
    transform: translateX(0);
    opacity: 1;
  }

  80% {
    transform: translateX(-40px);
    opacity: 1;
  }

  100% {
    transform: translateX(-60px);
    opacity: 0;
  }
}

.swipe-hint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 500;
  color: white;
  font-size: 18px;
  text-align: center;
}

.swipe-hint .hand {
  font-size: 48px;
  animation: swipeAnim 1.5s infinite;
  margin-bottom: 10px;
}

@keyframes swipeAnim {
  0% {
    transform: translateX(40px);
    opacity: 0;
  }

  20% {
    transform: translateX(0);
    opacity: 1;
  }

  80% {
    transform: translateX(-40px);
    opacity: 1;
  }

  100% {
    transform: translateX(-60px);
    opacity: 0;
  }
}

/* ===============================
   RESET & VARIABLES
================================= */
:root {
  --color-accent: #4b3cfb;
  --color-accent-dark: #2d25a0;
  --color-text: #222;
  --color-muted: #666;
  --radius: 16px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fafafa;
  color: var(--color-text);
}

/* ===============================
   BASE CARDS
================================= */
.card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: transparent !important;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  overflow-y: auto;
}

/* ===============================
   HOME
================================= */
.home-card {
  background: linear-gradient(135deg, #6D42E5 0%, #1FA2FF 100%);
  color: #fff;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.home-card h1 {
  font-size: 2.2rem;
}

.home-card p {
  color: #fff;
  font-size: 1.2rem;
}

/* ===============================
   ABOUT
================================= */
.about-card {
  background: #0f2233;
  color: #fff;
  justify-content: center;
}

.about-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===============================
   PRESTATIONS
   Fond effet craie/pinceau
================================= */
.prestations-card {
  background: url("../img/bg-prestations.png") no-repeat center/cover;
  color: #111;
}

.prestations-card .prestations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.prestation {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.prestation h3 {
  margin-bottom: .4rem;
  color: var(--color-accent);
}

.prestation a {
  margin-top: .6rem;
  display: inline-block;
}

/* ===============================
   REALISATIONS
   (effet craie multicolore + prononcé)
================================= */
.realisations-card {
  background: url("../img/bg-realisation.png") no-repeat center/cover;
  color: #111;
}

.realisations-card .projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.realisations-card .projects a {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  transition: transform .3s;
  text-decoration: none;
  color: inherit;
}

.center {
  text-align: center;
}

.realisations-card .projects a:hover {
  transform: scale(1.03);
}

.realisations-card img {
  width: 50%;
  height: auto;
}

.realisations-card p {
  padding: .8rem;
  font-weight: 600;
  text-align: center;
}

/* ===============================
   CONTACT
================================= */
.contact-card {
  background: #f5f5f5;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card input,
.contact-card textarea {
  padding: .9rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1em;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ===============================
   RENDEZVOUS
================================= */
.rendezvous-card {
  background: #fff;
}

.rendezvous-card iframe {
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}


/* ===============================
   CARD ARRICLE
================================= */
/* Fond global pastel dégradé */
.articles-card {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb, #fbc2eb, #a6c1ee);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* La carte translucide */
.article-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Image arrondie avec bord doux */
.article-img img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Titre */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: black;
  margin-bottom: .5rem;
}

/* Date */
.article-date {
  font-size: .9rem;
  color: black;
  margin-bottom: 1rem;
}

/* Extrait */
.article-excerpt {
  font-size: 1rem;
  line-height: 1.4;
  color: black;
  margin-bottom: 1.5rem;
}

/* Bouton lire plus */
.btn-article {
  background: #ff8a65;
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s;
}

.btn-article:hover {
  background: #ff7043;
}

/* ===============================
   DESKTOP RESPONSIVE
================================= */
@media (min-width: 768px) {
  .prestations-card .prestations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .realisations-card .projects {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-card .articles-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-card p {
    max-width: 700px;
  }

  .contact-card form {
    max-width: 600px;
  }
}

/* ===============================
 Cookie
================================ */
body div.cookiewarning {
  display: none;
}

body.cookiewarning div.cookiewarning {
  padding: 1em;
  display: block;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 100;
  opacity: 0.7;
  background-color: Black;
  color: white;
}

body .removecookie {
  display: inline-block;
}

body.cookiewarning .removecookie {
  display: none;
}

/* --- Mentions légales --- */
.mentions-card {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.mentions-card h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 1em;
  color: #2a4d7d;
}

.mentions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.mention-section {
  padding: 15px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mention-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.mention-section h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.2em;
  color: #1b3b66;
  border-left: 4px solid #2a4d7d;
  padding-left: 8px;
}

.mention-section p {
  margin: 0;
  font-size: 0.95em;
}

.mention-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mention-section ul li {
  margin: 5px 0;
  padding-left: 12px;
  position: relative;
}

.mention-section ul li::before {
  content: "•";
  color: #2a4d7d;
  font-weight: bold;
  position: absolute;
  left: 0;
}