/*
Theme Name: SCC
Theme URI: https://www.scc-cameroun.com
Author: Roger MEKEIDJE
Author URI: https://www.scc-cameroun.com
Description: Thème officiel de la Société des Céréales du Cameroun - Une page responsive, sans plugin CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scc
Tags: one-page, responsive, custom-colors, custom-logo
*/

/* ============================================================
   SCC Theme – style.css  v2.0
   Société des Céréales du Cameroun
   Fidèle à https://www.scc-cameroun.com/
   ============================================================ */

/* ── Variables (couleurs exactes du site original) ─────────── */
:root {
    --gold:        #AC7D2C;
    --gold-light:  #D6A34A;
    --gold-dark:   #8A6220;
    --dark:        #0B0C11;
    --text:        #222222;
    --white:       #FFFFFF;
    --off-white:   #f8f5ef;
    --green-scc:   #104D27;
    --red-scc:     #742220;
    --header-h:    70px;
    --max-w:       1400px;
    --max-w-in:    1300px;
    --radius:      8px;
    --shadow:      0 6px 30px rgba(0,0,0,.14);
    --trans:       .3s ease;
    --font:        'Nunito', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    clip: rect(1px,1px,1px,1px); overflow: hidden;
}

/* ── Conteneur ──────────────────────────────────────────────── */
.scc-container {
    max-width: var(--max-w-in);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 60px);
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.scc-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: box-shadow var(--trans);
}
.scc-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.scc-header__inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.scc-header__logo img,
.scc-header__logo .custom-logo { height: 50px; width: auto; display: block; }

/* Nav desktop */
.scc-nav__list { display: flex; align-items: center; gap: clamp(10px,1.8vw,28px); }
.scc-nav__link {
    font-size: .84rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--dark); padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--trans), border-color var(--trans);
    white-space: nowrap;
}
.scc-nav__link:hover,
.scc-nav__link.active { color: var(--gold); border-bottom-color: var(--gold); }
.scc-nav__link--cta {
    background: var(--gold); color: var(--white) !important;
    border: none !important; border-radius: 20px; padding: 8px 22px !important;
    transition: background var(--trans), transform var(--trans);
}
.scc-nav__link--cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* Hamburger */
.scc-hamburger {
    display: none; flex-direction: column;
    justify-content: center; gap: 5px;
    width: 38px; height: 38px; padding: 4px;
}
.scc-hamburger span {
    display: block; width: 100%; height: 3px;
    background: var(--dark); border-radius: 2px;
    transition: transform var(--trans), opacity var(--trans);
}
.scc-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.scc-hamburger.open span:nth-child(2) { opacity: 0; }
.scc-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.scc-mobile-nav {
    display: none; overflow: hidden; max-height: 0;
    background: var(--white); border-top: 3px solid var(--gold);
    transition: max-height .35s ease;
}
.scc-mobile-nav.open { max-height: 360px; }
.scc-mobile-nav__list { padding: 8px 24px 16px; }
.scc-mobile-nav__link {
    display: block; padding: 12px 0;
    font-weight: 800; font-size: .95rem;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--dark); border-bottom: 1px solid #f0e8d8;
    transition: color var(--trans);
}
.scc-mobile-nav__link:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════════════════════════ */
.scc-btn {
    display: inline-block; padding: 14px 30px; border-radius: 20px;
    font-weight: 900; font-size: .88rem;
    text-transform: uppercase; letter-spacing: .08em;
    transition: transform var(--trans), box-shadow var(--trans);
}
.scc-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.scc-btn--dark  { background: var(--dark);  color: var(--white); }
.scc-btn--gold  { background: var(--gold);  color: var(--white); border-radius: 50px; }
.scc-btn--white { background: var(--white); color: var(--gold);  border-radius: 50px; font-weight: 900; }

/* ══════════════════════════════════════════════════════════════
   HERO – ACCUEIL
   Fond or #AC7D2C, image artboard, overlay 82%, sacs superposés
══════════════════════════════════════════════════════════════ */
.scc-hero {
    min-height: 80vh;
    background-color: var(--gold);
    background-image: url('assets/images/Artboard-1-3x-1086x1536.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: var(--header-h);
    overflow: hidden;
}
.scc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(172, 125, 44, 0.82);
    z-index: 0;
}
.scc-hero__inner {
    position: relative; z-index: 1;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 60px);
    padding-top: clamp(30px, 5vw, 60px);
    padding-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: calc(80vh - var(--header-h));
}

/* Colonne gauche */
.scc-hero__left {
    flex: 0 0 45%;
    display: flex; flex-direction: column;
    align-items: flex-start;
    padding-top: 10px; padding-left: 10px;
}
.scc-hero__artboard-wrap { margin-bottom: 16px; }
.scc-hero__artboard {
    max-width: 480px; width: 100%; height: auto;
    filter: brightness(0) invert(1);
    opacity: .9;
}

/* Nom + slogan côte à côte */
.scc-hero__tagline-row {
    display: flex; align-items: stretch;
    gap: 0; margin-bottom: 24px;
}
.scc-hero__company-name {
    flex: 0 0 auto; padding-right: 14px; text-align: right;
}
.scc-hero__company-name p {
    font-size: clamp(13px, 1.3vw, 17px);
    font-weight: 600; color: var(--white);
    line-height: 1.4; letter-spacing: -.01em;
}
.scc-hero__slogan-col {
    border-left: 2px solid var(--gold-light);
    padding-left: 14px;
    display: flex; align-items: center;
}
.scc-hero__slogan {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700; color: var(--white);
    text-transform: lowercase;
    line-height: 1.1; letter-spacing: -.01em;
}
.scc-hero__cta { margin-top: 10px; }

/* Colonne droite – sacs superposés */
.scc-hero__products {
    flex: 0 0 55%;
    position: relative;
    align-self: stretch;
    min-height: 460px;
    overflow: visible;
}
.scc-hero__pack {
    position: absolute; bottom: 0;
    object-fit: contain;
    filter: drop-shadow(0 16px 36px rgba(0,0,0,.5));
    transition: transform var(--trans);
}
.scc-hero__pack:hover { transform: translateY(-8px) scale(1.03); }
.scc-hero__pack--1 { left: 0; z-index: 3; width: clamp(160px, 20vw, 290px); }
.scc-hero__pack--2 { left: clamp(110px,14vw,210px); z-index: 2; width: clamp(160px, 20vw, 290px); }
.scc-hero__pack--3 { left: clamp(210px,27vw,400px); z-index: 1; width: clamp(160px, 20vw, 290px); }
.scc-hero__wheat {
    position: absolute; bottom: 38%; right: -30px; z-index: 0;
    width: clamp(240px, 30vw, 440px);
    transform: rotate(-20deg) scaleX(-1);
    opacity: .88;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}
.scc-hero__iso {
    position: absolute; bottom: 40px; right: -40px; z-index: 10;
    width: clamp(80px, 10vw, 170px);
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.3));
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS COMMUNES
══════════════════════════════════════════════════════════════ */
.scc-section { padding-block: 50px; }

.scc-section__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900; text-transform: uppercase;
    text-align: center; margin-bottom: 40px; letter-spacing: .04em;
}
.scc-section__title.gold  { color: var(--gold); }
.scc-section__title.white { color: var(--white); }

.scc-section__h3 {
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 700; color: var(--gold);
    margin-top: 36px; margin-bottom: 14px; letter-spacing: .02em;
}
.scc-text {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6em; letter-spacing: -.03em;
    color: var(--text); margin-bottom: 14px;
}
.scc-list { margin: 8px 0 14px 0; }
.scc-list li {
    position: relative; padding-left: 22px;
    margin-bottom: 7px;
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.55; color: var(--text);
}
.scc-list li::before {
    content: '•'; color: var(--gold);
    position: absolute; left: 4px; font-size: 1.1em; top: 1px;
}

/* ══════════════════════════════════════════════════════════════
   PRÉSENTATION – fond blanc
══════════════════════════════════════════════════════════════ */
.scc-presentation { background: var(--white); }

.scc-info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-block: 36px;
}
.scc-info-card {
    background: var(--off-white); border-top: 4px solid var(--gold);
    border-radius: var(--radius); padding: 24px 12px;
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 8px;
    transition: transform var(--trans);
}
.scc-info-card:hover { transform: translateY(-4px); }
.scc-info-card__num { font-size: clamp(28px,3.5vw,42px); font-weight: 900; color: var(--gold); line-height: 1; }
.scc-info-card__num span { font-size: .48em; font-weight: 700; color: var(--gold-dark); }
.scc-info-card__label { font-size: .78rem; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .04em; opacity: .75; }

.scc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: start; margin-top: 16px; }
.scc-two-col--reverse .scc-two-col__text  { order: 2; }
.scc-two-col--reverse .scc-two-col__image { order: 1; }
.scc-two-col__image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 320px; object-fit: cover; }

.scc-slideshow { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.scc-slideshow__slide { display: none; }
.scc-slideshow__slide--active { display: block; }
.scc-slideshow__slide img { width: 100%; height: 320px; object-fit: cover; display: block; }
.scc-slideshow__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(172,125,44,.85); color: var(--white);
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--trans); z-index: 2;
}
.scc-slideshow__btn:hover { background: var(--gold-dark); }
.scc-slideshow__btn--prev { left: 10px; }
.scc-slideshow__btn--next { right: 10px; }

.scc-infra { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); margin-top: 16px; }
.scc-infra__photos { display: flex; flex-direction: column; gap: 12px; }
.scc-infra__photos img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow); }

/* ══════════════════════════════════════════════════════════════
   SERVICES – fond or avec image overlay 88%
══════════════════════════════════════════════════════════════ */
.scc-services {
    background-color: var(--gold);
    background-image: url('assets/images/Artboard-1-3x-1086x1536.png');
    background-size: cover; background-position: center;
    position: relative; padding-block: 50px;
}
.scc-services::before { content: ''; position: absolute; inset: 0; background: rgba(172,125,44,.88); z-index: 0; }
.scc-services .scc-container { position: relative; z-index: 1; }

.scc-services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,48px); align-items: start; }
.scc-services__card {
    background: rgba(255,255,255,.13); border-radius: var(--radius);
    padding: clamp(18px,2.5vw,34px); color: var(--white); height: 100%;
}
.scc-services__right { display: flex; flex-direction: column; gap: 16px; }
.scc-services__item { background: rgba(255,255,255,.13); border-radius: var(--radius); padding: clamp(16px,2vw,26px); color: var(--white); }
.scc-services__card-title {
    font-size: clamp(18px,1.8vw,24px); font-weight: 800; color: var(--white);
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.35); letter-spacing: .03em;
}
.scc-services__item p, .scc-services__card p { font-size: clamp(13px,1.2vw,16px); line-height: 1.65; color: rgba(255,255,255,.92); }
.scc-ordered-list { list-style: none; counter-reset: scc-c; display: flex; flex-direction: column; gap: 8px; }
.scc-ordered-list > li { counter-increment: scc-c; padding-left: 26px; position: relative; font-size: clamp(12px,1.1vw,15px); line-height: 1.6; color: rgba(255,255,255,.9); }
.scc-ordered-list > li::before { content: counter(scc-c) '.'; position: absolute; left: 0; font-weight: 800; color: var(--gold-light); }
.scc-ordered-list ul { margin-top: 5px; margin-left: 10px; }
.scc-ordered-list ul li { position: relative; padding-left: 14px; font-size: .92em; color: rgba(255,255,255,.8); line-height: 1.5; margin-bottom: 3px; }
.scc-ordered-list ul li::before { content: '–'; position: absolute; left: 0; color: var(--gold-light); }

/* ══════════════════════════════════════════════════════════════
   NOS PRODUITS – fond blanc
══════════════════════════════════════════════════════════════ */
.scc-products { background: var(--white); }
.scc-products__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2.5vw,32px); }
.scc-product-card {
    background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform var(--trans), box-shadow var(--trans);
}
.scc-product-card:hover { transform: translateY(-8px); box-shadow: 0 14px 44px rgba(0,0,0,.18); }
.scc-product-card__img-wrap {
    background: var(--off-white); padding: 28px 24px 16px;
    display: flex; justify-content: center; align-items: flex-end; min-height: 300px;
}
.scc-product-card__img-wrap img {
    max-height: 280px; width: auto; object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
    transition: transform var(--trans);
}
.scc-product-card:hover .scc-product-card__img-wrap img { transform: scale(1.05) translateY(-4px); }
.scc-product-card__body { padding: clamp(16px,2vw,26px); flex: 1; }
.scc-product-card__title { font-size: clamp(18px,1.8vw,24px); font-weight: 900; letter-spacing: .03em; margin-bottom: 12px; }
.scc-product-card__title--green { color: var(--green-scc); }
.scc-product-card__title--red   { color: var(--red-scc); }
.scc-product-card__title--gold  { color: var(--gold); }
.scc-product-card__body p { font-size: clamp(13px,1.1vw,16px); line-height: 1.65; color: var(--text); margin-bottom: 10px; letter-spacing: -.02em; }
.scc-product-card__body .scc-list li { font-size: clamp(12px,1vw,14px); }

/* ══════════════════════════════════════════════════════════════
   CONTACT – fond blanc
══════════════════════════════════════════════════════════════ */
.scc-contact { background: var(--white); padding-top: 20px; padding-bottom: 50px; }
.scc-contact__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px,5vw,64px); align-items: start; }
.scc-contact__block { margin-bottom: 24px; }
.scc-contact__block h3 {
    font-size: clamp(18px,1.8vw,26px); font-weight: 800; color: var(--dark);
    margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--gold-light);
}
.scc-contact__block p { font-size: clamp(14px,1.2vw,17px); line-height: 1.7; color: var(--text); }
.scc-contact__block a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; transition: color var(--trans); }
.scc-contact__block a:hover { color: var(--gold); }
.scc-contact__map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.scc-form { display: flex; flex-direction: column; gap: 16px; }
.scc-form__group { display: flex; flex-direction: column; gap: 5px; }
.scc-form__label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dark); }
.scc-form__label span { color: var(--gold); }
.scc-form__input, .scc-form__textarea {
    padding: 12px 16px; border: 2px solid #e0d5c1; border-radius: var(--radius);
    font-family: var(--font); font-size: 1rem; color: var(--text);
    background: var(--off-white); outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}
.scc-form__input:focus, .scc-form__textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(172,125,44,.15); background: var(--white); }
.scc-form__textarea { resize: vertical; min-height: 110px; }
.scc-alert { padding: 14px 18px; border-radius: var(--radius); font-weight: 700; margin-bottom: 14px; }
.scc-alert--success { background:#d4edda; color:#155724; border-left:4px solid #28a745; }
.scc-alert--success-inv { background:rgba(255,255,255,.2); color:var(--white); border-left:4px solid var(--white); }

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER – fond or uni
══════════════════════════════════════════════════════════════ */
.scc-newsletter { background: var(--gold); padding-block: 50px; }
.scc-newsletter__inner { text-align: center; }
.scc-newsletter .scc-section__title { margin-bottom: 10px; color: var(--white); }
.scc-newsletter__desc { color: rgba(255,255,255,.9); font-size: clamp(15px,1.3vw,20px); margin-bottom: 26px; }
.scc-newsletter__fields { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 540px; margin-inline: auto; }
.scc-newsletter__email { flex: 1; min-width: 220px; background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.5); }

/* ══════════════════════════════════════════════════════════════
   FOOTER – fond sombre
══════════════════════════════════════════════════════════════ */
.scc-footer { background: var(--dark); padding-block: 40px 24px; color: var(--white); }
.scc-footer__inner { max-width: var(--max-w-in); margin-inline: auto; padding-inline: clamp(16px,4vw,60px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.scc-footer__logo img { height: 64px; width: auto;; opacity: .8; }
.scc-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; }
.scc-footer__nav a { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); transition: color var(--trans); }
.scc-footer__nav a:hover { color: var(--gold-light); }
.scc-footer__copy { font-size: .8rem; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; width: 100%; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 1024px
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .scc-hero__left     { flex: 0 0 48%; }
    .scc-hero__products { flex: 0 0 52%; min-height: 380px; }
    .scc-hero__pack--3  { display: none; }
    .scc-hero__wheat    { width: 280px; bottom: 45%; right: -10px; }
    .scc-hero__iso      { width: 100px; right: -10px; }
    .scc-info-grid      { grid-template-columns: repeat(2,1fr); }
    .scc-services__grid { grid-template-columns: 1fr; }
    .scc-products__grid { grid-template-columns: repeat(2,1fr); }
    .scc-contact__grid  { grid-template-columns: 1fr; }
    .scc-infra          { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 768px
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .scc-nav        { display: none; }
    .scc-hamburger  { display: flex; }
    .scc-mobile-nav { display: block; }

    .scc-hero { min-height: 100svh; }
    .scc-hero__inner { flex-direction: column; align-items: stretch; padding-top: 24px; gap: 12px; }
    .scc-hero__left { flex: none; width: 100%; padding-left: 0; }
    .scc-hero__artboard { max-width: 280px; }
    .scc-hero__slogan   { font-size: 22px; }
    .scc-hero__company-name p { font-size: 12px; }
    .scc-hero__products { flex: none; width: 100%; min-height: 260px; margin-top: 12px; }
    .scc-hero__pack--1  { width: 120px; }
    .scc-hero__pack--2  { left: 85px; width: 120px; }
    .scc-hero__pack--3  { left: 165px; width: 120px; display: block; }
    .scc-hero__wheat    { display: none; }
    .scc-hero__iso      { width: 65px; right: 8px; bottom: 8px; }

    .scc-two-col { grid-template-columns: 1fr; }
    .scc-two-col--reverse .scc-two-col__text  { order: 0; }
    .scc-two-col--reverse .scc-two-col__image { order: 0; }
    .scc-products__grid { grid-template-columns: 1fr; }
    .scc-infra { grid-template-columns: 1fr; }
    .scc-info-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }

    .scc-newsletter__fields { flex-direction: column; }
    .scc-newsletter__email { min-width: auto; }
    .scc-btn { display: block; width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 420px
══════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
    .scc-hero__pack--3  { display: none; }
    .scc-info-grid      { grid-template-columns: 1fr 1fr; }
    .scc-section__title { font-size: 24px; }
}
