/* public/css/theme-asp.css */

/* --- Variables de Couleurs & Polices --- */
:root {
    --primary-color: #0A2F5B; /* Bleu Nuit (Sérieux, Corporate) */
    --secondary-color: #FFC107; /* Or / Jaune Solaire (Énergie, Investissement) */
    --light-gray: #f4f7f6;
    --dark-gray: #333333;
    --text-color: #555555;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

/* --- Styles Généraux --- */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
#header {
    background: var(--white-color);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.scrolled {
    padding: 8px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
#logo img {
    max-height: 60px;
    vertical-align: middle;
}
#navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
#main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
#main-menu li {
    display: inline-block;
    margin: 0;
    position: relative;
}
#main-menu a {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}
#main-menu a.current, #main-menu a:hover {
    color: var(--secondary-color);
}
#main-menu a.current:after, #main-menu a:hover:after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 5px;
    left: 15%;
    transition: width 0.3s ease;
}

/* --- Styles spéciaux pour boutons d'action supprimés --- */

/* --- Menu Mobile --- */
#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 100;
    outline: none;
}

#mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}

#mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white-color);
    z-index: 99;
    padding-top: 80px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#mobile-menu.open {
    transform: translateY(0);
    display: block;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#mobile-menu li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    animation-delay: calc(0.1s * var(--item-index, 0));
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu li:nth-child(1) { --item-index: 1; }
#mobile-menu li:nth-child(2) { --item-index: 2; }
#mobile-menu li:nth-child(3) { --item-index: 3; }
#mobile-menu li:nth-child(4) { --item-index: 4; }
#mobile-menu li:nth-child(5) { --item-index: 5; }
#mobile-menu li:nth-child(6) { --item-index: 6; }

#mobile-menu a {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 15px;
    transition: all 0.3s ease;
}

#mobile-menu a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* --- Styles pour liens mobiles spéciaux supprimés --- */


/* --- Sections & Contenu --- */
.hero-section {
    background-image: url('../images/banners/slide1-1680x640.jpg'); /* Image de fond inspirante */
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before { /* Superposition sombre pour la lisibilité */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 47, 91, 0.85) 0%, rgba(10, 47, 91, 0.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}
.hero-section h1 {
    color: var(--white-color);
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}
.hero-section h1:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 25px auto 0;
}
.hero-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 25px auto 40px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.button, input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.button:before, input[type="submit"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.5s ease;
    z-index: -1;
}
.button:hover, input[type="submit"]:hover {
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.button:hover:before, input[type="submit"]:hover:before {
    width: 100%;
}

.section-padding {
    padding: 80px 0;
}
.section-bg {
    background-color: var(--light-gray);
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.section-title p {
    font-style: italic;
    color: #777;
}

/* --- Cartes (Features) --- */
.feature-box {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-bottom: 4px solid var(--secondary-color);
}
.feature-box .icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    background: rgba(255, 193, 7, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}
.feature-box:hover .icon {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: rotate(360deg);
}
.feature-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}
.feature-box h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Formulaire de Contact --- */
.form {
    max-width: 100%;
    margin-bottom: 30px;
}
.form div {
    margin-bottom: 20px;
}
.form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}
.form label span {
    color: #e74c3c;
    margin-left: 4px;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: var(--font-family);
    font-size: 16px;
    transition: all 0.3s ease;
}
.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    outline: none;
}
.form textarea {
    resize: vertical;
    min-height: 150px;
}
.form input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.form input[type="submit"]:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}
.form-success {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Styles spécifiques pour la page contact */
.section-padding .one-third.columns p {
    margin-bottom: 20px;
}
.section-padding .one-third.columns p strong {
    color: var(--primary-color);
    font-weight: 600;
}
.map-section {
    background-color: var(--light-gray);
}
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
.map-container iframe {
    display: block;
    border: none;
    width: 100%;
    height: 450px;
}

/* --- Footer --- */
#footer {
    background: var(--light-gray);
    padding: 60px 0 30px;
}
#footer h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}
#footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-color);
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
}
.social-links a {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}

/* Styles newsletter supprimés */

#footer-bottom {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 20px 0;
    text-align: center;
}
#footer-bottom a {
    color: #ccc;
    text-decoration: none;
}
#footer-bottom a:hover {
    color: var(--secondary-color);
}
#footer-bottom p {
    margin: 0;
    color: #ccc;
}

/* --- Styles des pages légales supprimés --- */

/* --- Media Queries pour Responsive --- */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #header {
        padding: 5px 0;
    }
    #header .full-width.columns {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #navigation {
        display: none;
    }
    #mobile-menu-toggle {
        display: block;
    }
    #logo {
        text-align: left;
        padding: 10px 0;
    }
    #logo img {
        max-height: 50px;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
        padding: 0 15px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .feature-box {
        margin-bottom: 30px;
    }
    .one-third.columns, .two-thirds.columns, .four.columns, .six.columns, .eight.columns {
        width: 100% !important;
        margin-bottom: 20px;
    }
    #footer-bottom .social-links {
        text-align: center;
        margin-top: 20px;
    }
    #footer-bottom .four.columns, #footer-bottom .eight.columns {
        text-align: center !important;
    }
    .section-title {
        margin-bottom: 40px;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    /* Fix formulaires responsives */
    input[type="text"], input[type="email"], input[type="password"], textarea {
        width: 100%;
    }
    
    /* Pour les petits écrans, le bouton prend toute la largeur */
    .form input[type="submit"] {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .button {
        padding: 12px 25px;
        font-size: 14px;
        display: block;
        margin: 0 auto;
        max-width: 200px;
    }
    .section-padding {
        padding: 40px 0;
    }
    #footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    #footer h4 {
        margin-top: 25px;
    }
    #footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        margin-top: 15px;
        text-align: center;
    }
    .footer-links {
        margin-bottom: 20px;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
}