/* =========================================================
   NIKA SERVICES SARLU — feuille de style
   Inspiré du modèle "Company Profile" : cyan / bleu marine,
   formes diagonales, titres en deux tons.
   ========================================================= */

:root {
    --cyan: #27b5d6;
    --cyan-dark: #1a9cbd;
    --navy: #17507a;
    --navy-deep: #0f3a5a;
    --orange: #f5a623;          /* étoile du logo */
    --ink: #2b2f36;
    --muted: #5d6673;
    --tint: #f1f8fb;
    --white: #fff;
    --radius: 6px;
    --shadow: 0 10px 30px rgba(15, 58, 90, .12);
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-dark); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: .85em 1.7em;
    background: var(--cyan);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 2px solid var(--cyan);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--sm { padding: .55em 1.2em; font-size: .8rem; }
.btn--block { width: 100%; }

/* ---------- Titres deux tons (style du modèle) ---------- */
.title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cyan);
    position: relative;
    padding-bottom: .5em;
}
.title small {
    display: block;
    font-size: .55em;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: .04em;
}
.title::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 70px; height: 4px;
    background: var(--navy);
}
.title--light { color: var(--white); }
.title--light small { color: var(--white); opacity: .85; }
.title--light::after { background: var(--orange); }
.subtitle { color: var(--cyan); text-transform: uppercase; font-size: 1.15rem; }
.bar { display: block; width: 90px; height: 5px; background: var(--navy); margin: 1.2rem 0 1.4rem; }

/* ---------- En-tête ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(23, 80, 122, .08);
    transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(15, 58, 90, .1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-head); }
.brand__text strong { font-size: 1.15rem; font-weight: 800; }
.brand__text strong span { color: var(--cyan); }
.flag {
    flex: none; align-self: center; margin-left: .3rem;
    border-radius: 3px; box-shadow: 0 1px 4px rgba(15, 58, 90, .3);
}
.brand__text small { font-size: .7rem; letter-spacing: .3em; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
    font-family: var(--font-head); font-weight: 600; font-size: .9rem;
    color: var(--navy); position: relative;
}
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--cyan); transition: width .2s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (couverture) ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero__inner {
    display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
    min-height: calc(100vh - 72px); max-height: 860px;
}
.hero__content { position: relative; z-index: 3; padding: 4rem 0 6rem; }
.hero__logo { width: 96px; height: 96px; margin-bottom: 1.2rem; }
.hero__kicker {
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    letter-spacing: .2em; color: var(--navy); margin-bottom: .4rem;
}
.hero__title {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 800; color: var(--ink); margin: 0;
    letter-spacing: .01em;
}
.hero__title span { color: var(--cyan); }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 470px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero__media { align-self: stretch; }
.hero__photo {
    position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 50%;
    background: var(--navy) center / cover no-repeat;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 78%);
    overflow: hidden;
}

/* Diaporama de l'accueil */
.slide {
    position: absolute; inset: 0; margin: 0;
    background: center / cover no-repeat;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease-out;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.slide figcaption {
    position: absolute; right: 24px; bottom: 56px;
    background: rgba(15, 58, 90, .85); color: var(--white);
    font-family: var(--font-head); font-weight: 600; font-size: .85rem;
    padding: .5em 1em; border-left: 4px solid var(--cyan);
    opacity: 0; transform: translateX(20px); transition: opacity .6s .5s, transform .6s .5s;
}
.slide.is-active figcaption { opacity: 1; transform: none; }
.slider__dots { position: absolute; z-index: 2; right: 24px; bottom: 22px; display: flex; gap: 8px; }
.slider__dots button {
    width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 2px solid var(--white); background: transparent; transition: background .2s, width .2s;
}
.slider__dots button.is-active { background: var(--cyan); border-color: var(--cyan); width: 28px; border-radius: 6px; }
.tri { position: absolute; z-index: 2; display: block; pointer-events: none; }
.tri--1 {   /* bande cyan en haut à droite */
    top: 0; right: 0; width: 17%; height: 46%;
    background: var(--cyan);
    clip-path: polygon(30% 0, 100% 0, 100% 100%);
    opacity: .92;
}
.tri--2 {   /* bande marine */
    top: 0; right: 0; width: 9%; height: 30%;
    background: var(--navy);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.hero__shape--bottom {  /* forme cyan en bas à gauche */
    position: absolute; z-index: 1; left: 0; bottom: 0;
    width: 58%; height: 30%;
    background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    clip-path: polygon(0 18%, 70% 0, 100% 100%, 0 100%);
    opacity: .12;
}

/* ---------- Statistiques ---------- */
.stats { background: var(--navy); color: var(--white); position: relative; z-index: 3; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--cyan); }
.stat span { font-size: .9rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; position: relative; }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.two-col--center { align-items: center; }

/* À propos */
.about__media { position: relative; margin-top: 2rem; }
.about__photo {
    height: 300px;
    background: var(--navy) center / cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 82% 100%, 0 100%);
    border-radius: var(--radius);
}
.quote {
    position: relative; margin: -60px 0 0 auto; width: 78%;
    background: var(--white); padding: 1.3rem 1.5rem;
    border-left: 6px solid var(--cyan);
    box-shadow: var(--shadow);
    font-family: var(--font-head); font-weight: 700; color: var(--navy);
    font-size: 1rem; line-height: 1.5;
}

/* Gérant */
.ceo { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.6rem; }
.ceo__avatar {
    flex: none; width: 150px; height: 180px;
    object-fit: cover; object-position: 50% 8%;
    background: var(--tint);
    border-bottom: 5px solid var(--cyan);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.ceo__name { font-family: var(--font-head); font-weight: 800; color: var(--cyan); text-transform: uppercase; margin: 0; font-size: 1.1rem; }
.ceo__role { color: var(--navy); font-weight: 600; margin: 0 0 .4rem; font-size: .9rem; }
.ceo__contact { font-size: .85rem; color: var(--muted); margin: 0; }
.ceo__contact i { color: var(--cyan); width: 18px; }
.signature { font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.service {
    position: relative; overflow: hidden;
    background: var(--white); padding: 2rem 1.6rem 1.6rem;
    border-radius: var(--radius); box-shadow: 0 4px 16px rgba(15,58,90,.06);
    border-top: 4px solid var(--cyan);
    transition: transform .25s, box-shadow .25s;
}
.service::before {   /* coin diagonal */
    content: ""; position: absolute; top: 0; right: 0; width: 70px; height: 70px;
    background: var(--tint); clip-path: polygon(0 0, 100% 0, 100% 100%);
    transition: background .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::before { background: var(--cyan); }
.service__letter {
    position: absolute; top: 8px; right: 12px; z-index: 1;
    font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem;
}
.service:hover .service__letter { color: var(--white); }
.service__icon {
    display: grid; place-items: center; width: 56px; height: 56px;
    background: var(--navy); color: var(--white); font-size: 1.4rem;
    border-radius: var(--radius); margin-bottom: 1rem;
}
.service h3 { font-size: 1.05rem; color: var(--navy); text-transform: uppercase; }
.service p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Vision & mission */
.mission { overflow: hidden; }
.mission__media { position: absolute; top: 0; bottom: 0; right: 0; width: 44%; }
.mission__photo {
    position: absolute; inset: 0;
    background: var(--navy) center / cover no-repeat;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.tri--3 {
    left: 0; top: 0; bottom: 0; width: 34%;
    background: var(--cyan);
    clip-path: polygon(82% 0, 100% 0, 18% 100%, 0 100%);
    opacity: .9;
}
.mission__inner { position: relative; z-index: 2; }
.mission__content { max-width: 600px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.value { border-top: 3px solid var(--cyan); padding-top: 1rem; }
.value i { color: var(--cyan); font-size: 1.5rem; margin-bottom: .5rem; }
.value h3 { font-size: .95rem; text-transform: uppercase; color: var(--navy); margin-bottom: .3rem; }
.value p { font-size: .87rem; color: var(--muted); margin: 0; }

/* Cibles */
.targets { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.targets li { display: flex; gap: 1rem; align-items: flex-start; }
.targets li > i {
    flex: none; width: 48px; height: 48px; display: grid; place-items: center;
    border: 2px solid var(--cyan); color: var(--cyan); border-radius: var(--radius); font-size: 1.2rem;
}
.targets h3 { font-size: 1rem; color: var(--navy); text-transform: uppercase; margin-bottom: .2rem; }
.targets p { font-size: .92rem; color: var(--muted); margin: 0; }

.why {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
    color: var(--white); padding: 2.6rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%);
    border-radius: var(--radius);
}
.why h3 { font-size: 1.4rem; text-transform: uppercase; }
.checks { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.checks li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: var(--orange);
}

/* Fiche société */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid #e1ecf2; border-radius: var(--radius); overflow: hidden; }
.fact { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid #e1ecf2; }
.fact:nth-child(odd) { border-right: 1px solid #e1ecf2; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact span { font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; color: var(--cyan-dark); letter-spacing: .05em; padding-top: .15em; }
.fact strong { color: var(--navy); font-weight: 600; }

/* ---------- Contact (dos de couverture) ---------- */
.contact { position: relative; padding: 6rem 0; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.contact__shape {
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg, transparent 0 55%, rgba(39,181,214,.9) 55% 72%, var(--navy) 72%);
}
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact__logo { width: 80px; height: 80px; margin-bottom: 1rem; background: var(--white); border-radius: 50%; padding: 4px; }
.contact__tag { color: var(--cyan); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; }
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.contact__list i {
    flex: none; width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--cyan); border-radius: 50%; font-size: .95rem;
}
.contact__list a, .contact__list span { color: var(--white); padding-top: .4em; }
.contact__list a:hover { color: var(--orange); }

.form { background: var(--white); color: var(--ink); padding: 2.2rem; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.25); border-top: 6px solid var(--cyan); }
.form h3 { color: var(--navy); text-transform: uppercase; font-size: 1.15rem; }
.form label { display: block; font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.form input, .form select, .form textarea {
    display: block; width: 100%; margin-top: .35rem;
    padding: .75em .9em; font: inherit; font-family: var(--font-body); font-size: .95rem; font-weight: 400;
    border: 1px solid #cfdfe8; border-radius: var(--radius); background: #fafdfe; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(39,181,214,.2); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert--success { background: #e5f7ec; color: #1d6b3a; border-left: 4px solid #2fa35a; }
.alert--error { background: #fdecec; color: #8a1f1f; border-left: 4px solid #d64545; }

/* ---------- Pied de page ---------- */
.footer { background: #0a2a42; color: rgba(255,255,255,.75); font-size: .85rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; }
.footer p { margin: 0; }
.footer__top { width: 40px; height: 40px; display: grid; place-items: center; background: var(--cyan); color: var(--white); border-radius: 50%; flex: none; }
.footer__top:hover { background: var(--orange); }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .slide { transform: none; transition: opacity .4s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); box-shadow: 0 10px 20px rgba(15,58,90,.1);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .nav.is-open { max-height: 400px; }
    .nav a:not(.btn) { padding: 1rem 16px; border-top: 1px solid #edf3f6; }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin: 1rem 16px; text-align: center; }

    .hero__inner { grid-template-columns: 1fr; min-height: 0; max-height: none; }
    .hero__content { padding: 3rem 0 2rem; }
    .hero__media { position: relative; height: 340px; margin: 0 -16px; }
    .hero__photo { width: auto; left: 0; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
    .tri--1 { width: 34%; } .tri--2 { width: 18%; }
    .hero__shape--bottom { display: none; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }

    .two-col, .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
    .mission__media { position: relative; width: auto; height: 260px; margin-bottom: 3rem; margin-top: -6rem; }
    .mission__photo { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%); }
    .tri--3 { display: none; }
    .facts { grid-template-columns: 1fr; }
    .fact:nth-child(odd) { border-right: 0; }
    .fact:nth-last-child(2) { border-bottom: 1px solid #e1ecf2; }
    .contact__shape { background: linear-gradient(160deg, transparent 0 70%, rgba(39,181,214,.6) 70% 80%, var(--navy) 80%); }
}
@media (max-width: 600px) {
    .section, .contact { padding: 4rem 0; }
    .mission__media { margin-top: -4rem; }
    .values { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .fact { grid-template-columns: 1fr; gap: .2rem; }
    .why { padding: 2rem 1.5rem; }
    .quote { width: 92%; }
    .ceo__avatar { width: 110px; height: 135px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .brand__text strong { font-size: 1rem; }
}
