/* 
 * Styles pour Au vieux Logis
 * Développé par Lucca Nyckees
 * Design mobile-first
 */

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

:root {
    --color-bordeaux: #96313a;
    --color-light-gray: #f8f8f8;
    --color-white: #ffffff;
    --color-dark: #2c2c2c;
    --color-medium-gray: #6c6c6c;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    height: 100%;
}

h1, h2, h3 {
    font-family: 'Chomsky', serif;
    font-weight: normal;
    line-height: 1.3;
    color: var(--color-bordeaux);
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-bordeaux);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
}

/* Réseaux sociaux en haut de page */
.hero-social {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(150, 49, 58, 0.2);
}

.hero-social a:hover {
    background-color: var(--color-bordeaux);
    border-color: var(--color-bordeaux);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(150, 49, 58, 0.3);
}

.hero-social svg {
    width: 24px;
    height: 24px;
    fill: var(--color-bordeaux);
    transition: fill 0.3s ease;
}

.hero-social a:hover svg {
    fill: white;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Chomsky', serif;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.separator-line {
    height: 1px;
    width: 60px;
    background-color: #96313a;
    margin: 0 10px;
}

.separator-icon {
    color: #96313a;
    font-size: 0.8rem;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-bottom: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #96313a;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    border: 1px solid transparent;
}

.cta-text {
    margin-right: 0.5rem;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: #96313a !important;
    color: var(--color-bordeaux) !important;
    transform: none !important;
    opacity: 1 !important;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    color: white;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    width: 100%;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto 0.5rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

.scroll-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    opacity: 0.8;
    display: block;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .hero-content {
        padding: 1rem;
    }

    .separator-line {
        width: 40px;
    }
    
    .hero-social {
        top: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    
    .hero-social a {
        width: 45px;
        height: 45px;
    }
    
    .hero-social svg {
        width: 20px;
        height: 20px;
    }
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1); /* Pour rendre le logo blanc */
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 200px;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--color-light-gray);
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.image-content:hover img {
    transform: scale(1.05);
}

/* Review and Map Section */
.review-map-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.review-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 350px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-light-gray);
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-medium-gray);
    margin-top: 1rem;
}

.contact-grid {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes d'information */
.contact-info-wrapper {
    display: grid;
    gap: 2rem;
}

.info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-bordeaux);
}

/* Carte des contacts */
.contact-details {
    text-align: left;
    padding: 2rem;
}

.contact-primary {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-phone, .contact-address {
    flex: 1;
}

.contact-phone {
    text-align: center;
}

.contact-address {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.address-text {
    margin: 0;
    line-height: 1.5;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-bordeaux);
}

.phone-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-bordeaux);
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
}

.phone-link:hover {
    color: #7a262d;
}

/* Carte des horaires */
.hours-card {
    text-align: center;
    margin-top: -1rem;
}

@media (max-width: 480px) {
    .contact-primary {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-phone, .contact-address {
        width: 100%;
    }

    .info-card {
        padding: 1.5rem;
    }
}

.hours-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(150, 49, 58, 0.1);
    transition: all 0.3s ease;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item.today {
    background-color: rgba(150, 49, 58, 0.1);
    padding: 1rem;
    margin: 0 -1rem;
    border-radius: 8px;
    font-weight: 600;
    transform: scale(1.02);
    border-bottom: none;
}

.hour-item.today .day::before {
    content: "";
    font-weight: normal;
    color: var(--color-medium-gray);
    font-style: italic;
}

.day {
    font-weight: 500;
    color: var(--color-bordeaux);
}

.time {
    color: var(--color-medium-gray);
}

/* Formulaire de contact */
.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #96313a;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: #fff;
    color: var(--color-dark);
    border-color: #e0e0e0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-bordeaux);
    box-shadow: 0 0 0 4px rgba(150, 49, 58, 0.1);
}

/* Styles de validation uniquement après tentative de soumission */
.form-submitted .form-group input:invalid,
.form-submitted .form-group select:invalid,
.form-submitted .form-group textarea:invalid {
    border-color: #dc3545;
    border-width: 1px;
}

.form-submitted .form-group input:invalid:focus,
.form-submitted .form-group select:invalid:focus,
.form-submitted .form-group textarea:invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

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

.form-group.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
}

.form-group.consent input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--color-bordeaux);
    cursor: pointer;
}

.form-group.consent label {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
    color: var(--color-medium-gray);
}

.form-submit {
    text-align: center;
    margin-top: 2.5rem;
}

.form-submit button {
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-submit button svg {
    transition: transform 0.3s ease;
}

.form-submit button:hover svg {
    transform: translateX(5px);
}

.form-note {
    color: var(--color-medium-gray);
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Messages de formulaire */
.form-message {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

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

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

@media (max-width: 480px) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .form-submit button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Style des messages du formulaire */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group.consent {
        font-size: 0.8rem;
    }
    
    .form-submit button {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.footer::before {
    content: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: 'Chomsky', serif;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.footer-brand p {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--color-white);
    transition: all 0.3s ease;
}

.footer-social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-social a:hover {
    color: var(--color-bordeaux);
    transform: translateY(-2px);
}

.footer-info {
    display: flex;
    gap: 3rem;
}

.footer-section h4 {
    font-family: 'Chomsky', serif;
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    color: var(--color-bordeaux);
}

.footer-section p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }
}

/* Responsive Design - Tablette et Desktop */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .content-block {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
    
    .content-block.reverse {
        flex-direction: row-reverse;
    }
    
    .image-content {
        height: 400px;
    }
    
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    
    .footer-legal {
        grid-column: 1 / -1;
        text-align: center;
    }
}

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

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

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

.content-block {
    opacity: 0;
}

.content-block.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

.info-block {
    opacity: 0;
}

.info-block.animated {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Classes pour les images lazy load */
img.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Optimisations supplémentaires pour mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-social {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .hero-social a {
        width: 35px;
        height: 35px;
    }
    
    .hero-social svg {
        width: 16px;
        height: 16px;
    }
} 