/* === STYLE CV === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 20px;
  color: #333;
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.intro {
  text-align: center;
  margin-top: -10px;
  font-size: 16px;
}

fieldset {
  border: 2px solid #ccc;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  font-size: 1.2em;
  padding: 0 8px;
  color: #333;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
}

button[type="submit"] {
  background-color: #1d4ed8;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1e40af;
}



.inline-group {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.inline-group > div {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;  /* <-- MODIFICATION ICI */
  gap: 40px;            /* <-- réduction de l’écart */
  margin-top: 30px;     /* <-- réduction de la marge si besoin */
  flex-wrap: wrap;
}

.form-actions a,
.form-actions button {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-actions a {
  background-color: #e5e7eb;
  color: #1d4ed8;
  border: none;
}

.form-actions a:hover {
  background-color: #d1d5db;
}

.form-actions button {
  background-color: #1d4ed8;
  color: white;
  border: none;
}

.form-actions button:hover {
  background-color: #1e40af;
}

.form-info {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  margin-bottom: 8px;
  font-style: italic;
}

/* ✅ Bouton de validation de la photo */
.valider-photo-btn {
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #1d4ed8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.valider-photo-btn:hover {
  background-color: #1e40af;
}

/* CENTRAGE DU BOUTON SOUS L'IMAGE */
#cropper-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.tarif-cv {
  text-align: center;
  font-size: 16px;
  margin-top: 30px;
  color: #333;
  background-color: #f7f7f7;
  padding: 10px;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-actions > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form-label {
  font-size: 14px;
  color: #444;
  margin: 0;
  text-align: center;
}


/* === STYLE LETTRE === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 20px;
  color: #333;
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.intro {
  text-align: center;
  margin-top: -10px;
  font-size: 16px;
}

fieldset {
  border: 2px solid #ccc;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  font-size: 1.2em;
  padding: 0 8px;
  color: #333;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
}

button[type="submit"] {
  background-color: #1d4ed8;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1e40af;
}



.inline-group {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.inline-group > div {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.form-actions a,
.form-actions button {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-actions a {
  background-color: #e5e7eb;
  color: #1d4ed8;
  border: none;
}

.form-actions a:hover {
  background-color: #d1d5db;
}

.form-actions button {
  background-color: #1d4ed8;
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.form-actions button:hover {
  background-color: #1e40af;
}

.form-info {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  margin-bottom: 8px;
  font-style: italic;
}

/* ✅ Bouton de validation de la photo */
.valider-photo-btn {
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #1d4ed8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.valider-photo-btn:hover {
  background-color: #1e40af;
}

/* CENTRAGE DU BOUTON SOUS L'IMAGE */
#cropper-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.tarif-cv {
  text-align: center;
  font-size: 16px;
  margin-top: 30px;
  color: #333;
  background-color: #f7f7f7;
  padding: 10px;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-actions > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form-label {
  font-size: 14px;
  color: #444;
  margin: 0;
  text-align: center;
}

.important {
  color: #c00;
  font-weight: bold;
}

.bulle-aide {
  background: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 8px 12px;
  font-size: 0.85em;
  margin: 8px 0;
  color: #444;
  border-radius: 4px;
}

.exemple-bloc {
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-left: 4px solid #666;
  font-size: 0.85em;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.5em;
  border-radius: 4px;
}

.bulle-aide p {
  margin: 4px 0;
  line-height: 1.4;
}

.bulle-aide em {
  font-style: normal;
  font-weight: 600;
  color: #1d4ed8;
}

.char-counter {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
}


/* Barre de progression pour contenu lettre */

.progress-container {
  margin-top: 8px;
  background-color: #e5e7eb;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #22c55e;
  visibility: hidden;  /* 👈 Barre invisible au départ */
  opacity: 0;           /* 👈 Et totalement transparente */
  transition:
    width 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease; /* 👈 Animation combinée */
}



/* 🎯 Mise à jour dynamique des couleurs selon % */
.progress-bar.low {
  background-color: #22c55e; /* Vert */
}
.progress-bar.medium {
  background-color: #eab308; /* Jaune */
}
.progress-bar.high {
  background-color: #f97316; /* Orange */
}
.progress-bar.full {
  background-color: #dc2626; /* Rouge foncé */
}

.toast-flottant {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fee2e2;
  color: #991b1b;
  padding: 12px 20px;
  border: 2px solid #dc2626;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.toast-flottant.visible {
  display: block;
}


/* ======= STRUCTURE VISUELLE PAR BLOC ======= */

.section-wrap {
  background-color: #f5f6fa;
  padding: 60px 0;
  margin-bottom: 60px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.section-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
}

.section-inner {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 40px;
  width: 90%;
  max-width: 950px;
  margin: 0 auto;
}

.exemple {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9em;
  line-height: 1.5;
  background-color: #e5e7eb;
  padding: 8px 12px;
  border-left: 4px solid #1d4ed8;
  border-radius: 5px;
  margin-top: 8px;
  white-space: pre-line;
  color: #333;
}

header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: transparent; /* fond transparent */
  box-shadow: none; /* pas d'ombre */
  margin-bottom: 30px;
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  font-family: 'Inter', sans-serif; /* ← appliqué uniquement ici */
}


.logo-img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.cgu-note {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1.4rem;   /* ✅ marge agrandie ici */
  margin-bottom: 1rem;
  color: #555;
}

.cgu-note a {
  color: #1a73e8;
  text-decoration: underline;
  cursor: pointer;
}

.seo-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
