
@media (max-width: 576px) {
  .search-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .search-form-group {
    width: 100%;
    box-sizing: border-box;
  }
  .search-form-group input,
  .search-form-group select,
  .search-form-group button {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  .search-form-card {
    background: radial-gradient(ellipse at center, #fff4e4 0%, #f9ddb5 42%, #efc48d 100%);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(154,79,24,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    padding: 1.1rem 0.7rem 1rem 0.7rem;
    margin: 0 0 1.2rem 0;
    border: 2px solid #e19a4f;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .search-form {
    width: 100%;
    margin: 0;
  }
  .search-form-group label {
    font-weight: 700;
    color: #9a4f18;
    margin-bottom: 0.2rem;
    font-size: 1rem;
  }
  .search-form-group input,
  .search-form-group select {
    border-radius: 12px;
    border: 1.5px solid #e19a4f;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: #fff;
    color: #6b3500;
    margin-bottom: 0.7rem;
    width: 100%;
    box-sizing: border-box;
  }
  .search-form-group button {
    width: 100%;
    border-radius: 12px;
    font-size: 1rem;
    padding: 0.8rem 0;
    background: linear-gradient(90deg, #efc48d 0%, #e19a4f 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(225,154,79,0.10);
    transition: background 0.2s, box-shadow 0.2s;
  }
  .search-form-group button:hover {
    background: linear-gradient(90deg, #e19a4f 0%, #efc48d 100%);
    box-shadow: 0 4px 16px rgba(225,154,79,0.18);
  }
}
/* ============================================
   DASHBOARD – VERSION TABLETTE
   ============================================ */
   @media (min-width: 576px) and (max-width: 991px) {
  /* Dashboard tablette : une colonne, cards larges, stats en 2 colonnes */
  .admin-container {
    grid-template-columns: 1fr !important;
    padding: 1.2rem 0.5rem !important;
    gap: 1.2rem !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
  }
  .admin-stat-card, .admin-panel, .admin-form-card, .admin-table-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 22px !important;
    padding: 1.2rem 1.1rem !important;
  }
  .dashboard-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.2rem !important;
    width: 100% !important;
    margin: 0 auto 1.2rem auto !important;
  }
  .admin-panel-header {
    font-size: 1.1rem !important;
    padding-bottom: 0.3rem !important;
  }
  .admin-list-item {
    border-radius: 10px !important;
    padding: 0.5rem 0.7rem !important;
  }
}
}



/* ============================================
   12. AUTRES PAGES
   ============================================ */
/* ============================================
   MENTIONS LEGALES
   ============================================ */
.card-legal {
  
   margin: 3rem auto 0 auto;
  padding: 2.5rem 2rem 3rem 2rem;
  
  position: relative;
  min-height: 400px;
  border-radius: 42px;
  border: 2.5px solid #9a4f18;
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    #fff4e4 0%,
    #f9ddb5 42%,
    #efc48d 100%
    
  );
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.22),
    inset 0 0 0 5px rgba(255, 248, 230, 0.9),
    inset 0 -7px 12px rgba(0, 0, 0, 0.12),
    inset 0 9px 16px rgba(255, 255, 255, 0.6),
    inset 0 0 0 8px rgba(154, 79, 24, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #333333;
  margin-bottom: 20px;
  text-align: center;
}

/* ============================================
   PAGES GÉNÉRIQUES
   ============================================ */

.content-wrapper {
  padding: 0 2rem 0 2rem;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   PAGE RECHERCHE
   ============================================ */

.search-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem var(--spacing-md);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.search-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-submit {
  padding: 0.85rem 2rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-result-item {
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(154, 79, 24, 0.1);
}

.search-result-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  text-decoration: none;
}

.search-result-title:hover {
  text-decoration: underline;
}

.search-result-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.search-result-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-mid);
}

.search-no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  color: var(--color-text-mid);
}

.search-no-results h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ============================================
   PAGE NEWSLETTER
   ============================================ */

.newsletter-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.newsletter-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
}

.newsletter-content p {
  font-size: 1rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin: 0;
}

.newsletter-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-content li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-dark);
}

.newsletter-content li::before {
  content: "✓";
  color: #22c55e;
  font-weight: 700;
  font-size: 1.25rem;
}

.newsletter-form-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.newsletter-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--color-text-dark);
}

.newsletter-form-group {
  margin-bottom: 1.5rem;
}

.newsletter-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.newsletter-form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.newsletter-form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-mid);
}

.newsletter-checkbox input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.newsletter-checkbox label {
  cursor: pointer;
  line-height: 1.4;
}

.newsletter-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.newsletter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* ============================================
   PAGE RENSEIGNEMENTS & CONTACT
   ============================================ */

.contact-layout {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 6rem !important;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  align-items: flex-start !important;
  width: 100%;
}

.contact-main {
  grid-column: 1;
}

.contact-aside {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-aside-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-aside-card h3,
.contact-aside-card h4 {
  margin-bottom: 1rem;
}

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

.contact-details li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.contact-details strong {
  font-weight: 600;
  color: var(--color-text-dark);
}

.contact-details a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-bullets li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.contact-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.contact-section {
  margin-bottom: 4rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text-dark);
}

.contact-info-text p {
  margin: 0;
  color: var(--color-text-mid);
  line-height: 1.6;
}

.contact-info-text a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info-text a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  padding: 2rem ;
  margin: 0 auto;
  position: relative;
  border-radius: 42px;
  border: 2px solid #7a3e00;
  background: radial-gradient(
    ellipse at center,
    #fff6df 0%,
    #f8ddb0 45%,
    #ebc58c 75%,
    #d4a468 100%
  );
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18),
    inset 0 0 0 5px rgba(255, 245, 220, 0.9),
    inset 0 -6px 10px rgba(0, 0, 0, 0.1),
    inset 0 8px 14px rgba(255, 255, 255, 0.55),
    inset 0 0 0 10px rgba(122, 62, 0, 0.22);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form-group label {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

.contact-form-group input,
  .contact-form-group textarea,
  .contact-form-group select {
  padding: 0.85rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form-group textarea {
  min-height: 150px;
  resize: vertical;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.contact-form-submit {
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  align-self: flex-start;
}

.contact-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* ============================================
   PAGE MENTIONS LÉGALES
   ============================================ */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--color-text-mid);
  line-height: 1.8;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-definition {
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-primary);
  margin: 1.5rem 0;
  border-radius: 4px;
}

.legal-definition strong {
  color: var(--color-text-dark);
}

/* ============================================
   BREADCRUMB GÉNÉRIQUE
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-mid);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb-separator {
  color: #ccc;
}

/*
==================================================
  SECTION RESPONSIVE – MOBILE & TABLETTE
==================================================
*/

@media (max-width: 992px) {
  .newsletter-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-main {
    grid-column: 1;
    order: 1;
  }

  .contact-aside {
    grid-column: 1;
    order: 2;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .search-title {
    font-size: 1.5rem;
  }
}

/* Suppression des media queries non 576/768px */
  .search-header {
    padding: 2rem var(--spacing-sm);
    margin-bottom: 2rem;
  }

  .search-title {
    font-size: 1.5rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-input {
    min-width: auto;
  }

  .newsletter-content h1 {
    font-size: 1.5rem;
  }

  .newsletter-form-card {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-info-item {
    gap: 1rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
  }

  .legal-section h3 {
    font-size: 1.1rem;
  }


@media (max-width: 576px) {
  .contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
  }
  .contact-form-card,
  .contact-aside-card {
    margin: 1.2rem auto;
    width: 100%;
    max-width: 420px;
  }
  .contact-form {
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form-group,
  .contact-form-group label,
  .contact-form-group input,
  .contact-form-group textarea,
  .contact-form-group select,
  .contact-form-submit {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    
  }
  .contact-form-group {
    padding-left: 0;
    padding-right: 0;
  }
  .contact-form-group textarea {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    padding-right: 1.2rem;
  }
  }
  .content-container {
    padding: 0 var(--spacing-sm);
  }

  .contact-layout {
    padding: 1rem;
  }

  .contact-aside-card {
    padding: 1.5rem;
  }

  .search-header {
    padding: 1.5rem var(--spacing-sm);
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }

  .search-title {
    font-size: 1.25rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-result-title {
    font-size: 1.1rem;
  }

  .search-result-excerpt {
    font-size: 0.85rem;
  }

  .newsletter-content h1 {
    font-size: 1.25rem;
  }

  .newsletter-content p {
    font-size: 0.9rem;
  }

  .newsletter-form-card {
    padding: 1.25rem;
  }

  .newsletter-form-title {
    font-size: 1.25rem;
  }

  .contact-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .contact-info-item {
    gap: 1rem;
  }

  .contact-info-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .contact-info-text h4 {
    font-size: 1rem;
  }

  .contact-form-submit {
    width: 100%;
    align-self: stretch;
  }

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

  .legal-section h3 {
    font-size: 1rem;
  }

  .legal-section p,
  .legal-section ul,
  .legal-section ol {
    font-size: 0.9rem;
  }

  .legal-definition {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }
