:root{
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #111;
  --muted: #666;
  --border: rgba(0,0,0,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.header{
  padding: 18px 18px 0;
}

h1{
  margin: 0;
  font-size: 26px;
  text-align: center;
}

.subtitle{
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 16px;
}

.content{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
}

@media (min-width: 860px){
  .content{
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
  h1, .subtitle{ text-align: left; }
}

.photoBox{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.photo{
  width: 100%;
  height: 420px;            /* cadre fixe */
  object-fit: contain;      /* image entière (sans découpe) */
  object-position: center;
  display: block;
  background: #fff;
}

@media (max-width: 859px){
  .photo{ height: 320px; }
}

.sectionTitle{
  margin: 0 0 10px;
  font-size: 16px;
}

.freeText{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.02);
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap; /* respecte les retours à la ligne */
  min-height: 220px;
}

.mentions{
  padding: 0 18px 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 860px){
  .mentions{ text-align: left; }
}

a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.25);
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
}

@media (min-width: 640px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}

.productLink{
  display:block;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}

.productLink .name{
  font-weight: 700;
}

.productLink .path{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
