/* RESET SIMPLE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
}

/* LIENS & IMAGES */
a {
  color: #0b7285;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTENEUR GÉNÉRAL */
.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

/* HEADER */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}



/* Assurez-vous que le conteneur .brand utilise align-items: center */
.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-logo {
  height: 120px;
  width: auto;
}

.brand-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4b5563;
}

/* Style pour le titre à côté du logo */
.brand-title {
  font-family: "Arial Black", "Arial Bold", Gadget, sans-serif; /* Police plus robuste */
  font-size: 1.4rem; /* Augmenté de 1.1rem à 1.4rem */
  font-weight: 900; /* Plus gras si disponible */
  text-transform: uppercase;
  color: #0408d3;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-left: 0.5rem;
  align-self: center;
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
  .brand-title {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 640px) {
  .brand {
    flex-direction: column;
    align-items: center; /* Centre aussi sur mobile */
  }

  .brand-title {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center; /* Centre le texte sur mobile */
    font-size: 0.85rem;
  }
}
  

/* NAVIGATION */
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

header nav li {
  margin: 0;
}

header nav a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #111827;
}

header nav a:hover {
  color: #0b7285;
}

/* HERO (IMAGE DE FOND + TEXTE + PERSONNE) */
.hero {
  background-image: url("img/0imagedegardesite2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 1.25rem 0 5.5rem;
  margin-bottom: 0;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  max-width: 600px;
}

.hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0b7285;
  margin-bottom: 0.3rem;
}

.hero-title-line {
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* baisse la taille et autorise le retour à la ligne sur petit écran */
@media (max-width: 640px) {
  .hero-title-line {
    white-space: normal;
    font-size: 1.4rem;
  }
}

.hero-sub {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #ffffff;
}

/* La dernière phrase "Centre spécialisé..." en majuscule gras */
.hero-sub:last-of-type {
  text-transform: uppercase;
  font-weight: 700;
}

.hero-image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-height: 340px;
  width: auto;
}

.hero-text {
  max-width: 750px; /* Augmenté de 600px à 750px */
}

/* 4 BLOCS : PRESTATIONS / CYCLES / FORMATIONS / RÉFÉRENCES */
.features {
  padding: 1.5rem 0 1.5rem;
  margin-top: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.feature-item {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  height: 140px;
  width: auto;
  margin-bottom: 2rem;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

/* BLOC CCFM AVEC IMAGE 2image3.jpg À DROITE */
.ccfm-section {
  padding: 2.5rem 0 2rem;
  background-color: #ffffff;
}

.ccfm-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.ccfm-text {
  width: 70%;
}

.ccfm-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  text-align: justify;
}

/* plus d'espace entre le titre et la liste */
.ccfm-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.ccfm-list li {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: #000000;
  text-align: justify;
}

/* puces rondes bleues */
.ccfm-list li::marker {
  color: #1d36f1;
}

.ccfm-image {
  flex: 1 1 260px;
  text-align: right;
}

.ccfm-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.ccfm-image1 {
  text-align: center;
}

.ccfm-image1 img {
  display:block;
  margin:0 auto;
  max-width:240px;
}

.ccfm-image0 img {
  display:block;
  margin:0 auto;
  max-width:160px;
}

.ccfm-director-name {
  margin-top:12px;
  font-weight:700;
  color:#1710e6;
}

.ccfm-director-title {
  margin-top:4px;
  font-size:0.9rem;
  line-height:1.4;
}

.ccfm-text img {
  width: 15%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* RESPONSIVE CCFM / HERO / FEATURES */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image img {
    max-height: 280px;
  }

  .ccfm-inner {
    flex-direction: column;
    text-align: left;
  }

  .ccfm-image {
    text-align: center;
  }
}

/* FOOTER CONTACT – CENTRÉ ET EN GRAS */
/* FOOTER CONTACT – BLEU AVEC TEXTE BLANC */
.contact-footer {
  background-color: #0408d3; /* Bleu au lieu de noir */
  color: #ffffff; /* Texte en blanc */
  padding: 1.5rem 0;
  margin-top: 1rem;
}


.contact-footer-text {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff; /* Texte en blanc */
}

.contact-footer-text a {
  color: #ffffff; /* Liens en blanc */
  font-weight: 700;
}

.contact-footer-text a:hover {
  color: #e0e0ff; /* Léger changement au survol pour visibilité */
  text-decoration: underline;
}

/*.contact-footer {*/
/*  background-color: #111827;*/
/*  color: #ffffff;*/
/*  padding: 1.5rem 0;*/
/*  margin-top: 1rem;*/
/*}*/

.contact-footer-text {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

.contact-footer-text a {
  color: #ffffff;
  font-weight: 700;
}

.page-title {
  text-align: center;
  color: #000000;
  background-color: #e5e7eb;
  padding: 0.4rem 0;
  margin: 2.5rem 0 0;
  font-size: 1.6rem;
}

/* PETIT ESPACEMENT SUR MOBILE */
@media (max-width: 480px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .contact-footer-text {
    font-size: 0.9rem;
  }
}

/* ==== Mise en page spéciale pour MOT DE LA DIRECTION sur index1.html ==== */
.direction-section .ccfm-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.direction-section .ccfm-text {
  max-width: 100%;
}

.direction-section .ccfm-image {
  text-align: right;
  margin-top: 0.75rem;
}

.direction-section .ccfm-image img {
  max-width: 140px;
  height: auto;
}

.direction-section .ccfm-inner {
  display: block;
}

.direction-section .ccfm-text {
  max-width: 100%;
}

/* ====== PAGE44 : 2 colonnes PLAQUETTES / CYCLES ====== */
.wrap.pad-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.block-5 {
  background-color: #f3f3f3;
  padding: 15px 20px;
  border-radius: 6px;
  flex: 1;
}

.block-5 .info-text1 a {
  color: #181bed;
}

.block-6 {
  flex: 2 1 0;
  flex-grow: 3;
}

.block-5 .list-1 {
  margin: 0;
  padding-left: 18px;
}

.block-5 .list-1 li {
  margin-bottom: 4px;
}

.block-6 .info-text {
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .wrap.pad-3 {
    flex-direction: column;
  }
}

/* NAVIGATION MENU BLEU */
nav {
  background-color: #0408d3;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;          /* le menu passe à la ligne au lieu de déborder */
}

nav ul li {
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: block;
  padding: 10px 12px;       /* 12px au lieu de 20px : 7 options tiennent sur une ligne */
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  font-size: clamp(12px, 1.5vw, 14px);
}

nav ul li a:hover {
  background-color: #58acf1a1;
}

/* REFERENCES SECTION */
.references-section {
  padding: 40px 0;
}

.references-inner {
  text-align: center;
}

.references-image {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.ref-title-bar {
  width: 100%;
  background-color: #3b1bf0;
}

.ref-title {
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  font-size: 26px;
  margin: 0;
  padding: 2px 0;
}

.ref-texte {
  text-align: justify;
  color: #1d1c1cca;
  line-height: 1.6;
}

.module-content {
  max-width: 900px;
  margin: 30px auto;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
}

/* SOUS-TITRES */
.module-subtitle {
  font-family: "Candara", Arial, sans-serif;
  font-size: 26px;
  font-weight: normal;
  text-transform: none;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #555555;
}

.module-subtitle::first-letter {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.4em;
  font-weight: normal;
}

.module-subtitle1 {
  font-family: "Candara", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #323ee1;
}

.module-subtitle1::first-letter {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.4em;
  font-weight: normal;
}

/* TEXTE DES PARAGRAPHES */
.module-text {
  text-align: justify;
  color: #ffffff;
  line-height: 1.6;
}

.module-text1 {
  text-align: justify;
  color: #ffffff;
  line-height: 1.6;
}

.module-text + .module-text {
  margin-top: 2px;
}

/* LISTES */
.module-list {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #333333a0;
  line-height: 1.6;
}

.module-list li {
  margin-bottom: 4px;
}

.module-list1 {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #fcf8f8a0;
  line-height: 1.6;
}

.module-list1 li {
  margin-bottom: 4px;
}

/* LISTE AVEC FLÈCHES marker.gif */
.info-text1 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-text1 li {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 4px;
  background: url("img/marker.gif") no-repeat 0 6px;
}

.audit-subtitle {
  font-family: "Candara", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #323ee1;
}

/* ====== STYLES DES MODULES (fusionnés de style-modules.css) ====== */

/* Mise en page en deux colonnes pour le module */
.module-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

/* Colonne gauche : OBJECTIF / PUBLIC / DÉMARCHE */
.module-main {
  flex: 2;
  background-color: #0a3de4c9;
  padding: 1.5rem;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Colonne droite : PROGRAMME */
.module-programme-col {
  flex: 1;
  background-color: #0530dceb;
  padding: 1.5rem;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Titre PROGRAMME dans la colonne droite */
.module-programme-col .programme-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Puces flèche pour les listes des deux colonnes */
.module-main .module-list,
.module-programme-col .module-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-main .module-list li,
.module-programme-col .module-list li {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 6px;
  background: url("img/marker.gif") no-repeat 0 6px;
}

/* Bloc contenant l'image dans la colonne programme */
.programme-image-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

/* Image dans la colonne programme */
.programme-image {
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 4px;
}

/* Première ligne du programme comme un paragraphe OBJECTIF */
.module-programme-col .module-list1 li:first-child {
  list-style: none;
  background: none;
  padding-left: 0;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  color: #ffffff;
  font-weight: 600;
}

/* Fond de page pour les pages de modules */
body.module-page {
  background-color: #ffffff;
}

/* On force aussi le fond des conteneurs du module */
.ccfm-inner,
.module-content {
  background-color: #ffffff;
}

/* Couleur des titres dans les deux colonnes */
.module-main .module-subtitle,
.module-programme-col .programme-title {
  color: #ffffff;
}

/* Responsive : colonnes l'une sous l'autre sur mobile */
@media (max-width: 768px) {
  .module-layout {
    flex-direction: column;
  }

  .module-programme-col {
    margin-top: 1.5rem;
  }
}

/* Titre information avec style spécifique */
/* Titre information avec style spécifique */
.info-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  margin: 1.5rem 0 1rem 0; /* Changé : 1.5rem haut, 0 droite, 1rem bas, 0 gauche ----- margin: 0 0 0.75rem 0; */  
  line-height: 1.3;
  font-family: inherit;
  text-align: center;
}

/* Option : Pour un alignement spécifique */
/*.info-title.center {*/
/*  text-align: center;*/
/*}*/

/* Titre information avec style spécifique */
.info-title0 {
  font-size: 16px;           /* Taille 12px */
  /*font-weight: 700;           Gras (700 = bold) */
  text-transform: uppercase;  /*Majuscules*/ 
  color: #0408d3;            /* Couleur gris très foncé */
  margin: 0 0 0.75rem 0;     /* Marge basse pour espacement */
  line-height: 1.5;          /* Hauteur de ligne pour lisibilité */
  font-family: inherit;      /* Hérite la police du parent */
  text-align: center;
  line-height: 1.8; /* Bon équilibre */
}



/* ====== STYLES POUR inscription.php (inscription1.php) ====== */

/* Styles spécifiques pour le formulaire d'inscription */
.inscription-card {
  max-width: 740px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.inscription-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.inscription-logo-ccfm {
  max-height: 120px;
  margin-top: 4px;
}

.inscription-logo-esma {
  max-height: 120px;
  margin-top: 1rem;
}

.inscription-title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.inscription-subtitle {
  color: #2563eb;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  text-align: justify;
}

.inscription-subtitle1 {
  color: #2563eb;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.inscription-row {
  margin-bottom: 0.75rem;
}

.inscription-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.inscription-row input[type="text"],
.inscription-row input[type="email"],
.inscription-row input[type="tel"],
.inscription-row select,
.inscription-row textarea {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 1rem;
}

.inscription-row textarea {
  min-height: 80px;
  resize: vertical;
}

.inscription-row select[multiple] {
  height: auto;
  min-height: 120px;
}

.inscription-note {
  background: #f3f4ff;
  color: #1f2937;
  border-left: 4px solid #4f46e5;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.inscription-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.inscription-error ul {
  margin: 0.25rem 0 0 1.125rem;
  padding: 0;
}

.inscription-error li {
  margin-bottom: 0.125rem;
}

.inscription-button {
  padding: 0.5625rem 1.125rem;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.inscription-button:hover {
  background: #1d4ed8;
}

.inscription-button.muted {
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  margin-left: 0.5rem;
}

.inscription-button.muted:hover {
  background: #f3f4f6;
}

.inscription-pied {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #374151;
  text-align: center;
}

.inscription-liencentre {
  text-align: center;
  margin-top: 0.5rem;
}

.inscription-liencentre a {
  color: #2563eb;
  text-decoration: none;
}

.inscription-liencentre a:hover {
  text-decoration: underline;
}

.inscription-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.inscription-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: normal;
  cursor: pointer;
}

.inscription-checkbox-group input[type="checkbox"] {
  width: auto;
}

.inscription-debug-info {
  background: #f0f0f0;
  padding: 0.625rem;
  margin: 0.625rem 0;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #666;
  white-space: pre-wrap;
  font-family: monospace;
}

.inscription-autre-wrap {
  display: none;
  margin-top: 0.5rem;
}

.inscription-autre-wrap input[type="text"] {
  width: 100%;
}

.inscription-msg-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.required-star {
  color: #dc2626;
  font-weight: bold;
}

/* Styles pour le footer de contact spécifique à l'inscription */
.inscription-contact-footer {
  background-color: #0408d3;
  color: #ffffff;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.inscription-contact-footer-text {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.inscription-contact-footer-text a {
  color: #ffffff;
  font-weight: 700;
}

.inscription-contact-footer-text a:hover {
  color: #e0e0ff;
  text-decoration: underline;
}

/* Responsive design pour l'inscription */
@media (max-width: 768px) {
  .inscription-card {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  .inscription-title {
    font-size: 1.4rem;
    white-space: normal;
  }
  
  .inscription-checkbox-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .inscription-card {
    padding: 1rem;
  }
  
  .inscription-title {
    font-size: 1.2rem;
  }
  
  .inscription-subtitle1 {
    font-size: 0.9rem;
  }
  
  .inscription-button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .inscription-button.muted {
    width: 100%;
    margin-left: 0;
  }
}

/* Animation pour les messages d'erreur */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inscription-error {
  animation: fadeIn 0.3s ease-out;
}

/* Style pour les options de sélection */
.inscription-row select option {
  padding: 0.5rem;
}

/* Style pour les champs obligatoires */
.inscription-row input:required,
.inscription-row select:required {
  border-left: 3px solid #2563eb;
}

/* Style pour les champs en focus */
.inscription-row input:focus,
.inscription-row select:focus,
.inscription-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Style pour les labels des champs obligatoires */
.inscription-row label[for]:has(+ input:required),
.inscription-row label[for]:has(+ select:required) {
  position: relative;
}

.inscription-row label[for]:has(+ input:required)::after,
.inscription-row label[for]:has(+ select:required)::after {
  content: "*";
  color: #dc2626;
  margin-left: 0.25rem;
}

/* Style pour les options de sélection multiple */
.inscription-row select[multiple] option:checked {
  background-color: #2563eb;
  color: white;
}

/* Style pour le groupe de boutons */
.inscription-button-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .inscription-button-group {
    flex-direction: column;
  }
}