/*
Theme Name: OptimaPME
Theme URI: https://optima-pme.fr
Description: Thème enfant OptimaPME - Consultant digital TPE/PME
Author: OptimaPME
Author URI: https://optima-pme.fr
Template: twentytwentyone
Version: 1.0.0
Text Domain: optima-pme
*/

/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
  --bleu-marine:    #1a3c6e;
  --bleu-fonce:     #0e2a52;
  --vert-principal: #2ecc71;
  --vert-fonce:     #27ae60;
  --vert-texte:     #0a5c30;
  --bleu-clair:     #378add;
  --orange:         #ef9f27;
  --fond-clair:     #f0f7ff;
  --fond-blanc:     #ffffff;
  --bordure:        #dbeeff;
  --texte-principal:#333333;
  --texte-secondaire:#666666;
  --texte-leger:    #888888;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte-principal);
  background-color: var(--fond-blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   MISE EN PAGE GLOBALE
   ============================================ */
.op-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.op-main {
  flex: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.op-nav {
  background-color: var(--bleu-marine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.op-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.op-nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.op-nav-logo-optima {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.op-nav-logo-pme {
  font-size: 17px;
  font-weight: 700;
  color: var(--vert-principal);
  letter-spacing: 0.3px;
}

.op-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.op-nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.op-nav-links a:hover,
.op-nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--vert-principal);
}

.op-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.op-nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   PAGE HEADER (bandeau titre de page)
   ============================================ */
.op-page-header {
  background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--bleu-fonce) 100%);
  padding: 56px 2rem 48px;
  text-align: center;
}

.op-page-tag {
  display: inline-block;
  background: rgba(46,204,113,0.15);
  color: var(--vert-principal);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(46,204,113,0.4);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.op-page-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.op-page-title em {
  color: var(--vert-principal);
  font-style: normal;
}

.op-page-subtitle {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SECTION GÉNÉRIQUE
   ============================================ */
.op-section {
  padding: 56px 2rem;
}

.op-section-light {
  background-color: var(--fond-clair);
}

.op-section-white {
  background-color: var(--fond-blanc);
}

.op-section-dark {
  background-color: var(--bleu-marine);
}

.op-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.op-section-tag {
  display: inline-block;
  background: #e6f4ff;
  color: #185fa5;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.op-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--bleu-marine);
  margin-bottom: 8px;
}

.op-section-subtitle {
  font-size: 13px;
  color: var(--texte-secondaire);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CARDS GÉNÉRIQUES
   ============================================ */
.op-card {
  background: var(--fond-blanc);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--bordure);
}

/* ============================================
   BOUTONS
   ============================================ */
.op-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--vert-principal);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.op-btn-primary:hover {
  background-color: var(--vert-fonce);
  transform: translateY(-1px);
}

.op-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.op-btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.op-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--bleu-marine);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.op-btn-white:hover {
  background-color: var(--fond-clair);
  transform: translateY(-1px);
}

/* ============================================
   CTA BAND
   ============================================ */
.op-cta-band {
  padding: 48px 2rem;
  text-align: center;
}

.op-cta-band h2,
.op-cta-band h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.op-cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.op-cta-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.op-footer {
  background-color: var(--bleu-fonce);
  padding: 1.5rem 2rem;
}

.op-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.op-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-footer-logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.op-footer-logo-optima {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.op-footer-logo-pme {
  font-size: 14px;
  font-weight: 700;
  color: var(--vert-principal);
}

.op-footer-tagline {
  color: rgba(255,255,255,0.42);
  font-size: 10px;
  margin-top: 4px;
}

.op-footer-contact a {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  display: block;
  text-decoration: none;
  margin-bottom: 4px;
  text-align: right;
  transition: color 0.2s;
}

.op-footer-contact a:hover {
  color: var(--vert-principal);
}

.op-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.op-footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.op-footer-legal a {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
}

.op-footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

.op-footer-copy {
  color: rgba(255,255,255,0.22);
  font-size: 11px;
}

/* ============================================
   RESPONSIVE — TABLETTE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  .op-nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bleu-marine);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .op-nav-links.open {
    display: flex;
  }

  .op-nav-burger {
    display: flex;
  }

  .op-nav {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.5rem;
  }

  .op-page-title {
    font-size: 22px;
  }

  .op-section {
    padding: 40px 1.25rem;
  }

  .op-footer-top {
    flex-direction: column;
  }

  .op-footer-contact a {
    text-align: left;
  }

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

  .op-cta-btns {
    flex-direction: column;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .op-page-header {
    padding: 40px 1.25rem 36px;
  }

  .op-page-title {
    font-size: 20px;
  }

  .op-section-title {
    font-size: 19px;
  }
}
