/* =========================================================
   Saint-Nectaire — calendrier solaire
   Grille : 12 colonnes / gouttière 40px / marges 70-40-40-40
   ========================================================= */

:root{
  --gutter: 40px;
  --margin-top: 40px;
  --margin-bottom: 40px;
  --margin-left: 70px;
  --margin-right: 40px;

  --blue: #a2caeb;
  --blue-dark: #35517d;
  --ink: #1d1d1b;
  --ink-soft: #2b2b2b;
  --rule: #1d1d1b;
  --badge-bg: #3d3d3d;

  --font-display: rockwell, "Rockwell", Georgia, serif;
  --font-text: helvetica-neue-lt-pro, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover{ opacity: 0.7; }
a:focus-visible{ outline: 2px solid var(--blue-dark); outline-offset: 3px; }

h1, p, blockquote, figure, ul{ margin: 0; }

/* =========================================================
   Mise en page générale — grille 12 colonnes : 8 (blanc) / 4 (bleu)
   ========================================================= */

.page{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  max-width: 1920px;
  margin: 0 auto;
  align-items: stretch;
}

.panel{ min-width: 0; }

.panel--white{
  grid-column: 1 / 9;
}

.panel--blue{
  grid-column: 9 / 13;
  background: var(--blue);
  /* bleed le panneau bleu sur toute la gouttière qui le précède */
  margin-left: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
}

.panel-inner{
  height: 100%;
  padding-top: var(--margin-top);
  padding-bottom: var(--margin-bottom);
}

.panel--white .panel-inner{
  padding-left: var(--margin-left);
  /* gouttière de séparation avant le bloc bleu, pour que le filet
     et les colonnes ne viennent pas toucher le bloc bleu */
  padding-right: var(--gutter);
}

.panel--blue .panel-inner{
  padding-right: var(--margin-right);
}

/* =========================================================
   En-têtes
   ========================================================= */

.intro__title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
    max-width: 880px;
}

.intro__title--blue{
  max-width: 16ch;
}

.rule{
  border: none;
  border-top: 2px solid var(--rule);
  margin-top: 28px;
  margin-bottom: 36px;
}

.rule--blue{
  border-top-color: var(--ink);
  opacity: 0.85;
}

/* =========================================================
   Bloc blanc — chapiteau + texte
   ========================================================= */

.content-row{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  column-gap: var(--gutter);
}

.chapiteau{
  grid-column: 1 / 4;
}

.chapiteau img{
  width: 100%;
  border-radius: 2px;
}

.zoom-link{ display: block; text-decoration: none; }

.intro-text{
  grid-column: 4 / 8;
  font-size: 14px;
line-height: 17px;
}

.intro-text p{
  margin-bottom: 17px;
}
.intro-text p:last-child{ margin-bottom: 0; }

/* =========================================================
   Bloc blanc — recherches & vidéos
   ========================================================= */

.content-row--videos{
  margin-top: 44px;
  align-items: start;
}

.research-note{
  grid-column: 1 / 4;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3em;
  font-size: 1.56rem;
}

.videos{
  grid-column: 4 / 9;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
  row-gap: 28px;
}

.video{
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.video__link{
  flex: 1 1 auto;
  min-width: 0;
}

.video__thumb{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
        border: solid 2px;
    border-radius: 9px;
}

.video__thumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

.video__link:hover .video__thumb img{
  transform: scale(1.04);
}

.video__play{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video__play svg{
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}

.video__play circle{
  fill: rgba(20,20,20,0.55);
}

.video__meta{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
        height: 100%;
    justify-content: space-between;
}
.video__logo--france2, .video__logo--france3{
    img{
        width: 30px;
    }
}

.video__logo{
  display: block;
  width: 46px;
}

.video__logo svg{ width: 100%; height: auto; display: block; }

.video__logo--france3 svg{ width: 56px; }
.video__logo--rmc svg{ width: 50px; }
.video__logo--histoire svg{ width: 56px; }

.video__time{
  display: inline-block;
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================================================
   Bloc bleu — couverture + témoignages
   ========================================================= */

.book-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gutter);
  margin-top: 6px;
}

.book-cover{
  grid-column: 1 / 3;
}

.book-cover img{
  width: 100%;
  box-shadow: 0 14px 30px rgba(20, 40, 70, 0.25);
}

.testimonials{
  grid-column: 3 / 5;
    font-size: 14px;
    line-height: 17px;
}

.testimonials__title{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 17px;
    font-size: 14px;
    line-height: 17px;
}

.testimonial{
  margin: 0 0 1.4em 0;
  font-style: italic;
}

.testimonial p{ margin: 0 0 17px 0; }

.testimonial cite{
  display: block;
  font-style: normal;
  font-size: 11px;
  line-height: 12px;
    font-weight: 300;
}

/* =========================================================
   Bloc bleu — liens d'action
   ========================================================= */

.actions{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gutter);
  row-gap: 28px;
    
}

.actions__group{
  grid-column: 1 / 5;
  font-size: 1rem;
  line-height: 1.3em;
    font-family: var(--font-display);
  font-weight: 400;
    font-size: 1.56rem;
}

.actions a{
  text-decoration-thickness: 1px;
}

/* =========================================================
   Responsive
   1) > 1280px : bloc bleu à droite, en colonne
   2) <= 1280px : bloc bleu sous le bloc blanc, pleine largeur
   3) <= 720px  : les sous-grilles internes passent en 1 colonne
   ========================================================= */

@media (max-width: 1280px){

  .page{
    display: block;
  }

  .panel--white,
  .panel--blue{
    grid-column: auto;
  }

  .panel--blue{
    margin-left: 0;
    padding-left: 0;
  }

  .panel--blue .panel-inner{
    padding-left: var(--margin-left);
  }

  .intro__title,
  .intro__title--blue{
    max-width: 60ch;
  }
}

@media (max-width: 720px){

  :root{
    --margin-left: 24px;
    --margin-right: 24px;
    --margin-top: 28px;
    --margin-bottom: 28px;
    --gutter: 24px;
  }

  .content-row,
  .book-row{
    display: block;
  }

  .chapiteau{
    max-width: 320px;
  }

  .intro-text{
    margin-top: 24px;
  }

  .content-row--videos{
    margin-top: 32px;
  }

  .research-note{
    margin-bottom: 20px;
  }

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

  .video{
    flex-direction: column;
    align-items: flex-start;
  }

  .video__meta{
    flex-direction: row;
    align-self: stretch;
    justify-content: space-between;
    margin-top: 8px;
      height: auto;
  }

  .book-cover{
    max-width: 260px;
  }

  .testimonials{
    margin-top: 28px;
  }

  .actions{
    display: block;
    margin-top: 40px;
  }

  .actions__group{
    margin-bottom: 24px;
  }
}

@media (max-width: 420px){
  .videos{
    grid-template-columns: 1fr;
  }
}