/* Base */
*{box-sizing:border-box}
/* orange doux8	#f59e6b	hsl(22, 88%, 69%)
orange chaud-6	#f97316	hsl(24, 94%, 53%)
corail moderne or5	#ff7a59	hsl(14, 100%, 67%)
pêche lumineuse7	#ff9966	hsl(20, 100%, 70%) */
:root{
  --blue-light: hsl(201, 72%, 95%);
  --blue-200: hsl(201, 72%, 80%);
  --blue-300: hsl(201, 72%, 70%);
  --blue: hsl(201, 72%, 61%); /* #52b0e3 */
  --blue-500: hsl(201, 72%, 50%);
  --blue-600: hsl(201, 72%, 40%);
  --blue-800: hsl(201, 72%, 20%);
  --blue-dark: hsl(201, 72%, 10%);
  --or: hsl(21, 72%, 61%);     /* orange */
  --or-soft: hsl(21, 72%, 80%);
  --or-dark: hsl(24, 94%, 30%);
  --or-light: hsl(24, 94%, 98%);
  
  --or-1: hsl(24, 94%, 30%);     /* orange */
  --or-2: hsl(24, 94%, 93%);
  --or-3: hsl(24, 94%, 90%);
  --or-4: hsl(24, 94%, 95%);
  --or-5: hsl(14, 100%, 67%); /* #ff7a59 */
  --or-6: hsl(24, 94%, 53%); /* #f97316 */
  --or-7: hsl(20, 100%, 70%); /* #ff9966 */
  --or-8: hsl(22, 88%, 69%); /* #f59e6b */
  
}

body{
  margin:0;
  font-family: Lexend, Geist, "Gill Sans MT", sans-serif;
   /*background: linear-gradient(to right, hsl(24, 94%, 62%), hsl(24, 94%, 83%));
  color: var(--blue-dark);*/
   background: linear-gradient(90deg, #2b4b97, #52b2e4);
  color: #1d2939;
}

.wrap{
  max-width:900px;
  margin:0 auto;
  padding:14px;
}
.hero{
background-image: url("img/hero.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  color:white;
  padding:30px;
  border-radius:10px;
  margin-bottom:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
/* Hero */
.hero h1{
  margin:0;
  font-size:28px;
  letter-spacing:1px;
}

.hero p{
  margin-top:4px;
  opacity:.9;
}
.badge{
  background: rgba(255,255,255,.15);
  width:11rem;
  height:5rem;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
}

/* Top bar */

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:10px auto;
  padding: 20px;
  background-color: var(--or-light);
   border:1px  var(--or-dark);
}

/* Cards */

.card{
  background: var(--blue-light);
  border-radius:8px;
  padding:14px 16px;
  border:1px  #e4e7ec;
  margin-bottom:12px;
}

/* Card section parents / grands parents */

.ancestry-card{
  background:var(--blue-light);
  border:1px  var(--or-dark);
  padding:12px 14px;
}

/* summary */
.summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.summary-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
   color: #374151;
}

.summary-line {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  margin-bottom: 0.7rem;
  gap: 1rem;
   color: #374151;
   border-bottom: 1px dotted #3f6fd9;
   padding-bottom: 0.4rem; /* espace sous les pills */
}
.summary-txt {
  flex: 1 0 100%;
  width: 100%;
  display: block;
  margin-bottom: 0.7rem;
  color: #374151;
  border-bottom: 1px dotted #3f6fd9;
  padding-bottom: 0.4rem; /* espace sous les pills */
}

.summary-label {
  min-width: 90px;
  font-weight: 600;
  color: #374151;
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.summary-groups {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.summary-subtitle {
  font-weight: 600;
  color: #1f355d;
}

.summary-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #374151;
}

.summary-list li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.summary-list li:last-child {
  margin-bottom: 0;
}


.pill {
  background: #eef2ff;
  color: #2b4b97;
  border: 1px solid #90a4f5;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* warnings */
.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #2b4b97;
}
.warning-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.warning-box li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
   white-space: pre-line;
}

/* notes 
.notes-card {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f8fbff;
  border: 1px solid #dbe7ff;
  border-left: 4px solid #3f6fd9;
  border-radius: 12px;
  color: #1f2937;
}

.notes-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #1e3a8a;
}

*/

/* Intro */

.intro{
  font-size:13px;
  color:var(--blue-dark);
  margin-top:4px;
  margin-bottom:10px;
}

/* Header des sections */

.card-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content: center;
  margin-bottom:10px;
  border-bottom:1px  #e4e7ec;
  background-image: url("img/barre1.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  color:white;
  font-weight:700;
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
}
.card-head .intro{
  margin-top:6px;
  text-align:center;
  max-width:800px;
  color: white;
}
#headerGrandparents{
  background-image: url("img/hero.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Grid */

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px 12px;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:10px 12px;
}

/* Fields */

.field label{
  font-size:12px;
  font-weight:600;
  color:#344054;
  margin-bottom:4px;
}

.field-full{
  grid-column:1 / -1;
}

/* Inputs */

input, 
select {
  width:100%;
  padding:8px 9px;
  border-radius:6px;
  border:1px solid #2b4b97;
  font-size:13px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
 }
input:hover,
select:hover {
  border-color: #3f6fd9;
}
input:focus,
select:focus {
  outline: none;
  border-color: #52b2e4;
  box-shadow: 0 0 0 2px rgba(82, 178, 228, 0.25);
}

select {
  background-image: url("img/rect_or_84559.png");
  background-size: cover;
  background-repeat: no-repeat;
}
input:not(:placeholder-shown):not(:focus) {
  border-color: #f76b0d;
}

.form-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 24px;
}

/* Boutons */


button{
  background:var(--blue-dark);
  border: 1px var(--blue);
  color:white;
  margin-top: 12px;
  border-radius:6px;
  font-weight:600;
  transition: transform 0.3s ease;
  padding: 10px 25px;
  min-width: 200px;
}

button:hover{
  background:var(--blue);
  color:var(--blue-dark);
  transform: translateX(10px);
  padding: 10px 25px;
  min-width: 250px;
}


/* Actions */

.actions{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
}

/* Photo placeholder */

.photo-slot{
  display:flex;
  align-items:center;
  justify-content:center;
}

.photo-placeholder{
  width:100%;
  height:80px;
  border:2px dashed #d0d5dd;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
   background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 6px 8px;
}

/* Results */

.results{
  margin-top:10px;
  color: var(--blue-light);
}

.results-table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0 24px;
  background:#fff;
  color:#1d2939;
  font-size:14px;
}

.results-table th,
.results-table td{
  border:1px solid #d8dee8;
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.results-table th{
  background:#eef4fb;
  font-weight:700;
}

.results-table tbody tr:nth-child(even){
  background:#f8fbff;
}

.locus-separator td {
  background: #2b4b97;
  color: #fff;
  font-weight: 600;
  padding: 10px;
  text-align: left;
}

.results-table tr.locus-separator td {
  border-top: 2px solid #fff;
}

/* Responsive */

@media (max-width:620px){

  .grid-3{
    grid-template-columns:1fr 1fr;
  }

  .grid-2{
    grid-template-columns:1fr;
  }

}

@media (max-width:420px){

  .grid-3{
    grid-template-columns:1fr;
  }
}
/* ======== typo ========*/

@font-face {
  font-family: "Zodiak";
  src: url("../fonts/Zodiak-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zodiak";
  src: url("../fonts/Zodiak-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zodiak';
  src: url('../fonts/Zodiak-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* lexend-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lexend-v26-latin-regular.woff2') format('woff2');
}

/* geist-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/geist-v4-latin-regular.woff2') format('woff2');
}

/* newsreader-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/newsreader-v26-latin-regular.woff2') format('woff2');
}

/* fraunces-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fraunces-v38-latin-regular.woff2') format('woff2');
}


/* Titres */
h1 {
  font-family: Zodiak, Fraunces, Newsreader, serif;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
}

h2 {
  font-family: Zodiak, Fraunces, Newsreader, serif;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}

h3 {
  font-family: Zodiak, Fraunces, Newsreader, serif;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
}

p {
  font-size: 14px;
}


