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

@import url('https://fonts.googleapis.com/css2?family=Arvo&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');


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

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

/*--------------------------------------------------------------
	Jean Fanchette : reprise du style de l'ancien site
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #404040;
  background: #f2f2f2;
}

a { color: #404040; }
a:hover { color: #000; }

/* Header : titre du site sans soulignement, menu aéré */
#olystarter-header { background: #fff; }
#olystarter-header .stk-block-heading__text a { color: inherit; text-decoration: none; }
#olystarter-header .olystarter-megamenu__link { text-decoration: none; letter-spacing: .02em; }
#olystarter-header .olystarter-megamenu > ul,
#olystarter-header ul.olystarter-megamenu { column-gap: 30px; row-gap: 10px; }

/* Toutes les sections (colonnes Stackable de 1er niveau) : même fond gris, même largeur, même rythme */
.site-main > .stk-block-columns {
  background: #f2f2f2;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.site-main .stk-block-text__text,
.site-main .stk-block-text p { font-size: 15px; line-height: 1.7; color: #404040; margin: 0 0 1.2em; }
.site-main .stk-block-heading__text { font-family: "Open Sans", Arial, sans-serif; color: #404040; text-transform: uppercase; letter-spacing: .03em; }
.site-main h3.stk-block-heading__text { font-size: 18px; font-weight: 700; margin: 1.6em 0 .6em; }
.site-main h4.stk-block-heading__text { font-size: 16px; font-weight: 700; margin: 1.4em 0 .5em; }
.site-main .stk-block-text a { text-decoration: underline; }

/* Citations */
.site-main .stk-block-blockquote { border-left: 3px solid #ccc; padding-left: 1.2em; }
.site-main .stk-block-blockquote .stk-block-text__text { font-style: italic; }

/* Couvertures (bibliographie) : liseré gris comme sur l'ancien site */
.site-main .stk--has-lightbox img { border: 2px solid #cfcfcf; box-sizing: border-box; }
