@tailwind base;
@tailwind components;
@tailwind utilities;

/* Global Typography and Icons Settings */

body {
    font-family: 'Manrope', sans-serif;
    background-color: #fbf9f5;
    color: #1b1c1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --site-header-offset: 6rem;
}

@media (min-width: 768px) {
    body {
        --site-header-offset: 7.5rem;
    }
}

body > main,
body > main.site-main {
    padding-top: var(--site-header-offset);
}

h1, h2, h3, h4, h5, h6, .font-serif, .font-headline {
    font-family: 'Noto Serif', serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Specific effects extracted from mockups */
.text-shadow-soft {
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mask-editorial {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.editorial-shadow {
    box-shadow: 0 20px 40px rgba(27, 28, 26, 0.05);
}

.glass-nav {
    backdrop-filter: blur(12px);
}

/* Mobile Menu Transitions */
.mobile-menu {
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Scroll Reveal Animations */
.st-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.st-fade.active {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(134, 115, 109, 0.14);
    box-shadow: 0 4px 14px rgba(27, 28, 26, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-info-card:hover {
    border-color: rgba(137, 75, 52, 0.35);
    box-shadow: 0 6px 20px rgba(27, 28, 26, 0.07);
}

.hero-home {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.hero-home__main {
    padding: 1.5rem 0 4rem;
}

.hero-home__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.hero-home__content {
    max-width: 36rem;
}

.hero-home__intro {
    margin-bottom: 1.75rem;
    max-width: 26rem;
    padding-left: 1.15rem;
    border-left: 2px solid rgba(137, 75, 52, 0.32);
    font-size: 0.98rem;
    line-height: 1.6;
    color: #49454f;
}

.hero-home__title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1b1c1a;
}

.hero-home__lead {
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: #49454f;
}

.hero-home__actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-home__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 9999px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-home__btn:active {
    transform: scale(0.98);
}

.hero-home__btn--primary {
    background: #894b34;
    color: #fff;
}

.hero-home__btn--primary:hover {
    box-shadow: 0 12px 28px rgba(137, 75, 52, 0.22);
}

.hero-home__btn--secondary {
    background: #f5f3ef;
    border: 1px solid rgba(134, 115, 109, 0.18);
    color: #1b1c1a;
}

.hero-home__btn--secondary:hover {
    background: #ebe7e1;
}

.hero-home__visual {
    position: relative;
    z-index: 0;
    margin: 0;
    width: 100%;
    max-width: 28rem;
    justify-self: center;
}

.hero-home__visual::before {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 42%;
    aspect-ratio: 1;
    border-radius: 9999px;
    background: rgba(137, 75, 52, 0.12);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-home__visual-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(27, 28, 26, 0.12);
}

.hero-home__visual-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home__foot {
    margin-top: 0.5rem;
    padding: 3.5rem 0 4rem;
    background: #f5f3ef;
}

.hero-home__quote {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    font-style: italic;
    color: #49454f;
}

@media (min-width: 640px) {
    .hero-home__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .hero-home__main {
        padding: 2rem 0 5.5rem;
    }

    .hero-home__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 4rem;
    }

    .hero-home__visual {
        max-width: none;
        justify-self: end;
    }
}

/* À propos — Parcours & Expertises */
.journey-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.journey-aside__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #894b34;
}

.journey-aside__link:hover {
    text-decoration: underline;
}

.journey-aside__link .material-symbols-outlined {
    font-size: 1.1rem;
}

.journey-content {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.journey-credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.journey-credential {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(134, 115, 109, 0.12);
    box-shadow: 0 4px 14px rgba(27, 28, 26, 0.04);
}

.journey-credential__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: rgba(137, 75, 52, 0.1);
    color: #894b34;
}

.journey-credential__icon--secondary {
    background: rgba(52, 73, 66, 0.1);
    color: #344942;
}

.journey-credential__icon--tertiary {
    background: rgba(107, 93, 88, 0.1);
    color: #6b5d58;
}

.journey-credential__title {
    display: block;
    margin-bottom: 0.2rem;
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1b1c1a;
}

.journey-credential__text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #49454f;
}

.journey-block__title {
    margin-bottom: 1.25rem;
    font-family: 'Noto Serif', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1b1c1a;
}

.journey-expertises {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.journey-expertise {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(134, 115, 109, 0.1);
}

.journey-expertise__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(137, 75, 52, 0.08);
    color: #894b34;
}

.journey-expertise strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    color: #1b1c1a;
}

.journey-expertise p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #49454f;
}

.journey-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(137, 75, 52, 0.2);
}

.journey-timeline__item {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding: 0 0 1.35rem 1.25rem;
    position: relative;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.55s cubic-bezier(0.5, 0, 0, 1),
        transform 0.55s cubic-bezier(0.5, 0, 0, 1);
}

.journey-timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.journey-timeline__item:last-child {
    padding-bottom: 0;
}

.journey-timeline__item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.35rem;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #894b34;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1) 0.15s;
}

.journey-timeline__item.is-visible::before {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .journey-timeline__item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .journey-timeline__item::before {
        transform: scale(1);
        transition: none;
    }
}

.journey-timeline__year {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #894b34;
    padding-top: 0.1rem;
}

.journey-timeline__item strong {
    display: block;
    font-family: 'Noto Serif', serif;
    font-size: 0.98rem;
    color: #1b1c1a;
}

.journey-timeline__item span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #49454f;
}

.journey-talks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journey-talk {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(134, 115, 109, 0.12);
}

.journey-talk__icon {
    flex-shrink: 0;
    color: #894b34;
    font-size: 1.5rem;
}

.journey-talk h4 {
    margin: 0 0 0.35rem;
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1b1c1a;
}

.journey-talk p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #49454f;
}

@media (min-width: 640px) {
    .journey-expertises {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .journey-credentials {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .journey-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
        gap: 4rem;
        align-items: start;
    }

    .journey-aside {
        position: sticky;
        top: calc(var(--site-header-offset, 7.5rem) + 1rem);
    }

    .journey-credentials {
        grid-template-columns: repeat(3, 1fr);
    }

    .journey-credential {
        flex-direction: column;
        align-items: flex-start;
        min-height: 100%;
    }
}
