/**
 * Oenocloud - Site Vitrine
 * Feuille de styles principale
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f6f1ea 0%, #e8d9c8 100%);
    color: #3e2723;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(124, 31, 42, 0.15);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Sélecteur de langue */
.lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #7c1f2a;
    position: relative;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 20px;
    background: rgba(124, 31, 42, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.lang-btn:hover::before {
    width: 100%;
    height: 100%;
}

.lang-btn:hover {
    transform: scale(1.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 31, 42, 0.3);
}

/* Bouton contact */
.contact-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(124, 31, 42, 0.3);
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(124, 31, 42, 0.4);
}

.contact-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.6s ease-out;
}

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

.hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 40px;
    animation: slideInDown 0.6s ease-out 0.2s both;
}

.hero .coming-soon {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    animation: slideInDown 0.6s ease-out 0.4s both;
}

/* Contenu principal */
.content {
    padding: 60px 40px;
}

.section-title {
    text-align: center;
    color: #7c1f2a;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    border-radius: 2px;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    padding: 30px;
    border-radius: 12px;
    background: #fefaf6;
    border: 2px solid #e8d9c8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
.feature:nth-child(5) { animation-delay: 0.5s; }
.feature:nth-child(6) { animation-delay: 0.6s; }

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 31, 42, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 31, 42, 0.15);
    border-color: #7c1f2a;
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.feature:hover .feature-icon {
    animation: none;
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.4s;
}

.feature h3 {
    color: #7c1f2a;
    margin-bottom: 10px;
    font-size: 1.3rem;
    position: relative;
}

.feature p {
    color: #5d4037;
    line-height: 1.6;
    position: relative;
}

/* Section Contact */
.contact-section {
    background: linear-gradient(135deg, #f6f1ea 0%, #fefaf6 100%);
    padding: 60px 40px;
    margin-top: 60px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(124, 31, 42, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #7c1f2a;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8d9c8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c1f2a;
    box-shadow: 0 0 0 4px rgba(124, 31, 42, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input,
.form-group.error textarea {
    border-color: #d32f2f;
    animation: shake 0.4s;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error label {
    color: #d32f2f;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 31, 42, 0.3);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(124, 31, 42, 0.4);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    box-shadow: 0 4px 15px rgba(124, 31, 42, 0.3);
}

/* Messages de formulaire */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideInDown 0.4s ease-out;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.form-message.show {
    display: block;
}

/* Story Section */
.story-section {
    background: linear-gradient(135deg, #fefaf6 0%, #f6f1ea 100%);
    padding: 60px 40px;
    margin-top: 50px;
    border-radius: 12px;
    border: 2px solid #e8d9c8;
    animation: fadeInUp 0.6s ease-out;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.story-section .section-title {
    text-align: center;
    color: #7c1f2a;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.story-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #7c1f2a 0%, #a02836 100%);
    border-radius: 2px;
}

.story-text {
    text-align: left;
    line-height: 1.8;
}

.story-text p {
    color: #3e2723;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    animation: fadeInUp 0.6s ease-out backwards;
}

.story-text p:nth-child(1) { animation-delay: 0.1s; }
.story-text p:nth-child(2) { animation-delay: 0.2s; }
.story-text p:nth-child(3) { animation-delay: 0.3s; }
.story-text p:nth-child(4) { animation-delay: 0.4s; }

.story-text p:last-child {
    margin-bottom: 0;
}

.story-highlight {
    font-weight: 600;
    font-size: 1.2rem !important;
    color: #7c1f2a !important;
    font-style: italic;
    padding: 20px;
    background: white;
    border-left: 4px solid #7c1f2a;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(124, 31, 42, 0.1);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f6f1ea 0%, #fefaf6 100%);
    border-radius: 12px;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.cta-section h2 {
    color: #7c1f2a;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: #8d6e63;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #8d6e63;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c1f2a;
    transition: width 0.3s;
}

.footer-links a:hover {
    color: #7c1f2a;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */

/* Tablettes et petits écrans (jusqu'à 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding: 50px 30px;
    }

    .content {
        padding: 50px 30px;
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }

    .contact-section {
        padding: 50px 30px;
    }

    .story-section {
        padding: 50px 30px;
        margin-top: 40px;
    }

    .story-text p {
        font-size: 1.05rem;
    }
}

/* Tablettes portrait et mobiles paysage (jusqu'à 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    /* Hero */
    .hero {
        padding: 80px 20px 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .coming-soon {
        font-size: 1rem;
    }

    /* Navigation en haut à droite */
    .lang-selector {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Bouton contact en haut à gauche - ajuster pour mobile */
    .contact-btn {
        top: 10px;
        left: 10px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Contenu */
    .content {
        padding: 40px 20px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature {
        padding: 25px;
    }

    /* Section contact */
    .contact-section {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Titres */
    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    /* Boutons */
    .btn {
        padding: 15px 40px;
        font-size: 1.05rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    /* Story section responsive */
    .story-section {
        padding: 40px 20px;
        margin-top: 30px;
    }

    .story-icon {
        font-size: 3rem;
    }

    .story-section .section-title {
        font-size: 2rem;
    }

    .story-text p {
        font-size: 1rem;
        text-align: left;
    }

    .story-highlight {
        font-size: 1.1rem !important;
        padding: 15px;
    }
}

/* Mobiles portrait (jusqu'à 480px) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        border-radius: 12px;
    }

    /* Hero */
    .hero {
        padding: 70px 15px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero .coming-soon {
        font-size: 0.95rem;
    }

    /* Navigation */
    .lang-selector {
        top: 8px;
        right: 8px;
        padding: 5px 8px;
        gap: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Bouton contact encore plus compact sur très petits écrans */
    .contact-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Contenu */
    .content {
        padding: 30px 15px;
    }

    .features {
        gap: 15px;
    }

    .feature {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .feature h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .feature p {
        font-size: 0.95rem;
    }

    /* Titres */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    /* Formulaire contact */
    .contact-section {
        padding: 30px 15px;
    }

    .contact-form {
        padding: 25px 15px;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    /* Boutons */
    .btn {
        padding: 14px 35px;
        font-size: 1rem;
        width: 100%;
    }

    /* CTA Section */
    .cta-section {
        padding: 25px 15px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Footer */
    .footer {
        padding: 25px 15px;
        font-size: 0.85rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        margin: 0;
    }

    /* Story section mobile */
    .story-section {
        padding: 30px 15px;
    }

    .story-icon {
        font-size: 2.5rem;
    }

    .story-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .story-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .story-highlight {
        font-size: 1rem !important;
        padding: 12px;
    }
}

/* Très petits écrans (jusqu'à 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }

    .contact-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .lang-selector {
        padding: 4px 6px;
        gap: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .feature-icon {
        font-size: 2.2rem;
    }
}

/* Préchargement et optimisations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
