/* ===========================================================
   CROISSANCE PERSONNELLE — STYLE PRINCIPAL
   Design-system : « Corporatif » + tendance « Biomorphique »
   Palette : Triade | Animations : Morphing
   Fonts : Inter (titres), IBM Plex Sans (texte)
   Compatible : Modern-Normalize
   =========================================================== */

/* ----------  VARIABLES GLOBALES  ---------- */
:root {
    /* Palette triadique vivante */
    --clr-primary: #1e90ff;            /* Bleu énergie */
    --clr-primary-dark: #006ad1;
    --clr-secondary: #ffb300;          /* Orange optimisme */
    --clr-secondary-dark: #cc8a00;
    --clr-tertiary: #34c759;           /* Vert croissance */
    --clr-tertiary-dark: #1e9e46;

    /* Neutres */
    --clr-white: #ffffff;
    --clr-light: #f5f7fa;
    --clr-dark: #222222;
    --clr-text: #333333;

    /* Gradients & overlay */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-tertiary) 100%);
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));

    /* Typographie */
    --ff-heading: 'Inter', sans-serif;
    --ff-body: 'IBM Plex Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --radius-sm: 8px;
    --radius-lg: 2rem;

    /* Transition */
    --transition-fast: 0.25s ease;
    --transition-slow: 0.7s ease-in-out;
}

/* ----------  CONFIG DE BASE  ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text);
    background-color: var(--clr-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    color: var(--clr-dark);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    text-align: center;
}

/* Sections génériques */
.section {
    padding: var(--space-lg) 0;
    position: relative;
}
.section__title {
    margin-bottom: var(--space-md);
}

/* ----------  HEADER  ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--clr-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: background var(--transition-fast);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-primary-dark);
}
.logo span { color: var(--clr-tertiary-dark); }

/* Navigation */
.nav__list {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}
.nav__list a {
    text-decoration: none;
    font-weight: 500;
    color: var(--clr-dark);
    transition: color var(--transition-fast);
}
.nav__list a:hover,
.nav__list a:focus {
    color: var(--clr-primary);
}

/* Burger (mobile) */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.burger span {
    width: 24px; height: 2px;
    background: var(--clr-dark);
    transition: transform var(--transition-fast);
}

.logo {
    display: flex;
    align-items: center;
}
/* ----------  HERO  ---------- */
.hero {
   padding: 8rem 0;
    display: flex;
    align-items: center;
    color: var(--clr-white);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-sm);
    color: var(--clr-white);
}
.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--clr-white);
}

/* ----------  BOUTONS  ---------- */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--ff-heading);
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}
.btn--primary {
    background: var(--clr-primary);
    color: var(--clr-white);
}
.btn--primary:hover,
.btn--primary:focus {
    background: var(--clr-primary-dark);
    transform: translateY(-2px);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--clr-white);
    color: var(--clr-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

/* Lire plus */
a.read-more {
    color: var(--clr-primary);
    font-weight: 600;
    position: relative;
}
a.read-more::after {
    content: '→';
    margin-left: 0.25rem;
    transition: transform var(--transition-fast);
}
a.read-more:hover::after { transform: translateX(4px); }

/* ----------  GRILLES & CARTES  ---------- */
.grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.item,
.testimonial,
.team-member,
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--clr-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-image,
.image-container {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}
.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.card-content {
    padding: var(--space-md);
}

/* ----------  PROCESS LIST  ---------- */
.process__steps {
    counter-reset: step;
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}
.process__steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--space-sm);
}
.process__steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ----------  EXTERNAL LINKS  ---------- */
.external__item {
    background: var(--clr-white);
    border-left: 4px solid var(--clr-tertiary);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
}
.external__item a {
    font-weight: 600;
    color: var(--clr-primary-dark);
    text-decoration: none;
}
.external__item a:hover { text-decoration: underline; }

/* ----------  CONTACT FORM  ---------- */
.contact__form {
    max-width: 640px;
    margin: 0 auto;
}
.form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-sm);
}
.form__group label {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.form__group input,
.form__group textarea {
    padding: var(--space-sm);
    border: 1px solid #d0d7de;
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    resize: vertical;
}
.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--clr-primary);
    outline: 2px solid rgba(30,144,255,0.25);
}

/* ----------  MODAL  ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}
.modal--open {
    opacity: 1;
    pointer-events: all;
}
.modal__dialog {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: pop-in 0.5s ease;
}
.modal__close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    cursor: pointer;
}

/* ----------  FOOTER  ---------- */
.footer {
    background: var(--clr-dark);
    color: var(--clr-white);
    padding: var(--space-lg) 0 var(--space-md);
}
.footer__inner {
    text-align: center;
}
.footer__links {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}
.footer__links a {
    color: var(--clr-white);
    text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; }
.footer__socials a {
    color: var(--clr-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer__socials a:hover { color: var(--clr-secondary); }
.footer__copy { margin-top: var(--space-sm); font-size: 0.875rem; }

/* ----------  SUCCÈS PAGE  ---------- */
.page-success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ----------  PAGES STATIQUES  ---------- */
.static-page {
    padding-top: 100px;
}

/* ----------  MEDIA QUERIES  ---------- */
@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        inset: 0 0 0 40%;
        flex-direction: column;
        padding: var(--space-md);
        background: var(--gradient-primary);
        transform: translateX(100%);
        transition: transform var(--transition-fast);
    }
    .nav--open .nav__list { transform: translateX(0); }
    .burger { display: flex; }
}
/* ----------  ANIMATIONS  ---------- */
@keyframes pop-in {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Blob morphing pour décors biomorphiques */
@keyframes morph {
    0%,100% { border-radius: 42% 58% 67% 33% / 52% 45% 55% 48%; }
    33%     { border-radius: 55% 45% 42% 58% / 60% 35% 65% 40%; }
    66%     { border-radius: 39% 61% 58% 42% / 48% 60% 40% 52%; }
}
.blob {
    position: absolute;
    z-index: -1;
    animation: morph 10s infinite var(--transition-slow);
}

/* ----------  UTILITAIRES  ---------- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.p-lg { padding: var(--space-lg) 0; }