/*
Theme Name: Neweather Modern
Theme URI: https://neweatheragency.fr/
Author: Neuman (Neweather Agency)
Author URI: https://neweatheragency.fr/
Description: Un thème WordPress sur-mesure ultra moderne, optimisé pour la performance et le design, utilisant les couleurs de la marque (nuances de bleus et blanc).
Version: 1.1.0
Text Domain: neweather-modern
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --color-primary: #0056b3;
    /* Deep Blue base */
    --color-primary-light: #4da3ff;
    /* Light Accent Blue */
    --color-primary-dark: #003d82;
    /* Darker Navy Blue for text/contrast */
    --color-bg: #ffffff;
    --color-bg-alt: #f0f7ff;
    /* Very subtle blue tint */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;

    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Utilities */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 86, 179, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 86, 179, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 86, 179, 0.15);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#page {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* === LAYOUT UTILS === */
.section {
    padding: 120px 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.text-center {
    text-align: center;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(240, 247, 255, 0.95); /* Adjusted to match --color-bg-alt */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, padding 0.3s ease;
}

.site-header.headroom-hidden {
    transform: translateY(-100%);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.agency-logo {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 5px 0;
    transition: var(--transition);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span {
    color: var(--color-primary-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    cursor: pointer;
}

/* === HOME HERO === */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-home {
    background: linear-gradient(rgba(0, 30, 80, 0.8), rgba(0, 60, 130, 0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 220px 0 160px;
    margin-top: -80px;
}

.hero-title {
    color: white;
    font-size: 4.2rem;
    margin-bottom: 25px;
}

.hero-subtitle {
    color: #f4f4f4;
    /* Very light gray */
    font-size: 1.35rem;
    margin-bottom: 45px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}

.text-accent {
    color: #66b2ff;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
}

.btn-outline-white {
    border-color: white;
    color: white;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    margin-top: 20px;
}

.accent-tag {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 163, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    animation: rotate 60s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* === SERVICES PREVIEW === */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 86, 179, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 86, 179, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* === PORTFOLIO === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    text-align: center;
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 86, 179, 0.05);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: "❝";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(77, 163, 255, 0.1);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-widget p {
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
/* Tablet & Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {

    /* Floating Pill Header */
    .site-header {
        top: 15px !important;
        left: 3% !important;
        width: 94% !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.fixed {
        top: 15px !important;
    }

    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 80px;
        padding: 10px 20px;
    }

    .site-branding {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background-color: var(--color-primary-light) !important;
        color: white !important;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 150, 255, 0.4);
        position: relative;
        z-index: 10001;
        transition: all 0.3s ease;
        margin: 0;
    }

    .menu-toggle.active-icon {
        background-color: transparent !important;
        box-shadow: none;
        color: white !important;
    }

    .agency-logo {
        transform-origin: center center !important;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 190px 0 80px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }
}

/* Tablet Portrait & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .site-header .container {
        min-height: 80px;
        height: auto;
        padding: 15px 20px;
    }

    .agency-logo {
        max-height: 85px !important;
        transform: scale(1.25) !important;
        transform-origin: center center !important;
        margin: 0;
    }

    .hero::before {
        display: none !important;
    }

    .hero h1 {
        font-size: 2.4rem !important;
        word-break: break-word;
        max-width: 100%;
    }

    .hero p {
        font-size: 1.1rem !important;
        max-width: 100%;
        word-break: break-word;
        margin-left: auto;
        margin-right: auto;
    }

    .portfolio-grid,
    .service-cards,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 30, 80, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 35px;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .main-nav ul li {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .main-nav.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.active ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .main-nav.active ul li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .main-nav.active ul li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .main-nav.active ul li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .main-nav.active ul li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .main-nav ul li a {
        font-size: 2.2rem !important;
        font-family: var(--font-heading);
        font-weight: 700;
        color: var(--color-white) !important;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .hero {
        padding: 180px 0 60px;
    }

    .hero-home {
        padding: 210px 0 80px !important;
        margin-top: -60px !important;
    }

    .hero h1,
    .hero-title {
        font-size: 2.4rem !important;
    }

    .hero p,
    .hero-subtitle {
        font-size: 1.15rem !important;
    }

    h2,
    .section-title {
        font-size: 2.0rem !important;
    }

    .btn-large {
        padding: 14px 20px !important;
        width: 100%;
    }

    h3 {
        font-size: 1.6rem !important;
    }

    div[style*="min-width"] {
        min-width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .service-card,
    .testimonial-card {
        padding: 30px 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    .site-footer {
        padding: 60px 0 30px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .agency-logo {
        max-height: 55px;
    }

    .section {
        padding: 50px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Animations Core */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Stagger Animation Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}



@media (max-width: 1024px) {

    .agency-logo,
    .custom-logo {
        max-height: 75px !important;
        /* Slightly larger on tablet */
        transform: scale(1.15);
        transform-origin: left center;
    }
}