/*
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.6
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;
	background-color: #10202b;
	color:#ffffff;
}

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);
}

/*--------------------------------------------------------------
	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;
  }
}
