:root{
  --primary:#0f7a56;
  --accent: #f4b300;
  --dark: #0f1e16;
  --light: #f7faf8;
  --text: #1b2a22;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 100;
  background: #fff; border: 2px solid var(--primary); padding: 8px 12px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header / Nav */

header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.logo img { width: 40px; height: 40px; border-radius: 6px; }

/* 🔧 Ajout important : aligner verticalement tous les enfants (y compris le <div class="dropdown">) */
.nav-links {
  display: flex; gap: 0px; flex-wrap: wrap;
  align-items: center; /* NEW */
}

/* Style uni pour tous les liens de nav (y compris le .dropdown-toggle) */
.nav-links a {
  padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #0f172a; text-decoration: none;
}
.nav-links a.active,
.nav-links a:hover { 
  background: transparent; /* Enlève l'ombre verte */
}

/* (Optionnel) S’assure que le wrapper dropdown s’aligne correctement */
.nav-links .dropdown { display: flex; align-items: center; }

/* Bouton burger */
.nav-toggle {
  display: none; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer;
}


 h1 {
            font-size: 2.5rem;
            font-weight: 600;
            color: #333;
            text-align: center;
            margin-bottom: 30px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            background-color: #ffffff;
            margin-top: 20px;
        }

        th, td {
            padding: 15px;
            text-align: left;
            border: 1px solid #ddd;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        th {
            background-color: #4CAF50;
            color: #fff;
            font-weight: bold;
            text-align: center;
        }

        tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        tr:hover {
            background-color: #f1f1f1;
            transform: scale(1.02);
        }

         td {
            color: #555;
            word-wrap: break-word;  /* Ensures long text wraps */
            overflow-wrap: break-word; /* Ensures long text wraps */
        }

        /* Agrandir la largeur des colonnes spécifiques */
        th:nth-child(2), td:nth-child(2) { 
            width: 10%;  /* Agrandir la colonne "Nom des SFD" */
        }

         /* Agrandir la largeur des colonnes spécifiques */
        th:nth-child(3), td:nth-child(3) { 
            width: 21%;  /* Agrandir la colonne "Nom des SFD" */
        }

          /* Agrandir la largeur des colonnes spécifiques */
        th:nth-child(4), td:nth-child(4) { 
            width: 14%;  /* Agrandir la colonne "Nom des SFD" */
        }

         /* Agrandir la largeur des colonnes spécifiques */
        th:nth-child(5), td:nth-child(5) { 
            width: 13%;  /* Agrandir la colonne "Nom des SFD" */
        }

        th:nth-child(6), td:nth-child(6) {
            width: 10%;  /* Agrandir la colonne "Fax" */
        }
       
        /* Responsive Design */
        @media (max-width: 768px) {
            table {
                border: 0;
            }
            table thead {
                display: none;
            }
            table, tbody, th, td, tr {
                display: block;
                width: 100%;
            }
            tr {
                margin-bottom: 10px;
                border: 1px solid #ddd;
                padding: 10px;
                background-color: #fff;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }
            td {
                text-align: right; /* Align text to the right */
                padding-left: 0;
                position: relative;
                font-size: 14px;
                border: none;
                padding-top: 10px;
                padding-bottom: 10px;
            }

            td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                top: 0;
                font-weight: bold;
                color: #4CAF50;
            }
        }

        /* Additional styles for large screens */
        @media (min-width: 768px) {
            table {
                margin-top: 40px;
            }
            th, td {
                font-size: 16px;
            }
        }


/* Footer */
footer.site-footer { background: var(--dark); color: #cbd5e1; padding: 30px 0; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
footer h4 { color: #fff; margin-top: 0; }
footer a { color: #cbd5e1; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; background: rgba(244,179,0,.12); color: #6b4a00; font-weight: 700; }
.small { font-size: 14px; }
hr.sep { border: 0; border-top: 1px solid #e5e7eb; margin: 20px 0; }


/* Réactif */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  .nav-links.open { display: flex; }
footer .cols { grid-template-columns: 1fr; }
}

/* Nav : jamais de soulignement */
.site-header .nav-links a,
.site-header .nav-links a:visited,
.site-header .nav-links a:hover,
.site-header .nav-links a:focus {
  text-decoration: none;
}

/* (optionnel) garder l'effet de survol sans souligner */
.site-header .nav-links a.active,
.site-header .nav-links a:hover {
  background: rgba(10,107,74,.1);
}


.social-icons {
  margin-top: 20px;
}

.social-icon {
  margin-right: 15px;
  font-size: 24px;
  
}

.social-icon:hover {
  color: #007BFF;
}
