/* ----------------------------------------------------------
    RESET DE BASE
---------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background:#faf8f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* ----------------------------------------------------------
    CONTAINER GÉNÉRAL
---------------------------------------------------------- */
.container {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: min(100%, 960px);
}


.page-reclamation .container {
  max-width: 1100px;    /* idéal 27 pouces */
  width: 100%;
  margin: 0 auto;
  padding: 30px 40px;
}


/* ----------------------------------------------------------
    TITRES
---------------------------------------------------------- */
h1, h2 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    width: min(100%, 960px);
}

.logos .logo {
    max-width: 25%;          /* chaque logo prend jusqu’à 25% de la ligne */
    height: auto;            /* garde le ratio naturel */
    max-height: 100px;       /* limite haute adaptable */
    object-fit: contain;
}

/* ----------------------------------------------------------
    FORMULAIRE CONTACT (compact & professionnel)
---------------------------------------------------------- */

#contactForm {
  max-width: 600px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

/* Groupes très compacts */
.form-group {
  position: relative;
  margin-bottom: 14px;
}

/* Floating label minimal */
.form-group label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0 3px;
  background: #fff;
  color: #6a6a6a;
  font-size: 0.85rem;
  pointer-events: none;
  transition: .15s ease;
}

/* Champs compacts */
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px 10px 8px;
  font-size: 0.92rem;
  border: 1.6px solid #d0d4da;
  border-radius: 5px;
  background: #fafafa;
  transition: .15s ease;
}

/* Focus minimal mais élégant */
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26,115,232,.15);
  outline: none;
}

/* Label qui flotte */
#contactForm input:not(:placeholder-shown) + label,
#contactForm textarea:not(:placeholder-shown) + label,
#contactForm input:focus + label,
#contactForm textarea:focus + label {
  top: -6px;
  left: 8px;
  font-size: 0.72rem;
  color: #1a73e8;
}

/* Textarea compacte */
#contactForm textarea {
  min-height: 90px;
  resize: vertical;
}

#FormReclamation input,
#FormReclamation textarea {
  width: 100%;
  padding: 10px 10px 8px;
  font-size: 0.92rem;
  border: 1.6px solid #d0d4da;
  border-radius: 5px;
  background: #fafafa;
  transition: .15s ease;
}


#FormReclamation input:focus,
#FormReclamation textarea:focus {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26,115,232,.15);
  outline: none;
}


#FormReclamation input:not(:placeholder-shown) + label,
#FormReclamation textarea:not(:placeholder-shown) + label,
#FormReclamation input:focus + label,
#FormReclamation textarea:focus + label {
  top: -6px;
  left: 8px;
  font-size: 0.72rem;
  color: #1a73e8;
}


#FormReclamation textarea {
  min-height: 90px;
  resize: vertical;
}


/* Erreurs, compactes et lisibles */
.error-text {
  font-size: 0.75rem;
  color: #d32f2f;
  margin-top: 2px;
  min-height: 0.9em;
}

/* ----------------------------------------------------------
   CHECKBOX 
---------------------------------------------------------- */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.checkbox-item {
  display: block;                
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}



.checkbox-item:has(input[type="checkbox"]:focus-visible) {
  outline: 2px solid #94c0ff;
  outline-offset: 2px;
}


.checkbox-item:hover {
  background: #f3f3f3;
}


.checkbox-wrapper {
  display: grid;                 
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  justify-content: start;        
  text-align: left;             
}



.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;                     
  accent-color: #1a73e8;         
}



.checkbox-item label {
  margin: 0;
  font-size: 1.05rem;            
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;              
  cursor: pointer;             
}


/* Nombre de parts  */


.checkbox-item .share-input-container {
  display: inline-flex;          
  gap: 8px;
  align-items: center;
  padding-left: 34px;           
  padding-top: 6px;
}


.checkbox-item .share-input-container[hidden] { display: none !important; }


.checkbox-item .share-label {
  font-size: 0.62rem; 
  color: #333 !important;
}


.checkbox-item .share-input {
  width: 80px;
  padding: 6px 8px;
  font-size: 0.82rem;
  border: 1.6px solid #d0d4da;
  border-radius: 5px;
}

.checkbox-item .share-input:focus {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26,115,232,.15);
}

/* ----------------------------------------------------------
   Bouton 
---------------------------------------------------------- */

#contactForm button[type="submit"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #1a73e8;
  color: #fff;
  cursor: pointer;
  transition: .15s ease;
}

#contactForm button[type="submit"]:hover {
  background: #1664c4;
}


.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.grid-span-2 { grid-column: span 2; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .grid-span-2 { grid-column: 1; }
}

.tab {
  display: inline-block;
  width: 2rem; 
}

.row {
  display: flex;
  gap: 12px; /* espace = tabulation */
  align-items: center;
}


/* ----------------------------------------------------------
    MESSAGE SUCCÈS / ERREUR
---------------------------------------------------------- */
.message {
  display: none;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
}
.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ----------------------------------------------------------
    DOCS
---------------------------------------------------------- */
.docs {
  max-width: 900px;
  margin: 32px auto;
}

.docs h2 {
  font-size: 1.6rem;
  color: #0d2b57;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

@media (max-width:920px) {
  .download-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px) {
  .download-grid { grid-template-columns: 1fr; }
}

/* Carte document */
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: box-shadow .2s ease, transform .06s ease;
}

.doc-card:hover {
  box-shadow: 0 6px 22px rgba(2,8,23,.08);
  transform: translateY(-1px);
}

.doc-title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.doc-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #f0f5ff;
  color: #1a4474;
  font-weight: 700;
  border-radius: 6px;
}

.doc-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #4b5563;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.doc-filename {
  font-size: .8rem;
  color: #6b7280;
  overflow-wrap: anywhere;
  max-height: 3.2em;
  overflow: hidden;
}

.doc-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: #1a4474;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26,68,116,.18);
  transition: .2s ease;
}

.doc-download:hover {
  background: #15365a;
}

/* ----------------------------------------------------------
    FOOTER
---------------------------------------------------------- */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}


.page-reclamation {
  flex: 1; 
}


.footer-classic {
  padding: 18px 0;
  background: transparent;     
  text-align: center;
  border-top: 1px solid #e5e7eb; 
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 0.9rem;
}

.footer-classic a {
  text-decoration: none;
  color: #1f2937;
}

.footer-classic a:hover {
  color: #1a4474;
}

.sep {
  color: #9ca3af;
  margin: 0 4px;
}
/* --- FORMULAIRE RECLA --- */

form#FormReclamation {
    max-width: 650px;          
    margin: 0 auto;
    padding: 20px 25px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb; 
    font-family: "Segoe UI", sans-serif;
}

form#FormReclamation .form-group {
    margin-bottom: 14px;      
}


form#FormReclamation label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}


form#FormReclamation input {
    width: 100%;
    padding: 8px 10px;         
    font-size: 0.95rem;
    border: 1px solid #d1d5db; 
    border-radius: 6px;
    background: #f9fafb;
    transition: 0.15s ease;
}

form#FormReclamation input:focus {
    border-color: #2563eb;         
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); 
}

.error-text {
    font-size: 0.8rem;
    color: #d92d20;
    margin-top: 3px;
}


form#FormReclamation button#submitBtnReclamation {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    background: #1a4474;
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
}

form#FormReclamation button#submitBtnReclamation:hover {
    background: #15365a;
}


.readonly {
  background: #f3f4f6;
  color: #6b7280;
}

.wizard-form { max-width: 900px; margin: 0 auto; }


.wizard-progress { height: 6px; background: #e5e7eb; border-radius: 6px; overflow: hidden; margin: 12px 0 20px; }
.wizard-progress-bar { height: 100%; background: #1a4474; width: 0%; transition: width .25s ease; }

.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-span-2 { grid-column: span 2; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } .form-span-2 { grid-column: span 1; } }

.wizard-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

.btn-primary, .btn-secondary { padding: 8px 14px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: #1a4474; color: #fff; }
.btn-primary:hover { background: #15365a; }
.btn-secondary { background: #f3f4f6; color: #111; border-color: #e5e7eb; }
.btn-secondary:hover { background: #e5e7eb; }

.question { background: #f8fafc; border:1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.conditional-fields[hidden] { display:none !important; }

.recap ul { margin: 6px 0 12px 18px; }
.wizard-step { display: none; }
.wizard-step.active { display: block !important; }

/* ----------------------------------------------------------
   PAGE LEGAL 
---------------------------------------------------------- */

.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 48px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 3px 10px rgba(0,0,0,0.05),
        0 1px 4px rgba(0,0,0,0.04);
    line-height: 1.75;
    color: #1f2937;
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* Titres principaux */
.legal-container h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1a4474;
    text-align: center;
    margin-bottom: 28px;
}

/* Sous-titres */
.legal-container h2 {
    margin-top: 40px;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0d2b57;
    border-left: 4px solid #1a4474;
    padding-left: 12px;
}

.legal-container h3 {
    font-size: 1.25rem;
    margin-top: 28px;
    color: #1f2937;
    font-weight: 600;
}

/* Paragraphe */
.legal-container p {
    margin-bottom: 14px;
    font-size: 1.02rem;
    color: #374151;
}

/* Listes */
.legal-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-container li {
    margin-bottom: 6px;
    font-size: 1rem;
    color: #333;
}

/* Encadrés importants */
.legal-box {
    background: #f9fafc;
    border-left: 4px solid #1a4474;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-box p {
    margin-bottom: 10px;
}

/* Liens */
.legal-container a {
    color: #1a4474;
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 700px) {
    .legal-container {
        padding: 28px 20px;
    }

    .legal-container h1 {
        font-size: 1.7rem;
    }

    .legal-container h2 {
        font-size: 1.35rem;
    }
}

/* ---- ALIGNEMENT PROPRE DES RADIO (Oui / Non) ---- */


.question label {
  display: flex;
  align-items: center;           
  gap: 8px;                      
  font-size: 1rem;
  line-height: 1.3;
  margin: 6px 0;                
  cursor: pointer;               
  pointer-events: auto !important;
}


/* Boutons radio : taille et verticalité */
.question input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;                 
    vertical-align: middle;
    accent-color: #1a4474;     /* bleu APICAP */
    pointer-events: auto !important;
}


#FormReclamation input[type="radio"],
#FormReclamation input[type="checkbox"] {
  width: auto !important;        
  inline-size: auto;             
  display: inline-block;
  vertical-align: middle;
  margin: 0;                     
  accent-color: #1a4474;         
  pointer-events: auto !important;
}


.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  width: auto;
}


.question label {
    position: relative;
}

.question label input[type="radio"] {
    position: relative;
    z-index: 2;                  /* IMPORTANT */
    pointer-events: auto !important;
}
.question label {
    pointer-events: auto !important;
}



/* 1) Le label est toujours en mode "flottant" (donc au-dessus) */
.form-group textarea + label {
  top: -20px;                 /* recule complètement le label au-dessus */
  font-size: 0.85rem;
  white-space: normal;        /* multi-ligne OK */
  line-height: 1.2;
  max-width: 95%;
  height: auto;
}

/* 2) Ajoute de l’espace en haut du textarea pour ne jamais recouvrir le texte */
.form-group textarea {
  padding-top: 35px !important;
}

