/* ========================================
   MILLOT TP — Landing Page
   Palette: #F7E052 (jaune), #039162 (vert), #1a1a1a (noir)
   Font: Outfit
   ======================================== */

:root {
    --yellow: #F7E052;
    --green: #039162;
    --green-dark: #026e49;
    --black: #1a1a1a;
    --gray-900: #2a2a2a;
    --gray-700: #4a4a4a;
    --gray-500: #6b6b6b;
    --gray-300: #b0b0b0;
    --gray-100: #f4f4f2;
    --white: #ffffff;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TYPOGRAPHY */
.section-tag {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 20px;
}
.section-intro {
    font-size: 1.05rem;
    color: var(--gray-700);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.75;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.btn--primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn--primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.45);
}
.btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
}
.btn--full { width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}
.header--scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__logo img {
    height: 52px;
    width: auto;
    transition: height var(--transition);
}
.header--scrolled .header__logo img { height: 42px; }
.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header__link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: color var(--transition);
}
.header--scrolled .header__link { color: var(--black); }
.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width var(--transition);
}
.header__link:hover::after { width: 100%; }
.header__link--cta {
    background: var(--green);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
}
.header__link--cta::after { display: none; }
.header__link--cta:hover { background: var(--green-dark); }

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}
.header__burger span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.header--scrolled .header__burger span { background: var(--black); }
.header__burger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger--open span:nth-child(2) { opacity: 0; }
.header__burger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   HERO — with background photo
   ======================================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -160px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(247,224,82,.35) 0%, rgba(247,224,82,0) 70%);
    z-index: 0;
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
    padding-bottom: 72px;
}
.hero__left { position: relative; }
.hero__tag {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
    padding-left: 56px;
    position: relative;
}
.hero__tag::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 3px;
    background: var(--yellow);
}
.hero__title {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--black);
    margin-bottom: 28px;
    letter-spacing: -.02em;
}
.hero__title br { display: block; }
.hero__subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gray-700);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__right {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 520px;
    justify-self: end;
    width: 100%;
}
.hero__img-frame {
    position: absolute;
    inset: 24px -24px -24px 24px;
    background: var(--yellow);
    border-radius: var(--radius-lg);
    z-index: 0;
}
.hero__img {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}
.hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__badge {
    position: absolute;
    left: -20px;
    bottom: 28px;
    z-index: 2;
    background: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 200px;
}
.hero__badge-line {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.hero__badge-strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(26,26,26,.1);
    position: relative;
    z-index: 1;
}
.hero__stat { text-align: left; }
.hero__stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 6px;
}
.hero__stat-label {
    font-size: .82rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================
   EXPERTISES
   ======================================== */
.expertises {
    padding: 100px 0 110px;
    background: var(--white);
}
.expertises__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 8px;
}
.expertise-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.expertise-card:hover {
    border-color: rgba(247,224,82,.8);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.expertise-card__body {
    padding: 32px 36px 40px;
}
.expertise-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--black);
    line-height: 1.3;
    letter-spacing: -.01em;
}
.expertise-card__text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Photo slider inside expertise cards - MAGAZINE format, above title */
.expertise-card__slider {
    position: relative;
    margin: 0;
    height: 360px;
    border-radius: 0;
    overflow: hidden;
    background: var(--gray-100);
}
.slider__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    display: block;
}
.slider__slide--active {
    opacity: 1;
    z-index: 1;
}
.slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}
.expertise-card:hover .slider__slide--active img {
    transform: scale(1.03);
}
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, .55);
    color: var(--white);
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.slider__arrow svg {
    width: 18px;
    height: 18px;
}
.slider__arrow--prev { left: 10px; }
.slider__arrow--next { right: 10px; }
.expertise-card:hover .slider__arrow,
.slider:focus-within .slider__arrow {
    opacity: 1;
}
.slider__arrow:hover {
    background: var(--black);
}
.slider__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    padding: 4px 8px;
    background: rgba(26, 26, 26, .35);
    border-radius: 999px;
}
.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background .25s ease, width .25s ease;
}
.slider__dot--active {
    background: var(--yellow);
    width: 18px;
    border-radius: 999px;
}

/* Touch devices: always show arrows (no hover) */
@media (hover: none) {
    .slider__arrow { opacity: .85; }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--gray-100);
}
.about__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}
.about__text p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.8;
}
.about__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}
.highlight-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.highlight-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.highlight-card__number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 8px;
}
.highlight-card__label {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================
   CERTIFICATIONS
   ======================================== */
.certifications {
    padding: 100px 0;
    background: var(--white);
}
.certif__logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.certif__logo-item {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}
.certif__logo-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Logo container with white background to fix transparency/dark bg */
.certif__logo-img {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    max-width: 180px;
    height: 100px;
}
.certif__logo-img img {
    max-height: 76px;
    width: auto;
    object-fit: contain;
}

.certif__detail strong {
    display: block;
    font-size: .95rem;
    margin-bottom: 8px;
    color: var(--black);
}
.certif__detail p {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.certif__extras {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    border-left: 4px solid var(--green);
}
.certif__extras p {
    font-size: .95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}
.hero__bg-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: .12;
    pointer-events: none;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 2;
}
.contact__info p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 32px;
    line-height: 1.7;
}
.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact__detail {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .95rem;
    color: var(--black);
}
.contact__detail svg { flex-shrink: 0; color: var(--green); }
.contact__detail a:hover { color: var(--green); }

.contact__form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: .95rem;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(3,145,98,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-note {
    font-size: .8rem;
    color: var(--gray-500);
    margin-top: 12px;
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--black);
    color: rgba(255,255,255,.6);
    padding: 60px 0 40px;
}
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}
.footer__logo {
    height: 44px;
    width: auto;
    opacity: .85;
}
.footer__baseline {
    font-size: .9rem;
    color: rgba(255,255,255,.4);
    margin-top: 8px;
}
.footer__links {
    display: flex;
    gap: 32px;
    font-size: .9rem;
}
.footer__links a:hover { color: var(--yellow); }
.footer__legal {
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}
.footer__legal p + p { margin-top: 4px; }

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.expertise-card.fade-in:nth-child(2) { transition-delay: .1s; }
.expertise-card.fade-in:nth-child(3) { transition-delay: .2s; }
.expertise-card.fade-in:nth-child(4) { transition-delay: .3s; }
.expertise-card.fade-in:nth-child(5) { transition-delay: .4s; }
.highlight-card.fade-in:nth-child(2) { transition-delay: .1s; }
.highlight-card.fade-in:nth-child(3) { transition-delay: .2s; }
.highlight-card.fade-in:nth-child(4) { transition-delay: .3s; }
.hero__stat.fade-in:nth-child(2) { transition-delay: .15s; }
.hero__stat.fade-in:nth-child(3) { transition-delay: .3s; }
.hero__stat.fade-in:nth-child(4) { transition-delay: .45s; }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Form submission status */
.form-status {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}
.form-status--loading {
    background: #f4f4f2;
    color: var(--gray-700);
}
.form-status--success {
    background: #e6f5ef;
    color: #026e49;
    border: 1px solid rgba(3,145,98,.25);
}
.form-status--error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid rgba(179,38,30,.25);
}

@media (max-width: 1024px) {
    .hero { padding: 120px 0 60px; }
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-bottom: 56px;
    }
    .hero__right {
        max-width: 460px;
        justify-self: center;
        aspect-ratio: 4 / 3;
    }
    .hero__img-frame { inset: 18px -18px -18px 18px; }
    .hero__badge { left: -12px; bottom: 20px; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .expertises__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__highlights { margin-top: 0; }
    .certif__logos { grid-template-columns: 1fr; gap: 20px; }
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__bg-contact { width: 100%; opacity: .06; }
}

@media (max-width: 820px) {
    .expertises__grid { grid-template-columns: 1fr; }
    .expertise-card__slider { height: 300px; }
}

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--white);
        padding: 100px 32px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }
    .header__nav--open { right: 0; }
    .header__link { color: var(--black) !important; font-size: 1rem; }
    .header__burger { display: flex; }
    .hero { padding: 110px 0 48px; }
    .hero__grid { gap: 40px; padding-bottom: 40px; }
    .hero__tag { padding-left: 48px; }
    .hero__tag::before { width: 32px; }
    .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero__subtitle { font-size: 1rem; margin-bottom: 32px; }
    .hero__actions { flex-direction: column; }
    .btn--outline { text-align: center; }
    .hero__right { aspect-ratio: 4 / 3; max-width: 100%; }
    .hero__img-frame { inset: 14px -14px -14px 14px; }
    .hero__badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -18px;
        max-width: 260px;
        padding: 12px 18px;
    }
    .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 56px; }
    .hero__stat-number { font-size: 1.8rem; }
    .expertises { padding: 72px 0 80px; }
    .expertise-card__slider { height: 260px; }
    .expertise-card__body { padding: 24px 24px 32px; }
    .expertise-card__title { font-size: 1.2rem; }
    .about__highlights { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact__form { padding: 28px 24px; }
    .footer__links { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .section-title { font-size: clamp(1.6rem, 5vw, 2rem); }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 96px 0 40px; }
    .hero__tag { font-size: .72rem; padding-left: 40px; }
    .hero__badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100% - 32px);
        text-align: center;
    }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 48px; }
    .hero__stat-number { font-size: 1.6rem; }
    .hero__stat-label { font-size: .75rem; }
    .expertise-card__slider { height: 220px; }
    .expertise-card__body { padding: 22px 20px 28px; }
    .expertise-card__title { font-size: 1.1rem; }
    .expertise-card__text { font-size: .93rem; }
    .about__highlights { grid-template-columns: 1fr; }
}
