/* === komsa.re v0 — feuille de style — palette Volcan === */

/* Palette Volcan
   Fond blanc cassé chaud, texte noir mat, accent terre rouge brique.
   V1 = terra (signature couverture L'Île V1).
   V2 = bleu encre presque noir (signature couverture L'Île V2, version sobre).
*/

:root {
  --fond: #fafaf8;
  --fond-clair: #f4f1eb;
  --fond-paille: #efeae0;
  --noir: #161614;
  --gris-fonce: #3a3833;
  --gris-doux: #6a655c;
  --separation: #e3ddd1;

  --terra: #a04230;
  --terra-clair: #b9583f;
  --terra-fonce: #7c2f23;

  --encre: #161e36;
  --encre-clair: #2a3454;

  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1100px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--noir);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--terra);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--terra-clair); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.site-header {
  background: var(--fond);
  border-bottom: 1px solid var(--separation);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--noir);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.header-nav { display: flex; gap: 16px; }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--terra);
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover {
  background: var(--terra);
  color: var(--fond);
}

/* === Hero === */
.hero {
  padding: 96px 0 84px;
  background: var(--fond);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--separation);
}

.hero-inner { text-align: center; }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  color: var(--noir);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gris-fonce);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* === Boutons === */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn-primary {
  background: var(--terra);
  color: var(--fond);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-fonce);
  color: var(--fond);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  font-size: 15px;
  color: var(--gris-fonce);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn-secondary:hover { color: var(--noir); }

/* === Sections === */
.section { padding: 80px 0; }
.section-narrow .container,
.section-narrow-inner {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.section-light {
  background: var(--fond-clair);
  border-top: 1px solid var(--separation);
  border-bottom: 1px solid var(--separation);
}
.section-paille {
  background: var(--fond-paille);
  border-top: 1px solid var(--separation);
  border-bottom: 1px solid var(--separation);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 28px;
  color: var(--noir);
}

.section-intro {
  font-size: 17px;
  color: var(--gris-fonce);
  margin-bottom: 36px;
}

.section .lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 24px;
  color: var(--noir);
}
.lead-accent { color: var(--terra); }

.section-link-row { margin-top: 28px; }
.section-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.section-link:hover {
  color: var(--terra-fonce);
  border-bottom-color: var(--terra-fonce);
}

/* === Section 3 — Portes d'entrée === */
.portes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--separation);
  border: 1px solid var(--separation);
}

.porte {
  background: var(--fond);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.porte::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--terra);
}

.porte-public {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  color: var(--noir);
}
.porte-situation {
  font-size: 16px;
  line-height: 1.55;
  color: var(--gris-fonce);
  margin: 0;
  flex: 1;
}
.porte-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
  text-decoration: none;
  margin-top: 8px;
  align-self: flex-start;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.porte-cta:hover {
  color: var(--terra-fonce);
  border-bottom-color: var(--terra-fonce);
}

/* === Section 4 — Diptyque V1 / V2 === */
.section-diptyque {
  background: var(--fond-clair);
  border-top: 1px solid var(--separation);
  border-bottom: 1px solid var(--separation);
}

.diptyque {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0 36px;
}

.diptyque-item {
  background: var(--fond);
  padding: 36px 32px;
  border: 1px solid var(--separation);
  border-top: 3px solid var(--terra);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diptyque-item.diptyque-v2 {
  border-top-color: var(--encre);
}

.diptyque-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
  color: var(--noir);
}
.diptyque-v1 .diptyque-title {
  color: var(--terra);
}
.diptyque-v2 .diptyque-title {
  color: var(--encre);
}
.diptyque-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.diptyque-title a:hover {
  opacity: 0.7;
}
.diptyque-tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gris-doux);
  margin: 0 0 14px;
  font-weight: 500;
}
.diptyque-fonction {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--gris-fonce);
}
.diptyque-fonction strong {
  color: var(--noir);
  font-weight: 600;
}

.diptyque-conclusion {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  margin: 28px 0 0;
  color: var(--noir);
  font-weight: 500;
}

/* === Section 5 — Formulaire === */
.section-form {
  background: var(--fond);
  border-top: 1px solid var(--separation);
}

.orientation-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-fonce);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--separation);
  background: var(--fond-clair);
  color: var(--noir);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terra);
  background: #fff;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}

.hp { display: none; }

.form-actions { margin-top: 8px; }

.form-feedback {
  font-size: 14px;
  margin: 8px 0 0;
  min-height: 20px;
}
.form-feedback.is-success { color: var(--terra); font-weight: 500; }
.form-feedback.is-error { color: #a13a2a; }

/* === Footer === */
.site-footer {
  background: var(--fond-paille);
  border-top: 1px solid var(--separation);
  padding: 36px 0 28px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-col-brand {
  flex: 1 1 280px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--noir);
}
.footer-fondateur {
  font-size: 14px;
  color: var(--gris-fonce);
  margin: 0;
  line-height: 1.5;
}
.footer-col-meta {
  text-align: right;
  flex: 0 0 auto;
}
.footer-meta {
  font-size: 14px;
  color: var(--gris-doux);
  margin: 0;
}
.footer-meta a {
  color: var(--gris-fonce);
  text-decoration: none;
  border-bottom: 1px solid var(--separation);
}
.footer-meta a:hover { color: var(--terra); border-bottom-color: var(--terra); }
.footer-meta .dot { margin: 0 8px; }

/* === Responsive === */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .section { padding: 64px 0; }
  .portes-grid { grid-template-columns: 1fr; }
  .diptyque { grid-template-columns: 1fr; gap: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-col-meta { text-align: left; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }
}
