/*
Theme Name: Fluxeos
Theme URI: https://fluxeos.fr
Author: Olyos
Author URI: https://fluxeos.fr
Description: Thème de base léger pour sites clients. Header, footer, single et archive se composent dans Gutenberg (WowStore / PostX).
Version: 2.0.2
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.3
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olystarter
Domain Path: /languages
*/


/*--------------------------------------------------------------
	Général
--------------------------------------------------------------*/
:root {
  --color-primary: #432773;
  --color-primary-hover: #AFCA0F;
  --olystarter-content-width: 1140px;
  --olystarter-wide-width: 1320px;
}

/*--------------------------------------------------------------
	Largeurs des blocs : normal, large (alignwide), pleine largeur (alignfull)
	S'applique aux blocs de premier niveau du contenu (<main class="site-main">).
--------------------------------------------------------------*/
.site-main > * {
  box-sizing: border-box;
  width: min(100%, var(--olystarter-content-width));
  margin-inline: auto;
  padding-inline: 1rem;
}

/* !important : le CSS de Stackable et des autres blocs peut imposer sa propre largeur */
.site-main .alignwide {
  width: min(100%, var(--olystarter-wide-width)) !important;
  max-width: 100%;
  margin-inline: auto;
}

/* Pleine largeur : le bloc sort de son conteneur, même imbriqué dans un groupe ou une colonne */
.alignfull {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: 0;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  /* 100vw inclut la barre de défilement : on évite le débordement horizontal */
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*--------------------------------------------------------------
	Formulaires Ninja Forms
--------------------------------------------------------------*/
.nf-field input[type="text"],
.nf-field input[type="email"],
.nf-field input[type="tel"],
.nf-field textarea,
.nf-field select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.nf-field input:focus,
.nf-field textarea:focus,
.nf-field select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.nf-field input[type="button"],
.nf-field input[type="submit"] {
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nf-field input[type="button"]:hover,
.nf-field input[type="submit"]:hover {
  background-color: var(--color-primary-hover);
}
/* ==========================================================
   Je lance ma boîte — style commun à TOUS les Ninja Forms
   (formulaire « guide » de la home + formulaire Contact)
   À coller dans Apparence > Personnaliser > CSS additionnel
   en REMPLACEMENT de la version précédente.
   ========================================================== */

body .nf-form-cont {
  --jlmb-rose: #E5007E;
  --jlmb-encre: #17121A;
  --jlmb-papier: #FBF6EF;
  --jlmb-gris: #4A4250;
  --jlmb-erreur: #C4002B;
  --jlmb-display: 'Barlow Condensed', 'Oswald', sans-serif;
  --jlmb-texte: 'Quicksand', sans-serif;
  color: var(--jlmb-encre);
}
/* body devant chaque sélecteur : passe toujours devant le style.css du thème */
/* Largeurs max : le formulaire guide reste compact, le contact peut être un peu plus large */
#nf-form-2-cont { max-width: 560px; }
#nf-form-1-cont { max-width: 720px; }

/* NF ne fixe pas la police des libellés : sans ça, Times New Roman */
body .nf-form-cont,
body .nf-form-cont label,
body .nf-form-cont .nf-label-span,
body .nf-form-cont .nf-form-fields-required,
body .nf-form-cont .nf-response-msg,
body .nf-form-cont .nf-error-msg {
  font-family: var(--jlmb-texte);
}

/* --- La carte : bord épais + ombre pleine décalée --- */
body .nf-form-cont .nf-form-wrap {
  background: #fff;
  border: 3px solid var(--jlmb-encre);
  box-shadow: 8px 8px 0 var(--jlmb-encre);
  padding: 24px;
  box-sizing: border-box;
}

body .nf-form-cont .nf-form-fields-required {
  font-size: 12px;
  color: var(--jlmb-gris);
  margin: 0 0 16px;
}
body .nf-form-cont .ninja-forms-req-symbol { color: var(--jlmb-rose); }

/* --- Grille : tout en pleine largeur, sauf Nom + Prénom côte à côte ---
   Pour mettre un autre champ en demi-largeur : dans Ninja Forms,
   champ > Affichage > Noms de classes personnalisées > Conteneur : jlmb-demi */
body .nf-form-cont nf-fields-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}
body .nf-form-cont nf-field { display: block; min-width: 0; grid-column: 1 / -1; }
body .nf-form-cont nf-field:has(.firstname-container),
body .nf-form-cont nf-field:has(.lastname-container),
body .nf-form-cont nf-field:has(.jlmb-demi),
body .nf-form-cont nf-field:has(#nf-field-1-container) /* « Nom » du contact (champ texte simple) */ {
  grid-column: auto;
}
body .nf-form-cont .nf-field-container { margin: 0; }

/* --- Libellés --- */
body .nf-form-cont .nf-field-label { margin: 0 0 6px; padding: 0; }
body .nf-form-cont .nf-field-label label,
body .nf-form-cont .nf-field-label .nf-label-span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--jlmb-encre);
}

/* --- Champs texte / e-mail / téléphone / zone de message / liste --- */
body .nf-form-cont input[type="text"],
body .nf-form-cont input[type="email"],
body .nf-form-cont input[type="tel"],
body .nf-form-cont input[type="number"],
body .nf-form-cont textarea,
body .nf-form-cont select {
  width: 100%;
  min-height: 48px;
  margin: 0; /* le thème ajoute 15px en bas */
  padding: 12px 14px;
  font: inherit;
  font-family: var(--jlmb-texte);
  font-size: 16px; /* évite le zoom auto sur iPhone */
  line-height: 1.4;
  color: var(--jlmb-encre);
  background: var(--jlmb-papier);
  border: 2px solid var(--jlmb-encre);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  transition: background .12s ease;
}
body .nf-form-cont textarea {
  min-height: 160px;
  height: 160px;
  resize: vertical;
}
body .nf-form-cont select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2317121A' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
body .nf-form-cont input[type="text"]:focus,
body .nf-form-cont input[type="email"]:focus,
body .nf-form-cont input[type="tel"]:focus,
body .nf-form-cont input[type="number"]:focus,
body .nf-form-cont textarea:focus,
body .nf-form-cont select:focus {
  outline: 3px solid var(--jlmb-rose);
  outline-offset: 1px;
  background-color: #fff;
}
body .nf-form-cont ::placeholder { color: #8A8190; }

/* --- Listes de choix (cases / radios) transformées en pastilles --- */
body .nf-form-cont .list-container ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .nf-form-cont .list-container li {
  position: relative;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
/* la vraie case reste là (accessibilité), mais invisible */
body .nf-form-cont .list-container li input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
body .nf-form-cont .list-container li label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 8px 14px;
  border: 2px solid var(--jlmb-encre);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--jlmb-encre);
  cursor: pointer;
  box-sizing: border-box;
  transition: background .12s ease, color .12s ease;
}
body .nf-form-cont .list-container li label::before,
body .nf-form-cont .list-container li label::after { display: none !important; }
body .nf-form-cont .list-container li label:hover { background: var(--jlmb-papier); }
body .nf-form-cont .list-container li input:checked + label {
  background: var(--jlmb-encre);
  color: #fff;
}
body .nf-form-cont .list-container li input:focus-visible + label {
  outline: 3px solid var(--jlmb-rose);
  outline-offset: 2px;
}

/* --- Case à cocher seule (RGPD, newsletter…) --- */
body .nf-form-cont .checkbox-container .field-wrap {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
}
body .nf-form-cont .checkbox-container .nf-field-label { margin: 0; }
body .nf-form-cont .checkbox-container .nf-field-label label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--jlmb-gris);
}
body .nf-form-cont .checkbox-container label::before,
body .nf-form-cont .checkbox-container label::after { display: none !important; }
body .nf-form-cont .checkbox-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--jlmb-encre);
  background: #fff;
  cursor: pointer;
}
body .nf-form-cont .checkbox-container input[type="checkbox"]:checked {
  background: var(--jlmb-rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
body .nf-form-cont .checkbox-container input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--jlmb-rose);
  outline-offset: 2px;
}

/* --- Bouton --- */
body .nf-form-cont .submit-container { margin-top: 4px; }
body .nf-form-cont .submit-container .nf-field-label { display: none; }
body .nf-form-cont input[type="submit"],
body .nf-form-cont input[type="button"] {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 20px;
  font-family: var(--jlmb-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--jlmb-rose);
  border: 3px solid var(--jlmb-encre);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--jlmb-encre);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
body .nf-form-cont input[type="submit"]:hover,
body .nf-form-cont input[type="button"]:hover {
  background: var(--jlmb-rose);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--jlmb-encre);
}
body .nf-form-cont input[type="submit"]:active,
body .nf-form-cont input[type="button"]:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--jlmb-encre);
}
body .nf-form-cont input[type="submit"]:focus-visible {
  outline: 3px solid var(--jlmb-rose);
  outline-offset: 4px;
}
body .nf-form-cont input[type="submit"]:disabled { opacity: .6; cursor: wait; }

/* --- Erreurs --- */
body .nf-form-cont .nf-error input[type="text"],
body .nf-form-cont .nf-error input[type="email"],
body .nf-form-cont .nf-error input[type="tel"],
body .nf-form-cont .nf-error textarea,
body .nf-form-cont .nf-error select {
  border-color: var(--jlmb-erreur);
  background-color: #FFF0F3;
}
body .nf-form-cont .nf-error-msg {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jlmb-erreur);
}
/* supprime les icônes d'erreur/validation par défaut de NF */
body .nf-form-cont .nf-error.field-wrap .nf-field-element::after,
body .nf-form-cont .nf-pass.field-wrap .nf-field-element::after { display: none; }
body .nf-form-cont .nf-form-errors { margin-top: 12px; }

/* --- Message de confirmation après envoi --- */
body .nf-form-cont .nf-response-msg:not(:empty) {
  font-size: 18px;
  line-height: 1.5;
}
body .nf-form-cont .nf-response-msg:not(:empty) p:first-child { margin-top: 0; }

/* --- Mobile --- */
@media (max-width: 600px) {
  body .nf-form-cont .nf-form-wrap { padding: 18px; box-shadow: 6px 6px 0 var(--jlmb-encre); }
  body .nf-form-cont nf-fields-wrap { grid-template-columns: minmax(0, 1fr); }
  body .nf-form-cont nf-field { grid-column: 1 / -1 !important; }
  body .nf-form-cont input[type="submit"] { font-size: 22px; }
}

/*--------------------------------------------------------------
	Header sticky (activé dans Réglages > Olystarter, ajouté par app.js)
--------------------------------------------------------------*/
.olystarter-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 999;
  background: #fff;
}

.scroll-active.olystarter-sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Barre d'administration WordPress visible : le header passe dessous */
.admin-bar .olystarter-sticky {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .olystarter-sticky {
    top: 46px;
  }
}
