/*
Theme Name: TAKA
Theme URI: https://www.philippedelahautemaison.com
Author: TAKA ateliers
Description: Thème vitrine pour TAKA ateliers — ateliers créatifs à Marseille. Bandeau aquarelle en pleine largeur, typographie General Sans en rouge corail.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: taka-ateliers
*/

/* ---------------------------------------------
   1. Variables
--------------------------------------------- */
:root {
  --taka-corail: #C8373C;
  --taka-corail-clair: #E0625F;
  --taka-creme: #FBF6EE;
  --taka-sauge: #8A9A7E;
  --taka-texte: #3A2E2A;
  --taka-max-width: 1100px;
}

/* ---------------------------------------------
   2. Base
--------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--taka-creme);
  color: var(--taka-texte);
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--taka-corail);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'General Sans', sans-serif;
  color: var(--taka-corail);
  font-weight: 600;
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
}

h1 { font-weight: 700; font-size: 2.4rem; }
h2 { font-weight: 600; font-size: 1.8rem; }
h3 { font-weight: 600; font-size: 1.35rem; }
h4, h5, h6 { font-weight: 500; }

p { margin: 0 0 1.2em; }

.site-content {
  max-width: var(--taka-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---------------------------------------------
   3. Bandeau (pleine largeur, sur toutes pages/articles)
--------------------------------------------- */
.taka-bandeau {
  width: 100%;
  display: block;
  line-height: 0;
}
.taka-bandeau img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Bande tagline rouge sous le bandeau */
.taka-tagline {
  background: var(--taka-corail);
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.taka-tagline .sep { margin: 0 0.5em; font-weight: 300; }

/* ---------------------------------------------
   4. Navigation principale
--------------------------------------------- */
.taka-nav-wrap {
  max-width: var(--taka-max-width);
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
}

.taka-nav {
  border: 1px solid var(--taka-corail-clair);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.taka-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.taka-nav li {
  border-left: 1px solid var(--taka-corail-clair);
  flex: 1 1 0;
  min-width: 0;
}
.taka-nav li:first-child { border-left: none; }

.taka-nav a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--taka-corail);
  font-weight: 500;
  font-size: 0.98rem;
  text-align: center;
  white-space: nowrap;
}
.taka-nav a:hover,
.taka-nav .current-menu-item > a {
  font-weight: 600;
  text-decoration: none;
  background: rgba(200, 55, 60, 0.06);
}

/* ---------------------------------------------
   5. Articles / listing du blog
--------------------------------------------- */
.taka-post {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(200, 55, 60, 0.15);
}
.taka-post:last-child { border-bottom: none; }

.taka-post-meta {
  color: var(--taka-sauge);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------
   6. Pied de page
--------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--taka-sauge);
  font-weight: 400;
  font-size: 0.9rem;
  border-top: 1px solid rgba(138, 154, 126, 0.25);
}

/* ---------------------------------------------
   7. Responsive
--------------------------------------------- */
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .site-content { padding: 1.75rem 1.1rem 3rem; }

  .taka-nav li {
    flex: 1 1 50%;
    border-left: none;
    border-top: 1px solid var(--taka-corail-clair);
  }
  .taka-nav li:nth-child(odd) { border-left: none; }
  .taka-nav li:nth-child(-n+2) { border-top: none; }
  .taka-nav a {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    white-space: normal;
  }
}
