/* =============================================
   STRATECALIS - Styles communs
   ============================================= */

/* Variables */
:root {
    --orange-principal: #E76F51;
    --beige-sable: #F4EDE4;
    --gris-charbon: #2E2E2E;
    --terracotta-clair: #F4A261;
    --blanc-casse: #FEF9F5;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typographie */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: var(--gris-charbon);
    line-height: 1.6;
    background-color: var(--blanc-casse);
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h4, h5 {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
}

/* Liens */
a:link:not(.cta-button):not(.btn-primary):not(.btn-secondary) {
    color: #E76F51;
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
}

a:visited:not(.cta-button):not(.btn-primary):not(.btn-secondary) {
    color: #C45A3E;
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
}

a:hover:not(.cta-button):not(.btn-primary):not(.btn-secondary) {
    color: #F4A261;
    background-color: transparent;
    text-decoration: underline;
    font-weight: 600;
}

a:active:not(.cta-button):not(.btn-primary):not(.btn-secondary) {
    color: #2E2E2E;
    background-color: transparent;
    text-decoration: underline;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

.header_inner_right_rs {
    display: none !important;
}

header {
    background: var(--blanc-casse);
    box-shadow: 0 2px 10px rgba(46, 46, 46, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--orange-principal);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gris-charbon);
    cursor: pointer;
    padding: 0.5rem;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--gris-charbon);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--orange-principal);
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    text-decoration: none;
    color: #E76F51;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    transition: color 0.3s ease;
}

.nav-links .nav-dropdown-toggle:hover {
    color: #F4A261;
}

.nav-dropdown-toggle i.fa-chevron-down {
    font-size: 0.55em;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blanc-casse);
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(46, 46, 46, 0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 0.5rem;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown:hover .nav-dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.2rem;
    color: var(--gris-charbon);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--beige-sable);
    color: var(--orange-principal);
    text-decoration: none;
}

.nav-dropdown-menu a i {
    color: var(--orange-principal);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* =============================================
   BOUTONS
   ============================================= */

.cta-button {
    background: var(--orange-principal);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta-button:hover {
    background: var(--terracotta-clair);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
}

.btn-primary {
    background: var(--orange-principal);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-primary:hover {
    background: var(--terracotta-clair);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--orange-principal);
    border: 2px solid var(--orange-principal);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-secondary:hover {
    background: var(--orange-principal);
    color: white;
}

/* =============================================
   CONTACT SECTION (partagee entre pages)
   ============================================= */

.contact {
    padding: clamp(60px, 12vh, 80px) 0;
    background: var(--beige-sable);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--gris-charbon);
    line-height: 1.2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--orange-principal);
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
}

.contact-item span {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(46, 46, 46, 0.1);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--gris-charbon);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gris-charbon);
    font-weight: 400;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-principal);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--orange-principal);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: var(--gris-charbon);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* =============================================
   UTILITAIRES & ANIMATIONS
   ============================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================= */

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav > .cta-button {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    nav {
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 0 auto;
    }

    .mobile-menu-btn {
        order: 3;
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanc-casse);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 20px rgba(46, 46, 46, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .nav-links li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 20px;
        width: 100%;
    }

    /* Dropdown mobile */
    .nav-dropdown-toggle {
        display: block;
        padding: 1rem 20px;
        width: 100%;
    }

    .nav-dropdown-toggle i.fa-chevron-down {
        margin-left: 5px;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background: #f5f0eb;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 300px;
        padding: 0.3rem 0;
    }

    .nav-dropdown.active .nav-dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu a {
        padding: 0.7rem 2rem;
        font-size: 0.95rem;
    }

    /* Contact responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

/* =============================================
   RESPONSIVE - TABLETTE
   ============================================= */

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

/* =============================================
   RESPONSIVE - GRAND ECRAN
   ============================================= */

@media (min-width: 1025px) {
    .contact-content {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}
