/*
Theme Name: Twenty Twenty-One Child
Template: twentytwentyone
Version: 1.1
*/

/* =========================
   RESET LÉGER & TRANSPARENCE
   ========================= */
body,
h1,
h2,
h3,
p,
strong,
.outside-text,
.outside-text *,
.container *,
.button-group *,
a,
div {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* =========================
   BASE GLOBALE
   ========================= */
html, body { overflow-x: hidden; }

body {
  /* Fond global (image du thème enfant) */
  background-image: url('/wp-content/themes/twentytwentyone-child/Fonds.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  font-family: 'Arial', sans-serif !important;
  text-align: center !important;
  font-size: 16px !important;
  color: #7030A0 !important;
  margin-top: 0;
  padding-top: 0;
  line-height: 1.5;
}

/* =========================
   IMAGES GÉNÉRALES
   ========================= */
img, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   TITRES
   ========================= */
h1 {
  font-family: 'Arial', sans-serif;
  color: #7030A0;
  font-size: 22px;
  margin-bottom: 0;
  background-color: transparent !important;
}

h2 {
  font-family: 'Arial', sans-serif;
  color: #7030A0;
  font-size: 30px;
  margin-bottom: 0;
  margin-top: 0;
  padding-top: 0;
  background-color: transparent !important;
}

h3 {
  font-family: 'Arial', sans-serif;
  color: #7030A0;
  font-size: 15px;
  margin-bottom: 0px; /* <-- corrigé (point-virgule) */
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  background-color: transparent !important;
}

/* =========================
   TEXTES
   ========================= */
p, strong {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #7030A0;
  line-height: 1.6;
  background-color: transparent !important;
}

/* =========================
   CONTENEURS
   ========================= */
.container {
  max-width: 800px;
  margin: 100px auto;
  padding: 40px 30px;
  background-color: transparent;
  border-radius: 20px;
}

.container img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
}

.container-accueil {
  max-width: 800px;
  margin: 60px auto 20px auto;  /* haut 60px, bas 20px */
  padding: 20px 30px 10px 30px; /* haut 20px, bas 10px */
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  text-align: center;
}

.container-accueil img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   BOUTONS GÉNÉRAUX
   ========================= */
a.btn,
a.btn-client,
button.btn-client {
  display: inline-block;
  margin-top: 5px;
  padding: 12px 25px;
  background: #7030A0 !important;   /* Violet */
  color: white !important;           /* Texte */
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-family: 'Arial', sans-serif !important;
  font-size: 16px !important;
  text-align: center !important;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
  width: auto !important;
}

a.btn-client { padding: 15px 30px; color: orange !important; }
button.btn-client { border: 2px solid #7030A0; }

a.btn:hover,
a.btn-client:hover,
button.btn-client:hover {
  background: #a01ec1 !important; /* Violet plus clair au survol */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
}

a.btn-client.active,
button.btn-client.active {
  background: #a01ec1 !important;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* =========================
   FORMULAIRES
   ========================= */
form {
  background-color: transparent;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

form label {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #7030A0;
  font-weight: bold;
  display: block;
  margin: 0 4px 6px 0;
  text-align: left;
}

form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  border: 2px solid #7030A0 !important;
  font-size: 16px;
  color: #7030A0;
  box-sizing: border-box;
}

form input[type="text"]:focus {
  border: 2px solid #a01ec1 !important;
  outline: none;
}

form button[type="submit"] {
  display: inline-block;
  padding: 10px 10px;
  background: #7030A0;
  color: orange;
  border: 2px solid #7030A0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #a01ec1;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================
   GROUPES DE BOUTONS (rangée unique)
   ========================= */
 /* === Container pour regrouper les boutons === */
.button-group {
  display: flex;
  flex-wrap: nowrap;                /* toujours sur une ligne */
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  overflow-x: auto;                 /* scroll horizontal si besoin */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.button-group a,
.button-group span {
  display: inline-block;
  padding: 15px 25px;
  background: #7030A0 !important;
  color: white !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  text-align: center;
  transition: background 0.3s ease;
  width: auto;
  min-width: 150px;
  margin: 10px 10px;
  flex: 0 0 auto;                  /* pas de wrap sur l'élément lui-même */
  white-space: nowrap;
}

.button-group a:hover {
  background: #a01ec1;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================
   BLOCS OUTSIDE TEXT
   ========================= */
.outside-text h1 {
  font-family: 'Arial', sans-serif;
  color: #7030A0;
  font-size: 28px;
  margin: 10px 0;
  background-color: transparent !important;
}

.outside-text p {
  font-family: 'Arial', sans-serif;
  color: #7030A0;
  font-size: 16px;
  margin-top: 10px;
  background-color: transparent !important;
}

hr, .outside-text * {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* =========================
   PAGES QUESTIONNAIRES / CONTENEURS
   ========================= */
.page-questionnaire {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('/wp-content/themes/twentytwentyone-child/Fonds.png');
  background-size: cover;
}

.page-questionnaire-container {
  max-width: 700px;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.page-questionnaire .btn {
  margin-top: 20px;
  background: #7030A0;
  padding: 12px 25px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
}

.questionnaire-buttons a {
  padding: 12px 20px;
  background: #7030A0;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  margin: 10px;
}

.questionnaire-buttons a:hover {
  background: #a01ec1;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Boutons « réponse » (actif) */
.btn-reponse.active {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: #7030A0 !important;
  color: orange !important;
  border-radius: 8px !important;
  border: 2px solid #7030A0;
  text-decoration: none !important;
  font-weight: bold !important;
  font-family: 'Arial', sans-serif !important;
  font-size: 16px !important;
  text-align: center !important;
  transition: background 0.3s ease !important;
  width: auto !important;
}

a.btn-reponse.active, button.btn-reponse.active {
  background: #FFA3FF !important;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* =========================
   CHOIX EN LIGNE & BLOCS
   ========================= */
.choix-ligne {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 8px;
  padding: 0;
  margin-top: 0;
}

.choix-ligne label {
  display: flex;
  align-items: left;
  gap: 5px;
  margin: 0 4px 0 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.bloc-question { margin-bottom: 30px; background: transparent; }
.bloc-image { margin-bottom: 30px; text-align: center; }

.bloc-image img {
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.bloc-reponses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-submit {
  background-color: #7030A0;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.checkbox-group .description {
  margin-left: 40px;
  font-size: 14px;
  color: #7030A0;
  text-align: left;
  font-family: 'Arial', sans-serif;
}

/* =========================
   BLOCS FORMULAIRES AVANCÉS
   ========================= */
.form-bloc {
  background-color: lightblue; /* (ou white si désiré) */
  padding: 2px;
  border-radius: 15px;
  margin-top: 2px;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-choix .choix-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.form-choix label {
  min-width: 50px;
  text-align: center;
}

.form-choix {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
}

/* =========================
   PRÉSENTATION (TEXTE + IMAGE)
   ========================= */
.pres-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
}

.pres-texte {
  flex: 1;
  padding: 20px;
  margin-right: 20px;
  border: 5px solid purple;
  border-radius: 10px;
  font-size: 1.2em;
  line-height: 1.6;
  text-align: justify;
  box-sizing: border-box;
}

.pres-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pres-image img {
  max-width: 50%;
  max-height: 100%;
  object-fit: contain;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.pres-retour { text-align: center; margin-top: 40px; }

.pres-btn-retour {
  display: inline-block;
  padding: 12px 24px;
  background-color: #7030A0;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.pres-btn-retour:hover { background-color: #555; }

.img-pagedeGarde {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 12px;
}

/* =========================
   CONTACT
   ========================= */
.contact-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  background: transparent;
}

.contact-container h2 {
  font-size: 24px;
  color: #7030A0;
  margin-bottom: 20px;
  font-weight: bold;
}

.contact-container label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin-bottom: 6px;
  color: #7030A0;
}

.contact-container input[type="text"],
.contact-container input[type="email"],
.contact-container textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #7030A0;
  border-radius: 6px;
  margin-bottom: 15px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  background: transparent;
  color: #7030A0;
}

.contact-container textarea { resize: vertical; }

.contact-container button,
.contact-container .btn-client {
  display: inline-block;
  padding: 12px 30px;
  background: #7030A0;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-container button:hover,
.contact-container .btn-client:hover {
  background: #a01ec1;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.contact-container a.retour {
  display: inline-block;
  margin-top: 25px;
  font-size: 18px;
  color: #7030A0;
  text-decoration: none;
  font-weight: bold;
}

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

/* =========================
   ERREURS & RETOUR
   ========================= */
.error-message {
  padding: 5px;
  text-align: center;
  color: red;
  font-family: 'Arial', sans-serif;
  font-size: 18px;
}

.return-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #7030A0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 20px;
}

.return-button:hover { background-color: #a01ec1; }

/* =========================
   PAGES CONTENEURS SPÉCIAUX
   ========================= */
.container-general,
.page-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('/wp-content/themes/twentytwentyone-child/Fonds.png');
  background-size: cover;
}

.inner-container {
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px;
  border-radius: 20px;
  text-align: center;
}

.welcome-text {
  font-family: 'Arial', cursive, sans-serif;
  color: #7030A0;
  font-size: 22px;
}

/* =========================
   RESPONSIVE GLOBAL
   ========================= */
:root {
  --container-max: 1200px;
  --gap: 10px;
}

/* conteneurs principaux fluides */
.container,
.container-accueil,
.page-questionnaire-container,
.inner-container,
.form-container,
.pres-container {
  max-width: min(var(--container-max), 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Titres fluides */
h1 { font-size: clamp(24px, 2.6vw, 34px); }
h2 { font-size: clamp(20px, 2.2vw, 30px); }
h3 { font-size: clamp(16px, 1.8vw, 20px); }

/* ≤ 1366px (laptop 14") */
@media (max-width: 1366px) {
  body { font-size: 16px; }
  .container,
  .container-accueil,
  .page-questionnaire-container,
  .inner-container,
  .form-container,
  .pres-container { padding-left: 16px; padding-right: 16px; }
  .button-group a, .button-group span { min-width: 150px; padding: 9px 14px; font-size: 15px; }
}

/* ≤ 1200px */
@media (max-width: 1200px) {
  body { font-size: 15px; }
  .button-group a, .button-group span { min-width: 145px; padding: 8px 12px; font-size: 14.5px; }
}

/* ≤ 1024px */
@media (max-width: 1024px) {
  body { font-size: 14px; }
  .button-group a, .button-group span { min-width: 140px; font-size: 14px; }
  .pres-container { flex-direction: column; align-items: center; }
  .pres-image img { max-width: 100%; }
}




/* ≤ 768px */
@media (max-width: 768px) {
  body { font-size: 13.5px; }
  .button-group { gap: 8px; }
  .button-group a, .button-group span { min-width: 130px; padding: 8px 10px; font-size: 13.5px; }
  .form-container, .page-questionnaire-container { padding: 16px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  body { font-size: 13px; }
  .button-group a, .button-group span { min-width: 120px; padding: 7px 10px; font-size: 13px; }
}


/* ===== Overrides compacts pour écrans plus petits ===== */

/* Laptop 14" et similaires */
@media (max-width: 1366px) {
  html { font-size: 13px; } /* réduit l’échelle globale */

  /* Titres & texte */
  h1 { font-size: 20px !important; }
  h2 { font-size: 24px !important; }
  h3 { font-size: 14px !important; }
  p, strong { font-size: 14px !important; line-height: 1.55; }

  /* Conteneurs */
  .container { margin: 40px auto !important; padding: 20px 16px !important; }
  .container-accueil { margin: 30px auto 15px !important; padding: 16px !important; }
  .page-questionnaire-container { max-width: 600px !important; padding: 24px !important; }
  .inner-container { max-width: 900px !important; padding: 10px !important; }
  .pres-container { max-width: 900px !important; gap: 16px !important; margin: 24px auto !important; }

  .pres-texte { padding: 14px !important; margin-right: 12px !important; font-size: 1rem !important; border-width: 4px !important; }
  .form-bloc { max-width: 900px !important; padding: 10px !important; }

  /* Images */
  .pres-image img { max-width: 42% !important; }
  .bloc-image img { max-width: 560px !important; }

  /* Boutons */
  .button-group a, .button-group span {
    min-width: 135px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    margin: 6px !important;
  }
  a.btn, a.btn-client, button.btn-client {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
  .btn-reponse.active { font-size: 14px !important; padding: 12px 18px !important; }
}

/* Un cran de plus si nécessaire */
@media (max-width: 1280px) {
  html { font-size: 12.5px; }
  .pres-image img { max-width: 38% !important; }
}

/* Petits laptops / tablettes paysage */
@media (max-width: 1024px) {
  html { font-size: 12px; }
  .pres-container { flex-direction: column !important; align-items: center !important; max-width: 800px !important; }
  .pres-image img { max-width: 75% !important; }
  .container { margin: 30px auto !important; padding: 16px 12px !important; }
}

/* Réduction d’échelle selon la taille d’écran */

/* Laptop 14" (1366px ou moins) */
@media (max-width: 1366px) {
  body {
    transform: scale(0.85);   /* 85% de la taille */
    transform-origin: top center;
  }
  html, body { overflow-x: hidden; }
}

/* Écrans plus larges (ex : 19" ~1920px)
@media (min-width: 1367px) and (max-width: 1920px) {
  body {
    transform: scale(0.92);   /* 92% de la taille */
    transform-origin: top center;
  }
  html, body { overflow-x: hidden; }
}
 */

/* Mobiles : pas de réduction */
@media (max-width: 768px) {
  body {
    transform: scale(1);   /* taille normale */
  }
}

.highlight-time {
  font-weight: 700;
  color: #7030A0; /* violet EVIA */
}

