/*
Theme Name: Skill & Co
Author: Audouin Réalisations
Description: Thème custom Skill & Co – Formations professionnelles
Version: 1.0.0
Text Domain: skillandco
*/

/* ==============================
   VARIABLES CSS
   ============================== */
:root {
  --color-red: #e63329;
  --color-dark: #1a1a1a;
  --color-dark-2: #111111;
  --color-dark-3: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f3;
  --color-muted: #888888;
  --font-main: 'Inter', sans-serif;
  --radius-btn: 6px;
  --radius-card: 8px;
  --container-max: 1100px;
  --container-padding: 40px;
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-dark); background: var(--color-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==============================
   LAYOUT
   ============================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.sc-section { padding: 70px 0; }
.sc-section--dark { background: var(--color-dark-2); color: var(--color-white); }
.sc-section--gray { background: var(--color-gray-light); }

/* ==============================
   GRILLES
   ============================== */
.sc-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.sc-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* ==============================
   BOUTONS
   ============================== */
.btn-primary, .btn-outline, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-btn);
  font-family: var(--font-main); font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; transition: opacity .2s, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--color-red); color: var(--color-white); }
.btn-primary:hover { opacity: .88; color: var(--color-white); }
.btn-outline { background: rgba(255,255,255,.1); color: var(--color-white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.18); color: var(--color-white); }
.btn-dark { background: var(--color-dark); color: var(--color-white); }
.btn-dark:hover { opacity: .85; color: var(--color-white); }

/* ==============================
   TAGS
   ============================== */
.sc-tag {
  display: inline-block; background: var(--color-dark); color: var(--color-white);
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px; margin-bottom: 18px;
}
.sc-tag--red { background: var(--color-red); }

/* ==============================
   TITRES
   ============================== */
.sc-section-title { font-size: 32px; font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.sc-section-title--white { color: var(--color-white); }
.sc-section-subtitle { font-size: 14px; color: var(--color-muted); max-width: 520px; margin-bottom: 40px; line-height: 1.6; }
.sc-section-subtitle--white { color: rgba(255,255,255,.55); }

/* ==============================
   CARTES
   ============================== */
.sc-card { background: var(--color-white); border: 0.5px solid #e0e0e0; border-radius: var(--radius-card); padding: 28px 24px; }
.sc-card__icon { width: 38px; height: 38px; background: rgba(230,51,41,.08); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sc-card__icon svg { width: 20px; height: 20px; }
.sc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.sc-card p { font-size: 13px; color: #555; line-height: 1.65; margin-bottom: 16px; }
.sc-card__link { font-size: 12px; color: var(--color-red); font-weight: 700; }
.sc-card__link:hover { text-decoration: underline; }

/* ==============================
   HEADER / NAV
   ============================== */
.sc-header {
  position: sticky; top: 0; z-index: 1000; background: var(--color-dark);
  height: 64px; display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sc-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.sc-logo { display: flex; align-items: center; gap: 10px; color: var(--color-white); flex-shrink: 0; }
.sc-logo__icon {
  width: 36px; height: 36px; background: var(--color-white); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 10px; color: var(--color-dark); position: relative; letter-spacing: -.5px;
}
.sc-logo__dot { width: 7px; height: 7px; background: var(--color-red); border-radius: 50%; position: absolute; bottom: 5px; right: 5px; }
.sc-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.sc-logo__name { font-size: 14px; font-weight: 800; letter-spacing: .5px; color: var(--color-white); }
.sc-logo__sub  { font-size: 9px; color: rgba(255,255,255,.5); }

.sc-nav ul { display: flex; align-items: center; gap: 28px; }
.sc-nav a { position: relative; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; transition: color .25s; }
.sc-nav a::before { content: ""; position: absolute; left: -11px; top: 50%; transform: translateY(-50%) scale(0); width: 5px; height: 5px; background: var(--color-red); border-radius: 50%; opacity: 0; transition: opacity .25s, transform .25s; }
.sc-nav a:hover { color: var(--color-white); }
.sc-nav a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.sc-nav li.current-menu-item > a { color: var(--color-white); }
.sc-nav li.current-menu-item > a::before { opacity: 1; transform: translateY(-50%) scale(1); }

.sc-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.sc-hamburger span { display: block; width: 22px; height: 2px; background: var(--color-white); border-radius: 2px; transition: all .3s; }
.sc-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-hamburger.open span:nth-child(2) { opacity: 0; }
.sc-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sc-nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--color-dark); padding: 20px; z-index: 999;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sc-nav-mobile.active { display: block; }
.sc-nav-mobile ul { flex-direction: column; gap: 0; }
.sc-nav-mobile ul li a { display: block; padding: 13px 0; color: rgba(255,255,255,.8); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sc-nav-mobile .btn-primary { margin-top: 16px; width: 100%; text-align: center; }

/* ==============================
   HERO
   ============================== */
.sc-hero {
  position: relative; min-height: 580px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: var(--color-white);
}
.sc-hero__overlay { position: absolute; inset: 0; }
.sc-hero::after { content: ""; display: block; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--color-red); z-index: 2; }
.sc-hero .container { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 70px; }
.sc-hero__pill {
  display: inline-block; border: 1.5px solid var(--color-red); color: var(--color-white);
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 3px; margin-bottom: 20px;
}
.sc-hero h1 { font-size: 58px; font-weight: 900; line-height: 1.05; margin-bottom: 18px; max-width: 680px; }
.sc-accent { color: var(--color-red); }
.sc-hero .sc-hero__desc { font-size: 15px; color: rgba(255,255,255,.7); max-width: 500px; margin-bottom: 30px; line-height: 1.7; }

.sc-search-bar {
  display: flex; max-width: 480px; background: rgba(255,255,255,.1);
  border-radius: var(--radius-btn); overflow: hidden; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.15);
}
.sc-search-bar input { flex: 1; padding: 13px 16px; background: transparent; border: none; color: var(--color-white); font-family: var(--font-main); font-size: 13px; outline: none; }
.sc-search-bar input::placeholder { color: rgba(255,255,255,.45); }
.sc-search-bar .btn-dark { border-radius: 0; padding: 13px 20px; font-size: 11px; letter-spacing: 1.2px; }

.sc-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==============================
   CHIFFRES
   ============================== */
.sc-chiffres-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-card);
  overflow: hidden; margin-bottom: 20px;
}
.sc-chiffre-item { padding: 28px 20px; border-right: 1px solid rgba(255,255,255,.1); text-align: center; }
.sc-chiffre-item:last-child { border-right: none; }
.sc-chiffre-item__number { font-size: 44px; font-weight: 900; color: var(--color-red); line-height: 1; margin-bottom: 8px; }
.sc-chiffre-item__label  { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.45; }
.sc-qualiopi-bloc {
  background: rgba(255,255,255,.05); border-left: 3px solid var(--color-red);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 18px 24px; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.65;
}
.sc-qualiopi-bloc strong { color: var(--color-white); }

/* ==============================
   CLIENTS
   ============================== */
.sc-client-logo {
  display: flex; align-items: center; justify-content: center; height: 72px;
  border: 0.5px solid #e0e0e0; border-radius: var(--radius-card); padding: 12px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #999;
  transition: border-color .2s, color .2s;
}
.sc-client-logo:hover { border-color: var(--color-red); color: var(--color-dark); }
.sc-client-logo img { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: all .2s; }
.sc-client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ==============================
   AVIS
   ============================== */
.sc-stars { color: var(--color-red); font-size: 15px; margin-bottom: 12px; letter-spacing: 1px; }
.sc-avis-card p { font-size: 13px; color: #444; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.sc-avis-card__author { font-size: 13px; font-weight: 700; color: var(--color-dark); }
.sc-avis-card__role   { font-size: 11px; color: var(--color-muted); margin-top: 2px; }

/* ==============================
   FOOTER
   ============================== */
.sc-footer { background: var(--color-dark-2); color: rgba(255,255,255,.6); padding: 60px 0 0; }
.sc-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 50px; }
.sc-footer .sc-logo { margin-bottom: 16px; }
.sc-footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--color-white); margin-bottom: 16px; }
.sc-footer-col > p { font-size: 13px; line-height: 1.75; }
.sc-footer-col ul li { margin-bottom: 10px; }
.sc-footer-col ul a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; }
.sc-footer-col ul a:hover { color: var(--color-white); }
.sc-footer-bottom { background: var(--color-dark-3); padding: 16px 0; text-align: center; font-size: 11px; color: rgba(255,255,255,.35); }
.sc-footer-bottom a { color: rgba(255,255,255,.5); margin-left: 16px; }
.sc-footer-bottom a:hover { color: var(--color-white); }

/* ==============================
   RESPONSIVE — ≤ 900px
   ============================== */
@media (max-width: 900px) {
  .sc-grid-2 { grid-template-columns: 1fr; }
  .sc-grid-3 { grid-template-columns: 1fr; }
  .sc-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sc-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .sc-chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-chiffre-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .sc-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sc-nav, .sc-header-cta { display: none; }
  .sc-hamburger { display: flex; }
}

/* ==============================
   RESPONSIVE — ≤ 600px
   ============================== */
@media (max-width: 600px) {
  :root { --container-padding: 20px; }
  .sc-section { padding: 50px 0; }
  .sc-hero h1 { font-size: 32px; }
  .sc-hero { min-height: 480px; }
  .sc-grid-4, .sc-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .sc-hero__ctas { flex-direction: column; }
  .sc-search-bar { flex-direction: column; }
  .sc-search-bar .btn-dark { border-radius: 0 0 var(--radius-btn) var(--radius-btn); width: 100%; }
  .sc-section-title { font-size: 24px; }
}
