/* Import Google Fonts + Police personnalisée */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Dune_Rise';
    src: url('../font/Dune_Rise.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #0F172A;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #0F172A;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 120px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.logo {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Encadrés décoratifs */
.header-accent {
    background: #1E293B;
    color: #38BDF8;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Dune_Rise', serif;
    font-size: 0.95rem;
    font-weight: normal;
    text-align: center;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
    border: 2px solid #38BDF8;
    position: absolute;
    transition: all 0.3s ease;
}

.header-accent:hover {
    border-color: #FACC15;
    color: #FACC15;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
}

.header-left {
    left: 0;
}

.header-right {
    right: 0;
}

/* Section Hero */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(56, 189, 248, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.hero-cta {
    display: inline-block;
    background: #38BDF8;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.hero-cta:hover {
    background: #FACC15;
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(250, 204, 21, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid principal - 2 colonnes, 4 lignes */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, minmax(500px, auto));
    gap: 0;
}

/* Placement spécifique de chaque section */
.why-choose {
    grid-row: 1;
    grid-column: 1;
}

.portfolio {
    grid-row: 1;
    grid-column: 2;
}

.offer-simple {
    grid-row: 2;
    grid-column: 1;
}

.offer-complete {
    grid-row: 2;
    grid-column: 2;
}

.hosting-eco {
    grid-row: 3;
    grid-column: 1;
}

.website-advantages {
    grid-row: 3;
    grid-column: 2;
}

.about {
    grid-row: 4;
    grid-column: 1;
}

.contact {
    grid-row: 4;
    grid-column: 2;
}

/* Styles des sections */
.grid-item {
    padding: 60px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.grid-item .content {
    max-width: 500px;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Couleurs élégantes - Palette bleu profond */
.why-choose {
    background: #1E293B;
    color: white;
}

.portfolio {
    background: #334155;
    color: white;
    border-left: 1px solid #38BDF8;
}

.offer-simple {
    background: #ffffff;
    color: #0F172A;
    border-top: 1px solid #334155;
    border-right: 1px solid #38BDF8;
    position: relative;
}

.offer-complete {
    background: #38BDF8;
    color: #0F172A;
    border-top: 1px solid #334155;
    position: relative;
}

.hosting-eco {
    background: #475569;
    color: white;
    border-top: 1px solid #334155;
    border-right: 1px solid #38BDF8;
    position: relative;
}

.website-advantages {
    background: #64748B;
    color: white;
    border-top: 1px solid #334155;
    position: relative;
}

.about {
    background: #0F172A;
    color: white;
    border-top: 1px solid #334155;
    border-right: 1px solid #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact {
    background: #1E293B;
    color: white;
    border-top: 1px solid #334155;
}

/* Titres modernes */
h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Section À propos avec photo ronde */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.profile-photo {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid #38BDF8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 30px;
    box-sizing: border-box;
}

.profile-photo:hover .bio-overlay {
    opacity: 1;
}

.profile-photo:hover .profile-img {
    transform: scale(1.1);
}

.bio-text {
    text-align: center;
    color: white;
}

.bio-text h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #38BDF8;
}

.bio-text .title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 300;
    color: #FACC15;
}

.bio-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 300;
}

/* Section Pourquoi me choisir */
.advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.advantage {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.advantage:last-child {
    border-bottom: none;
}

.advantage h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 500;
    color: #38BDF8;
}

.advantage p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 300;
}

/* Section Hébergement Écoresponsable */
.eco-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.eco-feature {
    background: rgba(56, 189, 248, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #38BDF8;
    transition: all 0.3s ease;
}

.eco-feature:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateX(5px);
}

.eco-feature h3 {
    color: #38BDF8;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.eco-feature p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Section Avantages Site Web */
.web-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.web-benefit {
    background: rgba(56, 189, 248, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #38BDF8;
    transition: all 0.3s ease;
}

.web-benefit:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateX(5px);
}

.web-benefit h3 {
    color: #38BDF8;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.web-benefit p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Prix */
.price-tag {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #1E293B;
    color: #66FF99;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 3;
    border: 2px solid #66FF99;
    box-shadow: 0 4px 15px rgba(102, 255, 153, 0.2);
}

.offer-complete .price-tag {
    background: #0F172A;
    color: #66FF99;
    border: 2px solid #66FF99;
}

/* Offres */
.offer-simple .content,
.offer-complete .content {
    padding-right: 100px;
}

.offer-description h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.features {
    list-style: none;
    margin-bottom: 25px;
}

.features li {
    padding: 6px 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
    font-weight: 400;
}

.features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #38BDF8;
    font-weight: bold;
}

.offer-complete .features li::before {
    color: #0F172A;
}

.ideal-for {
    background: rgba(56, 189, 248, 0.1);
    padding: 15px;
    border-radius: 6px;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 0.9rem;
    border-left: 3px solid #38BDF8;
}

.offer-complete .ideal-for {
    background: rgba(15, 23, 42, 0.1);
    border-left-color: #0F172A;
}

.cta-button {
    background: #38BDF8;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cta-button:hover {
    background: #FACC15;
    color: #0F172A;
    transform: translateY(-1px);
}

.offer-complete .cta-button {
    background: #0F172A;
    color: white;
}

.offer-complete .cta-button:hover {
    background: #FACC15;
    color: #0F172A;
}

/* Formulaire de contact */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: white;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 1rem;
    background: #334155;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.submit-button {
    background: #38BDF8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.submit-button:hover {
    background: #FACC15;
    color: #0F172A;
    transform: translateY(-1px);
}

/* Section Portfolio */
.portfolio-note {
    font-style: italic;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

.portfolio-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #1E293B;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid #38BDF8;
}

.portfolio-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
    border-color: #FACC15;
    background: #0F172A;
}

.link-content h3 {
    margin-bottom: 5px;
    color: #38BDF8;
    font-weight: 500;
}

.link-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 40px 0 20px 0;
    border-top: 3px solid #38BDF8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: #334155;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: #38BDF8;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Modal mentions légales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
}

.modal-content {
    background-color: #1E293B;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    font-family: inherit;
    color: white;
    border: 1px solid #334155;
}

.close {
    color: #334155;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #38BDF8;
}

.legal-content h3 {
    color: #38BDF8;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 500;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
        min-height: 90px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        position: relative;
    }
    
    .header-left,
    .header-right {
        position: relative;
        left: auto;
        right: auto;
    }
    
    .header-accent {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .logo-img {
        height: 74px;
    }
    
    /* Hero responsive */
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, minmax(400px, auto));
    }
    
    /* Reset grid positioning for mobile */
    .why-choose,
    .portfolio,
    .offer-simple,
    .offer-complete,
    .hosting-eco,
    .website-advantages,
    .contact,
    .about {
        grid-row: auto;
        grid-column: auto;
    }
    
    .grid-item {
        padding: 40px 20px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid #334155;
    }
    
    .offer-simple .content,
    .offer-complete .content {
        padding-right: 20px;
    }
    
    .price-tag {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .advantages {
        gap: 20px;
    }
    
    .eco-features,
    .web-benefits {
        gap: 15px;
    }
    
    .portfolio-links {
        gap: 12px;
    }
    
    .portfolio-link {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-photo {
        width: 320px;
        height: 320px;
    }
    
    .bio-text h3 {
        font-size: 1.4rem;
    }
    
    .bio-text p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px 0;
        min-height: 70px;
    }
    
    .header .container {
        gap: 10px;
    }
    
    .header-accent {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .logo-img {
        height: 60px;
    }
    
    /* Hero très petit écran */
    .hero-section {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .grid-item {
        padding: 30px 15px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .advantages {
        gap: 15px;
    }
    
    .advantage {
        padding-bottom: 15px;
    }
    
    .eco-features,
    .web-benefits {
        gap: 12px;
    }
    
    .eco-feature,
    .web-benefit {
        padding: 15px;
    }
    
    .portfolio-link {
        padding: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .profile-photo {
        width: 280px;
        height: 280px;
    }
    
    .bio-text h3 {
        font-size: 1.2rem;
    }
    
    .bio-text p {
        font-size: 0.75rem;
    }
}