/*
Theme Name: La Corralière
Theme URI: https://www.lacorraliere.fr/
Description: Thème "Chaleur artisanale" pour les chambres d'hôtes La Corralière à Nègrepelisse. Structure inspirée du thème Pinboard (sidebars multiples, templates de page variés), avec une identité crème, vert forêt, ocre miel et terracotta. Typographies Fraunces et Nunito Sans.
Version: 1.0.0
Author: La Corralière
Author URI: https://www.lacorraliere.fr/
Tags: chambres-d-hotes, tourisme, two-columns, three-columns, right-sidebar, left-sidebar, custom-menu, featured-images, translation-ready
License: GNU General Public License v2.0
License URI: license.txt
Text Domain: la-corraliere
*/

/* ==========================================================================
   Base
   ========================================================================== */
:root {
  --background: #f6efe1;        /* crème */
  --foreground: #2a2622;        /* encre chaude */
  --card: rgba(255, 252, 244, .7);
  --primary: #2f4a43;           /* vert forêt */
  --primary-foreground: #f6efe1;
  --secondary: #d98a4a;         /* ocre miel */
  --secondary-foreground: #f6efe1;
  --muted: #ece4d2;
  --muted-foreground: #6e6257;
  --accent: #c06b45;            /* terracotta */
  --accent-foreground: #f6efe1;
  --border: rgba(42, 38, 34, .1);
  --radius: 1rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.15;
  font-weight: 600;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ==========================================================================
   Layout
   ========================================================================== */
#wrapper { position: relative; min-height: 100vh; overflow: hidden; }

.container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

#container { display: flex; gap: 3rem; padding-top: 3rem; padding-bottom: 3rem; }
#container.layout-full, #container.layout-no-sidebars { display: block; }

#content { flex: 1 1 auto; min-width: 0; }
.sidebar { flex: 0 0 18rem; }
.sidebar-left { order: -1; }

/* ==========================================================================
   Header
   ========================================================================== */
#header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

#site-branding { display: flex; align-items: center; gap: .8rem; }
#site-logo {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.25rem;
  flex: none;
}
#site-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
#site-title a { color: var(--foreground); text-decoration: none; }
#site-description {
  margin: 0;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: color-mix(in srgb, var(--primary) 60%, transparent);
}

#main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
#main-nav a {
  font-size: .875rem; font-weight: 700;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  text-decoration: none;
}
#main-nav a:hover, #main-nav .current-menu-item > a { color: var(--accent); }

.header-cta {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: .875rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  transition: transform .2s ease;
}
.header-cta:hover { transform: translateY(-2px); color: var(--secondary-foreground); }

@media (max-width: 800px) {
  #header { flex-wrap: wrap; }
  #main-nav ul { flex-wrap: wrap; gap: 1rem; }
}

/* ==========================================================================
   Hero / page d'accueil
   ========================================================================== */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 2rem 0 4rem; }
@media (min-width: 800px) { .hero { grid-template-columns: 1fr 1fr; } }

.hero .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 9999px;
  background: var(--card);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--primary);
}
.hero h1 { margin: 1.5rem 0 0; font-size: clamp(2.4rem, 6vw, 3.8rem); }
.hero h1 em { color: var(--accent); }
.hero p.lead { max-width: 30rem; font-size: 1.125rem; color: var(--muted-foreground); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .85rem 1.6rem;
  border-radius: 9999px;
  font-size: .875rem; font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.btn-outline { border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.btn-outline:hover { border-color: color-mix(in srgb, var(--foreground) 30%, transparent); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.hero-stats span { font-size: .875rem; color: var(--muted-foreground); }

.hero figure { position: relative; margin: 0; }
.hero figure img {
  width: 100%; aspect-ratio: 9/10; object-fit: cover;
  border-radius: 2rem;
  outline: 1px solid rgba(0,0,0,.05); outline-offset: -1px;
}
.hero figcaption {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 252, 244, .9);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -10px rgba(42,38,34,.3);
}
.hero figcaption strong { display: block; font-family: var(--font-display); font-size: .875rem; color: var(--primary); }
.hero figcaption span { font-size: .75rem; color: var(--muted-foreground); }

/* Bandeau « Le lieu » */
.section-lead { border-radius: 2rem; background: var(--primary); color: var(--primary-foreground); overflow: hidden; }
.section-lead .inner { display: grid; gap: 2rem; align-items: center; padding: 2.5rem; }
@media (min-width: 800px) { .section-lead .inner { grid-template-columns: 1fr 1fr; padding: 3rem; } }
.section-lead .kicker { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--secondary); }
.section-lead h2 { margin: .75rem 0 0; color: var(--primary-foreground); font-size: 2.25rem; }
.section-lead p { max-width: 26rem; color: rgba(246, 239, 225, .7); }
.section-lead img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1rem; }
.section-lead a.link-light { color: rgba(246,239,225,.8); font-weight: 700; font-size: .875rem; }
.section-lead a.link-light:hover { color: var(--primary-foreground); }

/* Sections génériques */
.section { padding: 3.5rem 0; }
.kicker { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.section-title { margin: .5rem 0 0; font-size: 2.25rem; }

/* Cartes chambres */
.cards { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 800px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 1rem; }
.card h3 { margin: 1rem 0 0; font-size: 1.125rem; font-weight: 700; }
.card p { margin: .25rem 0 0; font-size: .875rem; color: var(--muted-foreground); }
.card .tag {
  display: inline-block; margin-top: .75rem;
  padding: .25rem .8rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--secondary) 15%, transparent);
  color: var(--accent);
  font-size: .875rem; font-weight: 700;
}

/* Liste de prestations */
.features { margin: 0; padding: .5rem; list-style: none; border-radius: 1.5rem; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.features li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
}
.features li + li { border-top: 1px solid var(--border); }
.features strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--primary); }
.features span { font-size: .875rem; color: var(--muted-foreground); }
.features .dot { width: .4rem; height: .4rem; border-radius: 9999px; background: var(--secondary); flex: none; }

/* ==========================================================================
   Articles / contenu
   ========================================================================== */
.entry { margin-bottom: 3rem; }
.entry-title { font-size: 2rem; margin: 0 0 .5rem; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { font-size: .8rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.entry-content img { border-radius: 1rem; }

.posts-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* Commentaires */
.commentlist { list-style: none; padding: 0; }
.commentlist .comment-body { padding: 1.25rem; border-radius: 1rem; background: var(--card); margin-bottom: 1rem; }
.commentlist .children { list-style: none; padding-left: 2rem; }

/* Formulaires */
input[type="text"], input[type="email"], input[type="search"], textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: .75rem;
  background: #fffdf8; color: var(--foreground);
  font-family: var(--font-body);
}
input:focus, textarea:focus { outline: 2px solid var(--secondary); outline-offset: 0; }
input[type="submit"], .submit {
  padding: .7rem 1.5rem; border: 0; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 700; cursor: pointer;
}

/* ==========================================================================
   Sidebars / widgets
   ========================================================================== */
.widget { margin-bottom: 2rem; padding: 1.25rem; border-radius: 1.25rem; background: var(--card); }
.widget-title { margin: 0 0 .75rem; font-size: 1.05rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: .4rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
#footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
#footer .cols { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { #footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
#footer .kicker { color: var(--primary); font-size: .8rem; }
#footer ul { margin: 1rem 0 0; padding: 0; list-style: none; }
#footer li { color: var(--muted-foreground); font-size: .875rem; margin-bottom: .4rem; }
#footer a.tel { font-weight: 700; color: var(--accent); }
.copyright { margin-top: 2.5rem; font-size: .75rem; color: color-mix(in srgb, var(--muted-foreground) 60%, transparent); }

/* Accessibilité */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px); overflow: hidden;
}

/* --- Widgets Elementor La Corralière --- */
.elementor-widget-container > .hero,
.elementor-widget-container > .section { margin-left: 0; margin-right: 0; }
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.contact-list li { padding: .25rem 0; color: var(--muted, #6b6257); font-size: .95rem; }
.front-page-content > .elementor { width: 100%; }
