/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #002c67;
}

.top-banner {
  padding: 1rem 2rem;
  background-color: #555555;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.top-banner a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

.hero-align-tight {
  padding: 2.5rem 1rem;
  background-color: #ffffff;
}

.hero-flex {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hero-text {
  margin-top: 25px;
  margin-left: 35px;
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #002c67;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero-text p {
  text-align: justify;
}

.logo-ted {
  height: 100px;
}

.logo-edf {
  height: 79px;
  opacity: 0.9;
  margin-left: 8px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tertiaire-section {
  position: relative;
  background-image: url(Assets/bandeau-tertiaire1.png);
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 4rem 2rem; */
  transition: background-image 1s ease-in-out;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background-color: #e26818;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 32px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.header-content {
  position: relative;
  z-index: 1;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.95;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 30px;
}

/* Main Content */
.main-content {
  padding: 80px 0;
}

.section {
  background: white;
  padding: 40px;
}

.section-title {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #e26818, #e26818);
  border-radius: 2px;
}

.section-intro {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #6b7280;
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.advantage-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #e26818;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.advantage-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.advantage-desc {
  color: #6b7280;
  font-size: 0.95rem;
}

/* Sectors */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.sector-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.sector-item:hover {
  border-color: #3b82f6;
  background: #f8faff;
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* Partnership Section */
.partnership-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border-radius: 16px;
  overflow: hidden;
}

.partnership-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.partnership-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.partnership-intro {
  margin-bottom: 25px;
}

.partnership-features {
  list-style: none;
}

.partnership-features li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.partnership-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
  font-size: 18px;
}

.partnership-quote {
  margin-top: 25px;
  font-style: italic;
  opacity: 0.9;
}

.partnership-visual {
  text-align: center;
  font-size: 4rem;
  opacity: 0.8;
}

/* Trust Section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.trust-item {
  text-align: center;
  padding: 20px;
  border: 1px solid #d0d0d0;
  box-shadow: 1px 1px 5px #eaeaea;
  border-radius: 10px;
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.trust-title {
  color: #1e3a8a;
  margin-bottom: 10px;
}

/* Neutrality Section */
.neutrality-section {
  background: #fef3c7;
  border-left: 5px solid #f59e0b;
  color: #92400e;
}

.neutrality-section .section-title {
  color: #92400e;
}

.neutrality-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-top: 25px;
}

.neutrality-question {
  color: #92400e;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.neutrality-answer {
  margin-bottom: 20px;
  color: #78350f;
}

.neutrality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.neutrality-item {
  text-align: center;
  padding: 15px;
  background: #fef3c7;
  border-radius: 8px;
}

.neutrality-item strong {
  color: #92400e;
}

.neutrality-item span {
  color: #78350f;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  text-align: center;
  padding: 50px 40px;
  border-radius: 16px;
  margin-top: 60px;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tertiaire-text h2 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.intercalaire {
  position: relative;
  background-image: url(Assets/intercalaire.png);
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
}

.intercalaire2 {
  position: relative;
  background-image: url(Assets/intercalaire2.png);
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .partnership-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section {
    padding: 25px;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .neutrality-grid {
    grid-template-columns: 1fr;
  }
}

.formulaire-section {
  margin-top: 50px;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(Assets/adhesion.png);
  background-size: cover;
}

.form-tertiaire {
  width: 100%;
  max-width: 500px;
  background: #ffffffe0;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulaire-section h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-align: center;
}

.form-text {
  border-left: solid 3px #e26818;
  background: #fff;
  padding: 10px;
}

.form-tertiaire input,
.form-tertiaire select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-tertiaire button {
  margin-top: 0.5rem;
  background-color: #e26818;
  color: white;
  padding: 0.9rem;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

img.wp-smiley,
img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

.footer-contact {
  background-color: #002c67;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}

.sub-footer {
  background-color: #001e48;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.sub-footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  color: #ccc;
}

.sub-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

@media (max-width: 600px) {
  .hero-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-logos {
    align-items: center;
  }

  .hero-text {
    text-align: center;
    margin: 0;
  }
}

.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;

  color: #fff;
}
.success {
  background-color: #4CAF50;
}
.error {
  background-color: #f44336;
}

 #loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: #fff;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s;
        }
        .loader-spinner {
            border: 8px solid #f3f3f3;
            border-top: 8px solid #3498db;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
