/*
Theme Name: Secrétariat Présence
Theme URI: https://secretariat-presence.com
Author: Secrétariat Présence
Description: Thème personnalisé pour Secrétariat Présence — secrétariat externalisé professionnel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: secretariat-presence
*/

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

:root {
  --navy:     #042C53;
  --navy-mid: #0C2340;
  --blue:     #185FA5;
  --blue-lt:  #378ADD;
  --blue-pale:#85B7EB;
  --blue-faint:#B5D4F4;
  --blue-ghost:#E6F1FB;
  --dark-btn: #2C2C2A;
  --dark-border:#444441;
  --text:     #111111;
  --muted:    #666666;
  --light-bg: #f8f8f7;
  --white:    #ffffff;
  --border:   #e5e5e5;
  --radius:   8px;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #f0f0f0;
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===========================
   LAYOUT WRAPPER
=========================== */
.sp-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 4px 40px rgba(0,0,0,.12);
  min-height: 100vh;
}

.sp-inner {
  max-width: 100%;
  padding: 0 1.5rem;
}

/* ===========================
   NAVIGATION
=========================== */
.sp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  background: var(--navy);
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sp-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.sp-nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-nav__logo-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.sp-nav__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.1;
}

.sp-nav__sub {
  font-size: 10px;
  color: var(--blue-pale);
  letter-spacing: .04em;
}

.sp-nav__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.sp-nav__links a {
  font-size: 12px;
  color: var(--blue-faint);
  transition: color .2s;
}

.sp-nav__links a:hover,
.sp-nav__links a.current-menu-item {
  color: var(--white);
}

.sp-nav__cta {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--blue);
  color: var(--white);
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
  display: inline-block;
}

.sp-nav__cta:hover {
  background: var(--blue-lt);
  color: var(--white);
}

/* Mobile menu toggle */
.sp-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
}

.sp-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ===========================
   HERO
=========================== */
.sp-hero {
  background: var(--navy-mid);
  padding: 2.5rem 1.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}

.sp-hero__left {
  flex: 1;
  min-width: 0;
  padding-bottom: 2.5rem;
}

.sp-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: .5px solid var(--blue);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--blue-pale);
  margin-bottom: 1.25rem;
}

.sp-hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-lt);
  flex-shrink: 0;
}

.sp-hero__title {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.sp-hero__title em {
  color: var(--blue-lt);
  font-style: normal;
}

.sp-hero__desc {
  font-size: 14px;
  color: var(--blue-pale);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 360px;
}

.sp-hero__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-btn-primary {
  padding: 10px 18px;
  background: var(--dark-btn);
  color: #B4B2A9;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: .5px solid var(--dark-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
}

.sp-btn-primary:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.sp-btn-secondary {
  padding: 10px 18px;
  background: transparent;
  color: #888780;
  border-radius: 6px;
  font-size: 13px;
  border: .5px solid var(--dark-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
}

.sp-btn-secondary:hover {
  color: var(--white);
  border-color: #666;
}

.sp-hero__photo {
  width: 210px;
  flex-shrink: 0;
  align-self: flex-end;
}

.sp-hero__photo img {
  width: 210px;
  height: 230px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px 8px 0 0;
}

.sp-hero__photo-placeholder {
  width: 210px;
  height: 230px;
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-hero__photo-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: rgba(255,255,255,.3);
  fill: none;
  stroke-width: 1.5;
}

/* ===========================
   STRIP
=========================== */
.sp-strip {
  background: var(--blue);
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-strip::-webkit-scrollbar { display: none; }

.sp-strip__item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--blue-ghost);
}

.sp-strip__item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}

/* ===========================
   SECTIONS
=========================== */
.sp-section {
  padding: 2.5rem 1.5rem;
  background: var(--white);
}

.sp-section--alt {
  background: var(--light-bg);
}

.sp-section__label {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: .4rem;
}

.sp-section__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .4rem;
}

.sp-section__sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

/* ===========================
   SERVICES GRID
=========================== */
.sp-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sp-service {
  padding: 1.25rem;
  background: var(--white);
}

.sp-service__icon {
  font-size: 20px;
  color: var(--blue);
  margin-bottom: .75rem;
  display: block;
  width: 36px;
  height: 36px;
}

.sp-service__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sp-service h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.sp-service p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================
   HOW IT WORKS
=========================== */
.sp-steps {
  display: flex;
  flex-direction: column;
}

.sp-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: .5px solid var(--border);
}

.sp-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sp-step__num {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  min-width: 28px;
  padding-top: 1px;
}

.sp-step__body h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.sp-step__body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================
   TARIFS
=========================== */
.sp-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.sp-plan {
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
  position: relative;
}

.sp-plan--featured {
  border-color: var(--blue);
  background: #F0F7FF;
}

.sp-plan__badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .05em;
}

.sp-plan__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

.sp-plan__price {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: .25rem;
}

.sp-plan__price sup {
  font-size: 14px;
  font-weight: 500;
  vertical-align: super;
}

.sp-plan__price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.sp-plan__desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sp-plan__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-plan__feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
}

.sp-plan__feature svg {
  width: 14px;
  height: 14px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  flex-shrink: 0;
}

/* ===========================
   TEMOIGNAGES
=========================== */
.sp-testimonials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-testimonial {
  background: var(--white);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sp-testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: .6rem;
}

.sp-testimonial__stars svg {
  width: 14px;
  height: 14px;
  fill: #F59E0B;
  stroke: none;
}

.sp-testimonial__text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .75rem;
  font-style: italic;
}

.sp-testimonial__author {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}

.sp-testimonial__role {
  font-size: 11px;
  color: var(--muted);
}

/* ===========================
   CTA BAND
=========================== */
.sp-cta-band {
  background: var(--navy-mid);
  padding: 3rem 1.5rem;
  text-align: center;
}

.sp-cta-band h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.sp-cta-band p {
  font-size: 14px;
  color: var(--blue-pale);
  margin-bottom: 1.5rem;
}

.sp-cta-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.sp-cta-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: .5px solid #2a4a6e;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.sp-cta-row input::placeholder { color: #5a7fa8; }

.sp-cta-row input:focus { border-color: var(--blue-lt); }

.sp-cta-row button {
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  transition: background .2s;
}

.sp-cta-row button:hover { background: var(--blue-lt); }

.sp-cta-row button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ===========================
   CONTACT PAGE
=========================== */
.sp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-contact-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.sp-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-contact-item strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.sp-contact-item span {
  font-size: 13px;
  color: var(--muted);
}

.sp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-form label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.sp-form input,
.sp-form textarea,
.sp-form select {
  width: 100%;
  padding: 9px 12px;
  border: .5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}

.sp-form input:focus,
.sp-form textarea:focus,
.sp-form select:focus {
  border-color: var(--blue);
}

.sp-form textarea { resize: vertical; min-height: 100px; }

.sp-form__submit {
  padding: 10px 22px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
  align-self: flex-start;
}

.sp-form__submit:hover { background: var(--blue-lt); }

/* ===========================
   PAGE INTÉRIEURE
=========================== */
.sp-page-hero {
  background: var(--navy-mid);
  padding: 3rem 1.5rem 2.5rem;
}

.sp-page-hero h1 {
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.sp-page-hero p {
  font-size: 14px;
  color: var(--blue-pale);
  max-width: 440px;
  line-height: 1.7;
}

.sp-content {
  padding: 2rem 1.5rem;
}

.sp-content h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: .75rem;
  color: var(--text);
}

.sp-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: .5rem;
  color: var(--text);
}

.sp-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sp-content ul {
  list-style: none;
  margin-bottom: 1rem;
}

.sp-content ul li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: .3rem;
}

.sp-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ===========================
   FOOTER
=========================== */
.sp-footer {
  background: var(--navy);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sp-footer__copy {
  font-size: 12px;
  color: var(--blue-faint);
}

.sp-footer__addr {
  font-size: 11px;
  color: var(--blue-pale);
  margin-top: 2px;
}

.sp-footer__links {
  display: flex;
  gap: 1.25rem;
}

.sp-footer__links a {
  font-size: 12px;
  color: var(--blue-pale);
  transition: color .2s;
}

.sp-footer__links a:hover { color: var(--white); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 600px) {
  .sp-nav__links { display: none; }
  .sp-nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem;
    gap: .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .sp-nav__toggle { display: flex; }
  .sp-nav { position: relative; }

  .sp-hero { flex-direction: column; align-items: stretch; }
  .sp-hero__photo { width: 100%; }
  .sp-hero__photo img,
  .sp-hero__photo-placeholder { width: 100%; height: 200px; border-radius: 8px 8px 0 0; }
  .sp-hero__left { padding-bottom: 0; }

  .sp-services { grid-template-columns: 1fr; }
  .sp-plans { grid-template-columns: 1fr; }
  .sp-contact-grid { grid-template-columns: 1fr; }

  .sp-cta-row { flex-direction: column; }
  .sp-cta-row button { justify-content: center; }
}

/* ===========================
   ADMIN BAR OFFSET
=========================== */
.admin-bar .sp-nav { top: 32px; }

/* ===========================
   WP ALIGNMENT HELPERS
=========================== */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { margin: 0 auto; display: block; }
.wp-caption { max-width: 100%; }
