/* Base styles and variables */
:root {
  --primary-color: #b00;
  --primary-hover: #d00;
  --primary-light: rgba(255, 51, 51, 0.1);
  --primary-transparent: rgba(187, 0, 0, 0.05);
  --primary-navbar: #b00;
  --secondary-color: #900;
  --text-color: #000;
  --text-light: #222;
  --text-muted: #333;
  --background-color: #fff;
  --card-background: #fff;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --header-bg: #fff;
  --title-white: #fff;
  --footer-bg: #f8f8f8;
  --table-header-bg: var(--primary-color);
  --table-border: #eee;
  --table-stripe: #fafafa;
  --section-spacing: 60px;
  --navbar-height: 80px;
  --card-radius: 12px;
  --transition-speed: 0.3s;
}

/* Dark mode variables */
.dark-mode {
  --primary-color: #ff3333;
  --primary-hover: #ff5555;
  --primary-light: rgba(255, 51, 51, 0.1);
  --primary-transparent: rgba(255, 51, 51, 0.05);
  --primary-navbar: #333;
  --secondary-color: #ff6666;
  --text-color: #f0f0f0;
  --text-light: #aaa;
  --text-muted: #777;
  --background-color: #121212;
  --card-background: #1e1e1e;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --header-bg: #1a1a1a;
  --footer-bg: #1a1a1a;
  --table-header-bg: var(--primary-color);
  --table-border: #333;
  --table-stripe: #252525;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  font-size: 16px;
  font-weight: 300;
  padding-top: var(--navbar-height);
}

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

/* Éléments d'impression uniquement */
.print-header,
.print-footer {
  display: none;
}

/* Affichage conditionnel mobile/desktop */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: var(--card-background);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.navbar-title {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.navbar-title h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-actions {
  display: flex;
  gap: 15px;
}

.navbar-actions button {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform
    var(--transition-speed) ease;
}

.navbar-actions button:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.navbar-actions button i {
  font-size: 1.2rem;
}

.tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-background);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 2px 5px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
  z-index: 1000;
}

.navbar-actions button:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-toggle {
  display: none;
  background-color: transparent;
  color: var(--text-color);
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color var(--transition-speed) ease;
}

.mobile-menu-toggle.active {
  color: var(--primary-color);
}

/* Progress bar */
.progress-container {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 999;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.1s ease;
}

/* Table of contents */
.toc-container {
  position: fixed;
  top: 50%;
  right: -300px;
  transform: translateY(-50%);
  width: 280px;
  max-height: 80vh;
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  box-shadow: 0 5px 20px var(--shadow-color);
  z-index: 990;
  transition: right var(--transition-speed) ease;
  overflow-y: auto;
}

.toc-container.show {
  right: 20px;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.toc-toggle {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.toc-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.toc-list {
  list-style: none;
  padding: 15px 0;
}

.toc-link {
  display: block;
  padding: 8px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  border-left: 3px solid transparent;
}

.toc-link:hover,
.toc-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.toc-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--card-background);
  color: var(--primary-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow
    var(--transition-speed) ease;
  z-index: 990;
}

.toc-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--shadow-color);
}

.toc-button i {
  font-size: 1.2rem;
}

/* Main content styles */
.main-content {
  padding: 40px 0 60px;
}

.notice-container {
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  padding: 50px;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.intro-section {
  margin-bottom: 50px;
  text-align: center;
  font-weight: 700;
  color: var(--text-color);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Section styles */
.info-section {
  margin-bottom: var(--section-spacing);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.info-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
}

.section-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.2;
  margin-right: 15px;
  line-height: 1;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  position: relative;
}

.section-content {
  padding-left: 60px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

.info-card {
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.info-card:hover .card-icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Purpose list */
.purpose-list {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.purpose-list.animate {
  opacity: 1;
  transform: translateY(0);
}

.purpose-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.purpose-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.purpose-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.purpose-text {
  font-size: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 20px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(10px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.timeline-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.timeline-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
}

.timeline-duration {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

/* Alert box */
.alert-box {
  display: flex;
  background-color: var(--primary-light);
  border-radius: var(--card-radius);
  padding: 25px;
  margin-top: 30px;
}

.alert-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.alert-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.alert-list {
  list-style: none;
  margin-left: 0;
}

.alert-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.alert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Security box */
.security-box {
  display: flex;
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden;
  position: relative;
}

.security-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
}

.security-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-right: 30px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.security-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.security-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.security-feature {
  display: flex;
  align-items: center;
  background-color: var(--primary-light);
  padding: 8px 15px;
  border-radius: 20px;
}

.security-feature i {
  font-size: 1rem;
  color: var(--primary-color);
  margin-right: 8px;
}

.security-note {
  font-style: italic;
  color: var(--text-light);
  margin-top: 15px;
}

/* Rights grid */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rights-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

.right-card {
  display: flex;
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.right-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.right-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.right-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.rights-note {
  margin-top: 25px;
  padding: 15px;
  background-color: var(--primary-light);
  border-radius: var(--card-radius);
  font-style: italic;
}

/* Table styles */
.table-responsive {
  margin: 30px 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.modern-table th,
.modern-table td {
  padding: 15px 20px;
  text-align: left;
}

.modern-table th {
  background-color: var(--table-header-bg);
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.modern-table tr {
  background-color: var(--card-background);
  transition: background-color var(--transition-speed) ease;
}

.modern-table tr:nth-child(even) {
  background-color: var(--table-stripe);
}

.modern-table tr:hover {
  background-color: var(--primary-light);
}

.modern-table td {
  border-bottom: 1px solid var(--table-border);
}

.modern-table a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  word-break: break-all;
}

.modern-table a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Contact list pour mobile */
.contact-list {
  margin: 30px 0;
}

.contact-item {
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-color);
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.contact-item a {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
  padding: 8px 0;
  text-align: center;
  background-color: var(--primary-light);
  border-radius: 20px;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.contact-item a:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-note {
  margin-top: 25px;
  padding: 20px;
  background-color: var(--primary-light);
  border-radius: var(--card-radius);
}

/* Commitment section */
.commitment-section {
  display: flex;
  align-items: center;
  background-color: var(--primary-light);
  border-radius: var(--card-radius);
  padding: 30px;
  margin: 40px 0;
}

.commitment-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-right: 30px;
  flex-shrink: 0;
}

.commitment-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Footer styles */
.notice-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
}

.footer-date {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer {
  background-color: var(--footer-bg);
  padding: 40px 0;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: -60px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: bottom var(--transition-speed) ease, background-color var(--transition-speed) ease, transform
    var(--transition-speed) ease;
  z-index: 990;
}

#back-to-top.show {
  bottom: 20px;
}

#back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
}

#back-to-top i {
  font-size: 1.2rem;
}

/* PDF overlay */
.pdf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.pdf-overlay.show {
  opacity: 1;
  visibility: visible;
}

.pdf-loading {
  background-color: var(--card-background);
  border-radius: var(--card-radius);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pdf-loading i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.pdf-loading p {
  font-size: 1.2rem;
  color: var(--text-color);
}

/* PDF mode */
.pdf-mode {
  background-color: white;
  color: black;
}

/* Print styles */
@media print {
  @page {
    size: A4;
    margin: 2cm;
  }

  body {
    padding-top: 0;
    background-color: white !important;
    color: black !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  .navbar,
  .progress-container,
  .toc-container,
  .toc-button,
  #back-to-top,
  footer,
  .navbar-actions,
  .mobile-menu-toggle,
  .pdf-overlay {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .notice-container {
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
  }

  .main-content {
    padding: 0;
  }

  /* Afficher les éléments d'impression */
  .print-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2cm;
    border-bottom: 1pt solid #000;
    padding-bottom: 1cm;
  }

  .print-header img {
    height: 60pt;
    margin-bottom: 1cm;
  }

  .print-header h1 {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    color: #000;
  }

  .print-footer {
    display: block;
    position: running(footer);
    width: 100%;
    border-top: 1pt solid #000;
    padding-top: 0.5cm;
    margin-top: 1cm;
  }

  .print-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .print-footer-logo img {
    height: 20pt;
  }

  .print-footer-text {
    font-size: 9pt;
    color: #666;
  }

  .print-page-number::after {
    content: counter(page) " sur " counter(pages);
  }

  @page {
    @bottom-center {
      content: element(footer);
    }
  }

  /* Styles pour les sections */
  .info-section {
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 1.5cm;
    page-break-inside: avoid;
  }

  .section-header {
    page-break-after: avoid;
    display: flex;
    align-items: center;
  }

  .section-number {
    color: #000;
    opacity: 0.7;
    font-size: 18pt;
  }

  .section-header h2 {
    color: #000;
    font-size: 14pt;
    font-weight: bold;
  }

  .section-content {
    padding-left: 1.5cm;
  }

  /* Styles pour les cartes et listes */
  .card-grid,
  .purpose-list,
  .timeline,
  .rights-grid {
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5cm;
  }

  .info-card,
  .purpose-item,
  .timeline-content,
  .right-card,
  .security-box,
  .alert-box,
  .commitment-section {
    box-shadow: none;
    border: 1pt solid #ddd;
    page-break-inside: avoid;
    background-color: white !important;
  }

  .card-icon,
  .purpose-icon,
  .right-icon,
  .security-icon,
  .commitment-icon,
  .alert-icon {
    background-color: #f5f5f5;
    color: #b00;
  }

  .timeline::before {
    background-color: #ddd;
  }

  .timeline-dot {
    background-color: #b00;
  }

  .timeline-duration {
    background-color: #f5f5f5;
    color: #b00;
    border: 1pt solid #ddd;
  }

  /* Styles pour les tableaux */
  .table-responsive {
    overflow-x: visible;
    box-shadow: none;
  }

  .modern-table {
    width: 100%;
    border-collapse: collapse;
    border: 1pt solid #000;
  }

  .modern-table th {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    border: 1pt solid #000;
    font-weight: bold;
  }

  .modern-table td {
    border: 1pt solid #000;
  }

  .modern-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .modern-table a {
    color: #000;
    text-decoration: underline;
  }

  /* Optimisation des sauts de page */
  h2,
  h3 {
    page-break-after: avoid;
  }

  p,
  li {
    page-break-inside: avoid;
  }

  .intro-section {
    page-break-after: always;
  }

  /* Suppression des effets de survol */
  .info-card:hover,
  .purpose-item:hover,
  .timeline-item:hover .timeline-content,
  .right-card:hover,
  .modern-table tr:hover {
    transform: none;
    box-shadow: none;
  }

  /* Ajustements pour les notes et alertes */
  .rights-note,
  .contact-note,
  .security-note,
  .alert-box {
    background-color: #f5f5f5 !important;
    border: 1pt solid #ddd;
  }

  /* Pied de page du document */
  .notice-footer {
    margin-top: 2cm;
    padding-top: 0.5cm;
    border-top: 1pt solid #000;
    text-align: center;
    color: #000;
  }

  .footer-date {
    margin-top: 0.3cm;
    font-size: 9pt;
    color: #666;
  }

  /* Masquer les éléments spécifiques à mobile/desktop */
  .mobile-only,
  .desktop-only {
    display: block;
  }

  .contact-list {
    display: none;
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  :root {
    --section-spacing: 50px;
  }

  .navbar-title h1 {
    font-size: 1rem;
  }

  .notice-container {
    padding: 30px;
  }

  .section-number {
    font-size: 2rem;
  }

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

  .section-content {
    padding-left: 40px;
  }

  .security-box {
    flex-direction: column;
  }

  .security-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .commitment-section {
    flex-direction: column;
    text-align: center;
  }

  .commitment-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 40px;
  }

  /* Affichage conditionnel mobile/desktop */
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .navbar-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  .navbar-logo {
    order: 1;
    width: 50%;
    justify-content: flex-start;
    padding-left: 20px;
  }

  .mobile-menu-toggle {
    order: 2;
    width: 50%;
    justify-content: flex-end;
    padding-right: 20px;
    display: flex;
    align-items: center;
  }

  .navbar-title {
    order: 3;
    width: 100%;
    padding: 20px 20px 20px;
    text-align: center;
    background-color: var(--primary-navbar);
    margin-top: 10px;
  }

  .navbar-title h1 {
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.3;
    color: var(--title-white);
  }

  .navbar-actions {
    order: 4;
    width: 100%;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    background-color: var(--card-background);
    padding: 15px;
    box-shadow: 0 5px 10px var(--shadow-color);
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease, visibility
      var(--transition-speed) ease;
    z-index: 990;
  }

  .navbar-actions.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  :root {
    --navbar-height: auto;
  }

  body {
    padding-top: 120px;
  }

  .progress-container {
    top: 120px;
  }

  .notice-container {
    padding: 25px 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-number {
    font-size: 1.8rem;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .section-content {
    padding-left: 20px;
  }

  .alert-box,
  .security-box {
    flex-direction: column;
  }

  .alert-icon,
  .security-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-header {
    flex-wrap: wrap;
  }

  .timeline-header i {
    margin-bottom: 10px;
  }

  .timeline-header h3 {
    width: 100%;
    margin-bottom: 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --navbar-height: 60px;
    --section-spacing: 30px;
  }

  .navbar-title h1 {
    font-size: 0.8rem;
  }

  body {
    padding-top: 115px;
  }

  .progress-container {
    top: 115px;
  }

  .logo {
    height: 35px;
  }

  .notice-container {
    padding: 20px 15px;
  }

  .section-number {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .info-card,
  .purpose-item,
  .timeline-content,
  .right-card {
    padding: 15px;
  }

  .card-icon,
  .purpose-icon,
  .right-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 10px;
    font-size: 0.8rem;
  }

  .security-features {
    flex-direction: column;
    gap: 10px;
  }

  .purpose-item {
    flex-direction: column;
    text-align: center;
  }

  .purpose-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .right-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .right-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .intro-text {
    font-size: 1rem;
  }

  .commitment-section {
    padding: 20px 15px;
  }

  .contact-item h4 {
    font-size: 0.9rem;
  }

  .contact-item a {
    font-size: 0.8rem;
    padding: 6px 0;
  }
}
