/*
Theme Name: Nexus Base
Theme URI: https://example.com/
Author: Votre agence
Description: Thème de base générique et réutilisable, conçu pour être installé tel quel sur plusieurs sites indépendants d'un même sujet. La structure et le comportement sont fixes ; le logo, les couleurs et les liens se règlent par site via le Customizer, sans toucher au code.
Version: 1.0
Text Domain: nexus-base
*/

/* ---------- VARIABLES DE MISE EN PAGE ----------
   Les couleurs/typo viennent de design-tokens.css (chargé avant ce fichier).
   Ici on fait juste le pont entre les component tokens Figma et les noms
   utilisés dans les règles ci-dessous, + ce qui reste réglable par site
   via le Customizer (voir inc/customizer.php). */
:root {
  --color-primary: var(--c-fill-brand-default);
  --color-accent: var(--c-fill-brand-default);
  --color-text: var(--c-text-primary);
  --color-muted: var(--c-text-secondary);
  --color-bg: var(--c-fill-neutral-white);
  --color-bg-alt: var(--c-fill-neutral-subtle);
  --color-border: var(--c-stroke-primary-default);
  --maxw: 1140px;
  --radius: var(--c-radius-m);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 .5em
}

p {
  margin: 0 0 1em
}

a {
  color: var(--color-accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

ul,
ol {
  padding-left: 1.2em
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem
}

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
  z-index: 100
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px
}

/* ---- Header flottant par-dessus le hero (page d'accueil uniquement) ---- */
.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  transition: background .25s ease, box-shadow .25s ease;
}

.home .site-header .site-branding,
.home .site-header .main-navigation a,
.home .site-header .nav-toggle {
  color: #4A4A4A
}

/* Devient opaque une fois qu'on scrolle (classe ajoutée par js/main.js) */
.home .site-header.is-scrolled {
  position: fixed;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.home .site-header.is-scrolled .site-branding,
.home .site-header.is-scrolled .main-navigation a,
.home .site-header.is-scrolled .nav-toggle {
  color: var(--color-text)
}

/* Le menu mobile déplié reste toujours lisible, même sur fond transparent */
.main-navigation.open a {
  color: var(--color-text) !important
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text)
}

.site-branding .custom-logo-link {
  display: flex;
  align-items: center
}

.site-branding img {
  max-height: 40px;
  width: auto
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0
}

.main-navigation a {
  color: var(--color-text);
  font-weight: 500
}

.main-navigation a:hover {
  color: var(--color-accent);
  text-decoration: none
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer
}

main {
  min-height: 60vh
}

.content-area {
  padding: 64px 0
}

.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 32px 0
}

.site-footer a {
  color: #fff;
  opacity: .85
}

.site-footer a:hover {
  opacity: 1
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--b3-size)
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap
}

/* ---------- COMPONENTS GENERIQUES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--c-btn-gap);
  padding: var(--c-btn-padding-y) var(--c-btn-padding-x);
  border-radius: var(--c-btn-radius);
  font-weight: 600;
  background: var(--color-accent);
  color: var(--c-text-inverse);
  border: 0;
  cursor: pointer
}

.btn:hover {
  opacity: .9;
  text-decoration: none
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

/* ---------- HERO (pattern réutilisable) ---------- */
.hero-section {
  padding: 96px 0;
  text-align: left
}

.hero-section .eyebrow {
  font-size: var(--b3-size);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-brand);
  margin-bottom: var(--g-spacing-4);
}

.hero-section h1 {
  max-width: 16ch;
  margin-bottom: var(--g-spacing-4)
}

.hero-section p {
  color: var(--c-text-secondary);
  font-size: var(--b1-size);
  max-width: 56ch;
  margin-bottom: var(--g-spacing-6)
}

.hero-section .wp-block-buttons {
  margin: 0
}

/* ---------- RESPONSIVE ---------- */
/* Convention standard : mobile < 768px, tablette 768-1024px, desktop > 1024px */
@media(max-width:1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:768px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border)
  }

  .main-navigation.open {
    display: flex
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 14px
  }

  .nav-toggle {
    display: block
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }

  .footer-row {
    flex-direction: column;
    text-align: center
  }
}

.contact-header form {
  display: flex;
  flex-wrap: wrap;

  max-width: 560px;
  align-items: center
}

.contact-header select {
  margin: 0 10px;
}

.contact-header p,
.contact-header label,
.contact-header .wpcf7-form-control-wrap {
  display: contents
}

.contact-header input,
.contact-header select {
  font-family: inherit;
  font-size: .96rem;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

.contact-header input[type="email"] {
  flex: 2 1 200px
}

.contact-header select {
  flex: 1 1 150px
}

.contact-header input::placeholder {
  color: #7d90a5
}

.contact-header input[type="submit"] {
  flex: 1 1 auto;
  justify-content: center;
  margin-top: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: inherit;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 22px;
  border-radius: 9px;
  border: 0;
  color: #0C1A2B;

  transition: transform .15s ease, background .2s ease;
  background-color: #0B5ADD;
  font-family: "Inter", Sans-serif;
  font-weight: 600;
  fill: #FFFFFF;
  color: #FFFFFF;
  border-radius: 8px 8px 8px 8px;

}

.contact-header input[type="submit"]:hover {
  transform: translateY(-1px);
  background: #0B5ADD;
}

@media(min-width: 560px) {
  .contact-header input[type="submit"] {
    flex: 0 0 auto;
    margin-top: 5px;
  }
}


.contact-header .screen-reader-response,
.contact-header .wpcf7-spinner {
  display: none
}

.contact-header .wpcf7-response-output {
  flex: 1 1 100%;
  margin-top: 8px;
  font-size: .85rem;
  color: #84ebb4;
}

.contact-header input:focus,
.contact-header select:focus,
.contact-header input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 90, 221, .35);
  /* anneau bleu #0B5ADD, discret */
  border-color: #0B5ADD;
}

.arc {
  height: 1px;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
}

.panel .lab {
  font-family: 'IBM Plex Mono';
  font-size: .72rem;
  color: #a87f35;
  letter-spacing: .1em;
}

.panel h3 {
  font-size: 1.4rem;
  margin: 12px 0 12px;
}

.panel p {
  margin-bottom: 16px;
}

.panel .reg {
  border-left: 2px solid #c69b4e;
  padding: 6px 0 6px 16px;
  font-size: .92rem;
  color: #c69b4e;
}

.tab-secteur .e-con-inner {
  border: 1px solid #E1E6EC;
  border-radius: 20px;

}

.span {
  color: #0B5ADD;

}

.beta-list {
  list-style: none;
  margin-top: 22px;
  padding: 0;
}

.beta-list li {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 0.5px solid #294055;
  color: #ffffff;
  font-size: 1.02rem;
}

.beta-list .chk {
  color: #c69b4e;
  font-family: 'IBM Plex Mono';
  flex: 0 0 auto;
}

.accordions-quest {
  border: none !important;
}

.orch-navbar__brand img {
  max-height: 34px;
  width: auto;
}

.site-footer {
  background: #0C1A2B;
  color: #fff;
  padding-top: 28px
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #294055;
}

.footer-brand b {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600
}

.footer-brand .custom-logo {
  max-height: 34px;
  width: auto
}

.footer-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0
}

.footer-nav a {
  color: #9FB1C4;
  font-size: .9rem;
  text-decoration: none
}

.footer-nav a:hover {
  color: #fff
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  font-size: .85rem;
  color: #9FB1C4;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  color: #9FB1C4;
  text-decoration: none
}

.footer-links a:hover {
  color: #fff
}

@media(max-width:768px) {
  .footer-main {
    flex-direction: column;
    gap: 16px;
    text-align: center
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center
  }

  .footer-row {
    flex-direction: column;
    text-align: center
  }
}

.footer-brand .custom-logo {
  max-height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.btn-header a {
  cursor: pointer;
  font-size: .98rem;
  padding: 13px 22px;
  border: 0;
  background-color: #0B5ADD;
  font-family: "Inter", Sans-serif;
  font-weight: 600;
  color: #FFFFFF !important;
  border-radius: 8px 8px 8px 8px;
}