/*
Theme Name: TED Entreprise Theme
Theme URI: http://www.paca-ted.fr/
Author: Roo
Author URI: https://github.com/Roo
Description: Thème WordPress pour le site TED Entreprise, converti depuis un site HTML statique.
Version: 1.0
License: GPLv2 or later
Text Domain: ted-entreprise
Tags: custom-background, custom-header, custom-logo, featured-image-header, flexible-header, post-formats, rtl,  threaded-comments, translation-ready

Ce thème est basé sur le site HTML existant pour TED Entreprise.
*/
:root {
  --color-gray: #555555;
  --color-blue: #002c67;
  --color-orange: #e26818;
  --font-base: 'Inter', sans-serif;
}

/* === Reset global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html{
	scroll-behavior: smooth;
  scroll-padding-top: 80px; /* pour éviter d'avoir le formulaire masqué sous le bandeau */
}

body {
  font-family: var(--font-base, sans-serif);
  background-color: #ffffff;
  color: var(--color-blue);
}

/* === Bandeau lien === */
.top-banner {
  padding: 1rem 2rem;
  background-color: var(--color-gray);
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.top-banner a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

/* === Section logos + accroche === */
.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;
}

.logo-ted {
  height: 100px;
}

.logo-edf {
  height: 79px;
  opacity: 0.9;
  margin-left: 8px;
}

.hero-text {
  margin-top: 25px;
  margin-left: 35px;
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--color-gray);
  font-weight: 500;
  line-height: 1.6;
}

@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;
  }
}

/* === Section bandeau visuel === */
.partenaire-section {
  position: relative;
  background-image: url('Assets/bandeau-partenaires1.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;
}

.partenaire-texte 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;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-orange);
  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;
}

.cta-button:hover {
  background-color: #c4550f;
}

/* === FORMULAIRE PARTENAIRE === */
.formulaire-section {
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image:url("Assets/Adhesion.png");
  background-size:cover;
}

@media (max-width: 720px) {
	.formulaire-section {
		background-position:-289px 0;
	}
}

.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-partenaire {
  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;
}

.form-partenaire input,
.form-partenaire select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-partenaire input:focus,
.form-partenaire select:focus {
  border-color: var(--color-orange);
  outline: none;
}

.form-partenaire button {
  margin-top: 0.5rem;
  background-color: var(--color-orange);
  color: white;
  padding: 0.9rem;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-partenaire button:hover {
  background-color: #c4550f;
}

/* === Section alternée : Pourquoi devenir partenaire === */
.section-alternate {
  background-color: #f3f6fa; /* bleu très clair pour contraste */
  padding: 4rem 1.5rem;
  text-align: center;
}

.section-alternate h2 {
  font-size: 2rem;
  color: var(--color-blue);
  margin-bottom: 1.5rem;
}

.section-alternate p {
  font-size: 1.125rem;
  color: var(--color-gray);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.section-alternate .mission {
  font-weight: 600;
  color: var(--color-blue);
}

.container-image {
  margin: 2rem auto 3rem;
  max-width: 900px;
  text-align: center;
}

.container-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.container-texte h2{
	text-transform: uppercase;
    letter-spacing: 5px;
}

/* Bloc des avantages (icônes + texte) */
.avantages {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.avantage-item {
  width: 260px;
  text-align: center;
  border: 1px solid darkgray;
    border-radius: 10px;
}

.avantage-item img {
  width: 60px;
  height: 60px;
  margin: auto;
}

.avantage-item p {
  font-size: 1rem;
  color: var(--color-blue);
  line-height: 1.5;
}

.avantage-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* Responsive mobile */
@media (max-width: 700px) {
  .avantages {
    flex-direction: column;
    align-items: center;
  }

  .avantage-item {
    max-width: 90%;
  }
}

<style>
.benefices-section {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.benefices-header h2 {
	    text-transform: uppercase;
    letter-spacing: 5px;
  font-size: 2rem;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.benefices-logos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.benefices-logos img {
  max-height: 50px;
  object-fit: contain;
}

.benefices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.benefices-header{
	text-align: center;
    margin-top: 62px;
    margin-bottom: 40px;
}

.benefice-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.benefice-card:hover {
  transform: translateY(-5px);
}

.icon-placeholder {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-orange);
}

.benefice-card h3 {
  font-size: 1.125rem;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.benefice-card p {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.5;
}

.engagements-section {
  background-color: #eaf0f7;
  background-image: url(Assets/engagement.png);
  background-position: 0px -502px;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4rem 1.5rem;
}

.engagements-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffffe0;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

/* Responsive mobile */
@media (max-width: 1150px) {
  .engagements-section {
    background-position: 0px 0px;
  }
}

.engagements-container h2 {
  font-size: 2rem;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
	text-transform: uppercase;
    letter-spacing: 5px;
  
}

.engagements-subtitle {
  font-size: 1.3rem;
  color: var(--color-gray);
  margin-bottom: 2.5rem;
}

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

.engagements-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.engagement-icon {
  font-size: 1.5rem;
  color: var(--color-orange);
  flex-shrink: 0;
}

.engagements-list h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-blue);
  font-weight: 600;
}

.engagements-list p {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .engagements-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.demarche-section {
  background-color: #f3f6fa;
  padding: 4rem 2rem;
  text-align: center;
}

.demarche-section h2 {
  font-size: 2rem;
  color: var(--color-blue);
  margin-bottom: 2rem;
  	text-transform: uppercase;
    letter-spacing: 5px;

}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.timeline-item {
  background: #fff;
  border-left: 4px solid var(--color-orange);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
}

.timeline-number {
  position: absolute;
  background: var(--color-orange);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  top: -12px;
    left: -16px;
}

.timeline-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-gray);
  padding-left: 1.5rem;
}

.footer-contact {
  background-color: #002c67;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-orange);
}

.footer-contact p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact a:hover {
  color: #ffb17a;
}

.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;
}

.sub-footer a:hover {
  color: white;
}

.sub-footer span {
  color: #aaa;
}

.illustration-fullwidth {
  width: 100%;
  padding: 0;
}

@media (min-width: 1150px) {
  .illustration-fullwidth img{
    object-position: 0px -156px;
  }
}

.illustration-fullwidth img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
      max-height: 400px;    
}

/* Animation fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation pour les éléments de timeline */
.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animation de survol hover pour cartes */
.benefice-card:hover,
.avantage-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Animation pulsée du bouton CTA */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226,104,24, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(226,104,24, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226,104,24, 0); }
}

.cta-button {
  animation: pulse 2.5s infinite;
}

.form-text {
   border-left: solid 3px #e26818;;
   background: #fff;
   padding: 10px; 
  }
  
.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); }
        }
